@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg:             oklch(0.07  0     0);
  --surface:        oklch(0.12  0.012 45);
  --surface-raised: oklch(0.16  0.014 45);
  --line:           oklch(0.22  0.012 45);

  --ink:            oklch(0.96  0.004 45);
  --muted:          oklch(0.68  0.012 45);
  --faint:          oklch(0.48  0.01  45);

  --primary:        oklch(0.68  0.16  45);
  --primary-strong: oklch(0.58  0.17  45);
  --primary-tint:   oklch(0.22  0.05  45);

  --accent:         oklch(0.88  0.03  230);
  --accent-ink:     oklch(0.14  0.01  230);

  --good:           oklch(0.72  0.14  150);
  --danger:         oklch(0.68  0.18  25);

  --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --z-nav: 100;
  --z-mobile-nav: 110;
  --z-toast: 200;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
p.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 62ch; }

.mono, .tabular { font-variant-numeric: tabular-nums; }

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

section { padding: clamp(64px, 9vw, 120px) 0; }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms var(--ease-out-quart), border-color 220ms var(--ease-out-quart), color 220ms var(--ease-out-quart), transform 160ms var(--ease-out-quart);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--muted); padding: 14px 4px; }
.btn-ghost:hover { color: var(--ink); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out-quart), background-color 300ms var(--ease-out-quart);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.03em; }

nav.primary-nav { display: flex; align-items: center; gap: 4px; }
nav.primary-nav a.nav-link {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 3px;
  transition: color 180ms, background-color 180ms;
}
nav.primary-nav a.nav-link:hover { color: var(--ink); background: var(--surface); }
nav.primary-nav a.nav-link.is-active { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 920px) {
  nav.primary-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-nav {
  position: fixed;
  inset: 78px 0 0 0;
  z-index: var(--z-mobile-nav);
  background: var(--bg);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 16px 8px;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; justify-content: center; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: 78px;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(0.05 0 0 / 0.35) 0%, oklch(0.05 0 0 / 0.55) 45%, oklch(0.05 0 0 / 0.94) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lede { color: oklch(1 0 0 / 0.82); }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  position: relative;
  padding: calc(78px + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page-hero .kicker { color: var(--primary); }

/* ---------- credential strip ---------- */

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.credential-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.88rem;
  color: var(--muted);
}
.credential-pill strong { color: var(--ink); font-weight: 700; }

/* ---------- stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label { font-size: 0.92rem; color: var(--muted); }

/* ---------- credentials list (real sentences, not logos) ---------- */

.credentials-list { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.credential-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.credential-item:last-child { border-bottom: none; padding-bottom: 0; }
.credential-item .icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 3px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.credential-item h4 { margin-bottom: 4px; }
.credential-item p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- two-col ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
}
.two-col img, .media-frame img { border-radius: 4px; border: 1px solid var(--line); }

/* ---------- service grid (hub only) ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.service-card {
  background: var(--surface);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 220ms var(--ease-out-quart);
}
.service-card:hover { background: var(--surface-raised); }
.service-card h3 { margin-bottom: 0; }
.service-card p { color: var(--muted); margin-bottom: 8px; }
.service-card .go { color: var(--primary); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- project entries ---------- */

.project-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.project-entry {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.project-entry:first-child { padding-top: 0; }
@media (max-width: 780px) {
  .project-entry { grid-template-columns: 1fr; }
}
.project-entry img { border-radius: 4px; border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 10px; font-size: 0.86rem; color: var(--faint); }
.project-meta span strong { color: var(--muted); font-weight: 600; }

/* ---------- callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.field .req { color: var(--primary); }
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 13px 14px;
  transition: border-color 180ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: 0.8rem; color: var(--faint); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error { display: block; font-size: 0.82rem; color: var(--danger); margin-top: 6px; }
.form-actions { margin-top: 8px; display: flex; align-items: center; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--faint); }

/* ---------- contact info blocks ---------- */

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 8px; }
.info-block h4 { margin-bottom: 6px; }
.info-block p { margin: 0; color: var(--muted); }
.info-block a { color: var(--accent); font-weight: 600; }
.info-block a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--faint);
}

/* ---------- reveal-on-scroll ---------- */

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms var(--ease-out-quart), transform 560ms var(--ease-out-quart);
  }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* ---------- misc ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.breadcrumbs { font-size: 0.86rem; color: var(--faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }
