/*
 * MRK Constructions — site styles
 * Palette from the brand: deep navy towers, a gold rising sun, warm plaster neutrals.
 */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --navy-950: #061229;
  --navy-900: #0a1d40;
  --navy-800: #102a5a;
  --navy-600: #1d4a9a;
  --gold-500: #e2a31b;
  --gold-400: #ecb84a;
  --gold-200: #f6dfa6;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --stone: #d8cfbf;
  --ink: #0d1626;
  --ink-2: #3a4456;
  --muted: #6b7282;
  --line: rgba(13, 22, 38, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --error: #b3412c;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 4px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.no-scroll, body.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.95rem + 0.15vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold-400); color: var(--navy-950); }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ───────────────────────── Type ───────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; color: var(--navy-600); }
.display--xl { font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem); line-height: 0.92; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--light { color: rgba(255, 255, 255, 0.78); }
.eyebrow--gold { color: var(--gold-400); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(226, 163, 27, 0.25); }
.hero__eyebrow::before { display: none; }

.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.55; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }

/* ───────────────────────── Buttons & links ───────────────────────── */
.btn {
  --bg: var(--navy-900); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6em;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--navy-950));
  transform: translateY(101%); border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn .icon { transition: transform 0.4s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--gold { --bg: var(--gold-500); --fg: var(--navy-950); --fill: var(--gold-400); }
.btn--light { --bg: #fff; --fg: var(--navy-950); --fill: var(--gold-200); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --fill: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn--small { min-height: 42px; padding: 0 1.2em; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; font-size: 0.95rem;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), gap 0.4s var(--ease);
}
.link-arrow:hover { gap: 0.9em; background-size: 30% 1px; }

.round-btn {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.round-btn:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.round-btn--light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* ───────────────────────── Brand mark ───────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); }
.mark { width: 40px; height: 40px; flex: none; }
.mark__sun { fill: var(--gold-500); stroke: var(--gold-500); }
.mark__towers { fill: currentColor; }
.mark__lines { stroke: var(--paper); opacity: 0.55; fill: none; }
.brand__word { display: grid; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.14em; }
.brand__sub { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; margin-top: 4px; opacity: 0.75; }
.brand--large .mark { width: 56px; height: 56px; }
.brand--large .brand__name { font-size: 1.8rem; }
.brand:hover .mark__sun { animation: sunrise 1.4s var(--ease); }
@keyframes sunrise { 0% { transform: translateY(6px); opacity: 0.2; } 100% { transform: none; opacity: 1; } }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--navy-900);
  transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s, color 0.4s;
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header--overlay:not(.is-scrolled) { color: #fff; }
.site-header--overlay:not(.is-scrolled) .brand { color: #fff; }
.site-header--overlay:not(.is-scrolled) .mark__lines { stroke: var(--navy-900); }
.site-header .brand { color: inherit; }
.site-header.is-open { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
.site-header.is-open .mark__lines { stroke: var(--navy-950); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.site-nav__link {
  font-size: 0.92rem; font-weight: 600; position: relative; padding: 6px 0;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-nav__cta { margin-left: 8px; }

.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: none; place-items: center; position: relative; z-index: 2; }
.menu-toggle__lines, .menu-toggle__lines::before {
  display: block; width: 26px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.45s var(--ease);
}
.menu-toggle__lines { background: transparent; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 1.5px; background: currentColor;
  transition: transform 0.45s var(--ease);
}
.menu-toggle__lines::before { transform: translateY(-4px); }
.menu-toggle__lines::after { transform: translateY(4px); }
.is-open .menu-toggle__lines::before { transform: rotate(45deg); }
.is-open .menu-toggle__lines::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1;
  background: var(--navy-950); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path 0.7s var(--ease-in-out);
}
.site-header.is-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); }
.site-header__bar { position: relative; z-index: 2; }
.mobile-menu__nav { display: grid; gap: 4px; }
.mobile-menu__link {
  font-family: var(--serif); font-size: clamp(2.8rem, 12vw, 4.4rem); line-height: 1.1;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(0.15s + var(--i) * 0.06s);
}
.site-header.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu__num { font-family: var(--sans); font-size: 0.75rem; color: var(--gold-400); letter-spacing: 0.1em; }
.mobile-menu__foot { display: grid; gap: 6px; margin-top: 48px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ───────────────────────── Reveal ───────────────────────── */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.09s);
}
.js-reveal [data-reveal="zoom"] { transform: scale(0.96); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding-block: clamp(80px, 11vw, 168px); }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--paper { background: var(--paper-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.page-head { padding-top: calc(var(--header-h) + clamp(48px, 9vw, 128px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-head__index { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; }
.page-head__index a { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); display: inline-flex; gap: 8px; transition: color 0.3s; }
.page-head__index a span { color: var(--gold-500); font-size: 0.75rem; }
.page-head__index a:hover { color: var(--navy-600); }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  color: #fff; overflow: hidden; background: var(--navy-950);
  display: flex; align-items: flex-end;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); animation: hero-settle 2.6s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 41, 0.55) 0%, rgba(6, 18, 41, 0) 28%),
    linear-gradient(0deg, rgba(6, 18, 41, 0.88) 0%, rgba(6, 18, 41, 0.35) 45%, rgba(6, 18, 41, 0) 70%);
}
.hero__content { position: relative; padding-bottom: clamp(32px, 6vh, 72px); }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.8rem, 1rem + 10vw, 10.5rem); line-height: 0.88; letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero__title em { color: var(--gold-400); }
@keyframes rise { to { transform: none; } }
.hero__eyebrow, .hero__foot { opacity: 0; animation: fade-up 1.2s var(--ease) 0.5s forwards; }
.hero__foot { animation-delay: 0.7s; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.scroll-cue { width: 30px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 20px; position: relative; flex: none; }
.scroll-cue span { position: absolute; left: 50%; top: 10px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-400); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }

