/* ============================================================
   Benchmark Design — shared stylesheet (Direction A · Precise)
   ============================================================ */

:root {
  --ink: #0b0b0c;
  --ink-2: #1a1a1d;
  --ink-muted: #6b6b70;
  --line: #e6e6e4;
  --line-strong: #c9c9c5;
  --paper: #f6f5f1;
  --paper-2: #ecebe5;
  --surface: #ffffff;
  --accent: oklch(0.52 0.21 30);
  --accent-ink: #ffffff;
  --accent-soft: oklch(0.96 0.03 30);
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: 32px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.rule { border-top: 1px solid var(--line); }
.rule-strong { border-top: 1px solid var(--line-strong); }

/* ---------------- header ---------------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 40px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; font-size: 16px;
}
.brand .dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; transform: translateY(-1px); }
.brand .tag { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }

.menu { display: flex; gap: 28px; justify-content: center; margin: 0; padding: 0; }
.menu > li { list-style: none; position: relative; }
.menu > li > a, .menu > li > button {
  border: 0; background: none; padding: 8px 0; cursor: pointer;
  font-family: var(--sans); font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.menu > li > a[aria-current="page"] { color: var(--accent); }
.menu > li > button::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: 0.5;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px;
  border-radius: 0;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta .arr { width: 12px; height: 12px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }

.mega {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--surface); border: 1px solid var(--line); width: 720px;
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.15);
}
.menu > li:hover .mega, .menu > li:focus-within .mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega h4 { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0 0 12px; font-weight: 500; grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.mega a { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.mega a:last-child { border-bottom: 0; }
.mega a .lbl { font-weight: 500; }
.mega a .sub { color: var(--ink-muted); font-size: 12px; font-family: var(--mono); }
.mega a:hover .lbl { color: var(--accent); }

.mega.mega-wide { width: 880px; grid-template-columns: 1fr 1fr; gap: 8px 56px; padding: 24px 28px; }
.mega.mega-wide .mega-col { display: flex; flex-direction: column; }
.mega.mega-wide .mega-col h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; grid-column: auto; }
.mega.mega-wide .mega-col .mega-all { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border-bottom: 0; padding: 0; }
.mega.mega-wide .mega-col .mega-all:hover { opacity: 0.7; }
.mega.mega-wide a:not(.mega-all) { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.mega.mega-wide .mega-col a:not(.mega-all):last-child { border-bottom: 0; }

/* ---------------- hero (homepage) ---------------- */
.hero { padding: 56px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
h1.display {
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.98; font-weight: 600; letter-spacing: -0.035em;
  margin: 0 0 24px; text-wrap: balance;
}
h1.display em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; margin: 0 0 36px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px; background: var(--accent); color: #fff;
  font-weight: 500; font-size: 15px;
}
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 4px; font-weight: 500; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.arr-right { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--ink); margin-top: 64px;
}
.hero-meta > div { padding: 20px 0 0; border-right: 1px solid var(--line); padding-right: 20px; }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 8px; }
.hero-meta .v { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.hero-meta .v small { font-size: 13px; color: var(--ink-muted); font-weight: 400; margin-left: 6px; }

.hero-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }

.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
}
.hero-slides .slide.is-active {
  opacity: 1;
  animation: hero-kenburns 7s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .slide { transition: opacity 0.4s ease; transform: scale(1.0); }
  .hero-slides .slide.is-active { animation: none; }
}

.hero-figure .tech {
  position: absolute; left: 16px; right: 16px; top: 16px;
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9;
}
.hero-figure .tech span::before { content: "● "; color: var(--accent); }
.hero-figure .foot {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; justify-content: space-between; align-items: end; color: #fff; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9;
}
.hero-figure .foot .big { font-family: var(--sans); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; }

