/* Nano Building Corp · site.css
   Concept: the site is a set of construction drawings.
   Motifs: sheet tags (A-00), dimension lines with 45° ticks (the roof of the "n"),
   a chamfered top-right corner (the right leg of the "n"), tape measure, title block. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --amber: #ffb800;
  --amber-hi: #ffc933;
  --ink: #191514;
  --ink-2: #221d1b;
  --ink-3: #2f2926;
  --paper: #f6f3ee;
  --white: #ffffff;
  --line: #e2dcd2;
  --line-strong: #c9c1b5;
  --text: #191514;
  --body: #4f4843;
  --muted: #6b645e;
  --on-dark: #f3efe8;
  --on-dark-body: #cfc7bd;
  --on-dark-muted: #ada49b;
  --line-dark: rgba(243, 239, 232, 0.14);

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --sec: clamp(88px, 10vw, 168px);
  --chamfer: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --hd-h: 72px;
}
@media (min-width: 1024px) {
  :root { --hd-h: 84px; --chamfer: 18px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
strong, b { color: var(--text); font-weight: 650; }
.on-dark strong, .bg-ink strong { color: var(--on-dark); }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.bg-white :focus-visible, .bg-paper :focus-visible, .cta :focus-visible { outline-color: var(--ink); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--amber); color: var(--ink); padding: 12px 16px;
  font: 600 15px/1 var(--f-sans); transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.i { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type ---------- */
.h1, .h2, .h3, .h4 { color: var(--text); font-family: var(--f-sans); text-wrap: balance; }
.h1 {
  font-size: clamp(2.75rem, 1.55rem + 4.7vw, 6.25rem);
  line-height: 0.94;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(2.1rem, 1.35rem + 2.9vw, 4rem);
  line-height: 1;
  font-weight: 780;
  font-stretch: 110%;
  letter-spacing: -0.03em;
}
.h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem);
  line-height: 1.15;
  font-weight: 720;
  font-stretch: 106%;
  letter-spacing: -0.015em;
}
.h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; font-stretch: 104%; letter-spacing: -0.01em; }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4,
.bg-ink .h1, .bg-ink .h2, .bg-ink .h3, .bg-ink .h4 { color: var(--on-dark); }
.dot { color: var(--amber); }
.bg-white .dot, .bg-paper .dot { color: var(--amber); }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.6; color: var(--body); }
.bg-ink .lead, .on-dark .lead { color: var(--on-dark-body); }
.bg-ink, .on-dark { color: var(--on-dark-body); }
.mono {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.measure { max-width: 62ch; }
.measure-s { max-width: 46ch; }
.prose p + p { margin-top: 1.1em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: calc(var(--sec) * 0.65); }
.bg-ink { background: var(--ink); }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-amber { background: var(--amber); }

/* blueprint grid backgrounds (always under left-aligned content) */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-c, rgba(25,21,20,.042)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-c, rgba(25,21,20,.042)) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-c2, rgba(25,21,20,.024)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-c2, rgba(25,21,20,.024)) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.bg-ink.grid-bg::before { --grid-c: rgba(243,239,232,.06); --grid-c2: rgba(243,239,232,.03); }

/* ---------- Sheet tag (eyebrow) ---------- */
.tag { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(22px, 2.6vw, 34px); color: var(--muted); }
.tag__code {
  font-family: var(--f-mono); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em;
  background: var(--amber); color: var(--ink); padding: 3px 7px 2px; line-height: 1.4;
}
.tag__label { font-family: var(--f-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.tag__rule { flex: 1; height: 1px; background: currentColor; opacity: 0.35; min-width: 24px; transform-origin: left; }
.tag--short .tag__rule { flex: 0 0 64px; }
.bg-ink .tag, .on-dark .tag { color: var(--on-dark-muted); }
.cta .tag { color: rgba(25,21,20,.72); }
.cta .tag__code { background: var(--ink); color: var(--amber); }

/* ---------- Buttons & links ---------- */
@property --btn-bg { syntax: "<color>"; inherits: false; initial-value: #ffb800; }
.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
  --btn-fill: var(--ink);
  --btn-fill-fg: var(--amber);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px 0 24px;
  font: 650 1rem/1.1 var(--f-sans); font-stretch: 106%; letter-spacing: 0.005em;
  color: var(--btn-fg);
  background: linear-gradient(225deg, transparent 0 calc(var(--chamfer) * 0.7071), var(--btn-bg) 0);
  transition: color 0.35s var(--ease-out);
  overflow: hidden;
  white-space: nowrap;
}
/* paint-roller stroke on hover: Nano started out painting */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(225deg, transparent 0 calc(var(--chamfer) * 0.7071), var(--btn-fill) 0);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); }
.btn .i { width: 20px; height: 20px; transition: transform 0.35s var(--ease-out); }
.btn:hover .i, .btn:focus-visible .i { transform: translateX(3px); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--on-dark); --btn-fill: var(--white); --btn-fill-fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px 0 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-stretch: 106%; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.4s var(--ease-out);
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link .i { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.link:hover .i { transform: translateX(4px); }
.bg-ink .link, .on-dark .link { color: var(--on-dark); }

/* ---------- Dimension line ---------- */
.dim {
  --dim-c: var(--line-strong);
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: 28px; color: var(--muted);
}
.dim::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--dim-c);
  transform-origin: center; transform: scaleX(var(--dim-s, 1)); transition: transform 0.9s var(--ease-out);
}
.dim__t {
  position: absolute; bottom: 0; width: 1px; height: 13px; background: var(--dim-c);
  transform: rotate(45deg); transform-origin: center;
}
.dim__t--l { left: 0; }
.dim__t--r { right: 0; }
.dim__label { position: relative; bottom: 12px; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; background: inherit; }
.bg-ink .dim, .on-dark .dim { --dim-c: rgba(243,239,232,.32); color: var(--on-dark-muted); }