/* ───────────────────────── Intro ───────────────────────── */
.intro__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.statement {
  font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.statement .word { color: rgba(13, 22, 38, 0.16); transition: color 0.5s var(--ease); }
.statement .word.is-lit { color: var(--ink); }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.sectors li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }

.intro__porthole { position: relative; justify-self: center; width: min(100%, 460px); }
.porthole-frame {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 40px 80px -40px rgba(10, 29, 64, 0.5);
  outline: 10px solid var(--paper); outline-offset: -10px;
}
.porthole-frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.intro__ring {
  position: absolute; inset: -22px; border-radius: 50%; border: 1px solid var(--gold-500); opacity: 0.6;
  pointer-events: none;
}
.intro__porthole::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(226, 163, 27, 0.9) 96%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: orbit 9s linear infinite;
}
@keyframes orbit { to { transform: rotate(1turn); } }

/* ───────────────────────── Service panels (home) ───────────────────────── */
.panels { display: flex; gap: 10px; height: clamp(440px, 70vh, 680px); }
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--radius-lg);
  color: #fff; background: var(--navy-900);
  transition: flex 0.9s var(--ease);
}
.panel:hover, .panel:focus-visible { flex: 3.2; }
.panels:not(:hover) .panel:first-child { flex: 3.2; }
.panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.panel:hover .panel__img { transform: scale(1); }
.panel__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 18, 41, 0.9), rgba(6, 18, 41, 0.15) 60%); transition: background 0.6s; }
.panel__num { position: absolute; top: 22px; left: 24px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--gold-400); }
.panel__arrow {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(0.6); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.panel:hover .panel__arrow { opacity: 1; transform: none; }
.panel__body { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 6px; }
.panel__title {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem); line-height: 1; white-space: nowrap;
}
.panel__short { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); max-width: 32ch; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.panel:hover .panel__short, .panels:not(:hover) .panel:first-child .panel__short { opacity: 1; transform: none; transition-delay: 0.2s; }
@media (min-width: 901px) {
  .panels:hover .panel:not(:hover) .panel__body, .panels:not(:hover) .panel:not(:first-child) .panel__body {
    left: 50%; bottom: 28px; transform: translateX(-50%); width: max-content;
  }
  .panels:hover .panel:not(:hover) .panel__title, .panels:not(:hover) .panel:not(:first-child) .panel__title {
    writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(1.4rem, 1rem + 0.9vw, 2rem);
  }
  .panels:hover .panel:not(:hover) .panel__short, .panels:not(:hover) .panel:not(:first-child) .panel__short { display: none; }
}

