:root {
  --bg: #F7F6F2;
  --surface: #EFEEE8;
  --surface-2: #E7E9E4;
  --ink: #121714;
  --ink-muted: #4B544E;
  --line: #D8DCD5;
  --green: #1F4D3B;
  --green-deep: #16372B;
  --green-soft: #DDE8E2;
  --dark: #0F1713;
  --dark-2: #13221B;
  --light: #F3F4EF;
  --container: 1360px;
  --header-h: 74px;
  --radius-sm: 2px;
  --radius-md: 8px;
  --shadow-soft: 0 18px 50px rgba(15, 23, 19, 0.08);
  --font-sans: Inter, "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", Inter, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--green); color: white; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--green);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 246, 242, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .055em;
}
.brand-mark {
  width: 26px;
  aspect-ratio: 1;
  background: var(--green);
  -webkit-mask: url('/assets/brand/preis-symbol-source.png') center/contain no-repeat;
  mask: url('/assets/brand/preis-symbol-source.png') center/contain no-repeat;
}
.brand-wordmark { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--green);
  transition: right .22s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.nav-toggle { display: none; }

.hero {
  min-height: min(740px, calc(100svh - var(--header-h)));
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: min(740px, calc(100svh - var(--header-h)));
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(56px, 6vh, 74px) clamp(40px, 4.5vw, 70px) clamp(40px, 5vh, 58px) 0;
}
.eyebrow, .section-kicker {
  margin: 0 0 22px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hero h1, .section h2, .work-section h2, .contact-section h2, .now-section h2, .human-ai h2, .approach h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 680;
  letter-spacing: -.05em;
  line-height: .98;
}
.hero h1 {
  max-width: 720px;
  font-size: clamp(56px, 4.8vw, 82px);
  line-height: .96;
}
.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--ink-muted);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.5;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
}
.hero-socials { display: flex; gap: 28px; margin-top: 24px; font-size: 13px; }
.hero-socials a { text-decoration: none; }
.hero-socials a:hover { color: var(--green); }
.muted-link { color: var(--ink-muted); cursor: default; }

.portrait-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(221, 232, 226, .9), transparent 28%),
    linear-gradient(145deg, #D7DBD4 0%, #B8C4BD 48%, #788E83 100%);
  border-left: 1px solid var(--line);
}
.portrait-shell::before {
  content: "";
  position: absolute;
  inset: 10% 10% 0 28%;
  border-radius: 45% 45% 8% 8% / 25% 25% 6% 6%;
  background: linear-gradient(160deg, rgba(15,23,19,.12), rgba(15,23,19,.48));
  box-shadow: -80px 60px 120px rgba(15, 23, 19, .14);
}
.portrait-shell::after {
  content: "";
  position: absolute;
  width: 32%;
  aspect-ratio: 1;
  left: 48%;
  top: 17%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(247,246,242,.64), rgba(31,77,59,.22));
  box-shadow: 0 12px 36px rgba(15,23,19,.14);
}
.portrait-gridlines {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image: linear-gradient(rgba(247,246,242,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(247,246,242,.25) 1px, transparent 1px);
  background-size: 72px 72px;
}
.portrait-monogram {
  position: absolute;
  right: 7%;
  bottom: 5%;
  color: rgba(247,246,242,.25);
  font-family: var(--font-display);
  font-size: clamp(110px, 15vw, 230px);
  font-weight: 700;
  line-height: .75;
  letter-spacing: -.09em;
}
.portrait-caption {
  position: absolute;
  left: 26px;
  bottom: 26px;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  color: white;
  background: rgba(15, 23, 19, .74);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
}
.portrait-caption small { color: rgba(255,255,255,.68); font-size: 9px; }

.system-strip { border-bottom: 1px solid var(--line); }
.system-strip-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto minmax(220px, 1.2fr);
  align-items: center;
  gap: 28px;
}
.system-step { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.system-step strong { font-family: var(--font-display); font-size: 14px; letter-spacing: -.02em; }
.system-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green); font-size: 24px; }
.system-arrow { height: 1px; color: transparent; background: linear-gradient(90deg, var(--ink-muted), var(--line)); position: relative; }
.system-arrow::after { content: "→"; position: absolute; right: -2px; top: -13px; color: var(--ink-muted); background: var(--bg); padding-left: 8px; }
.system-strip p { margin: 0; padding-left: 28px; border-left: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; }