/* registration marks for framed images */
.reg { position: absolute; width: 18px; height: 18px; pointer-events: none; color: var(--line-strong); }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.bg-ink .reg, .on-dark .reg { color: rgba(243,239,232,.4); }

/* chamfered frame (top-right corner cut at 45°, the roof of the n) */
.chamfer { clip-path: polygon(0 0, calc(100% - var(--ch, 28px)) 0, 100% var(--ch, 28px), 100% 100%, 0 100%); }

/* ---------- Tape measure (reading progress) ---------- */
.tape { position: fixed; inset: 0 0 auto 0; height: 9px; z-index: 120; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.tape.is-on { opacity: 1; }
.tape__bar {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(25,21,20,.85) 0 1px, transparent 1px 96px) 0 0 / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(25,21,20,.6) 0 1px, transparent 1px 48px) 0 0 / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(25,21,20,.45) 0 1px, transparent 1px 12px) 0 0 / 100% 3px no-repeat,
    var(--amber);
  clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
}
.tape__hook {
  position: absolute; top: 0; left: 0; width: 4px; height: 13px; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255,184,0,.6);
  transform: translateX(calc(var(--p, 0) * 100vw - 4px));
}

/* ---------- Header ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--hd-h);
  color: var(--on-dark);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.35s;
}
.hd__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hd__logo { position: relative; display: block; width: 132px; flex: none; }
.hd__logo img { width: 100%; height: auto; }
.hd__logo .logo-dark { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; }
.hd__logo .logo-light { transition: opacity 0.35s; }
.hd__nav { display: none; }
.hd__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd__phone { display: none; }
.hd__cta { display: none; }
.hd__menu {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 12px;
  font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.hd__burger { position: relative; width: 22px; height: 12px; }
.hd__burger::before, .hd__burger::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.35s var(--ease-out); }
.hd__burger::before { top: 0; }
.hd__burger::after { bottom: 0; right: 6px; }
.hd__call {
  display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--ink);
  background: linear-gradient(225deg, transparent 0 7px, var(--amber) 0);
}
.hd__call .i { width: 20px; height: 20px; }
.hd.is-solid { background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) { .hd.is-solid { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); } }
.hd.is-solid .logo-dark { opacity: 1; }
.hd.is-solid .logo-light { opacity: 0; }
.hd.is-hidden { transform: translateY(-100%); }
@media (min-width: 1100px) {
  .hd__logo { width: 156px; }
  .hd__nav { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 34px); margin-left: clamp(24px, 4vw, 64px); }
  .hd__nav a { position: relative; font-size: 0.96875rem; font-weight: 560; font-stretch: 104%; padding: 6px 0; }
  .hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
  .hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
  .hd__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; padding: 8px 4px; }
  .hd__phone .i { width: 18px; height: 18px; color: var(--amber); }
  .hd.is-solid .hd__phone .i { color: var(--text); }
  .hd__cta { display: inline-flex; }
  .hd__menu, .hd__call { display: none; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--on-dark);
  display: flex; flex-direction: column; overflow-y: auto;
  clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-io), visibility 0s linear 0.6s;
}
.menu.is-open { clip-path: polygon(-60% 0, 100% 0, 100% 160%, -60% 160%); visibility: visible; transition: clip-path 0.7s var(--ease-io), visibility 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); flex: none; }
.menu__top .hd__logo { width: 132px; }
.menu__close { display: inline-flex; align-items: center; gap: 10px; height: 44px; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.menu__close .i { width: 22px; height: 22px; }
.menu__nav { display: flex; flex-direction: column; padding-block: 24px 32px; border-top: 1px solid var(--line-dark); }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 760; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.1; color: var(--on-dark);
}
.menu__nav a span { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; color: var(--on-dark-muted); min-width: 34px; }
.menu__nav a[aria-current="page"] { color: var(--amber); }
.menu__foot { margin-top: auto; padding-bottom: max(28px, env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.menu__foot p { color: var(--on-dark-muted); font-size: 0.9375rem; }
.menu__foot a.mono { color: var(--on-dark); }
.menu__item { opacity: 0; transform: translateY(14px); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.menu.is-open .menu__item { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--d, 0) * 0.05s); }
body.menu-open { overflow: hidden; }

/* ---------- Hero (home): real projects on video ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-dark-body);
  min-height: 100svh; display: flex; align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__poster img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img, .hero__video { object-fit: cover; object-position: 50% 50%; }
.hero__video { opacity: 0; transition: opacity 1s var(--ease-out); }
.hero__video.is-on { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(25,21,20,.7) 0%, rgba(25,21,20,.25) 16%, rgba(25,21,20,0) 26%),
    linear-gradient(0deg, rgba(25,21,20,.97) 0%, rgba(25,21,20,.9) 34%, rgba(25,21,20,.55) 58%, rgba(25,21,20,.12) 74%, rgba(25,21,20,0) 82%);
}
.hero__in { position: static; padding-top: calc(var(--hd-h) + 96px); padding-bottom: 28px; }
.hero__title { font-size: inherit; font-weight: inherit; margin: 0 0 18px; }
.hero .hero__tag { flex-wrap: wrap; row-gap: 8px; margin-bottom: 18px; color: var(--on-dark); text-shadow: 0 1px 10px rgba(25,21,20,.7); }
.hero__tag .tag__label { white-space: normal; }
.hero__lines { display: block; }
.hero__copy { position: relative; }
.hero__sub { text-shadow: 0 1px 18px rgba(25,21,20,.45); max-width: 36ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--on-dark-body); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.md-up { display: none; }
@media (min-width: 640px) { .md-up { display: inline; } }

/* "now showing" bar: tells the visitor every frame is a real project */
.reel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--hd-h) + 4px); z-index: 2;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px 12px;
  color: var(--on-dark);
}
.reel__tag { background: var(--amber); color: var(--ink); padding: 3px 7px 2px; font-weight: 600; }
.reel__count { display: none; color: var(--on-dark-body); white-space: nowrap; }
.reel__count b { color: var(--on-dark); font-weight: 600; }
.reel__label { text-shadow: 0 1px 12px rgba(25,21,20,.6); font-size: 0.9375rem; font-weight: 600; font-stretch: 104%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.35s; }
.reel__label.is-swap { opacity: 0; }
.reel__bar { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.reel__bar i { position: relative; height: 3px; background: rgba(243,239,232,.24); overflow: hidden; }
.reel__bar i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(var(--f, 0)); }
.reel__toggle {
  grid-column: 4; grid-row: 1; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--on-dark); border: 1px solid rgba(243,239,232,.32); background: rgba(25,21,20,.35);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.reel__toggle:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.reel__toggle .i { width: 16px; height: 16px; }