.crosshair { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: #fff; opacity: 0.85; }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.ch-tl { top: 12px; left: 12px; } .ch-tr { top: 12px; right: 12px; } .ch-bl { bottom: 12px; left: 12px; } .ch-br { bottom: 12px; right: 12px; }

/* ---------------- ticker ---------------- */
.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2); overflow: hidden; padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 64px; align-items: center;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-track span::before { content: ""; width: 6px; height: 6px; background: var(--accent); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- section header ---------------- */
section.block { padding: 120px 0; }
.sec-head {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 40px; align-items: end;
  padding-bottom: 40px; border-bottom: 1px solid var(--ink);
  margin-bottom: 60px;
}
.sec-head .idx { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.sec-head h2 {
  font-size: clamp(32px, 4vw, 56px); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.025em; margin: 0; max-width: 22ch; text-wrap: balance;
}
.sec-head .more { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; gap: 8px; align-items: center; }
.sec-head .more::after { content: "→"; }

/* ---------------- services ---------------- */
.services {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  grid-column: span 4;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; transition: background .25s ease;
  background: var(--surface);
}
.service:hover { background: var(--accent-soft); }
.service .n { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); display: flex; justify-content: space-between; }
.service .n .go { opacity: 0; transition: opacity .25s; }
.service:hover .n .go { opacity: 1; color: var(--accent); }
.service .img { aspect-ratio: 4/3; background: var(--paper-2); overflow: hidden; margin: 0 -24px; }
.service .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .img img { transform: scale(1.04); }
.service h3 { font-size: 22px; margin: 0; font-weight: 600; letter-spacing: -0.015em; }
.service p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.service .spec {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted);
}
.service .spec span { border: 1px solid var(--line); padding: 3px 8px; }

/* ---------------- 24/6 split / clock ---------------- */
.split-24 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.split-24 .copy h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1; margin: 24px 0 24px; letter-spacing: -0.03em; font-weight: 600; }
.split-24 .copy p { font-size: 17px; color: var(--ink-2); max-width: 50ch; }
.clock { position: relative; aspect-ratio: 1/1; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.clock::before { content: ""; position: absolute; inset: 30px; border-radius: 50%; border: 1px dashed var(--line-strong); }
.clock .center { text-align: center; }
.clock .center .big { font-size: clamp(72px, 10vw, 140px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.clock .center .big em { font-style: normal; color: var(--accent); }
.clock .center .mono { display: block; margin-top: 6px; }
.clock-labels { position: absolute; inset: 0; }
.clock-labels span { position: absolute; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.clock-labels .t { top: 16px; left: 50%; transform: translateX(-50%); }
.clock-labels .r { right: 16px; top: 50%; transform: translateY(-50%); }
.clock-labels .b { bottom: 16px; left: 50%; transform: translateX(-50%); }
.clock-labels .l { left: 16px; top: 50%; transform: translateY(-50%); }

/* ---------------- before/after ---------------- */
.compare-wrap { background: var(--ink); color: #fff; padding: 96px 0; }
.compare-wrap .sec-head { border-color: rgba(255,255,255,0.2); }
.compare-wrap .sec-head .idx,
.compare-wrap .sec-head .more { color: rgba(255,255,255,0.55); }
.compare-wrap .sec-head h2 { color: #fff; }
.compare { position: relative; overflow: hidden; user-select: none; aspect-ratio: 16/9; background: #111; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-clip { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); cursor: ew-resize; }
.compare .handle::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: var(--accent); border-radius: 50%; }
.compare .handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 18px; font-weight: 700; pointer-events: none; }
.compare .tag { position: absolute; top: 16px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 10px; }
.compare .tag.before { left: 16px; } .compare .tag.after { right: 16px; }

/* ---------------- cases teaser ---------------- */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.case .img { aspect-ratio: 4/5; margin: 0 -24px; overflow: hidden; background: var(--paper-2); }
.case .img img { width: 100%; height: 100%; object-fit: cover; }
.case .meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.case h3 { font-size: 18px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.case p { margin: 0; font-size: 13px; color: var(--ink-muted); }

/* ---------------- photo grid ---------------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease; }
.photo-grid img:hover { transform: scale(1.04); filter: brightness(1.06) saturate(1.05); }

/* ---------------- lightbox ---------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox:focus-visible { outline: none; }
.lightbox::backdrop { background: rgba(10, 9, 8, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 88vw; max-height: 84vh; box-shadow: 0 24px 80px rgba(0,0,0,0.5); cursor: zoom-out; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 24px; padding-top: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); }
.lightbox .lb-idx { color: #fff; }
.lightbox .lb-idx::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 10px; }
.lightbox .lb-prev, .lightbox .lb-next { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.3); background: rgba(10,9,8,0.4); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.2s ease, border-color 0.2s ease; }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--accent); border-color: var(--accent); }
.lightbox[open] { animation: lightbox-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lightbox[open]::backdrop { animation: lightbox-fade 0.32s ease; }
/* .vt = a view-transition morph is driving the entrance; keyframe would double-animate */
.lightbox.vt[open] { animation: none; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.92); } }
@keyframes lightbox-fade { from { opacity: 0; } }
::view-transition-group(lb-pic) { animation-duration: 0.32s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(lb-pic), ::view-transition-new(lb-pic) { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }
  .lightbox .lb-prev, .lightbox .lb-next { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-grid img, .photo-grid img:hover { transition: none; transform: none; }
  .lightbox[open], .lightbox[open]::backdrop { animation: none; }
}

/* ---------------- spec grid ---------------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.spec-grid > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid > div:nth-child(4n) { border-right: 0; }
.spec-grid .v { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.spec-grid .v em { font-style: normal; color: var(--accent); }
.spec-grid .k { margin-top: 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.spec-grid .d { margin-top: 16px; font-size: 13px; color: var(--ink-2); max-width: 24ch; }
.spec-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.spec-grid.cols-3 > div:nth-child(3) { border-right: 0; }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--accent); color: #fff; padding: 120px 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(42px, 6vw, 96px); margin: 0; line-height: 0.95; font-weight: 600; letter-spacing: -0.035em; max-width: 14ch; text-wrap: balance; }
.cta-band .mailto { display: inline-flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.6); }

/* ---------------- footer ---------------- */
footer.site { background: var(--ink); color: #fff; padding: 80px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.foot-grid h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin: 0 0 20px; font-weight: 500; }
.foot-grid a, .foot-grid address { display: block; font-style: normal; font-size: 14px; line-height: 1.8; color: #fff; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand .big { font-size: 40px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; margin-bottom: 16px; }
.foot-brand p { font-size: 13px; color: rgba(255,255,255,0.6); max-width: 36ch; margin: 0 0 20px; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); }

/* ---------------- page hero (interior pages) ---------------- */
.page-hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero .idx { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.page-hero .crumb { display: inline-flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 28px; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(48px, 6vw, 96px); line-height: 0.98; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 24px; max-width: 22ch; text-wrap: balance; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lede { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin: 0; }
.page-hero .hero-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
.page-hero .hero-row .side-meta { display: grid; gap: 20px; border-top: 1px solid var(--ink); padding-top: 20px; }
.page-hero .hero-row .side-meta > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-hero .hero-row .side-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }
.page-hero .hero-row .side-meta .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.page-hero .hero-row .side-meta .v { font-size: 15px; }

/* ---------------- content blocks used on interior pages ---------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two-col.wide { grid-template-columns: 1.3fr 1fr; }
.two-col .copy h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; margin: 0 0 20px; line-height: 1.05; }
.two-col .copy p { font-size: 16px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.6; max-width: 54ch; }
.two-col .figure { aspect-ratio: 5/6; overflow: hidden; background: var(--paper-2); }
.two-col .figure img { width: 100%; height: 100%; object-fit: cover; }
.two-col .figure.wide { aspect-ratio: 4/3; }

.numbered {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--ink);
}
.numbered > div {
  padding: 32px 28px 40px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.numbered > div:last-child { border-right: 0; }
.numbered .n { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.numbered h3 { font-size: 22px; margin: 0; font-weight: 600; letter-spacing: -0.015em; }
.numbered p { font-size: 14px; color: var(--ink-muted); margin: 0; line-height: 1.55; }

.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cap-list li {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 32px;
  align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.cap-list li .num { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.cap-list li .ttl { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.cap-list li .ttl small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-muted); letter-spacing: 0; margin-top: 4px; }
.cap-list li .tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.pill-row span { border: 1px solid var(--line-strong); padding: 6px 10px; background: var(--surface); }

/* Dark spec grid used on service pages */
.block-dark { background: var(--ink); color: #fff; padding: 96px 0; }
.block-dark .sec-head { border-color: rgba(255,255,255,0.2); }
.block-dark .sec-head .idx, .block-dark .sec-head .more { color: rgba(255,255,255,0.55); }
.block-dark .sec-head h2 { color: #fff; }
.block-dark .spec-grid { border-color: rgba(255,255,255,0.15); }
.block-dark .spec-grid > div { border-color: rgba(255,255,255,0.15); }
.block-dark .spec-grid .k { color: rgba(255,255,255,0.55); }
.block-dark .spec-grid .d { color: rgba(255,255,255,0.8); }

/* ---------------- reveals ---------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero-grid, .split-24, .two-col, .two-col.wide, .page-hero .hero-row { grid-template-columns: 1fr; gap: 48px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service { grid-column: span 1; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid, .spec-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .spec-grid > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .spec-grid > div:nth-child(2n) { border-right: 0; }
  .block-dark .spec-grid > div:nth-child(4n) { border-right: 1px solid rgba(255,255,255,0.15); }
  .block-dark .spec-grid > div:nth-child(2n) { border-right: 0; }
  .numbered { grid-template-columns: 1fr; }
  .numbered > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cap-list li { grid-template-columns: 48px 1fr; }
  .cap-list li .tag { grid-column: 2; }
}
/* ---------------- mobile drawer ---------------- */
.nav-burger {
  display: none;
  width: 40px; height: 40px; border: 1px solid var(--line); background: transparent;
  padding: 0; cursor: pointer; position: relative;
}
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .15s ease, top .2s ease; }
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 19.5px; }
.nav-burger span:nth-child(3) { top: 25px; }
body.menu-open .nav-burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { top: 19.5px; transform: rotate(-45deg); }

.menu-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 45;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) {
  .nav { grid-template-columns: auto auto 1fr; gap: 12px; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .menu {
    position: fixed; top: 64px; left: 0; right: auto; bottom: 0; width: min(360px, 88vw);
    height: calc(100dvh - 64px);
    background: var(--surface); border-right: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 8px 0 24px; z-index: 48;
    transform: translateX(-100%); transition: transform .28s ease;
    overflow-y: auto;
  }
  body.menu-open .menu { transform: translateX(0); }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a, .menu > li > button { width: 100%; padding: 18px 24px; font-size: 16px; justify-content: space-between; }
  .menu > li > button { text-align: left; }
  .menu > li > button::after { margin-left: auto; transform: rotate(45deg); transition: transform .2s ease; }
  .menu > li.is-open > button::after { transform: rotate(-135deg) translateY(-2px); }

  /* mega-menu becomes an inline collapsible panel on mobile */
  .mega, .mega.mega-wide {
    position: static; transform: none !important; width: 100%; box-shadow: none; border: 0;
    background: var(--paper); padding: 4px 24px 16px;
    display: none; grid-template-columns: 1fr;
    opacity: 1 !important; pointer-events: auto !important; transition: none;
  }
  .menu > li.is-open .mega, .menu > li.is-open .mega.mega-wide { display: block; opacity: 1; pointer-events: auto; }
  .mega.mega-wide .mega-col { padding-top: 12px; }
  .mega h4, .mega.mega-wide .mega-col h4 { border-bottom: 0; padding-bottom: 4px; margin-bottom: 4px; }
  .mega a, .mega.mega-wide a:not(.mega-all) { padding: 12px 0; }
  .mega a .lbl { flex: 1; min-width: 0; }
  .mega a .sub { flex-shrink: 0; }

  .menu-mobile-cta {
    display: block; margin: 16px 24px 0;
    background: var(--ink); color: #fff; text-align: center;
    padding: 16px; font-weight: 500; font-size: 15px;
  }
}
@media (min-width: 1025px) {
  .menu-mobile-cta { display: none; }
  .menu-scrim { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .services, .cases, .spec-grid, .spec-grid.cols-3, .photo-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