.section { padding: clamp(86px, 10vw, 150px) 0; }

#about {
  padding-top: clamp(90px, 7vw, 110px);
}

.about-grid {
  display: grid;
  grid-template-columns: .7fr 1fr 1.38fr;
  gap: clamp(28px, 4vw, 66px);
  align-items: start;
}
.section-visual { min-height: 420px; }
.desk-card {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(145deg, #1A2A22, #53665D 48%, #C4CDC6 49%, #E5E7E1 100%);
}
.desk-card::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 34%;
  left: 11%;
  top: 24%;
  transform: rotate(-8deg);
  background: var(--bg);
  box-shadow: 0 16px 24px rgba(15,23,19,.22);
}
.desk-card::after {
  content: "";
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  right: 12%;
  top: 10%;
  border-radius: 50%;
  background: #101713;
  box-shadow: inset 0 0 0 10px #2E4037;
}
.desk-line { position: absolute; z-index: 2; width: 34%; height: 1px; left: 18%; background: var(--green); transform: rotate(-8deg); }
.desk-line-a { top: 34%; }
.desk-line-b { top: 39%; width: 25%; }
.desk-note {
  position: absolute;
  z-index: 3;
  left: 13%;
  bottom: 12%;
  display: grid;
  gap: 8px;
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}
.about-copy { padding-top: 2px; }
.section h2, .work-section h2, .now-section h2, .contact-section h2, .human-ai h2, .approach h2 { font-size: clamp(34px, 4vw, 58px); }
.about-copy h2 { max-width: 600px; }
.human-ai h2 {
  font-size: clamp(34px, 3.3vw, 50px);
}
.about-copy > p:not(.section-kicker) { margin: 28px 0 0; color: var(--ink-muted); font-size: 17px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.principle-card { padding: 28px 26px; border-right: 1px solid var(--line); }
.principle-symbol { color: var(--green); font-size: 26px; }
.principle-label { margin: 28px 0 8px; color: var(--ink-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; }
.principle-card h3 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.principle-card p:last-child { margin: 16px 0 0; color: var(--ink-muted); font-size: 13px; }

.work-section { padding: clamp(86px, 9vw, 138px) 0 0; color: var(--light); background: var(--dark); }
.section-kicker-dark { color: rgba(243,244,239,.57); }
.work-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(243,244,239,.2); }
.work-heading h2 { font-size: clamp(44px, 5.6vw, 78px); }
.work-heading > p { max-width: 480px; margin: 0; color: rgba(243,244,239,.65); font-size: 16px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 0 62px; }
.case-card {
  min-height: 495px;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  border: 1px solid rgba(243,244,239,.18);
  background: var(--dark-2);
  overflow: hidden;
}
.case-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(243,244,239,.14);
  background: #0B120F;
}
.case-copy { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.case-number { color: #75A28D; font-family: var(--font-mono); font-size: 14px; }
.case-copy h3 { margin: 18px 0 12px; font-family: var(--font-display); font-size: 28px; line-height: 1.08; letter-spacing: -.035em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 8px; border: 1px solid rgba(243,244,239,.23); color: rgba(243,244,239,.72); font-family: var(--font-mono); font-size: 8px; letter-spacing: .025em; }
.case-copy p { margin: 20px 0 22px; color: rgba(243,244,239,.63); font-size: 13px; }
.case-link { margin-top: auto; color: rgba(243,244,239,.8); font-size: 12px; }

.mock-window { position: absolute; inset: 12% 7%; border: 1px solid rgba(221,232,226,.25); background: #111A16; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.mock-topbar { height: 28px; display: flex; gap: 5px; align-items: center; padding: 0 10px; border-bottom: 1px solid rgba(221,232,226,.14); }
.mock-topbar span { width: 5px; height: 5px; border-radius: 50%; background: #557366; }
.mock-layout { display: grid; grid-template-columns: 20% 1fr; height: calc(100% - 28px); }
.mock-sidebar { border-right: 1px solid rgba(221,232,226,.1); background: linear-gradient(rgba(31,77,59,.3), transparent); }
.mock-main { padding: 16px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stat-row i { height: 54px; border: 1px solid rgba(221,232,226,.15); background: linear-gradient(145deg, rgba(31,77,59,.4), rgba(31,77,59,.08)); }
.mock-chart { height: 135px; margin-top: 13px; display: flex; align-items: end; gap: 7px; padding: 15px 12px 0; border: 1px solid rgba(221,232,226,.12); }
.mock-chart b { flex: 1; background: #5A8B73; opacity: .7; }
.mock-chart b:nth-child(1) { height: 28%; } .mock-chart b:nth-child(2) { height: 53%; } .mock-chart b:nth-child(3) { height: 43%; } .mock-chart b:nth-child(4) { height: 78%; } .mock-chart b:nth-child(5) { height: 62%; } .mock-chart b:nth-child(6) { height: 91%; }
.mock-table { margin-top: 12px; display: grid; gap: 7px; }
.mock-table span { height: 5px; background: rgba(221,232,226,.12); }

.visual-docs { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #ECEAE3 0 49.5%, #0E1713 50% 100%); }
.flow-doc { z-index: 2; display: grid; place-items: center; width: 54px; height: 68px; color: #33473D; border: 1px solid #89988F; background: #F3F2EC; font-family: var(--font-mono); font-size: 7px; }
.flow-doc-accent { color: white; border-color: #1F4D3B; background: #1F4D3B; }
.visual-docs > span { z-index: 2; color: #799184; font-size: 13px; }
.document-lines { position: absolute; right: 7%; bottom: 8%; width: 27%; display: grid; gap: 8px; }
.document-lines i { height: 2px; background: rgba(221,232,226,.18); }

.visual-infra { background: radial-gradient(circle at 48% 46%, #1D3529 0, #101A15 46%, #09100D 100%); }
.infra-node { position: absolute; z-index: 2; display: grid; place-items: center; width: 66px; height: 42px; border: 1px solid rgba(221,232,226,.42); color: #DDE8E2; background: rgba(15,23,19,.9); font-family: var(--font-mono); font-size: 8px; box-shadow: 0 0 0 5px rgba(31,77,59,.15); }
.infra-cloud { left: 12%; top: 17%; } .infra-ci { left: 38%; top: 39%; } .infra-release { right: 10%; top: 16%; } .infra-server { right: 18%; bottom: 18%; } .infra-backup { left: 13%; bottom: 15%; }
.infra-line { position: absolute; height: 1px; transform-origin: left center; background: #416D58; opacity: .8; }
.infra-line-a { width: 34%; left: 22%; top: 27%; transform: rotate(26deg); }
.infra-line-b { width: 37%; left: 48%; top: 46%; transform: rotate(-33deg); }
.infra-line-c { width: 32%; left: 47%; top: 47%; transform: rotate(26deg); }
.infra-line-d { width: 40%; left: 24%; bottom: 25%; transform: rotate(-8deg); }

.visual-product { background: linear-gradient(145deg, #E9E8E2 0 52%, #B2BCAF 52% 100%); }
.product-desktop { position: absolute; left: 10%; top: 14%; width: 69%; height: 65%; overflow: hidden; border: 7px solid #202A25; border-bottom-width: 15px; border-radius: 6px; background: #F7F6F2; box-shadow: 0 22px 42px rgba(15,23,19,.22); }
.product-nav { height: 11%; background: #153B2E; }
.product-hero { height: 43%; display: grid; grid-template-columns: 1fr .8fr; gap: 8%; align-items: center; padding: 8%; }
.product-hero span { height: 12px; background: #1F4D3B; box-shadow: 0 22px 0 #D2D5CF, 0 44px 0 #D2D5CF; }
.product-hero i { aspect-ratio: 1.4; background: linear-gradient(145deg, #D9E4DE, #738E81); }
.product-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 4%; padding: 0 8%; }
.product-cards b { height: 52px; background: #E4E5E0; }
.product-phone { position: absolute; right: 9%; bottom: 11%; width: 26%; height: 61%; padding: 13px 7px 10px; border: 6px solid #111713; border-radius: 19px; background: #F8F7F3; box-shadow: 0 20px 42px rgba(15,23,19,.22); }
.product-phone div { height: 35%; background: #1F4D3B; }
.product-phone span { display: block; height: 6px; margin: 13px 5px 0; background: #D5D8D2; }

.work-statement { min-height: 125px; display: flex; align-items: center; gap: 20px; border-top: 1px solid rgba(243,244,239,.2); }
.statement-ring { width: 44px; height: 44px; border: 1px solid #6A8C7C; border-radius: 50%; box-shadow: inset 0 0 0 9px var(--dark), inset 0 0 0 10px #6A8C7C; }
.work-statement p { margin: 0; font-size: 18px; line-height: 1.35; }

.combined-section { padding-block: clamp(90px, 9vw, 138px); }
.combined-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 7vw, 110px); }
.approach-list { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.approach-list li { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.approach-list li > span { color: var(--green); font-family: var(--font-mono); font-size: 16px; }
.approach-list strong { font-size: 14px; }
.approach-list p { margin: 4px 0 0; color: var(--ink-muted); font-size: 12px; }
.human-ai-portraits { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.identity-panel { position: relative; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; overflow: hidden; color: white; background: linear-gradient(145deg, #70877B, #17251E 78%); }
.identity-ai { background: linear-gradient(145deg, #2E4639, #0E1713 78%); }
.identity-panel::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; right: 9%; top: 16%; border-radius: 50%; background: rgba(247,246,242,.12); box-shadow: 0 75px 0 40px rgba(247,246,242,.05); }
.identity-monogram { position: relative; z-index: 2; color: rgba(255,255,255,.2); font-family: var(--font-display); font-size: 92px; font-weight: 680; letter-spacing: -.08em; }
.identity-panel div { position: relative; z-index: 2; display: grid; gap: 2px; }
.identity-panel strong { font-family: var(--font-mono); font-size: 11px; }
.identity-panel small { color: rgba(255,255,255,.65); font-size: 10px; }
.identity-x { position: absolute; z-index: 4; left: 50%; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: var(--bg); transform: translate(-50%, -50%); font-size: 24px; }
.human-ai-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; margin-top: 28px; }
.human-ai-copy > p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.human-ai-copy ul { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.human-ai-copy li { position: relative; margin-bottom: 7px; padding-left: 18px; }
.human-ai-copy li::before { content: "•"; position: absolute; left: 0; color: var(--green); }
.human-ai-copy blockquote { grid-column: 2; margin: 0; padding: 14px 16px; border: 1px solid var(--ink-muted); font-family: var(--font-display); font-size: 17px; font-weight: 650; line-height: 1.15; }

.now-section { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.now-grid { display: grid; grid-template-columns: .58fr 2fr; gap: 44px; align-items: start; }
.now-heading h2 { font-size: clamp(32px, 3.5vw, 50px); }
.now-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.now-cards article { min-height: 150px; display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 23px; border: 1px solid var(--line); background: rgba(239,238,232,.48); }
.now-cards article > span { color: var(--green); font-size: 25px; }
.now-cards h3 { margin: 0; font-family: var(--font-display); font-size: 17px; }
.now-cards p { margin: 10px 0 0; color: var(--ink-muted); font-size: 12px; }

.professional-context { padding: 28px 0; border-bottom: 1px solid var(--line); }
.professional-inner { display: grid; grid-template-columns: .65fr 1.7fr .55fr; gap: 32px; align-items: center; }
.professional-title { display: flex; align-items: center; gap: 14px; }
.professional-title span { color: var(--green); font-size: 25px; }
.professional-title strong { font-family: var(--font-display); font-size: 15px; }
.professional-inner p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.professional-link {
  color: var(--ink-muted);
  text-align: right;
  text-decoration: none;
  font-size: 12px;
  transition: color .2s ease;
}
.professional-link:hover, .professional-link:focus-visible { color: var(--green); }

.contact-section { padding: clamp(80px, 8vw, 120px) 0; color: var(--light); background: var(--green-deep); }
.contact-grid { display: grid; grid-template-columns: .74fr 1.26fr; gap: clamp(50px, 7vw, 110px); }
.contact-intro p:last-child { max-width: 420px; color: rgba(243,244,239,.67); }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid rgba(243,244,239,.2); }
.contact-links > a { min-height: 160px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-content: center; padding: 24px; border-right: 1px solid rgba(243,244,239,.2); color: var(--light); text-decoration: none; }
.contact-links > a { transition: background .2s ease; }
.contact-links > a:hover { background: rgba(255,255,255,.05); }
.contact-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(243,244,239,.48); border-radius: 50%; font-size: 10px; }
.contact-links span > span, .contact-links a > span:nth-child(2) { display: grid; gap: 6px; min-width: 0; }
.contact-links small { color: rgba(243,244,239,.58); font-family: var(--font-mono); font-size: 10px; }
.contact-links strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
.contact-links b { font-weight: 400; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { min-height: 82px; display: grid; grid-template-columns: 1.2fr .8fr 1fr .8fr; gap: 28px; align-items: center; color: var(--ink-muted); font-size: 10px; }
.footer-inner > span:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }

@media (max-width: 1180px) {
  .container { width: min(calc(100% - 44px), var(--container)); }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: .75fr 1.25fr; }
  .principles-grid { grid-column: 1 / -1; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 300px; border-right: 0; border-bottom: 1px solid rgba(243,244,239,.14); }
  .combined-grid { grid-template-columns: 1fr 1.25fr; gap: 52px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .nav-toggle {
    position: relative;
    z-index: 102;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
  }
  .nav-toggle span { position: absolute; width: 22px; height: 1px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
  .nav-toggle span:first-child { top: 16px; }
  .nav-toggle span:last-child { top: 25px; }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 101;
    inset: var(--header-h) 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    min-height: calc(100dvh - var(--header-h));
    padding: 26px 18px 36px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .25s ease, visibility .25s ease;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav a::after { display: none; }

  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 64px 0 54px; }
  .hero h1 { max-width: 760px; }
  .portrait-shell { min-height: 580px; border-left: 0; border-top: 1px solid var(--line); }

  .system-strip-inner { grid-template-columns: auto 1fr auto 1fr auto; gap: 18px; padding: 22px 0; }
  .system-strip-inner p { grid-column: 1 / -1; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }

  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .section-visual { min-height: 360px; }
  .desk-card { min-height: 360px; }
  .principles-grid { grid-template-columns: repeat(3, 1fr); }

  .work-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr 1fr; min-height: 400px; }
  .case-visual { min-height: 400px; border-right: 1px solid rgba(243,244,239,.14); border-bottom: 0; }

  .combined-grid { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .professional-inner { grid-template-columns: 1fr; }
  .professional-link { text-align: left; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-links > a { min-height: 92px; border-bottom: 1px solid rgba(243,244,239,.2); }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 22px 0; }
  .footer-inner > span:last-child { text-align: left; }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-wordmark { font-size: 12px; }
  .hero-copy { padding-top: 48px; }
  .hero h1 { font-size: clamp(42px, 13vw, 66px); }
  .hero-lead { margin-top: 26px; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .hero-socials { margin-top: 26px; }
  .portrait-shell { min-height: 470px; }
  .portrait-shell::before { inset: 12% 8% 0 18%; }
  .portrait-shell::after { width: 38%; left: 45%; }

  .system-strip-inner { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .system-arrow { display: none; }
  .system-step { justify-content: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .system-strip-inner p { grid-column: auto; border-top: 0; padding-top: 6px; }

  .section { padding: 80px 0; }
  #about { padding-top: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .section-visual { min-height: 330px; }
  .desk-card { min-height: 330px; }
  .principles-grid { grid-template-columns: 1fr; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .principle-card { min-height: auto; border-bottom: 1px solid var(--line); }

  .work-heading { align-items: start; flex-direction: column; }
  .work-grid { padding-bottom: 42px; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 305px; border-right: 0; border-bottom: 1px solid rgba(243,244,239,.14); }
  .case-copy { min-height: 330px; }
  .work-statement { min-height: 138px; }

  .human-ai-portraits { grid-template-columns: 1fr; }
  .identity-x { left: 50%; top: 50%; }
  .identity-panel { min-height: 230px; }
  .human-ai-copy { grid-template-columns: 1fr; }
  .human-ai-copy blockquote { grid-column: 1; }

  .now-cards { grid-template-columns: 1fr; }
  .professional-context { padding: 36px 0; }
  .contact-section { padding: 78px 0; }
  .contact-links { border-top: 1px solid rgba(243,244,239,.2); }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