/* ───────────────────────── Porthole reveal ───────────────────────── */
.porthole { --p: 0; --r0: 17vmin; position: relative; height: 260vh; background: var(--paper); }
.porthole__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.porthole__media {
  position: absolute; inset: 0;
  clip-path: circle(calc(var(--r0) + var(--p) * var(--p) * 80vmax) at 50% 50%);
  will-change: clip-path;
}
.porthole__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.35 - var(--p) * 0.35)); will-change: transform; }
.porthole__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 18, 41, 0.85), rgba(6, 18, 41, 0) 55%);
  opacity: clamp(0, calc((var(--p) - 0.5) * 2.5), 1);
}
.porthole__lead {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(calc(-50% - var(--r0) - 0.9em));
  text-align: center; font-size: clamp(2.2rem, 1.4rem + 3vw, 4.4rem);
  opacity: calc(1 - var(--p) * 4);
}
.porthole__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 8vh, 80px); color: #fff;
  opacity: clamp(0, calc((var(--p) - 0.62) * 3.4), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - 0.62) * 3.4), 1)) * 30px));
}
.porthole__title { font-size: clamp(2.8rem, 1.4rem + 5vw, 6.4rem); margin-bottom: 12px; }
.porthole__meta { color: rgba(255, 255, 255, 0.75); margin-bottom: 28px; font-size: 0.95rem; letter-spacing: 0.02em; }

/* ───────────────────────── Reels ───────────────────────── */
.scroller-buttons { display: flex; gap: 10px; }
.reels {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; padding-bottom: 8px;
}
.reels::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 clamp(220px, 24vw, 320px); scroll-snap-align: start; }
.reel video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-lg);
  background: var(--stone); transition: transform 0.8s var(--ease), border-radius 0.8s var(--ease);
}
.reel:hover video { transform: scale(0.98); border-radius: 40px; }
.reel figcaption { margin-top: 14px; font-size: 0.9rem; font-weight: 600; display: flex; gap: 10px; }
.reel figcaption span { color: var(--gold-500); font-size: 0.75rem; padding-top: 2px; }
.reels--few { justify-content: flex-start; }

