/* ==========================================================================
   OID Ltd — design system
   Industrial / editorial. Paper + graphite, one restrained signal blue.
   ========================================================================== */

:root {
  --paper: #f3f2ee;
  --paper-2: #e9e8e3;
  --white: #fbfbf9;
  --ink: #0e1011;
  --ink-2: #16191b;
  --ink-3: #22272a;
  --steel: #8a9095;
  --muted: #595e62;
  --muted-dark: #a3a9ad;
  --line: rgba(14, 16, 17, 0.14);
  --line-strong: rgba(14, 16, 17, 0.32);
  --line-dark: rgba(255, 255, 255, 0.13);
  --accent: #2448c8;
  --accent-light: #8ea6ff;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1520px;
  --section-y: clamp(72px, 8.5vw, 136px);
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
strong { font-weight: 550; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section--dark :focus-visible, .cta :focus-visible, .lightbox :focus-visible { outline-color: var(--accent-light); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--ink-2); color: var(--paper); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.5;
}

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .mono { color: var(--accent); font-size: inherit; }
.section--dark .eyebrow { color: var(--muted-dark); }
.section--dark .eyebrow .mono { color: var(--accent-light); }

.h2 {
  font-size: clamp(2.1rem, 4.1vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-wrap: balance;
}
.muted { color: var(--steel); }
.section--dark .muted { color: #7d8489; }

.lead { font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.4rem); line-height: 1.45; letter-spacing: -0.01em; }
.section-intro { color: var(--muted); max-width: 52ch; margin-top: 24px; }
.section--dark .section-intro { color: var(--muted-dark); }

.section-head { margin-bottom: clamp(48px, 6vw, 96px); }
.section-head--split { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .section-head--split > .eyebrow { grid-column: 1 / 4; padding-top: 0.9em; }
  .section-head--split > :not(.eyebrow) { grid-column: 4 / 12; }
}
.section-head--split .eyebrow, .section-head .eyebrow { padding-top: 14px; border-top: 1px solid var(--line); }
.section--dark .section-head .eyebrow { border-top-color: var(--line-dark); }

.group-label {
  display: flex; align-items: center; gap: 16px;
  color: var(--muted-dark); margin: 0 0 20px;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 22px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.2;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary:hover { --bg: var(--accent); --bd: var(--accent); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: #fff; --bd: #fff; }
.btn--outline-light { --bg: transparent; --fg: var(--paper); --bd: rgba(255,255,255,0.4); }
.btn--outline-light:hover { --bd: var(--paper); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 0.88rem; }

.link-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.95rem;
  padding: 10px 0; border-bottom: 1px solid var(--ink);
}
.link-btn .icon { transition: transform 0.35s var(--ease); }
.link-btn:hover .icon { transform: rotate(90deg); }
.link-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 242, 238, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(243, 242, 238, 0.94); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: grid; flex: none; }
.brand img { grid-area: 1 / 1; height: 26px; width: auto; transition: opacity 0.3s var(--ease); }
.brand__white { opacity: 0; }

/* Transparent header while it sits on the hero photo */
.site-header.is-over-hero { background: transparent; border-bottom-color: rgba(255,255,255,0.18); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-over-hero .brand__grey { opacity: 0; }
.site-header.is-over-hero .brand__white { opacity: 1; }
.site-header.is-over-hero .nav__list a { color: rgba(255,255,255,0.78); }
.site-header.is-over-hero .nav__list a:hover { color: #fff; }
.site-header.is-over-hero .site-header__cta { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.site-header.is-over-hero .menu-toggle { color: #fff; }
.site-header.is-over-hero .menu-toggle__bars span { background: #fff; }

.nav { margin-left: auto; display: none; }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav__list a {
  position: relative; font-size: 0.92rem; color: var(--muted); padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--ink); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.site-header__cta { display: none; }

.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 4px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-menu:not([hidden]) { animation: menu-in 0.45s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu__inner { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding-block: 24px 32px; gap: 40px; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 20px; padding: 16px 0;
  font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1;
}
.mobile-menu__list .mono { color: var(--accent); }
.mobile-menu__foot { display: grid; gap: 20px; }
.mobile-menu__foot .mono { color: var(--muted); }

@media (min-width: 1100px) {
  .nav, .site-header__cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; }
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  min-height: 100vh; min-height: 100svh; max-height: 1100px;
  display: flex; background: var(--ink); color: var(--paper);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  transform-origin: 50% 60%;
}
.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,12,13,0.62) 0%, rgba(10,12,13,0.1) 28%, rgba(10,12,13,0.25) 55%, rgba(10,12,13,0.88) 100%),
    linear-gradient(90deg, rgba(10,12,13,0.55) 0%, rgba(10,12,13,0) 55%, rgba(10,12,13,0.45) 100%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) / 4) 100%;
  background-position: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 0;
}
.hero__content {
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 4vw, 56px);
  padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px)); padding-bottom: clamp(24px, 3vw, 40px);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between;
  color: rgba(255,255,255,0.72); padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.22);
  margin-bottom: auto;
}
.hero__grid { display: grid; gap: 28px; }
.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 8.2rem);
  line-height: 0.95; letter-spacing: -0.045em; font-weight: 400;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--muted { color: rgba(255,255,255,0.62); }
