:root {
  --bg: #133621;
  --surface: #1a4429;
  --deep: #0c2616;
  --olive: #2b5a33;
  --ink: #f4d96c;
  --soft: #d9c779;
  --accent: #f4d96c;
  --accent-ink: #133621;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --step-display: clamp(3.5rem, 1rem + 8.4vw, 9.5rem);

  --display: "Young Serif", Georgia, serif;
  --text: "Source Serif 4", Georgia, serif;
  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(120px, 12vw, 200px);
  --axis: 42%;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.98; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { padding-inline: var(--margin); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--text); font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.button:hover { background: #fbe691; }
.button:active { transform: translateY(1px) scale(.98); }
.button-dark { background: var(--bg); color: var(--ink); }
.button-dark:hover { background: var(--deep); }

/* ---------- HERO BOARD ---------- */
.board { padding: 8px; display: grid; gap: 8px; height: 100svh; min-height: 640px; grid-template-rows: 60px minmax(0, 1fr); }
.board-top { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; }
.tile { margin: 0; overflow: hidden; }
.tile-mark { background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-size: 18px; text-decoration: none; }
.tile-nav { background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-inline: 20px; }
.wordmark { font-family: var(--display); font-size: 1.125rem; }
.tile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.tile-nav a { text-decoration: none; font-size: 1.0625rem; white-space: nowrap; }
.tile-nav a:hover { text-decoration: underline; }
.tile-action { background: var(--ink); color: var(--bg); display: grid; place-items: center; padding-inline: 28px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.tile-action:hover { background: #fbe691; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; min-height: 0; }
.tile-name { background: var(--ink); color: var(--bg); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
.tile-name h1 { font-size: clamp(3.5rem, 0.5rem + 8vw, 9.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.tile-name .lead { font-size: var(--step-lead); line-height: 1.35; margin-top: 36px; max-width: 34ch; }
.tile-name .button { margin-top: 28px; align-self: flex-start; }
.tile-photo { position: relative; background: var(--deep); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.tile-photo-b img { object-position: 50% 72%; }
.tile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile-dark, .tile-accent { padding: 24px; font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.6rem); line-height: 1.25; font-family: var(--display); letter-spacing: -0.01em; }
.tile-dark { background: var(--deep); }
.tile-accent { background: var(--olive); }

/* ---------- INTRO ---------- */
.intro { padding-block: var(--gap) 96px; }
.intro h2 { font-size: var(--step-head); margin-left: var(--axis); }
.intro-lead { font-size: clamp(1.375rem, 1rem + 0.9vw, 1.875rem); line-height: 1.3; margin: 40px 0 0 var(--axis); max-width: 44ch; }
.intro-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 96px; }
.intro-cols p { font-size: 1.0625rem; line-height: 1.5; color: var(--soft); }
.intro-cols strong { color: var(--ink); font-weight: 600; }

/* ---------- SECTORS MOSAIC ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(340px, 38vw); }
.cell { position: relative; margin: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cell h2 { font-size: var(--step-head); }
.cell h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
.cell p { margin-top: 20px; max-width: 32ch; font-size: var(--step-body); }
.cell-title { background: var(--ink); color: var(--bg); justify-content: space-between; }
.cell-title p { font-size: var(--step-lead); line-height: 1.3; }
.cell-gold { background: var(--surface); }
.cell-deep { background: var(--deep); }
.cell-deep p { line-height: 1.5; }
.cell-photo { padding: 0; }
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease); }
.cell-photo:hover img { transform: scale(1.04); }
.cell-photo figcaption { position: relative; align-self: flex-start; background: var(--bg); padding: 12px 18px; font-size: 1.0625rem; }

/* ---------- PLAN (live) ---------- */
.plan { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--gap); }
.plan-field { position: sticky; top: 0; height: 100svh; background: var(--ink); display: grid; place-items: center; padding: 32px; }
.plan-doc { width: min(440px, 100%); background: #ffffff; color: #133621; padding: 32px 32px 28px; font-size: 15px; line-height: 1.45; max-height: calc(100svh - 64px); overflow: auto; }
.doc-head { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px solid #133621; }
.doc-title { font-weight: 600; font-size: 14px; }
.doc-company { font-family: var(--display); font-size: 30px; line-height: 1.05; margin-top: 6px; letter-spacing: -0.02em; }
.doc-meta { margin-top: 8px; font-size: 14px; }
.doc-body .doc-h { font-family: var(--text); font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.doc-body .doc-h:first-child { margin-top: 0; }
.doc-body ul { margin: 0; padding-left: 18px; }
.doc-body li { margin: 2px 0; }
.doc-body li.new { animation: flash 1.2s var(--ease); }
@keyframes flash { from { background: #f4d96c; } to { background: transparent; } }
.doc-foot { margin-top: 18px; font-size: 14px; font-weight: 600; }
.plan-col { padding: 72px var(--margin) 120px clamp(24px, 6vw, 96px); }
.plan-col h2 { font-size: var(--step-head); }
.plan-intro { font-size: var(--step-lead); line-height: 1.35; margin-top: 32px; max-width: 30ch; }
.block { min-height: 52vh; padding-top: 18vh; max-width: 44ch; }
.block-last { min-height: 0; }
.block-say { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--surface); font-size: 1rem; cursor: pointer; transition: background-color .2s, color .2s, transform .15s; }
.seg label:hover span { background: var(--olive); }
.seg input:checked + span { background: var(--ink); color: var(--bg); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.seg input:active + span { transform: scale(.97); }
.field { display: grid; gap: 8px; margin-top: 24px; font-size: 1rem; }
.field select, .field input { font: inherit; font-size: 1.0625rem; min-height: 52px; padding: 0 16px; background: var(--surface); color: var(--ink); border: 0; border-radius: 0; width: 100%; max-width: 380px; }
.field select:hover, .field input:hover { background: var(--olive); }
.field input::placeholder { color: var(--soft); opacity: .8; }
.block-last .button { margin-top: 24px; }

/* ---------- STAGES BAR ---------- */
.stages { padding-top: var(--gap); }
.stages h2 { font-size: clamp(3rem, 1rem + 5.4vw, 6.5rem); max-width: 14ch; }
.bar { list-style: none; margin: 64px 0 0; padding: 0; display: flex; gap: 6px; }
.bar li { flex: var(--grow) 1 0; min-width: 12%; display: flex; flex-direction: column; }
.bar .dur { display: block; height: 22vh; min-height: 150px; padding: 20px; font-family: var(--display); font-size: clamp(1.25rem, 0.9rem + 1vw, 1.875rem); letter-spacing: -0.01em; }
.bar .what { display: block; margin-top: 16px; max-width: 24ch; font-size: 1.0625rem; line-height: 1.45; }
.seg-a .dur { background: var(--ink); color: var(--bg); }
.seg-b .dur { background: var(--olive); }
.seg-c .dur { background: var(--surface); }
.seg-d .dur { background: var(--deep); }

/* ---------- DECK ---------- */
.deck { height: 200svh; margin-top: var(--gap); position: relative; }
.deck-stage { position: sticky; top: 0; height: 100svh; padding: 120px var(--margin) 0; overflow: hidden; display: flex; flex-direction: column; }
.deck h2 { font-size: var(--step-head); }
.deck-band { margin-top: 48px; height: 380px; overflow: hidden; }
.deck-row { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.card { flex: 0 0 auto; width: 620px; height: 100%; padding: 32px; display: flex; flex-direction: column; overflow: hidden; cursor: default; transition: background-color .2s; }
.card h3 { font-size: 30px; line-height: 1.1; min-width: 520px; }
.card p { margin-top: 18px; font-size: 1.0625rem; max-width: 40ch; min-width: 420px; }
.card .card-foot { margin-top: auto; display: flex; justify-content: space-between; }
.card.t1 { background: var(--surface); }
.card.t2 { background: var(--olive); }
.card.t3 { background: var(--deep); }
.card.spine { cursor: pointer; position: relative; }
.card.spine > * { visibility: hidden; }
.card.spine::after { content: attr(data-t); position: absolute; left: 50%; top: 32px; transform: translateX(-50%); writing-mode: vertical-rl; font-family: var(--display); font-size: 24px; white-space: nowrap; }
.card.spine:hover { filter: brightness(1.15); }
.deck-note { margin-top: 48px; font-size: 1.0625rem; }

/* ---------- ABOUT ---------- */
.about { padding-top: var(--gap); }
.about h2 { font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); }
.about-lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 42ch; }
.about-tiles { display: grid; grid-template-columns: 8fr 4fr; gap: 16px; margin-top: 72px; align-items: start; }
.about-photo { position: relative; aspect-ratio: 16 / 10; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about-note { position: absolute; top: 0; right: 0; width: 340px; background: var(--ink); color: var(--bg); padding: 22px; font-size: 1.0625rem; line-height: 1.45; }
.about-map { position: relative; background: var(--ink); aspect-ratio: 1 / 1.03; padding: 28px; }
.about-map svg { width: 100%; height: 100%; display: block; }
.about-map path { fill: var(--surface); }
.about-map circle { fill: var(--ink); stroke: var(--bg); stroke-width: 6; }
.map-label { position: absolute; left: calc(28px + (100% - 56px) * var(--x) / 100); top: calc(28px + (100% - 56px) * var(--y) / 100); transform: translate(calc(-100% - 18px), -50%); padding: 4px 10px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; padding-right: 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 24px 0 0; }
.facts dt { font-size: 14px; color: var(--soft); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.375rem; line-height: 1.1; }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-top: 160px; padding-bottom: 120px; align-items: start; }
.contact-say { grid-column: 1 / 6; }
.contact-say h2 { font-size: var(--step-head); }
.contact-say p { margin-top: 28px; font-size: clamp(1.375rem, 1rem + 1vw, 2rem); line-height: 1.25; max-width: 24ch; }
.contact-pic { grid-column: 6 / 9; aspect-ratio: 1; }
.contact-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-links { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 14px; font-size: 1.125rem; }
.contact-q { font-weight: 600; margin-bottom: 6px; }
.contact-links a { overflow-wrap: anywhere; }
.contact-where { margin-top: 10px; font-size: var(--step-small); color: var(--soft); max-width: 34ch; }

/* ---------- FOOTER ---------- */
.foot { background: var(--ink); color: var(--bg); padding: 72px var(--margin) 32px; overflow: hidden; }
.foot-name { font-family: var(--display); font-size: clamp(2.5rem, 0.5rem + 6.3vw, 7.75rem); line-height: 0.95; letter-spacing: -0.035em; }
.foot-row { display: grid; grid-template-columns: 6fr 1fr 2fr 2fr; gap: 24px; margin-top: 72px; }
.foot-row ul { list-style: none; margin: 0; padding: 0; }
.foot-places { grid-column: 1; font-family: var(--display); font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.75rem); line-height: 1.3; }
.foot-places a { text-decoration: none; overflow-wrap: anywhere; }
.foot-places a:hover { text-decoration: underline; }
.foot-links { font-size: 1.0625rem; line-height: 1.9; }
.foot-links:nth-of-type(2) { grid-column: 3; }
.foot-links:nth-of-type(3) { grid-column: 4; }
.credits { margin-top: 72px; font-size: var(--step-small); line-height: 1.5; max-width: 75ch; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: var(--step-small); }

/* ---------- MOTION ---------- */
.rise { opacity: 0.35; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
.shutter img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease); }
.shutter.open img { clip-path: inset(0 0 0 0); transform: scale(1); }
.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-2%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .shutter img { clip-path: none; transform: none; transition: none; }
  .drift { animation: none; }
  .doc-body li.new { animation: none; }
}
.no-js .rise { opacity: 1; transform: none; }
.no-js .shutter img { clip-path: none; transform: none; }

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
  .tile-nav { grid-template-columns: 1fr; }
  .wordmark { display: none; }
  .intro-cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .sectors { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(320px, 52vw); }
  .about-tiles { grid-template-columns: 1fr 1fr; }
  .about-photo { grid-column: 1 / -1; }
  .contact-say { grid-column: 1 / -1; }
  .contact-pic { grid-column: 1 / 5; }
  .contact-links { grid-column: 5 / 13; }
  .foot-row { grid-template-columns: 1fr 1fr; }
  .foot-places { grid-column: 1 / -1; }
  .foot-links:nth-of-type(2) { grid-column: 1; }
  .foot-links:nth-of-type(3) { grid-column: 2; }
}

/* ---------- PHONE ---------- */
@media (max-width: 760px) {
  :root { --axis: 0%; }
  .board { gap: 6px; padding: 6px; grid-template-rows: 56px auto; min-height: 0; }
  .board-top { grid-template-columns: 56px 1fr auto; gap: 6px; }
  .tile-nav { padding-inline: 14px; }
  .tile-nav ul { gap: 16px; overflow-x: auto; }
  .tile-nav li:nth-child(n+3) { display: none; }
  .tile-action { padding-inline: 16px; font-size: 1rem; }
  .board-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 6px; }
  .board { height: auto; min-height: 0; }
  .tile-name { padding: 22px; min-height: 58svh; }
  .tile-name h1 { font-size: 17vw; }
  .tile-name .lead { font-size: 1.1875rem; margin-top: 28px; }
  .tile-photo { aspect-ratio: 4 / 3; }
  .tile-photo-b { display: none; }
  .tile-pair { gap: 6px; }
  .tile-dark, .tile-accent { aspect-ratio: 1; padding: 16px; font-size: 1.0625rem; }
  .intro h2 { font-size: 10vw; }
  .intro-lead { font-size: 1.25rem; margin-top: 24px; }
  .intro-cols { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .sectors { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell { min-height: 300px; }
  .cell-title { min-height: 260px; }
  .plan { display: flex; flex-direction: column; }
  .plan-col { display: contents; }
  .plan-col > h2 { order: 1; padding: 0 var(--margin); }
  .plan-intro { order: 2; padding: 0 var(--margin); }
  .block { order: 3; padding-inline: var(--margin); }
  .plan-field { order: 4; position: static; height: auto; padding: 16px; margin-top: 56px; }
  .block-last { order: 5; padding-bottom: 96px; }
  .plan-doc { max-height: none; padding: 20px; font-size: 14px; }
  .doc-company { font-size: 24px; }
  .plan-col h2 { font-size: 10vw; }
  .plan-intro { font-size: 1.125rem; }
  .block { min-height: 0; padding-top: 64px; }
  .block-say { font-size: 1.375rem; }
  .seg { display: grid; grid-template-columns: 1fr; }
  .seg span { width: 100%; min-height: 48px; }
  .stages h2 { font-size: 11vw; }
  .bar { flex-direction: column; height: auto; }
  .bar li { min-width: 0; }
  .bar .dur { height: auto; min-height: max(72px, calc(var(--grow) * 0.55svh)); font-size: 1.375rem; padding: 16px; }
  .bar .what { margin: 10px 0 18px; font-size: 1rem; max-width: none; }
  .deck { height: auto; }
  .deck-stage { position: static; height: auto; padding-top: 0; }
  .deck h2 { font-size: 10vw; }
  .deck-band { height: auto; }
  .deck-row { flex-direction: column; gap: 12px; }
  .card { width: 100% !important; height: auto; min-height: 240px; padding: 24px; }
  .card h3, .card p { min-width: 0; }
  .card h3 { font-size: 24px; }
  .card .card-foot { margin-top: 28px; }
  .about h2 { font-size: 10vw; }
  .about-lead { font-size: 1.125rem; }
  .about-tiles { grid-template-columns: 1fr; margin-top: 40px; }
  .about-photo { aspect-ratio: 4 / 3; display: flex; flex-direction: column; }
  .about-photo { aspect-ratio: auto; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .about-note { position: static; width: auto; }
  .about-map { aspect-ratio: 3 / 2; }
  .contact { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding-top: 120px; padding-bottom: 96px; }
  .contact-say { grid-column: 1 / -1; }
  .contact-say h2 { font-size: 10vw; }
  .contact-say p { font-size: 1.5rem; }
  .contact-pic { grid-column: 1; }
  .contact-links { grid-column: 2; font-size: 1rem; }
  .foot-name { font-size: 9.6vw; }
  .foot-places { font-size: 1.375rem; }
}