/* ───────────────────────── Work list ───────────────────────── */
.work-list { position: relative; border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 64px 1fr auto 52px; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: color 0.4s, padding 0.6s var(--ease);
}
.work-row__num { font-size: 0.8rem; font-weight: 700; color: var(--gold-500); letter-spacing: 0.1em; }
.work-row__thumb { display: none; }
.work-row__title { font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.6rem); line-height: 1.02; transition: transform 0.6s var(--ease); }
.work-row__meta { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.work-row__arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background 0.4s, color 0.4s, transform 0.6s var(--ease), border-color 0.4s;
}
.work-row:hover .work-row__title { transform: translateX(14px); color: var(--navy-600); }
.work-row:hover .work-row__arrow { background: var(--navy-900); color: #fff; border-color: var(--navy-900); transform: rotate(45deg); }
.work-preview {
  position: absolute; left: 0; top: 0; z-index: 3; width: clamp(240px, 22vw, 340px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden; border-radius: var(--radius-lg);
  opacity: 0; scale: 0.7; transition: opacity 0.4s var(--ease), scale 0.6s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(6, 18, 41, 0.55);
}
.work-preview.is-visible { opacity: 1; scale: 1; }
.work-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.work-preview img.is-current { opacity: 1; }

/* ───────────────────────── Why ───────────────────────── */
.why { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.why__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.why__photo { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 380px; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.why__item { padding: clamp(28px, 3.4vw, 48px) clamp(0px, 2vw, 32px) clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.why__item:nth-child(odd) { border-right: 1px solid var(--line); }
.why__item:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); }
.why__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper-2); color: var(--navy-600); margin-bottom: 22px;
  transition: background 0.4s, color 0.4s, transform 0.6s var(--ease);
}
.why__item:hover .why__icon { background: var(--navy-900); color: var(--gold-400); transform: rotate(-8deg) scale(1.05); }
.why__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.1; margin-bottom: 8px; }
.why__item p { color: var(--muted); max-width: 30ch; }
.why--flat .why__aside { position: static; }

/* ───────────────────────── Marquee ───────────────────────── */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.marquee__item { position: relative; width: clamp(260px, 30vw, 420px); aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; flex: none; }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.marquee__item:hover img { transform: scale(1.05); }
.marquee__item span {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(247, 244, 238, 0.92); font-size: 0.8rem; font-weight: 600; color: var(--navy-950);
}

/* ───────────────────────── Principles (vision / HSE) ───────────────────────── */
.principles { background: var(--navy-950); color: #fff; padding-block: clamp(88px, 11vw, 168px); position: relative; overflow: hidden; }
.principles::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.principles .container { position: relative; }
.principles__vm { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.principles__quote { font-family: var(--serif); font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.9rem); line-height: 1.12; }
.principles__sun svg { width: clamp(90px, 12vw, 180px); fill: none; stroke: var(--gold-500); stroke-width: 1; }
.principles__sun path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 3s var(--ease) forwards; }
.principles__sun path:nth-child(2) { animation-delay: 0.3s; }
.principles__sun path:nth-child(3) { animation-delay: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hse { margin-top: clamp(80px, 10vw, 150px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); }
.hse__head .display { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem); }
.hse__head em { color: var(--gold-400); }
.hse__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.hse__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--gold-400); margin-bottom: 22px; }
.hse__list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 8px; }
.hse__list p { color: rgba(255, 255, 255, 0.66); }

/* ───────────────────────── CTA ───────────────────────── */
.cta { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-950); }
.cta__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, rgba(6, 18, 41, 0.6), rgba(6, 18, 41, 0.88)); }
.cta__inner { position: relative; padding-block: 96px; }
.cta__title { font-size: clamp(3.2rem, 1.6rem + 6vw, 8rem); margin-bottom: 40px; }
.cta__title em { color: var(--gold-400); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.72); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; border-top: 1px solid var(--line-light); }
.site-footer .brand { color: #fff; }
.site-footer .mark__lines { stroke: var(--navy-950); }
.site-footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.site-footer__tagline { margin-top: 20px; font-family: var(--serif); font-size: 1.6rem; color: #fff; font-style: italic; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer .eyebrow { color: var(--gold-400); margin-bottom: 16px; }
.site-footer__address { display: grid; line-height: 1.7; }
.site-footer__list { display: grid; gap: 6px; }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: #fff; }
.site-footer__giant {
  font-weight: 800; letter-spacing: 0.06em; line-height: 0.8; text-align: center;
  font-size: clamp(7rem, 30vw, 28rem); margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 24px 0 32px; border-top: 1px solid var(--line-light); font-size: 0.85rem; }
.site-footer__credit { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-light); border-radius: 999px; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.site-footer__credit strong { color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.site-footer__credit .icon { opacity: 0.6; transition: transform 0.4s var(--ease), opacity 0.3s; }
.site-footer__credit:hover { border-color: var(--gold-500); background: rgba(226, 163, 27, 0.08); }
.site-footer__credit:hover .icon { opacity: 1; transform: translate(2px, -2px); color: var(--gold-400); }

/* ───────────────────────── Projects index ───────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 20px;
  font-weight: 600; font-size: 0.9rem; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--navy-900); }
.chip.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.project-card { display: grid; gap: 18px; }
.project-card[hidden] { display: none; }
.project-card--wide { grid-column: span 2; grid-row: span 2; }
.project-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--stone); }
.project-card--wide .project-card__media { aspect-ratio: auto; height: 100%; min-height: 420px; }
.project-card__media img, .project-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s; }
.project-card__video { opacity: 0; }
.project-card:hover .project-card__video.is-playing { opacity: 1; }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { display: grid; gap: 4px; }
.project-card--wide { display: flex; flex-direction: column; }
.project-card--wide .project-card__media { flex: 1; }
.project-card__meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.project-card__title { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.6rem); line-height: 1.05; }
.project-card__count { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--navy-600); }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mosaic__item { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; }
.mosaic__item:nth-child(even) { transform: translateY(40px); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; }

/* ───────────────────────── Project detail ───────────────────────── */
.project-hero { position: relative; height: 92svh; min-height: 520px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-950); }
.project-hero__media { position: absolute; inset: 0; animation: hero-settle 2.4s var(--ease) both; transform: scale(1.08); }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 18, 41, 0.86), rgba(6, 18, 41, 0) 60%), linear-gradient(180deg, rgba(6, 18, 41, 0.5), transparent 25%); }
.project-hero__content { position: relative; padding-bottom: clamp(40px, 7vh, 88px); }
.project-hero__title { max-width: 16ch; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; margin-bottom: 28px; opacity: 0.85; transition: opacity 0.3s, gap 0.3s; }
.back-link:hover { opacity: 1; gap: 10px; }

.project-intro__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.project-intro .lede { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.7rem); line-height: 1.15; color: var(--ink); }
.facts { display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { font-weight: 600; }
.facts__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.facts__tags span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; }

.chapter + .chapter { margin-top: clamp(64px, 8vw, 120px); }
.chapter__head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.chapter__num { font-size: 0.8rem; font-weight: 700; color: var(--gold-500); letter-spacing: 0.1em; }
.chapter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); line-height: 1; flex: 1; }
.chapter__count { color: var(--muted); font-size: 0.9rem; }

.gallery { columns: 3 320px; column-gap: 14px; }
.gallery__item { display: block; position: relative; margin-bottom: 14px; break-inside: avoid; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease), filter 0.6s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__zoom {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(247, 244, 238, 0.9); color: var(--navy-950);
  opacity: 0; transform: scale(0.6); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }
.gallery__caption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(247, 244, 238, 0.92); font-size: 0.8rem; font-weight: 600; color: var(--navy-950);
}

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 18, 41, 0.96); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in 0.4s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox__figure { display: grid; gap: 14px; justify-items: center; pointer-events: none; }
.lightbox__figure img { max-width: min(92vw, 1600px); max-height: 82dvh; width: auto; object-fit: contain; border-radius: 6px; opacity: 0; transform: scale(0.98); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.lightbox__figure img.is-loaded { opacity: 1; transform: none; }
.lightbox figcaption { display: flex; gap: 20px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.lightbox__count { color: var(--gold-400); font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.04); color: #fff; display: grid; place-items: center; transition: background 0.3s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }

.next-project { position: relative; display: flex; align-items: center; min-height: 70vh; overflow: hidden; color: #fff; background: var(--navy-950); }
.next-project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.next-project:hover .next-project__img { transform: scale(1); }
.next-project__shade { position: absolute; inset: 0; background: rgba(6, 18, 41, 0.62); transition: background 0.6s; }
.next-project:hover .next-project__shade { background: rgba(6, 18, 41, 0.5); }
.next-project__body { position: relative; display: grid; justify-items: start; gap: 8px; }
.next-project__title { font-size: clamp(2.6rem, 1.4rem + 5vw, 6.4rem); margin-bottom: 24px; max-width: 16ch; }

/* ───────────────────────── About ───────────────────────── */
.banner { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.story__col p:not(.eyebrow):not(.lede) { color: var(--ink-2); font-size: 1.05rem; }
.story .lede { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.15; color: var(--ink); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.person { display: flex; gap: 28px; padding: clamp(28px, 3vw, 44px); background: var(--paper); border-radius: var(--radius-lg); align-items: flex-start; }
.person__monogram {
  flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-400); font-family: var(--serif); font-size: 2.2rem;
  box-shadow: inset 0 0 0 6px var(--navy-900), inset 0 0 0 7px rgba(226, 163, 27, 0.5);
}
.person__name { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.person__role { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); margin: 6px 0 14px; }
.person p:last-child { color: var(--ink-2); }
.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: center; }
.trio__item { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.trio__item--tall { aspect-ratio: 3 / 4.6; }
.trio__item img, .trio__item video { width: 100%; height: 100%; object-fit: cover; }

/* ───────────────────────── Services page ───────────────────────── */
.services { display: grid; gap: clamp(80px, 10vw, 160px); }
.service { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 104px); align-items: center; }
.service--flip .service__media { order: 2; }
.service__media { position: relative; }
.service__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.service__clip {
  position: absolute; right: -6%; bottom: -8%; width: 34%; aspect-ratio: 9 / 16; border-radius: 999px; overflow: hidden;
  border: 6px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(6, 18, 41, 0.6);
}
.service--flip .service__clip { right: auto; left: -6%; }
.service__clip video { width: 100%; height: 100%; object-fit: cover; }
.service__num { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--gold-500); display: block; margin-bottom: 8px; }
.service__title { margin-bottom: 24px; }
.service .lede { margin-bottom: 32px; max-width: 40ch; }
.service__scope { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-bottom: 36px; }
.service__scope li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; display: flex; gap: 10px; align-items: center; }
.service__scope li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; }

/* ───────────────────────── Contact ───────────────────────── */
.contact { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 104px)); padding-bottom: clamp(80px, 10vw, 140px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact .lede { margin: 28px 0 40px; max-width: 34ch; }
.contact__channels { display: grid; border-top: 1px solid var(--line); }
.contact__channels a { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; transition: padding 0.4s var(--ease), color 0.3s; }
.contact__channels a:hover { padding-left: 8px; color: var(--navy-600); }
.contact__channels small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--navy-600); flex: none; }
.contact__card { background: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 52px); box-shadow: 0 50px 100px -60px rgba(6, 18, 41, 0.45); position: sticky; top: calc(var(--header-h) + 24px); }
.contact__done { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 40px 0; }
.contact__done-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; }

.form { display: grid; gap: 18px; }
.form__title { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin-bottom: 4px; }
.form__errors { background: #fdf0ee; color: var(--error); border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; }
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  padding: 26px 0 10px; resize: vertical;
  /* animated focus underline, drawn on the input so inline errors can sit below it */
  background: linear-gradient(var(--underline, var(--gold-500)), var(--underline, var(--gold-500))) 0 100% / 0 2px no-repeat;
  transition: border-color 0.3s, background-size 0.5s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); background-size: 100% 2px; }
.field label {
  position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform 0.35s var(--ease), color 0.3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(0.78); color: var(--navy-600); }
.field__error { margin: 8px 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--error); }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid input + label, .field.is-invalid textarea + label { color: var(--error); }
.field.is-invalid { --underline: var(--error); }
.field.is-invalid .field__error, .captcha.is-invalid .field__error { animation: error-in 0.4s var(--ease); }
@keyframes error-in { from { opacity: 0; transform: translateY(-4px); } }

.field-choices { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.field-choices legend { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; border: 1px solid var(--stone); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.choice input:checked + span { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.choice span:hover { border-color: var(--navy-900); }
.captcha {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 16px;
  padding: 16px 18px; border-radius: 12px; background: var(--paper); margin-top: 6px;
}
.captcha__label { font-size: 0.85rem; color: var(--muted); }
.captcha__sum { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--navy-900); }
.captcha__op { color: var(--gold-500); }
.captcha__input {
  width: 72px; height: 52px; text-align: center; font: 600 1.25rem var(--sans); color: var(--ink);
  border: 1px solid var(--stone); border-radius: 10px; background: #fff; transition: border-color 0.3s, box-shadow 0.3s;
}
.captcha__input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29, 74, 154, 0.15); }
.captcha__input::placeholder { color: var(--stone); }
.captcha .field__error { grid-column: 1 / -1; margin: 0; }
.captcha.is-invalid { box-shadow: inset 0 0 0 1px var(--error); background: #fdf3f1; }
.captcha.is-invalid .captcha__input { border-color: var(--error); }
@media (max-width: 420px) {
  .captcha { grid-template-columns: 1fr auto; }
  .captcha__label { grid-column: 1 / -1; }
}
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { text-align: center; font-size: 0.88rem; color: var(--muted); }
.form__note a { color: var(--navy-600); font-weight: 600; }

/* ───────────────────────── Page transitions ───────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.6s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card--wide { grid-column: span 2; grid-row: auto; }
  .project-card--wide .project-card__media { aspect-ratio: 16 / 10; min-height: 0; }
  .hse { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-nav { display: none; }
  .menu-toggle { display: grid; }

  .intro__grid, .why, .project-intro__grid, .story, .contact__grid, .service, .site-footer__top { grid-template-columns: 1fr; }
  .intro__porthole { width: min(78vw, 400px); margin-top: 24px; }
  .why__aside { position: static; }
  .why__photo { display: none; }

  .panels { flex-direction: column; height: auto; gap: 10px; }
  .panel, .panel:hover, .panels:not(:hover) .panel:first-child { flex: none; height: 240px; }
  .panel__short { opacity: 1; transform: none; }
  .panel__arrow { opacity: 1; transform: none; }

  .porthole { height: 220vh; --r0: 30vmin; }

  .work-row { grid-template-columns: 84px 1fr 44px; gap: 16px; }
  .work-row__num, .work-preview { display: none; }
  .work-row__thumb { display: block; width: 84px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; grid-row: span 2; }
  .work-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .work-row__meta { grid-column: 2; grid-row: 2; }
  .work-row__arrow { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }

  .principles__vm { grid-template-columns: 1fr; }
  .principles__sun { order: -1; }
  .hse__list { grid-template-columns: 1fr; }

  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic__item:nth-child(even) { transform: none; }

  .service--flip .service__media { order: 0; }
  .service__clip, .service--flip .service__clip { right: 12px; left: auto; bottom: -24px; width: 28%; }
  .service__body { padding-top: 16px; }

  .contact__card { position: static; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .banner { aspect-ratio: 4 / 3; }
  .people { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio__item:nth-child(3) { display: none; }
}

@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: auto; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item:nth-child(odd) { border-right: 0; }
  .why__item:nth-child(even) { padding-left: 0; }
  .field-row, .service__scope { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .person { flex-direction: column; gap: 18px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: none; }
  .reel { flex-basis: 64vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ───────────────────────── Admin ───────────────────────── */
.admin { padding-bottom: 96px; }
.admin__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.admin__table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-lg); }
.admin__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 760px; }
.admin__table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 16px; border-bottom: 1px solid var(--line); }
.admin__table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin__table a { color: var(--navy-600); }
.admin__message { max-width: 40ch; white-space: pre-line; color: var(--ink-2); }