.hero__aside { display: grid; gap: 24px; align-content: end; max-width: 520px; }
.hero__aside .lead { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 18px rgba(0,0,0,0.45); }
.hero__meta, .hero__foot, .play-btn { text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 2px 12px rgba(0,0,0,0.35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr minmax(340px, 30%); align-items: end; gap: 56px; }
}
.hero__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.22);
}
.hero__scroll { color: rgba(255,255,255,0.72); display: none; }
.hero__scroll:hover { color: #fff; }
@media (min-width: 700px) { .hero__scroll { display: inline-block; } }
@media (max-width: 699px) {
  .hero__meta span:nth-child(2) { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

.play-btn { display: inline-flex; align-items: center; gap: 16px; color: var(--paper); text-align: left; }
.play-btn__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 50%;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.play-btn:hover .play-btn__icon { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.play-btn strong { display: block; font-weight: 500; font-size: 1rem; }
.play-btn .mono { color: rgba(255,255,255,0.7); }

.facts { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.facts__item { padding: 22px 16px 26px 0; display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line); }
.facts__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts__value { font-size: clamp(1.8rem, 2.8vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.facts__label { color: var(--muted); font-size: 0.9rem; line-height: 1.4; max-width: 26ch; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts__item { border-top: 0; padding: 28px 24px 32px; }
  .facts__item:first-child { padding-left: 0; }
  .facts__item + .facts__item { border-left: 1px solid var(--line); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; gap: 40px; }
.about__quote { margin-top: 40px; padding-left: 20px; border-left: 2px solid var(--accent); }
.about__quote p { font-size: clamp(1.15rem, 1vw + 0.9rem, 1.5rem); letter-spacing: -0.015em; line-height: 1.35; }
.about__quote footer { color: var(--muted); margin-top: 8px; }
.about__body { display: grid; gap: 20px; color: var(--muted); max-width: 64ch; }
.about__body .lead { color: var(--ink); }
.about__motto { color: var(--ink); padding-top: 16px; border-top: 1px solid var(--line); }
.about__portrait, .about__team { margin: 0; }
.about__portrait img { width: 100%; aspect-ratio: 582 / 742; object-fit: cover; }
.about__portrait figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; border-top: 1px solid var(--ink); margin-top: 12px; font-weight: 500;
}
.about__portrait figcaption .mono { color: var(--muted); font-weight: 400; }
.about__team img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__team figcaption { color: var(--muted); margin-top: 10px; }

@media (min-width: 700px) and (max-width: 1099px) {
  .about__grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .about__intro, .about__body { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .about__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 72px; }
  .about__intro { grid-column: 1 / 7; }
  .about__portrait { grid-column: 9 / 13; grid-row: 1 / 3; }
  .about__body { grid-column: 4 / 8; grid-row: 2; }
  .about__team { grid-column: 1 / 4; grid-row: 2; align-self: end; }
}

.about__band { margin: clamp(56px, 7vw, 104px) 0 0; position: relative; }
.about__band img { width: 100%; height: auto; aspect-ratio: 1708 / 450; object-fit: cover; }
.about__band figcaption { color: var(--muted); padding-top: 12px; }

/* ==========================================================================
   Expertise — bento + rail
   ========================================================================== */
.bento { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-bottom: clamp(56px, 7vw, 104px); }
.bento__tile {
  position: relative; background: var(--ink-2); padding: clamp(24px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: 14px; min-height: 220px;
  transition: background-color 0.4s var(--ease);
}
.bento__tile:hover { background: #1b1f21; }
.bento__tile h4 { font-size: clamp(1.3rem, 1.2vw + 0.9rem, 1.75rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; }
.bento__tile p { color: var(--muted-dark); max-width: 46ch; }
.tile-index { color: var(--accent-light); margin-bottom: auto; padding-bottom: 32px; }

.bento__tile--hero {
  background-image:
    linear-gradient(to bottom, var(--ink-2) 0%, rgba(22,25,27,0) 30%, rgba(22,25,27,0) 45%, var(--ink-2) 75%),
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-position: 0 0, -1px -1px, -1px -1px;
}
.bento__tile--hero:hover { background-color: #1b1f21; }
.bento__tile--hero h4 { font-size: clamp(2rem, 3.2vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; }
.bento__tile--hero p { font-size: 1.1rem; color: #c5cace; }
.spec-check { margin-top: 20px; border-top: 1px solid var(--line-dark); }
.spec-check li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: #d5d9dc;
}
.spec-check .icon { color: var(--accent-light); }

.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: #d5d9dc; font-size: 0.66rem; }
.flow span { border: 1px solid var(--line-dark); padding: 5px 8px; }
.flow i { width: 16px; height: 1px; background: var(--steel); position: relative; }
.flow i::after { content: ""; position: absolute; right: 0; top: -2.5px; border: 3px solid transparent; border-left: 5px solid var(--steel); border-right: 0; }

.bento__tile--cost { justify-content: flex-end; }
.strike { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.strike s {
  font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; color: #5d6468;
  text-decoration: none; position: relative;
}
.strike s::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--accent-light);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease);
}
.is-in .strike s::after, .strike s.is-in::after { transform: scaleX(1); }
.is-in .strike s:nth-child(2)::after { transition-delay: 0.15s; }
.is-in .strike s:nth-child(3)::after { transition-delay: 0.3s; }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--hero, .bento__tile--cost { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__tile--hero { grid-column: 1 / 7; grid-row: 1 / 3; min-height: 460px; }
  .bento__tile--defect { grid-column: 7 / 10; grid-row: 1; }
  .bento__tile--satisfaction { grid-column: 10 / 13; grid-row: 1; }
  .bento__tile--cost { grid-column: 7 / 13; grid-row: 2; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
  .bento__tile--cost .tile-index { position: absolute; top: clamp(24px, 2.6vw, 40px); left: clamp(24px, 2.6vw, 40px); }
  .bento__tile--cost .cost { max-width: 34ch; display: grid; gap: 12px; }
  .strike { flex-direction: column; align-items: flex-end; text-align: right; }
}

.rail { display: grid; gap: 0; counter-reset: rail; }
.rail__stop { position: relative; padding: 28px 0 28px 36px; border-left: 1px solid var(--line-dark); }
.rail__stop::before {
  content: ""; position: absolute; left: -5px; top: 34px; width: 9px; height: 9px;
  background: var(--ink-2); border: 1px solid var(--accent-light);
}
.rail__stage { color: var(--accent-light); display: block; margin-bottom: 12px; }
.rail__stop h4 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.25; }
.rail__stop p { color: var(--muted-dark); font-size: 0.95rem; }
@media (min-width: 900px) {
  .rail { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .rail__stop { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .rail__stop::before { left: 0; top: -5px; }
}

/* ==========================================================================
   What we do — QM diagram
   ========================================================================== */
.what__grid { display: grid; gap: 48px; }
.what__text { display: grid; gap: 24px; align-content: start; }
.what__text > p:not(.lead) { color: var(--muted); }
.what__text strong { color: var(--ink); }

.qm { margin: 0; }
.qm__layer { position: relative; border: 1px solid var(--line-strong); padding: 18px; display: grid; gap: 6px; }
.qm__layer .qm__layer { margin-top: 16px; }
.qm__layer--qm { background: var(--paper); }
.qm__layer--qa { background: var(--paper-2); border-style: dashed; }
.qm__layer--qc { background: var(--ink); color: var(--paper); border-color: var(--ink); padding: 22px; }
.qm__tag { color: var(--accent); }
.qm__layer--qc .qm__tag { color: var(--accent-light); }
.qm__desc { font-size: 0.95rem; line-height: 1.45; color: var(--muted); max-width: 40ch; }
.qm__layer--qc .qm__desc { color: #c5cace; }
.qm__oid {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line-dark); font-weight: 500; font-size: 0.95rem;
}
.qm__oid .dot { width: 8px; height: 8px; background: var(--accent-light); position: relative; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .qm__oid .dot::after {
    content: ""; position: absolute; inset: -4px; border: 1px solid var(--accent-light);
    animation: ping 2.4s var(--ease) infinite;
  }
}
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.6); } 80%, 100% { opacity: 0; transform: scale(1.9); } }
.qm figcaption { color: var(--muted); margin-top: 14px; }

.what__image { margin: 0; }
.what__image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

@media (min-width: 768px) and (max-width: 1199px) {
  .what__grid { grid-template-columns: 1fr 1fr; }
  .what__text { grid-column: 1 / -1; }
  .what__image img { aspect-ratio: 3 / 4; }
}
@media (min-width: 1200px) {
  .what__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .what__text { grid-column: 1 / 6; }
  .qm { grid-column: 6 / 10; margin-top: 96px; }
  .what__image { grid-column: 10 / 13; }
}

/* ==========================================================================
   Services — sticky media showcase
   ========================================================================== */
.services { background: var(--white); }
.svc { display: grid; gap: 0; }
.svc__stage { display: none; }
.svc__list { counter-reset: svc; border-top: 1px solid var(--ink); }
.svc__item { display: grid; gap: 16px; padding: 36px 0 44px; border-bottom: 1px solid var(--line); align-content: start; }
.svc__num { color: var(--accent); }
.svc__title { font-size: clamp(1.7rem, 2.6vw, 2.8rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; }
.abbr { font-size: 0.72rem; color: var(--muted); vertical-align: middle; border: 1px solid var(--line-strong); padding: 3px 7px; margin-left: 6px; letter-spacing: 0.08em; position: relative; top: -0.35em; }
.svc__summary { color: var(--muted); max-width: 58ch; }
.svc__spec { display: grid; border-top: 1px solid var(--line); margin-top: 4px; }
.svc__spec > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.svc__spec dt { color: var(--muted); padding-top: 3px; }
.svc__thumb { width: 100%; aspect-ratio: 20 / 9; object-fit: cover; }
.svc__item .zoom { margin-top: 8px; }
.svc__item .link-btn { justify-self: start; }

@media (min-width: 1100px) {
  .svc { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .svc__stage { display: block; grid-column: 1 / 7; position: sticky; top: calc(var(--header-h) + 32px); }
  .svc__list { grid-column: 8 / 13; }
  .svc__item .zoom { display: none; }
  .svc__item { min-height: 48vh; padding: 40px 0 48px; opacity: 0.38; transition: opacity 0.5s var(--ease); }
  .svc__item.is-active, .svc__item:focus-within { opacity: 1; }
}

.svc__stage-inner { display: grid; gap: 20px; }
.svc__counter { color: var(--muted); display: flex; gap: 6px; }
.svc__counter span { color: var(--ink); }
.svc__frames { position: relative; aspect-ratio: 20 / 11; overflow: hidden; background: var(--ink); }
.svc__frames img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.svc__frames img.is-active { opacity: 1; transform: none; }

.gauge { --from: 0; --to: 100; padding-top: 8px; }
.gauge__bar { position: relative; height: 10px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink);
  background: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 5%); background-size: 100% 5px; background-repeat: no-repeat; background-position: 0 100%; }
.gauge__bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.gauge__fill {
  position: absolute; bottom: 0; height: 10px; background: var(--accent);
  left: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%);
  transition: left 0.7s var(--ease), width 0.7s var(--ease);
}
.gauge__phases { display: flex; margin-top: 10px; color: var(--muted); font-size: 0.64rem; }
.gauge__phases li { flex: 0 0 calc(var(--w) * 1%); border-left: 1px solid var(--line-strong); padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gauge__note { margin-top: 16px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.gauge__note::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }

/* ==========================================================================
   Process
   ========================================================================== */
.steps { display: grid; counter-reset: step; }
.step { position: relative; padding: 24px 0 28px 64px; border-top: 1px solid var(--line-dark); }
.step__num { position: absolute; left: 0; top: 26px; color: var(--accent-light); }
.step h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.step p { color: var(--muted-dark); font-size: 0.95rem; max-width: 48ch; }
@media (min-width: 700px) and (max-width: 1199px) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line-dark); }
  .step { padding: 0 20px 0 0; border-top: 0; }
  .step__num { position: relative; top: 0; display: block; padding: 20px 0 64px; }
  .step__num::before {
    content: ""; position: absolute; left: 0; top: -1px; width: 1px; height: 14px; background: var(--accent-light);
  }
  .step::after {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(to right, var(--line-dark) 0 1px, transparent 1px 12.5%);
    pointer-events: none;
  }
  .step h3 { min-height: 2.4em; }
}

/* ==========================================================================
   Trust
   ========================================================================== */
.trust__grid { display: grid; gap: 56px; }
.trust__number {
  font-size: clamp(8rem, 24vw, 22rem); line-height: 0.8; letter-spacing: -0.07em; font-weight: 300;
  display: flex; align-items: flex-start; font-variant-numeric: tabular-nums;
}
.trust__number .plus { color: var(--accent); font-size: 0.4em; margin-left: 0.04em; line-height: 1; }
.trust__title { font-size: clamp(1.5rem, 2vw, 2.1rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; max-width: 22ch; margin-top: 24px; }
.trust__image { margin: 40px 0 0; }
.trust__image img { width: 100%; aspect-ratio: 967 / 450; object-fit: cover; }

.ledger { border-top: 1px solid var(--ink); align-self: end; }
.ledger__row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger__row dt { color: var(--muted); padding-top: 4px; }
.ledger__row dd { font-size: 1.02rem; line-height: 1.45; }
@media (min-width: 1100px) {
  .trust__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
  .trust__figure { grid-column: 1 / 7; }
  .ledger { grid-column: 8 / 13; }
  .ledger__row { grid-template-columns: 140px 1fr; }
}

/* ==========================================================================
   Gallery — film reel (hover-expand) + mosaic
   ========================================================================== */
.reel { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-bottom: clamp(56px, 7vw, 96px); }
.reel__panel { background: var(--ink-2); }
.reel__btn { position: relative; display: block; height: 100%; overflow: hidden; color: var(--paper); }
.reel__btn img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 1s var(--ease), opacity 0.5s var(--ease); opacity: 0.85; }
.reel__btn:hover img { transform: scale(1.03); opacity: 1; }
.reel__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(to top, rgba(10,12,13,0.85), rgba(10,12,13,0));
}
.reel__label .mono { color: var(--accent-light); }
.reel__name { font-size: 1.15rem; letter-spacing: -0.02em; }
.reel__play {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.5); background: rgba(10,12,13,0.25);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.reel__btn:hover .reel__play, .reel__btn:focus-visible .reel__play { background: var(--paper); color: var(--ink); }
.reel__btn:focus-visible { outline-offset: -3px; }

@media (min-width: 900px) {
  .reel { display: flex; height: clamp(380px, 38vw, 560px); gap: 0; background: none; }
  .reel__panel {
    flex: 1 1 0; min-width: 0; border-left: 1px solid var(--line-dark);
    transition: flex-grow 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .reel__panel:first-child { border-left: 0; }
  .reel__panel.is-active { flex-grow: 3.2; }
  .reel__btn img { aspect-ratio: auto; position: absolute; inset: 0; }
  .reel__panel:not(.is-active) .reel__btn img { opacity: 0.45; filter: grayscale(1); }
  .reel__panel:not(.is-active) .reel__name { opacity: 0; }
  .reel__name { transition: opacity 0.4s var(--ease); white-space: nowrap; }
}

.mosaic { columns: 2; column-gap: 8px; }
.mosaic__item { break-inside: avoid; margin-bottom: 8px; }
.mosaic__item a { position: relative; display: block; overflow: hidden; background: var(--ink-3); }
.mosaic__item img { width: 100%; height: auto; transition: transform 0.9s var(--ease), opacity 0.5s var(--ease); }
.mosaic__item a::after {
  content: "+"; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 1.1rem; line-height: 1; color: var(--ink); background: var(--paper);
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mosaic__item a:hover img { transform: scale(1.04); }
.mosaic__item a:hover::after, .mosaic__item a:focus-visible::after { opacity: 1; transform: none; }
.mosaic__item a:focus-visible { outline-offset: -3px; }
.mosaic__item[hidden] { display: none; }
@media (min-width: 700px) { .mosaic { columns: 3; column-gap: 12px; } .mosaic__item { margin-bottom: 12px; } }
@media (min-width: 1100px) { .mosaic { columns: 4; } }
.gallery__more { display: flex; justify-content: center; margin-top: 40px; }
.gallery__more [aria-expanded="true"] .icon { transform: rotate(45deg); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; gap: 64px; }
.contact__form-col .eyebrow { padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 40px; }

.form { display: grid; gap: 20px; margin-top: 48px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; padding: 10px 0 12px; font-size: 1.05rem; line-height: 1.4;
  transition: border-color 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230e1011' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 1px solid var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 12px; }
.form__note { font-size: 0.85rem; color: var(--muted); max-width: 36ch; line-height: 1.45; }
.form__status { font-size: 0.95rem; min-height: 1.5em; }
.form__status.is-error { color: #b3261e; }
@media (min-width: 700px) {
  .form { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .field--full { grid-column: 1 / -1; }
  .form__status { grid-column: 1 / -1; }
}

.contact__side { display: grid; }
.brief { margin-top: clamp(40px, 5vw, 72px); padding: 24px; background: var(--paper-2); }
.brief__title { color: var(--muted); margin-bottom: 12px; }
.brief__list li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.brief__list .mono { color: var(--accent); padding-top: 3px; }
.place { margin: 0; position: relative; }
.place img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 68%; }
.place figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; display: grid; gap: 2px; padding: 40px 20px 16px;
  color: #fff; background: linear-gradient(to top, rgba(10,12,13,0.85) 0%, rgba(10,12,13,0.55) 45%, rgba(10,12,13,0) 100%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 2px 14px rgba(0,0,0,0.45);
  pointer-events: none;
}
.place figcaption span:last-child { font-weight: 500; }
.place figcaption .mono { color: #c9d4ff; }
@media (min-width: 700px) and (max-width: 1099px) { .place img { aspect-ratio: 21 / 9; } }
.office__mark { width: 84px; height: auto; opacity: 0.9; }
.office { background: var(--ink); color: var(--paper); padding: clamp(28px, 3.4vw, 56px); display: grid; gap: 28px; align-content: start; position: relative; }
.office__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.office__kicker { color: var(--accent-light); }
.office__clock { color: var(--muted-dark); }
.office__clock strong { color: var(--paper); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.office__name { font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; }
.office__address { color: #c5cace; font-size: 1.02rem; line-height: 1.55; }
.office__maps { display: flex; flex-wrap: wrap; gap: 10px; }
.map-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-dark); font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.map-link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.office__details { border-top: 1px solid var(--line-dark); }
.office__details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.office__details dt { color: var(--muted-dark); padding-top: 3px; }
.office__details a { border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.office__details a:hover { border-bottom-color: currentColor; }
.office__details dd { word-break: break-word; }
.office__qr { display: flex; gap: 20px; }
.office__qr figure { margin: 0; display: grid; gap: 8px; }
.office__qr img { width: 112px; height: 112px; background: #fff; padding: 6px; object-fit: contain; }
.office__qr figcaption { color: var(--muted-dark); }

@media (min-width: 1100px) {
  .contact__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .contact__form-col { grid-column: 1 / 7; }
  .contact__side { grid-column: 8 / 13; }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.cta { background: #2e4050; color: var(--paper); }
.cta__inner { padding-block: clamp(48px, 6vw, 80px) clamp(28px, 3vw, 40px); display: grid; gap: 28px; align-items: end; }
.cta__kicker { color: #b9c7d4; margin-bottom: 12px; }
.cta__title { font-size: clamp(2rem, 3.8vw, 3.6rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.cta__links { border-top: 1px solid rgba(255,255,255,0.2); }
.cta__links a {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.2rem); letter-spacing: -0.01em;
  transition: padding 0.35s var(--ease), color 0.25s var(--ease);
}
.cta__links .mono { color: #b9c7d4; }
.cta__links a:hover { padding-left: 8px; color: #fff; }
.cta__links a .icon { transition: transform 0.35s var(--ease); }
.cta__links a:hover .icon { transform: translateX(4px); }
@media (min-width: 1000px) {
  .cta__inner { grid-template-columns: 1fr minmax(380px, 38%); gap: 56px; }
}
.bridge { margin: 0; background: #2e4050; }
.bridge img { width: 100%; height: auto; aspect-ratio: 2000 / 667; object-fit: cover; }
@media (max-width: 699px) { .bridge img { aspect-ratio: 2 / 1; object-position: 50% 35%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--paper); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
.footer__brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; color: var(--muted); }
.footer__brand img { height: auto; width: min(260px, 70%); }
.footer__brand .mono { color: var(--ink); }
.footer__label { color: var(--muted); margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__col p { color: var(--muted); }
.footer__col p + p { margin-top: 10px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 2fr 1fr 1.2fr 1.4fr; } }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted);
  position: relative; background: var(--paper);
}
.footer__bottom a:hover { color: var(--ink); }

/* ==========================================================================
   Dialogs — service sheets
   ========================================================================== */
dialog { padding: 0; border: 0; }
.sheet {
  width: min(880px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0 0 0 auto; background: var(--paper); color: var(--ink);
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(10, 12, 13, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in 0.55s var(--ease) both; }
.sheet[open]::backdrop { animation: fade-in 0.4s var(--ease) both; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__inner { padding: clamp(20px, 4vw, 56px); display: grid; gap: 24px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--ink); position: sticky; top: calc(-1 * clamp(20px, 4vw, 56px)); background: var(--paper); z-index: 1; padding-top: clamp(20px, 4vw, 56px); margin-top: calc(-1 * clamp(20px, 4vw, 56px)); }
.sheet__head .mono { color: var(--accent); }
.sheet__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.sheet__close:hover { background: var(--ink); color: var(--paper); }
.sheet__title { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.02; }
.sheet__h { color: var(--muted); margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet__list > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet__list dt { font-weight: 500; }
.sheet__list dd { color: var(--muted); }
@media (min-width: 700px) { .sheet__list > div { grid-template-columns: 240px 1fr; gap: 24px; } }
.sheet__cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .sheet__cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; } }
.sheet__cols p { color: var(--muted); }
.sheet__bullets { display: grid; gap: 10px; }
.sheet__bullets li { position: relative; padding-left: 18px; color: var(--muted); line-height: 1.5; }
.sheet__bullets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 1px; background: var(--ink); }
.sheet__close-note { font-size: 1.05rem; padding: 18px 0; border-top: 1px solid var(--line); }
.sheet .btn { justify-self: start; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.levels li { padding: 16px; display: grid; gap: 4px; }
.levels li + li { border-left: 1px solid var(--ink); }
.levels .mono { color: var(--muted); }
.levels strong { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.levels span:last-child { color: var(--muted); font-size: 0.88rem; }

/* Zoomable photos */
.zoom { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.zoom img { transition: transform 0.9s var(--ease); }
.zoom:hover img { transform: scale(1.03); }
.zoom::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5' fill='none' stroke='%230e1011' stroke-width='1.5'/%3E%3Cpath d='M12.3 12.3 16 16M8.5 6.5v4M6.5 8.5h4' stroke='%230e1011' stroke-width='1.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .zoom::after { opacity: 0.92; transform: none; } }
.zoom:focus-visible { outline-offset: -3px; }
.mosaic__item a { cursor: zoom-in; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0;
  background: rgba(10, 12, 13, 0.97); color: var(--paper);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: fade-in 0.35s var(--ease) both; }
.lightbox::backdrop { background: rgba(10,12,13,0.9); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); color: var(--muted-dark); }
.lightbox__close { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--paper); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.lightbox__close:hover { background: var(--paper); color: var(--ink); }
.lightbox__stage { display: grid; place-items: center; padding: 8px var(--gutter) 24px; min-height: 0; overflow: hidden; }
.lightbox__tools { display: flex; align-items: center; gap: 8px; }
.lightbox__tool { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--paper); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.lightbox__tool:hover { background: var(--paper); color: var(--ink); }
.lightbox__tool[disabled] { opacity: 0.35; pointer-events: none; }
.lightbox__zoomlevel { min-width: 4ch; text-align: right; }
.lightbox__stage img { cursor: zoom-in; touch-action: none; transition: transform 0.35s var(--ease); will-change: transform; user-select: none; -webkit-user-drag: none; }
.lightbox__stage.is-zoomed img { cursor: grab; }
.lightbox__stage.is-dragging img { cursor: grabbing; transition: none; }
.lightbox__stage video { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; background: #000; }
.lightbox__stage img { width: 100%; height: calc(100vh - 120px); height: calc(100dvh - 120px); max-width: none; object-fit: contain; }
.lightbox__stage > * { animation: lb-in 0.45s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.985); } }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(22,25,27,0.8); border: 1px solid var(--line-dark); color: var(--paper);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__nav:hover { background: var(--paper); color: var(--ink); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 699px) {
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__stage img { height: calc(100dvh - 180px); }
  .lightbox__stage video { max-height: calc(100dvh - 180px); }
}

/* ==========================================================================
   Motion — reveal (only when JS + motion allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="mask"] { overflow: hidden; opacity: 1; transform: none; }
  .js [data-reveal="mask"] > :first-child { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io); }
  .js [data-reveal="mask"].is-in > :first-child { clip-path: inset(0 0 0 0); }
  .js [data-reveal="mask"] img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
  .js [data-reveal="mask"].is-in img { transform: none; }

  .js [data-reveal-line] { transform: translateY(105%); transition: transform 1.1s var(--ease); }
  .js.is-loaded [data-reveal-line] { transform: none; }
  .js.is-loaded .line:nth-child(2) [data-reveal-line] { transition-delay: 0.08s; }
  .js.is-loaded .line:nth-child(3) [data-reveal-line] { transition-delay: 0.16s; }

  .js .hero__bg { transform: scale(1.12); transition: transform 2.4s var(--ease); }
  .js.is-loaded .hero__bg { transform: scale(var(--hero-scale, 1)); }
  .js.is-loaded.hero-settled .hero__bg { transition: none; }

  .facts__item[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
  .facts__item[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
  .facts__item[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
  .rail__stop[data-reveal]:nth-child(2), .step[data-reveal]:nth-child(2) { transition-delay: 0.06s; }
  .rail__stop[data-reveal]:nth-child(3), .step[data-reveal]:nth-child(3) { transition-delay: 0.12s; }
  .rail__stop[data-reveal]:nth-child(4), .step[data-reveal]:nth-child(4) { transition-delay: 0.18s; }
  .step[data-reveal]:nth-child(5) { transition-delay: 0.24s; }
  .step[data-reveal]:nth-child(6) { transition-delay: 0.30s; }
  .step[data-reveal]:nth-child(7) { transition-delay: 0.36s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
