/* ARBON — single stylesheet, no build step. */

:root {
  --navy-900: #071538;
  --navy-800: #0d2160;
  --navy-700: #16338a;
  --blue-600: #0a6ebd;
  --blue-400: #4f97d8;
  --blue-200: #9fcdf0;
  --ink: #161a22;
  --ink-soft: #4a5263;
  --line: #e2e6ee;
  --paper: #ffffff;
  --paper-alt: #f4f6fa;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; }
.brand-word { width: 118px; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-alt); color: var(--blue-600); }

/* ---------- Hero ---------- */

.hero {
  color: #fff;
  background: var(--navy-800) url("/assets/img/banner.jpg") center / cover no-repeat;
  padding: clamp(80px, 14vw, 170px) 0 clamp(70px, 11vw, 140px);
  text-align: center;
}
.hero .eyebrow { color: var(--blue-200); }
.hero h1 { max-width: 900px; margin: 0 auto .4em; }
.hero p.lead { max-width: 720px; margin: 0 auto 2em; color: #dbe6ff; font-size: 1.15rem; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--blue-600); margin-bottom: .9em;
}

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 650;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s;
}
.btn-primary { background: #fff; color: var(--navy-800); }
.btn-primary:hover { background: var(--blue-200); color: var(--navy-900); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; margin-left: 8px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-grid .lead { font-size: 1.15rem; }

.facts {
  margin: 0; padding: 28px; list-style: none; background: var(--paper-alt);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts dt, .facts .k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 650; }
.facts .v { font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.card::before {
  content: ""; position: absolute; left: 28px; top: 0; width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--blue-200), var(--blue-600));
}
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(7, 21, 56, .1); color: inherit; }
.project-card .top {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 24px 26px;
}
.project-card .tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-200); font-weight: 700; }
.project-card h3 { margin: .5em 0 0; font-size: 1.2rem; }
.project-card .body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project-card .body p { color: var(--ink-soft); font-size: .97rem; }
.project-card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; }
.project-card .meta > span:first-child { white-space: nowrap; }

.status {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.status-done { background: #e3f4ea; color: #17603a; }
.status-active { background: #e2eefc; color: #0b4f8f; }
.status-planned { background: #fdf1dc; color: #8a5200; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-grid .card h3 { margin-bottom: .6em; }
.contact-grid address { font-style: normal; color: var(--ink-soft); }

/* ---------- Project article pages ---------- */

.page-hero {
  color: #fff;
  background: var(--navy-800) url("/assets/img/banner.jpg") center / cover no-repeat;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px);
}
.page-hero .crumbs { font-size: .9rem; margin-bottom: 1.2em; }
.page-hero .crumbs a { color: var(--blue-200); }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 900px; }
.page-hero .subtitle { color: #dbe6ff; font-size: 1.15rem; max-width: 780px; margin-bottom: 1.6em; }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: #dbe6ff; }
.page-meta strong { color: #fff; font-weight: 650; }

.article { max-width: 780px; margin: 0 auto; }
.article h2 { margin-top: 1.8em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .35em; }
.article h4 { font-size: 1rem; margin: 1.4em 0 .4em; }

.timeline { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--blue-200), var(--blue-600));
}
.timeline > li { position: relative; padding: 0 0 36px 48px; }
.timeline > li::before {
  content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue-600);
}
.timeline > li.planned::before { border-style: dashed; border-color: #c48b2a; }
.timeline .when { font-size: .85rem; font-weight: 700; color: var(--blue-600); letter-spacing: .03em; }
.timeline > li.planned .when { color: #8a5200; }
.timeline h3 { margin: .2em 0 .6em; font-size: 1.2rem; }

.caps { columns: 2 260px; column-gap: 32px; padding: 0 !important; list-style: none; }
.caps li {
  break-inside: avoid; padding: 8px 0 8px 26px; position: relative; margin: 0 !important;
  border-bottom: 1px solid var(--line);
}
.caps li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--blue-200), var(--blue-600));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.callout {
  border-left: 4px solid var(--blue-600); background: var(--paper-alt);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0;
}

.back { margin-top: 48px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-900); color: #b9c4dc; padding: 48px 0 28px; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand img { width: 44px; margin-bottom: 12px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: .85rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { justify-content: center; padding-top: 10px; padding-bottom: 6px; }
  .nav { justify-content: center; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .btn-ghost { margin: 10px 0 0; }
  .timeline > li { padding-left: 40px; }
}