.reel__toggle .i-play { display: none; }
.reel.is-paused .reel__toggle .i-play { display: block; }
.reel.is-paused .reel__toggle .i-pause { display: none; }
.no-video .reel { display: none; }

@media (min-width: 1024px) {
  .hero { min-height: min(100svh, 980px); align-items: center; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(25,21,20,.9) 0%, rgba(25,21,20,.74) 28%, rgba(25,21,20,.3) 54%, rgba(25,21,20,0) 72%),
      linear-gradient(180deg, rgba(25,21,20,.55) 0%, rgba(25,21,20,0) 20%),
      linear-gradient(0deg, rgba(25,21,20,.7) 0%, rgba(25,21,20,0) 26%);
  }
  .hero__in { position: relative; padding-block: calc(var(--hd-h) + 48px) 120px; }
  .reel__count { display: inline; }
  .hero__copy { max-width: 660px; }
  .reel { top: auto; bottom: 36px; left: auto; right: var(--gutter); width: min(460px, 40vw); }
}
@media (min-width: 1024px) {
  .hero .h1 { font-size: clamp(2.75rem, min(1.55rem + 4.7vw, 11.5vh), 6.25rem); }
}
@media (min-width: 1024px) and (max-height: 760px) { .hero__in { padding-top: calc(var(--hd-h) + 24px); padding-bottom: 96px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .hero__in { padding-top: calc(var(--hd-h) + 70px); }
  .hero .h1 { font-size: 2.5rem; }
  .hero__sub { display: none; }
  .hero__actions { margin-top: 18px; }
}
@media (orientation: landscape) and (max-width: 1023px) {
  .hero__shade { background: linear-gradient(90deg, rgba(25,21,20,.9) 0%, rgba(25,21,20,.6) 45%, rgba(25,21,20,.2) 75%), linear-gradient(180deg, rgba(25,21,20,.55) 0%, rgba(25,21,20,0) 30%); }
}
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* ---------- Intro (who we are) ---------- */
.intro__grid { display: grid; gap: clamp(48px, 6vw, 96px); }
.intro__title { margin-bottom: 26px; }
.feats { display: grid; gap: 26px; margin-top: 36px; }
.feat { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.feat__ic { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); background: linear-gradient(225deg, transparent 0 9px, var(--amber) 0); }
.feat__ic .i { width: 26px; height: 26px; }
.feat h3 { margin-bottom: 6px; }
.feat p { font-size: 1rem; }
.intro__cta { margin-top: 36px; }
.duo { position: relative; padding: 0 0 18% 0; }
.duo__a { width: 74%; }
.duo__b { position: absolute; right: 0; bottom: 0; width: 56%; border: 8px solid var(--paper); }
.duo picture, .duo img { width: 100%; }
.duo__a img { aspect-ratio: 4 / 5; object-fit: cover; }
.duo__b img { aspect-ratio: 4 / 3; object-fit: cover; }
.duo figure { position: relative; }
.duo__cap { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 8px; padding: 5px 9px 4px; background: rgba(25,21,20,.84); color: var(--on-dark); }
.duo__cap::before { content: ""; width: 8px; height: 8px; background: var(--amber); transform: rotate(45deg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-strong); }
.fact { padding: 20px 20px 0 0; }
.fact__n { display: block; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.fact__l { display: block; margin-top: 10px; color: var(--muted); }
@media (min-width: 1024px) {
  .intro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .duo { margin-top: 8px; }
}

/* ---------- Services index (home) ---------- */
.svc__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.svc__grid { display: grid; gap: 0; }
.svc__list { border-top: 1px solid var(--line); counter-reset: svc; }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__btn { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px; width: 100%; text-align: left; padding: 24px 0; }
.svc__num { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.svc__name { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem); font-weight: 760; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); transition: color 0.3s, transform 0.45s var(--ease-out); }
.svc__arrow { width: 26px; height: 26px; color: var(--text); opacity: 0.35; transition: opacity 0.3s, transform 0.45s var(--ease-out); }
.svc__body { padding: 0 0 26px 56px; display: grid; gap: 16px; }
.svc__body p { max-width: 52ch; }
.svc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc__chips li { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; padding: 5px 10px; border: 1px solid var(--line-strong); color: var(--body); }
.svc__pic { display: block; }
.svc__pic img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc__media { display: none; }
.svc__more { margin-top: 32px; }
@media (min-width: 1024px) {
  .svc__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
  .svc__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .svc__item .svc__pic { display: none; }
  .svc__body { padding-left: 56px; }
  .svc__item:not(.is-active) .svc__body { display: none; }
  .svc__item.is-active .svc__name { color: var(--text); transform: translateX(10px); }
  .svc__item.is-active .svc__arrow { opacity: 1; transform: rotate(90deg); }
  .svc__item:not(.is-active) .svc__name { color: #8d857e; }
  .svc__btn:hover .svc__name { color: var(--text); }
  .svc__more { display: none; }
  .svc__media { display: block; position: sticky; top: calc(var(--hd-h) + 32px); }
  .svc__stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
  .svc__stage picture { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out); }
  .svc__stage picture.is-on { opacity: 1; transform: none; }
  .svc__stage img { width: 100%; height: 100%; object-fit: cover; }
  .svc__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); }
}

/* ---------- Details (callouts) ---------- */
.details__grid { display: grid; gap: clamp(40px, 5vw, 72px); }
.details__copy p { color: var(--on-dark-body); }
.co { position: relative; }
.co__frame { position: relative; }
.co__img img { width: 100%; }
.co__pins { position: absolute; inset: 0; }
.co__pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.co__dot {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--amber); border: 2px solid var(--amber);
  font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600;
  transform: scale(var(--s, 1)); transition: transform 0.5s var(--ease-out), background-color 0.25s, color 0.25s;
  cursor: default;
}
.co__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255,184,0,.55); animation: ping 2.8s var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * 0.35s); }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.co__lab { display: none; }
.co__legend { counter-reset: co; display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line-dark); }
.co__legend li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.co__legend b { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--amber); font-weight: 600; }
.co__legend span { font-size: 1rem; }
.co__legend em { display: block; font-style: normal; color: var(--on-dark-muted); font-size: 0.9375rem; }
@media (min-width: 1024px) {
  .details__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
  .co__legend { display: none; }
  .co__lab {
    display: block; position: absolute; top: -1px; white-space: nowrap; pointer-events: none;
    font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink); background: var(--on-dark); padding: 6px 10px 5px;
  }
  .co__lab::before { content: ""; position: absolute; top: 50%; height: 1px; width: 44px; background: var(--on-dark); }
  .co__pin--r .co__lab { left: 60px; transform: translateY(-50%); }
  .co__pin--r .co__lab::before { right: 100%; }
  .co__pin--l .co__lab { right: 60px; transform: translateY(-50%); }
  .co__pin--l .co__lab::before { left: 100%; }
  .co__lab { opacity: var(--lo, 1); transition: opacity 0.5s var(--ease-out); }
}

/* callout intro: pins pop, then labels draw in */
.js .co .co__dot { --s: 0; }
.js .co.is-in .co__dot { --s: 1; transition-delay: calc(0.25s + var(--i, 0) * 0.14s); }
.js .co .co__lab { --lo: 0; }
.js .co.is-in .co__lab { --lo: 1; transition-delay: calc(0.55s + var(--i, 0) * 0.14s); }

/* ---------- Category tiles (home) ---------- */
.cats__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4vw, 64px); }
.cats { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.cat { position: relative; display: block; overflow: hidden; background: var(--ink); color: var(--on-dark); isolation: isolate; }
.cat picture, .cat img { width: 100%; height: 100%; }
.cat img { object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1.1s var(--ease-out); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(25,21,20,.82), rgba(25,21,20,.1) 55%, transparent); z-index: 1; }
.cat__meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cat__name { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.75rem); font-weight: 760; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.05; }
.cat__count { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--on-dark-muted); white-space: nowrap; }
.cat:hover img { transform: scale(1.05); }
.cat--big { grid-column: span 2; }
@media (max-width: 899px) {
  .cat:not(.cat--big) .cat__meta { flex-direction: column; align-items: flex-start; gap: 2px; left: 12px; right: 12px; bottom: 12px; }
  .cat:not(.cat--big) .cat__name { font-size: 1.125rem; }
}
.cat--big img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .cats__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
  .cats { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 16px; }
  .cat img { aspect-ratio: auto; position: absolute; inset: 0; }
  .cat--big { grid-column: 1 / span 6; grid-row: 1 / span 2; min-height: 560px; }
  .cat--b { grid-column: 7 / span 3; grid-row: 1; }
  .cat--c { grid-column: 10 / span 3; grid-row: 1; }
  .cat--d { grid-column: 7 / span 3; grid-row: 2; }
  .cat--e { grid-column: 10 / span 3; grid-row: 2; }
  .cat__meta { left: 22px; right: 22px; bottom: 20px; }
}

/* ---------- Build sequence ---------- */
.seq { overflow: hidden; }
.seq__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.seq__rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 8px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.seq__rail::-webkit-scrollbar { display: none; }
.seq__step { flex: 0 0 82%; scroll-snap-align: start; }
.seq__img { position: relative; overflow: hidden; background: var(--ink-2); }
.seq__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.seq__no { position: absolute; top: 12px; left: 12px; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; color: var(--ink); background: var(--amber); padding: 3px 7px 2px; }
.seq__txt { padding-top: 16px; }
.seq__name { color: var(--on-dark); margin-bottom: 6px; }
.seq__note { color: var(--on-dark-body); font-size: 1rem; max-width: 40ch; }
.seq__track { position: relative; height: 28px; margin-top: 26px; }
.seq__track .dim { --dim-s: 1; }
.seq__dots { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: space-between; }
.seq__dots span { width: 8px; height: 8px; background: var(--ink-3); border: 1px solid rgba(243,239,232,.35); transform: rotate(45deg); transition: background-color 0.3s, border-color 0.3s; }
.seq__dots span.is-on { background: var(--amber); border-color: var(--amber); }
@media (min-width: 1024px) {
  .seq__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
  .seq.is-pinned .seq__rail { overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; gap: clamp(20px, 2vw, 32px); will-change: transform; }
  .seq.is-pinned { padding-block: clamp(48px, 7vh, 96px) clamp(24px, 4vh, 48px); }
  .seq.is-pinned .seq__head { margin-bottom: clamp(20px, 3vh, 40px); }
  .seq.is-pinned .seq__step { flex: 0 0 min(58vw, 820px, calc((100vh - 400px) * 1.5)); }
  .seq.is-pinned .seq__head .h2 { font-size: clamp(2.1rem, 1rem + 4.2vh, 4rem); }
  .seq__step { flex-basis: 46%; }
}

/* ---------- Process ---------- */
.proc__head { display: grid; gap: 18px; margin-bottom: clamp(44px, 5vw, 80px); }
.proc { position: relative; display: grid; gap: 0; counter-reset: step; }
.proc__line { position: absolute; left: 17px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.proc__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--pl, 0)); }
.step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 20px; padding-bottom: 36px; align-content: start; }
.step:last-child { padding-bottom: 0; }
.step__mk { position: relative; z-index: 1; width: 35px; height: 35px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; color: var(--text); transition: background-color 0.4s, border-color 0.4s; }
.step.is-on .step__mk { background: var(--amber); border-color: var(--amber); }
.step h3 { margin-bottom: 8px; padding-top: 4px; }
.step p { max-width: 46ch; font-size: 1rem; }
.step__ic { display: none; }
@media (min-width: 1024px) {
  .proc__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
  .proc { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .proc__line { left: 0; right: 0; top: 17px; bottom: auto; width: auto; height: 1px; }
  .proc__line i { transform-origin: left; transform: scaleX(var(--pl, 0)); }
  .step { grid-template-columns: 1fr; gap: 22px; padding: 0; }
  .step__ic { display: block; width: 32px; height: 32px; color: var(--muted); margin-top: 6px; }
}

/* ---------- Quotes ---------- */
.quotes__head { margin-bottom: clamp(40px, 5vw, 72px); }
.quotes { display: grid; gap: 18px; }
.quote { position: relative; padding: 30px 26px 26px; background: var(--paper); display: flex; flex-direction: column; gap: 22px; }
.quote__mark { width: 38px; height: 38px; color: var(--amber); }
.quote blockquote p { font-size: 1.125rem; line-height: 1.55; color: var(--text); font-weight: 450; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote__mono { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-weight: 760; font-stretch: 112%; color: var(--ink); background: linear-gradient(225deg, transparent 0 8px, var(--amber) 0); letter-spacing: 0.02em; }
.quote__who { display: grid; }
.quote__who span:first-child { color: var(--text); font-weight: 650; }
.quote__who span:last-child { color: var(--muted); font-size: 0.9375rem; }
.profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.profiles p { color: var(--muted); }
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .quote { padding: 36px 32px 30px; }
}

/* ---------- Post cards ---------- */
.posts__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(36px, 4vw, 60px); }
.posts { display: grid; gap: 34px; }
.post { display: grid; gap: 16px; align-content: start; }
.post__img { overflow: hidden; background: var(--line); }
.post__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease-out); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { display: flex; gap: 14px; color: var(--muted); }
.post__title { color: var(--text); }
.post__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease-out); }
.post:hover .post__title a { background-size: 100% 1px; }
.post__title a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- Instagram strip ---------- */
.ig__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ig__head .h3 a { color: var(--text); }
.ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig a { position: relative; display: block; overflow: hidden; background: var(--line); }
.ig img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.9s var(--ease-out), opacity 0.3s; }
.ig a:hover img { transform: scale(1.06); }
.ig a::after { content: ""; position: absolute; inset: 0; background: rgba(25,21,20,.0); transition: background-color 0.3s; }
.ig a:hover::after { background: rgba(25,21,20,.18); }
@media (min-width: 900px) { .ig { grid-template-columns: repeat(6, 1fr); gap: 8px; } }

/* ---------- CTA (amber band) ---------- */
.cta { background: var(--amber); color: var(--ink); overflow: hidden; }
.cta__in { display: grid; gap: 40px; padding-block: clamp(72px, 9vw, 136px); align-items: center; }
.cta .h2 { color: var(--ink); margin-bottom: 20px; }
.cta p { color: rgba(25,21,20,.82); max-width: 44ch; font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); border-bottom: 1px solid rgba(25,21,20,.4); padding-bottom: 3px; }
.cta__phone .i { width: 20px; height: 20px; }
.cta .cta__hours { max-width: none; }
.cta__hours { margin-top: 22px; font-family: var(--f-mono); font-size: 0.8125rem !important; letter-spacing: 0.04em; text-transform: uppercase; }
.portal { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.portal__mask { position: absolute; inset: 0; -webkit-mask: url("/assets/brand/mark.svg") center / contain no-repeat; mask: url("/assets/brand/mark.svg") center / contain no-repeat; overflow: hidden; }
.portal__mask picture, .portal__mask img { width: 100%; height: 100%; }
.portal__mask img { object-fit: cover; transform: scale(var(--pz, 1.12)); transition: transform 0.2s linear; }
.portal__dim { position: absolute; left: 0; right: 0; bottom: -40px; --dim-c: rgba(25,21,20,.45); color: rgba(25,21,20,.75); }
@media (min-width: 900px) {
  .cta__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
}

/* ---------- Footer · title block ---------- */
.ft { background: var(--ink); color: var(--on-dark-body); padding-top: clamp(64px, 7vw, 104px); font-size: 1rem; }
.ft__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-bottom: clamp(48px, 5vw, 72px); }
.ft__brand, .ft__col--office { grid-column: 1 / -1; }
.ft__brand img { width: 168px; }
.ft__brand p { margin-top: 18px; max-width: 32ch; color: var(--on-dark-muted); }
.ft__col h2 { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
.ft__col ul { list-style: none; padding: 0; margin: 0; }
.ft__col li + li { margin-top: 8px; }
.ft__col a { color: var(--on-dark); transition: color 0.25s; }
.ft__col a:hover { color: var(--amber); }
.ft__col address { font-style: normal; color: var(--on-dark); }
.ft__col p { color: var(--on-dark-body); }
.ft__social { display: flex; gap: 10px; margin-top: 20px; }
.ft__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.ft__social a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.ft__social .i { width: 20px; height: 20px; }
.tb { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); }
.tb__cell { padding: 12px 14px 13px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); display: grid; gap: 4px; min-width: 0; }
.tb__k { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.tb__v { color: var(--on-dark); font-weight: 600; font-stretch: 104%; line-height: 1.3; overflow-wrap: anywhere; }
.tb__cell--wide { grid-column: 1 / -1; }
.tb__cell--mark { display: none; place-items: center; }
.tb__cell--mark svg { width: 34px; height: 34px; }
.tb__cell:nth-child(2n) { border-right: 0; }
.ft__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 22px 32px; color: var(--on-dark-muted); font-size: 0.9375rem; }
.ft__legal a { color: var(--on-dark); }
.ft__legal a:hover { color: var(--amber); }
@media (min-width: 900px) {
  .ft__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .ft__brand, .ft__col--office { grid-column: auto; }
  .tb { grid-template-columns: 2.2fr 1.3fr 1.3fr 0.7fr 0.7fr 0.6fr; }
  .tb__cell { border-bottom: 0; }
  .tb__cell--wide { grid-column: auto; }
  .tb__cell--mark { display: grid; }
  .tb__cell:nth-child(2n) { border-right: 1px solid var(--line-dark); }
  .tb__cell:last-child { border-right: 0; }
}

/* ---------- Inner page hero ---------- */
.ph { background: var(--ink); color: var(--on-dark-body); padding-top: calc(var(--hd-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 112px); position: relative; overflow: hidden; }
.ph__grid { display: grid; gap: 40px; align-items: end; }
.ph__crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--on-dark-muted); margin-bottom: 26px; }
.ph__crumbs a:hover { color: var(--on-dark); }
.ph__crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.ph .h1 { margin-bottom: 24px; }
.ph__img { position: relative; }
.ph__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1024px) {
  .ph__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 88px); }
}

/* ---------- Generic two-col content ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split .sticky { position: sticky; top: calc(var(--hd-h) + 32px); }
}

/* story timeline (who we are) */
.story { position: relative; display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 6px; }
.story__item { position: relative; padding: 0 0 40px 34px; }
.story__item:last-child { padding-bottom: 0; }
.story__item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; background: var(--paper); border: 1px solid var(--ink); transform: rotate(45deg); }
.story__item.is-now::before { background: var(--amber); border-color: var(--amber); }
.story__k { display: block; color: var(--muted); margin-bottom: 8px; }
.story__item h3 { margin-bottom: 8px; }

.mv { display: grid; gap: 18px; }
.mv__card { background: var(--ink); color: var(--on-dark-body); padding: clamp(28px, 3.5vw, 48px); }
.mv__card .h3 { color: var(--on-dark); margin: 0 0 14px; }
.mv__card p { font-size: 1.125rem; line-height: 1.6; }
@media (min-width: 900px) { .mv { grid-template-columns: 1fr 1fr; } }

.values { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.value { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.value .i { width: 30px; height: 30px; color: var(--text); margin-top: 2px; }
.value h3 { margin-bottom: 6px; }
@media (min-width: 900px) {
  .values { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- Services page ---------- */
.jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color 0.25s, color 0.25s; }
.jump a:hover { background: var(--on-dark); color: var(--ink); }
.sblock__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
.sblock__media { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.sblock__media picture:first-child { grid-column: 1 / -1; }
.sblock__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.sblock__media picture:first-child img { aspect-ratio: 16 / 10; }
.items { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.items li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.items .i { width: 22px; height: 22px; color: var(--text); margin-top: 3px; }
.items h3 { font-size: 1.0625rem; font-weight: 700; font-stretch: 104%; color: var(--text); margin-bottom: 4px; letter-spacing: -0.005em; }
.items p { font-size: 1rem; }
.checks { display: grid; gap: 10px; margin-top: 18px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks .i { width: 20px; height: 20px; color: var(--ink); background: var(--amber); padding: 3px; margin-top: 3px; }
.subhead { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 34px; }
.pull { padding-block: clamp(56px, 7vw, 104px); }
.pull p { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem); line-height: 1.15; font-weight: 720; font-stretch: 108%; letter-spacing: -0.025em; color: var(--on-dark); max-width: 26ch; }
@media (min-width: 1024px) {
  .sblock__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .sblock--rev .sblock__grid > :first-child { order: 2; }
  .sblock__media { position: sticky; top: calc(var(--hd-h) + 32px); }
}

/* ---------- Projects page ---------- */
.filter { position: sticky; top: var(--hd-h); z-index: 40; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); transition: top 0.45s var(--ease-out); }
@supports (backdrop-filter: blur(1px)) { .filter { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.filter.is-top { top: 0; }
.filter__in { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.filter__in::-webkit-scrollbar { display: none; }
.filter button { flex: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 9px 13px; border: 1px solid var(--line-strong); color: var(--body); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.filter button span { color: var(--muted); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.filter button[aria-pressed="true"] span { color: var(--amber); }
.gblock { padding-block: clamp(56px, 6vw, 96px) 0; scroll-margin-top: calc(var(--hd-h) + 70px); }
.gblock[hidden] { display: none; }
.gblock__head { display: grid; gap: 14px; margin-bottom: 28px; }
.gblock__head p { max-width: 64ch; }
.gallery { columns: 2; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin-bottom: 10px; break-inside: avoid; position: relative; overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform 0.9s var(--ease-out); }
.gallery button:hover img { transform: scale(1.035); }
.gallery button::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left; color: var(--on-dark); font-size: 0.9375rem; font-weight: 560; background: linear-gradient(to top, rgba(25,21,20,.75), transparent); opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; transform: none; }
@media (min-width: 900px) { .gallery { columns: 3; column-gap: 14px; } .gallery button { margin-bottom: 14px; } }
@media (min-width: 1280px) { .gallery { columns: 4; } }
.feature { padding-block: var(--sec); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 160; background: rgba(17,14,13,.97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.lb__top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); color: var(--on-dark-muted); }
.lb__close { display: inline-flex; align-items: center; gap: 8px; height: 44px; color: var(--on-dark); font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.lb__close .i { width: 22px; height: 22px; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lb__stage picture { display: contents; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; color: var(--on-dark); background: rgba(25,21,20,.6); border: 1px solid var(--line-dark); }
.lb__nav:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lb__nav .i { width: 22px; height: 22px; }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
.lb__cap { padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom)); color: var(--on-dark); text-align: center; font-size: 1rem; }

/* ---------- Contact ---------- */
.ct__grid { display: grid; gap: clamp(44px, 5vw, 88px); }
.ct__info { display: grid; gap: 28px; align-content: start; }
.ct__row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ct__row .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--text); }
.ct__row .ic .i { width: 22px; height: 22px; }
.ct__row a { color: var(--text); font-weight: 600; }
.ct__row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct__row address { font-style: normal; color: var(--text); font-weight: 600; }
.form { background: var(--paper); padding: clamp(24px, 3.5vw, 48px); position: relative; }
.form__grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field .lbl { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.field label span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-sans); color: var(--text); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 0; padding: 14px 14px; min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,184,0,.55); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: 0.9375rem; min-height: 0; }
.field__err:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 0.9375rem; color: var(--muted); margin-top: 6px; }
.form__status { margin-top: 18px; padding: 16px 18px; font-size: 1rem; display: none; }
.form__status.is-ok { display: block; background: var(--ink); color: var(--on-dark); }
.form__status.is-err { display: block; background: #fbeae8; color: #7d1d17; border: 1px solid #e8b4ae; }
.form__status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.form.is-sent .form__grid { display: none; }
.map { position: relative; aspect-ratio: 16 / 9; background: var(--paper); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ct__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }

/* ---------- Article ---------- */
.art { padding-block: clamp(48px, 6vw, 96px) var(--sec); }
.art__grid { display: grid; gap: 48px; }
.art__body { font-size: 1.125rem; line-height: 1.75; color: var(--body); max-width: 68ch; }
.art__body > * + * { margin-top: 1.15em; }
.art__body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; font-weight: 760; font-stretch: 108%; letter-spacing: -0.02em; color: var(--text); margin-top: 2em; }
.art__body h3 { font-size: 1.25rem; font-weight: 720; color: var(--text); margin-top: 1.6em; }
.art__body ul, .art__body ol { padding-left: 1.2em; }
.art__body li + li { margin-top: 0.5em; }
.art__body li::marker { color: var(--muted); }
.art__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.art__body .callout-box { background: var(--paper); padding: 22px 24px; border-left: 4px solid var(--amber); }
.art__aside { display: grid; gap: 18px; align-content: start; }
.art__card { background: var(--ink); color: var(--on-dark-body); padding: 28px; }
.art__card .h3 { color: var(--on-dark); margin-bottom: 12px; }
.art__card .btn { margin-top: 20px; }
.art__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--on-dark-muted); margin-top: 6px; }
.art__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1024px) { .art__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 72px; } .art__aside { position: sticky; top: calc(var(--hd-h) + 32px); } }

/* ---------- Legal ---------- */
.legal { padding-block: clamp(48px, 6vw, 96px) var(--sec); }
.legal .art__body h2 { margin-top: 1.6em; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-items: center; background: var(--ink); color: var(--on-dark-body); padding-top: var(--hd-h); position: relative; overflow: hidden; }
.nf__bg { position: absolute; inset: 0; opacity: 0.35; }
.nf__bg img { width: 100%; height: 100%; object-fit: cover; }
.nf__in { position: relative; padding-block: 64px; }
.nf .h1 { margin-bottom: 22px; }

/* ---------- Preview banner (vercel preview only) ---------- */
.pv { transition: opacity 0.4s; cursor: pointer; position: fixed; left: 12px; bottom: 12px; z-index: 130; background: var(--ink); color: var(--on-dark); border: 1px solid var(--amber); padding: 8px 12px; font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.04em; }
.pv b { color: var(--amber); }

/* ---------- Reveal motion ---------- */
.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--rd, 0) * 90ms); }
.js [data-rv].is-in { opacity: 1; transform: none; }
.js [data-rv="fade"] { transform: none; }
.js [data-rv="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io); }
.js [data-rv="clip"].is-in { clip-path: inset(0 0 0 0); }
.js .tag[data-rv] .tag__rule { transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.2s; }
.js .tag[data-rv].is-in .tag__rule { transform: scaleX(1); }
.js .dim[data-rv] { --dim-s: 0; opacity: 1; transform: none; }
.js .dim[data-rv].is-in { --dim-s: 1; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-mask > span { display: block; }
.js .hero__title .line-mask > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(0.15s + var(--l, 0) * 0.09s); }
.js .is-ready .hero__title .line-mask > span { transform: none; }
.js .hero [data-hero] { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(0.45s + var(--d, 0) * 0.08s); }
.js .is-ready .hero [data-hero], .js .hero.is-ready [data-hero] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-rv], .js [data-rv="clip"] { opacity: 1; transform: none; clip-path: none; }
  .co__dot::after { display: none; }
}
.noanim [data-rv], .noanim .hero__title .line-mask > span, .noanim .hero [data-hero] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

/* dictionary definition card (who we are) */
.defn { margin-top: 32px; background: var(--white); border: 1px solid var(--line); padding: 26px 26px 22px; position: relative; }
.defn::before { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--paper) 0 50%, var(--line) 50% calc(50% + 1px), transparent 0); }
.defn__word { font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.defn__word::after { content: " (n.)"; font-family: var(--f-mono); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.defn__list { margin-top: 16px; display: grid; gap: 10px; }
.defn__list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; color: var(--body); }
.defn__list .mono { color: var(--muted); padding-top: 3px; }

/* contact hero quick links */
.ph__quick { display: grid; gap: 12px; align-self: end; }
.ph__quick a { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color 0.25s, border-color 0.25s; overflow-wrap: anywhere; }
.ph__quick a:hover { background: var(--ink-2); border-color: var(--amber); }
.ph__quick .i { width: 52px; height: 52px; padding: 13px; color: var(--ink); background: linear-gradient(225deg, transparent 0 9px, var(--amber) 0); }
.ph__quick small { display: block; color: var(--on-dark-muted); font-size: 0.8125rem; margin-bottom: 2px; }
.ph__quick span { font-size: 1rem; letter-spacing: 0.02em; text-transform: none; }
.ct__row p.mono { color: var(--muted); margin-bottom: 4px; }

/* blog post */
.h1--post { font-size: clamp(2.1rem, 1.25rem + 3.2vw, 4.25rem); line-height: 1.02; max-width: 22ch; }
.art__cover { margin-bottom: 8px; }
.art__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.art__more { display: grid; gap: 12px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.art__more p { color: var(--muted); }
.art__more a { color: var(--text); font-weight: 650; font-stretch: 104%; line-height: 1.35; }
.art__more a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.art__card p { color: var(--on-dark-body); }
.legal .art__body { margin-inline: auto; }

/* detail study (projects) */
@media (min-width: 1024px) {
  .details__grid.study { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .co--tall { width: 100%; max-width: 520px; justify-self: end; }
}
.map { max-height: 440px; }
@media (max-width: 639px) { .ph__quick span { font-size: 0.875rem; letter-spacing: 0; } .ph__quick a { padding: 14px; gap: 12px; } }
