/* ============================================================
   LAYER NINE — shared design system
   Depth Field visual language: dark ground, Bricolage Grotesque
   display type, Archivo body/UI, IBM Plex Mono labels, teal accent.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0a0a0a;
  color: #e2ddd6;
  font-family: Archivo, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: #35858E; text-decoration: none; transition: color .3s ease; }
a:hover { color: #e2ddd6; }
ul { list-style: none; }
::selection { background: #35858E; color: #0a0a0a; }
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', Archivo, Helvetica, sans-serif; font-weight: 700; line-height: 1; }
button, input, select, textarea { font-family: inherit; }

:root {
  --bg: #0a0a0a;
  --bg-raised: #0f0f0f;
  --bg-panel: #131313;
  --fg: #e2ddd6;
  --fg-85: rgba(226,221,214,.85);
  --fg-70: rgba(226,221,214,.7);
  --fg-58: rgba(226,221,214,.58);
  --fg-42: rgba(226,221,214,.42);
  --fg-30: rgba(226,221,214,.3);
  --fg-14: rgba(226,221,214,.14);
  --fg-08: rgba(226,221,214,.08);
  --accent: #35858E;
  --accent-bright: #4ba3ad;
  --accent-dim: rgba(53,133,142,.12);
  --pad: clamp(20px, 5vw, 80px);
  --nav-h: 76px;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --display: 'Bricolage Grotesque', Archivo, Helvetica, sans-serif;
}

/* ---------- grain overlay ---------- */
.ln-grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .5; mix-blend-mode: soft-light;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2"/></filter><rect width="140" height="140" filter="url(%23n)"/></svg>');
}

/* ---------- top nav (shared across every page) ---------- */
.ln-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad);
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-70); background: rgba(10,10,10,.72); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fg-08);
}
.ln-logo { display: flex; align-items: center; gap: 14px; color: var(--fg); flex-shrink: 0; }
.ln-logo-mark { width: 27px; height: 27px; border: 2px solid var(--accent); position: relative; flex: 0 0 auto; }
.ln-logo-mark::after { content: ''; position: absolute; inset: 5px; background: var(--accent); }
.ln-logo-word { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: 0; white-space: nowrap; }
.ln-logo-accent { color: var(--accent); }
.ln-nav-links { display: flex; gap: 26px; align-items: center; }
.ln-nav-links a { font-weight: 600; }
.ln-nav-links a.current { color: var(--fg); }
.ln-nav-links a.current::after { content: ''; display: block; height: 1px; background: var(--accent); margin-top: 4px; }
.ln-nav-cta { border: 1px solid var(--accent); background: var(--accent); color: var(--bg) !important; padding: 9px 16px; }
.ln-nav-cta:hover { background: transparent; color: var(--accent) !important; }
.ln-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.ln-burger span { width: 20px; height: 1.5px; background: var(--fg); display: block; }
.ln-mobile-panel {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 490;
  background: var(--bg); flex-direction: column; padding: calc(var(--nav-h) + 20px) var(--pad) 40px;
  gap: 22px; overflow-y: auto;
}
.ln-mobile-panel.open { display: flex; }
.ln-mobile-panel a { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-70); }
.ln-mobile-panel a.current { color: var(--accent-bright); }

/* ---------- HUD side index (home page only) ---------- */
#ln-hud {
  position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 400;
  display: flex; flex-direction: column; gap: 11px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
}
#ln-hud a { display: flex; align-items: center; gap: 9px; justify-content: flex-end; color: var(--fg-30); }
#ln-hud a span { width: 14px; height: 1px; background: currentColor; transition: width .6s cubic-bezier(.16,1,.3,1); }
#ln-hud a.active { color: var(--accent-bright); }
#ln-hud a.active span { width: 32px; }

/* ---------- generic section scaffolding ---------- */
main { position: relative; z-index: 2; }
.ln-persp { perspective: 1500px; perspective-origin: 50% 45%; }
section[data-screen-label] { position: relative; transform-style: preserve-3d; }
[data-plane] { transform-style: preserve-3d; will-change: transform, opacity; }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eyebrow.muted { color: var(--fg-38, rgba(226,221,214,.38)); }
.page-hero { padding: calc(var(--nav-h) + 64px) var(--pad) 60px; border-bottom: 1px solid var(--fg-08); }
.page-title { margin: 22px 0 0; font-size: clamp(38px, 6vw, 96px); font-weight: 700; line-height: .96; letter-spacing: -.045em; text-transform: uppercase; }
.page-sub { margin-top: 20px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.6; color: var(--fg-70); max-width: 40em; }

.ln-section { position: relative; padding: clamp(60px, 8vw, 120px) var(--pad); border-bottom: 1px solid var(--fg-08); }
.ln-section:last-of-type { border-bottom: none; }
.ln-section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(28px, 3.6vw, 48px); }

/* ---------- binary sweep — brief scroll-triggered transition between homepage sections ---------- */
.binary-sweep { position: absolute; top: 0; left: 0; right: 0; height: clamp(70px, 9vw, 110px); overflow: hidden; pointer-events: none; z-index: 3; transform: translateY(-50%); }
.binary-sweep-track {
  position: absolute; top: 0; left: -20%; width: 140%; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
  opacity: 0; transform: translateX(-45%);
}
.binary-sweep-track .bit {
  display: inline-block; margin: 0 clamp(10px, 1.4vw, 18px);
  font-family: var(--mono); font-weight: 500; font-size: clamp(30px, 4.6vw, 46px); line-height: 1;
  color: var(--accent);
}
.binary-sweep.play .binary-sweep-track { animation: binarySweep 420ms ease-out; }
.binary-sweep.play .binary-sweep-track .bit:nth-child(odd) { animation: bitTumbleCW 420ms linear; }
.binary-sweep.play .binary-sweep-track .bit:nth-child(even) { animation: bitTumbleCCW 420ms linear; }
@keyframes binarySweep {
  0%   { opacity: 0;   transform: translateX(-45%); }
  18%  { opacity: .38; }
  82%  { opacity: .38; }
  100% { opacity: 0;   transform: translateX(45%); }
}
@keyframes bitTumbleCW { from { transform: rotate(0deg); } to { transform: rotate(540deg); } }
@keyframes bitTumbleCCW { from { transform: rotate(0deg); } to { transform: rotate(-540deg); } }
@media (prefers-reduced-motion: reduce) {
  .binary-sweep { display: none; }
}
.h-section { font-size: clamp(30px, 4.2vw, 62px); font-weight: 700; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 14px 22px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--fg-30); color: var(--fg); transition: all .3s ease; cursor: pointer; background: none; }
.btn:hover { border-color: var(--accent); color: var(--fg); }
.btn-fill { border-color: var(--accent); background: var(--accent); color: var(--bg) !important; }
.btn-fill:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-fill:disabled { opacity: .5; cursor: not-allowed; }
.link-underline { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 6px; display: inline-block; color: var(--fg); }
.link-underline:hover { color: var(--accent-bright); }

/* ---------- tag / chip ---------- */
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--fg-08); padding: 6px 12px; color: var(--fg-30); display: inline-block; }
.tag.ac { border-color: rgba(75,163,173,.4); color: var(--accent-bright); }

/* ---------- image slot (static picture wrapper) ---------- */
.slot { position: relative; overflow: hidden; background: var(--bg-panel); }
.slot picture, .slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-tag { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); background: rgba(10,10,10,.55); padding: 3px 7px; pointer-events: none; }
.slot-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, var(--bg-panel), var(--bg-panel) 10px, #171717 10px, #171717 20px);
  color: var(--fg-30); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 16px;
}

/* ---------- footer ---------- */
footer { padding: 56px var(--pad) 36px; background: var(--bg-raised); border-top: 1px solid var(--fg-08); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 36px; }
.footer-brand-name { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: .04em; margin-bottom: 12px; text-transform: uppercase; }
.footer-brand p { font-size: 13px; color: var(--fg-30); line-height: 1.8; max-width: 320px; }
.f-links { display: flex; flex-wrap: wrap; gap: 28px; }
.f-links-col { display: flex; flex-direction: column; gap: 10px; }
.f-links-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-30); margin-bottom: 4px; }
.f-links-col a { font-size: 13px; color: var(--fg-58); }
.f-links-col a:hover { color: var(--accent-bright); }
.footer-bottom { border-top: 1px solid var(--fg-08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 11px; color: var(--fg-30); letter-spacing: .04em; }

/* ---------- reveal-on-scroll ---------- */
[data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1); }
[data-rise].in { opacity: 1; transform: none; }

/* ---------- homepage section reveal ----------
   A "rack focus" reveal, one per section: it arrives soft, small, and low —
   like a lens pulling focus onto the next shot — then sharpens into place.
   Distinct from [data-rise] above (which staggers individual elements on
   other pages): here the whole section is the unit. */
[data-section-rise] {
  opacity: 0;
  transform: translateY(46px) scale(.95);
  filter: blur(10px) saturate(.6);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform, filter;
}
[data-section-rise].in { opacity: 1; transform: none; filter: blur(0) saturate(1); }

/* ============================================================
   HOME — hero (full-bleed media drop zone)
   ============================================================ */
/* The hero video is a finished reel with its own titles/logo/timecode baked in
   right up to the frame edges. The box is sized to the video's own 16:9 so it
   never needs cropping (which would slice into that on-screen text) — and the
   page's own headline lives in normal flow below it instead of overlaid on
   top, so the two don't compete for the same space. */
.hero-media { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--bg-panel); overflow: hidden; }
.hero-media.has-media { }
.hero-media-bg { position: absolute; inset: 0; z-index: 0; }
.hero-media-bg img, .hero-media-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-copy { padding: clamp(32px,5vw,64px) var(--pad); max-width: 46em; }

.hero-media-empty { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px 24px; }
.hero-media.has-media .hero-media-empty { display: none; }
.hero-media-icon { width: 44px; height: 44px; border: 1.5px solid var(--fg-30); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--fg-30); }
.hero-media-copy { font-size: 14px; color: var(--fg-50, rgba(226,221,214,.5)); max-width: 32em; }
.hero-media-sub { font-size: 14px; color: var(--fg-42); }
.hero-browse { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; background: none; border: none; cursor: pointer; font: inherit; padding: 0; }
.hero-browse:hover { color: var(--accent-bright); }

.hero-h1-2 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.hero-h1-2 .acc { color: var(--accent-bright); }
.hero-sub-2 { margin-top: 18px; font-size: clamp(15px,1.25vw,19px); line-height: 1.55; color: var(--fg-70); max-width: 36em; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px,3vw,38px); }

/* Visible pause/play control for the hero video — always present (not a
   hover-reveal), so it works the same on touch and keyboard. */
.hero-toggle { position: absolute; z-index: 2; right: clamp(14px,2vw,20px); bottom: clamp(14px,2vw,20px); display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-70); border: 1.5px solid var(--fg-30); border-radius: 6px; padding: 10px 16px; background: rgba(10,10,10,.4); cursor: pointer; }
.hero-toggle:hover, .hero-toggle:focus-visible { border-color: var(--accent-bright); color: var(--fg); }

/* ---------- generic dashed media placeholder (interior page headers) ----------
   Same visual language as the homepage hero's empty state, sized for a fixed
   banner rather than a full viewport — used at the top of pages that don't
   have a real header image yet. */
.media-placeholder { position: relative; width: 100%; height: clamp(260px, 34vw, 400px); border: 1.5px dashed var(--fg-18, rgba(226,221,214,.18)); border-radius: 10px; background: var(--bg-panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.media-placeholder .icon { width: 44px; height: 44px; border: 1.5px solid var(--fg-30); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--fg-30); }
.media-placeholder .label { font-size: 14px; color: var(--fg-50, rgba(226,221,214,.5)); max-width: 32em; }

/* ---------- about split ---------- */
.about-copy { font-family: var(--display); font-size: clamp(28px,4.6vw,80px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; max-width: 23em; }
.about-copy .dim { display: block; color: var(--fg-34, rgba(226,221,214,.34)); }
.about-copy .acc { color: var(--accent); }
.stat-grid { margin-top: clamp(46px,6vw,96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1px; background: var(--fg-14); }
.stat-cell { background: var(--bg); padding: 26px 24px; }
.stat-cell .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--fg-42); text-transform: uppercase; }
.stat-cell .v { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--fg-85); }

/* ---------- services / disciplines list ---------- */
.disc-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; border-top: 1px solid var(--fg-14); padding: clamp(20px,2.6vw,34px) 0; }
.disc-row .inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(16px,3vw,48px); }
.disc-n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--fg-38, rgba(226,221,214,.38)); min-width: 34px; }
.disc-title { font-size: clamp(26px,4vw,64px); font-weight: 600; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; flex: 1 1 320px; }
.disc-body { flex: 1 1 300px; max-width: 30em; font-size: clamp(15px,1.15vw,18px); line-height: 1.55; color: var(--fg-58); }
.disc-list-end { border-top: 1px solid var(--fg-14); }

/* ---------- work slider (home) ----------
   Cards keep their exact prior sizing/styling (.work-tile, .slot, etc. are
   unchanged below) — only the container changed, from a CSS grid to a
   horizontally scrolling, scroll-snapping row, so it scales cleanly as more
   projects are added later instead of the columns shrinking to fit. */
.work-slider-wrap { position: relative; }
.work-slider {
  display: flex; gap: clamp(16px,2vw,32px); align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 2px 2px 6px; margin: -2px -2px -6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.work-slider::-webkit-scrollbar { display: none; }
.work-slider .work-tile { flex: 0 0 min(780px, 82vw); scroll-snap-align: start; }
.work-tile { display: block; position: relative; }
.work-tile .slot { aspect-ratio: 4/5; border: 1px solid var(--fg-14); }
.work-tile .wt-tag { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--fg-42); }
.work-tile h3 { position: relative; margin: 8px 0 0; font-size: clamp(22px,2.1vw,34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; text-transform: none; }
.work-tile p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--fg-50, rgba(226,221,214,.5)); }
/* Stretched-link pattern: the tile title is the real link, and its ::after
   extends the click target over the whole card — lets a separate, genuinely
   interactive control (the video-preview button) sit in the same card
   without nesting interactive elements inside an <a>. */
.wt-stretch-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Arrow controls — real buttons, hidden (not just disabled-looking) at each
   end so they never invite a click that does nothing. */
.work-slider-arrow {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--fg-14); background: rgba(10,10,10,.7); backdrop-filter: blur(6px);
  color: var(--fg); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .3s ease, opacity .3s ease, visibility .3s ease;
}
.work-slider-arrow svg { width: 18px; height: 18px; }
.work-slider-arrow:hover { border-color: var(--accent-bright); }
.work-slider-arrow:disabled { opacity: 0; visibility: hidden; pointer-events: none; }
.work-slider-arrow.prev { left: clamp(-8px, -1.5vw, -22px); }
.work-slider-arrow.next { right: clamp(-8px, -1.5vw, -22px); }
@media (max-width: 760px) {
  .work-slider-arrow { display: none; }
  .work-slider .work-tile { flex-basis: 88vw; }
}

/* Selected-work hover/tap video preview (SKAI only — the one project with
   real video assets). Poster image is the real content; the clip is a
   muted, looped extra that only loads on request. */
.wt-preview { position: relative; }
.wt-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.wt-preview.playing .wt-video { opacity: 1; }
.wt-play {
  position: absolute; z-index: 5; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-70);
  background: rgba(10,10,10,.55); backdrop-filter: blur(4px); border: 1px solid var(--fg-14); border-radius: 6px;
  padding: 8px 12px; cursor: pointer; transition: border-color .3s ease, color .3s ease;
}
.wt-play:hover, .wt-play:focus-visible { border-color: var(--accent-bright); color: var(--fg); }
.wt-preview.playing .wt-play-label::before { content: "Pause"; }
.wt-preview:not(.playing) .wt-play-label::before { content: "Play"; }
.wt-play-label { font-size: 0; }
.wt-play-label::before { font-size: 10px; }

/* ---------- format grid ("one idea, many expressions") ---------- */
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: clamp(16px,2vw,28px); }
.format-tile .slot { aspect-ratio: 4/5; border: 1px solid var(--fg-14); }
.format-tile .wt-tag { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--fg-42); }
.format-tile h4 { margin: 6px 0 0; font-size: clamp(17px,1.3vw,20px); font-weight: 600; letter-spacing: -.01em; text-transform: none; }

/* ---------- capability groups (home) ---------- */
.cap-group { margin-top: clamp(40px,5vw,64px); }
.cap-group:first-of-type { margin-top: 0; }
.cap-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.cap-group-n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.cap-group-title { font-size: clamp(20px,1.8vw,28px); font-weight: 600; letter-spacing: -.02em; }

/* ---------- process grid ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1px; background: var(--fg-14); border-top: 1px solid var(--fg-14); }
.proc-cell { background: var(--bg); padding: clamp(22px,2.4vw,34px) clamp(18px,2vw,28px) clamp(34px,4vw,54px); }
.proc-cell h3 { margin: 20px 0 0; font-size: clamp(22px,2vw,32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; text-transform: none; }
.proc-cell p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-58); }

/* ---------- offer grid ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1px; background: var(--fg-08); border: 1px solid var(--fg-08); }
.offer-cell { background: var(--bg); padding: 28px 24px; }
.offer-cell .n { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }
.offer-cell .t { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.offer-cell .b { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--fg-58); }

/* ---------- contact chat widget ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1px; background: var(--fg-14); border: 1px solid var(--fg-14); }
.contact-panel { background: var(--bg-panel); padding: clamp(24px,3vw,40px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 11px 16px; border: 1px solid var(--fg-14); cursor: pointer; transition: all .3s ease; background: transparent; color: var(--fg-70); }
.chip:hover, .chip.active { border-color: var(--accent); }
.chip.active { background: var(--accent); color: var(--bg); }
.summary-lines { margin-top: 28px; display: flex; flex-direction: column; gap: 1px; background: var(--fg-08); }
.summary-line { background: var(--bg-panel); display: flex; gap: 18px; padding: 13px 0; }
.summary-line .n { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--fg-30); min-width: 60px; padding-top: 4px; }
.summary-line .t { font-size: clamp(14px,1.1vw,17px); line-height: 1.4; letter-spacing: -.01em; color: var(--fg-70); }
.chat-panel { background: var(--bg); display: flex; flex-direction: column; min-height: clamp(380px,50vh,480px); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px,2.4vw,28px); overflow-y: auto; max-height: 420px; }
.chat-msg { max-width: min(84%,480px); border: 1px solid var(--fg-14); padding: 13px 16px; font-size: 14px; line-height: 1.5; letter-spacing: -.005em; background: var(--bg-panel); color: var(--fg); }
.chat-msg.you { align-self: flex-end; background: var(--accent); color: var(--bg); border-color: var(--accent); }
.chat-input-row { display: flex; align-items: flex-end; gap: 10px; border-top: 1px solid var(--fg-14); padding: clamp(14px,1.8vw,18px); }
.chat-input-row textarea { flex: 1; resize: none; background: transparent; border: none; outline: none; color: var(--fg); font-family: Archivo, sans-serif; font-size: 15px; line-height: 1.5; padding: 8px 0; max-height: 120px; }
.chat-attach { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--fg-14); background: transparent; color: var(--fg-70); cursor: pointer; font-size: 16px; line-height: 1; }
.chat-file-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 clamp(20px,2.4vw,28px) 12px; }
.chat-file-chip { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-70); border: 1px solid var(--fg-14); padding: 6px 10px; }
.contact-note { margin-top: 20px; font-size: 13px; color: var(--fg-42); }
.contact-status { margin-top: 10px; font-size: 13px; }
.contact-status.ok { color: var(--accent-bright); }
.contact-status.err { color: #d97a7a; }

/* ============================================================
   Standard contact form (contact page)
   ============================================================ */
.info-list { display: flex; flex-direction: column; gap: 32px; }
.info-item { border-top: 1px solid var(--fg-08); padding-top: 20px; }
.info-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-30); margin-bottom: 10px; }
.info-value { font-family: var(--display); font-size: 1.05rem; color: var(--fg); }
.info-value.muted { font-family: Archivo, sans-serif; font-weight: 400; font-size: 14px; color: var(--fg-30); font-style: italic; }
.cform { display: flex; flex-direction: column; gap: 22px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-30); }
.field input, .field select, .field textarea {
  background: var(--bg-panel); border: 1px solid var(--fg-08); color: var(--fg);
  font-family: Archivo, sans-serif; font-size: 14px; padding: 14px 16px; width: 100%;
  transition: border-color .2s, background .2s;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-bright); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.submit-row { display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }

/* ============================================================
   Numbered card grid (Services hub, Lab, and similar index pages)
   ============================================================ */
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--fg-08); border: 1px solid var(--fg-08); }
.svc-card { background: var(--bg); padding: clamp(28px,3vw,44px); transition: background .3s; }
.svc-card:hover { background: var(--bg-raised); }
.svc-card .n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--fg-30); }
.svc-card .tag { margin-top: 14px; }
.svc-card h3 { margin: 16px 0 12px; font-size: clamp(1.3rem,2.2vw,1.7rem); text-transform: none; letter-spacing: -.02em; color: var(--accent-bright); }
.svc-card p { font-size: 14px; color: var(--fg-58); line-height: 1.8; margin-bottom: 20px; }
.svc-card.placeholder h3 { color: var(--fg-30); font-weight: 600; }
@media (max-width: 1100px) { .svc-cards { grid-template-columns: 1fr; } }

/* ============================================================
   Work / project pages — gallery, case cards, video strip, lightbox
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1px; background: var(--fg-08); border: 1px solid var(--fg-08); }
.case-card { background: var(--bg); display: flex; flex-direction: column; transition: background .3s; }
.case-card:hover { background: var(--bg-raised); }
.cc-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #111; }
.cc-img picture, .cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-img img { transform: scale(1.03); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.case-card:hover .cc-img img { transform: scale(1.1); }
.cc-status { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; background: rgba(10,10,10,.65); backdrop-filter: blur(4px); border: 1px solid var(--fg-14); color: var(--fg-70); }
.cc-status.complete { border-color: var(--accent); color: var(--accent-bright); background: rgba(53,133,142,.18); }
.cc-body { padding: 32px; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cc-title { font-size: clamp(1.3rem,2.2vw,1.7rem); color: var(--fg); margin-bottom: 12px; text-transform: none; letter-spacing: -.02em; }
.cc-desc { font-size: 14px; color: var(--fg-58); line-height: 1.8; margin-bottom: 20px; }
.cc-link { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); display: inline-flex; align-items: center; gap: 8px; transition: gap .2s; }
.case-card:hover .cc-link { gap: 12px; }

.cs-hero { position: relative; height: 64vh; min-height: 400px; overflow: hidden; cursor: zoom-in; }
.cs-hero img, .cs-hero .slot-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cs-hero .cc-status { top: calc(var(--nav-h) + 14px); }
.cs-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.85), transparent 55%); display: flex; align-items: flex-end; padding: 0 var(--pad) 40px; pointer-events: none; }
.cs-brief { padding: 56px var(--pad); display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.cs-title { font-size: clamp(1.8rem,3.4vw,2.8rem); color: var(--fg); margin-bottom: 16px; line-height: 1.06; text-transform: uppercase; letter-spacing: -.03em; }
.cs-desc { font-size: 15px; color: var(--fg-58); line-height: 1.85; max-width: 640px; }

.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; }
.cell { overflow: hidden; position: relative; background: #111; cursor: zoom-in; }
.cell img { transition: transform .8s cubic-bezier(.16,1,.3,1); width: 100%; height: 100%; object-fit: cover; }
.cell:hover img { transform: scale(1.05); }
.cell.tall { aspect-ratio: 3/4; }
.cell.wide { aspect-ratio: 16/9; }
.cm { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; background: linear-gradient(transparent, rgba(10,10,10,.8)); opacity: 0; transition: opacity .3s; }
.cell:hover .cm, .cell:focus-visible .cm { opacity: 1; }
.cm-t { font-family: var(--display); font-size: 12px; letter-spacing: .08em; color: var(--fg); text-transform: uppercase; }
.cm-s { font-size: 11px; color: var(--accent-bright); letter-spacing: .06em; margin-top: 3px; }

.vstrip { padding: 48px var(--pad); background: var(--bg-raised); border-top: 1px solid var(--fg-08); border-bottom: 1px solid var(--fg-08); }
.vs-label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-30); margin-bottom: 24px; }
.vs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.vs-cell { overflow: hidden; position: relative; background: #050505; border: 1px solid var(--fg-08); cursor: zoom-in; aspect-ratio: 9/16; }
.vs-cell video { width: 100%; height: 100%; object-fit: cover; }
.vs-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: linear-gradient(transparent, rgba(10,10,10,.85)); }
.vs-t { font-size: 11px; letter-spacing: .08em; color: var(--fg); }
.vs-s { font-size: 10px; color: var(--accent-bright); letter-spacing: .06em; margin-top: 2px; }

.lb { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.95); backdrop-filter: blur(8px); align-items: center; justify-content: center; cursor: zoom-out; }
.lb.open { display: flex; }
.lb-inner { position: relative; max-width: 92vw; max-height: 92vh; display: flex; align-items: center; justify-content: center; }
.lb-inner img, .lb-inner video { max-width: 90vw; max-height: 88vh; object-fit: contain; width: auto; height: auto; }
.lb-close { position: fixed; top: 24px; right: 32px; font-size: 28px; color: rgba(226,221,214,.6); cursor: pointer; line-height: 1; transition: color .2s; z-index: 1000; }
.lb-close:hover { color: var(--accent-bright); }
.lb-caption { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(226,221,214,.4); }

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal { padding: clamp(140px,16vh,180px) var(--pad) 120px; max-width: 860px; }
.legal h2 { font-size: clamp(20px,2.2vw,26px); text-transform: none; letter-spacing: -.01em; margin: 44px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 15px; line-height: 1.85; color: var(--fg-70); margin-bottom: 14px; }
.legal li { margin-left: 20px; list-style: disc; }
.legal .updated { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-30); margin-bottom: 40px; }

/* ============================================================
   Blog article body — same eyebrow/nav/footer shell as every page,
   long-form prose sized like the legal pages but with a proper
   editorial headline instead of the giant uppercase .page-title
   (a long sentence-length title reads badly at that scale).
   ============================================================ */
.article-title { margin: 22px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px,4vw,44px); line-height: 1.15; letter-spacing: -.01em; text-transform: none; max-width: 20em; }
.article { padding: clamp(50px,7vw,80px) var(--pad) 0; max-width: 780px; }
.article-lead { font-size: clamp(17px,1.6vw,20px); line-height: 1.7; color: var(--fg-85); margin-bottom: 36px; max-width: 34em; }
.article h2 { font-size: clamp(20px,2.2vw,26px); font-weight: 700; text-transform: none; letter-spacing: -.01em; color: var(--fg); margin: 44px 0 14px; }
.article h2:first-of-type { margin-top: 0; }
.article p { font-size: 15px; line-height: 1.85; color: var(--fg-70); margin-bottom: 18px; max-width: 38em; }
.article p strong { color: var(--fg); font-weight: 600; }
.article p a { border-bottom: 1px solid rgba(75,163,173,.4); }
.article p a:hover { color: var(--fg); }

/* ============================================================
   Responsive — desktop (default) > 1400px is baseline above.
   Laptop / small-desktop 1101–1400
   ============================================================ */
@media (max-width: 1400px) {
  .hero-h1-2 { font-size: clamp(30px, 4.6vw, 48px); }
}

/* Tablet 761–1100 — new breakpoint tier requested */
@media (max-width: 1100px) {
  :root { --nav-h: 66px; }
  .ln-nav { padding: 16px 24px; }
  .ln-nav-links { gap: 16px; font-size: 9.5px; }
  .hero-h1-2 { font-size: clamp(26px, 5.6vw, 38px); }
  .about-copy { font-size: clamp(26px, 4.6vw, 48px); }
  .stat-grid, .proc-grid, .offer-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
  .cs-brief { grid-template-columns: 1fr; gap: 24px; }
  .g3, .g2, .vs-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .disc-title { font-size: clamp(24px,5vw,44px); }
  .page-hero { padding-top: calc(var(--nav-h) + 40px); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .ln-persp { perspective: 1100px; }
}

/* Mobile ≤760 */
@media (max-width: 760px) {
  .ln-grain { display: none; }
  #ln-hud { display: none; }
  .ln-persp { perspective: none; }
  .ln-nav { padding: 14px 18px; }
  .ln-nav-links { display: none; }
  .ln-burger { display: flex; }
  section { padding-left: 20px !important; padding-right: 20px !important; }
  #ln-s1 { padding: 0 !important; }
  .hero-media-icon { width: 36px; height: 36px; }
  .hero-media-copy, .hero-media-sub { font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
  .cs-brief { grid-template-columns: 1fr; gap: 20px; padding: 40px 20px; }
  .g3, .g2, .vs-grid { grid-template-columns: 1fr 1fr; }
  .vstrip { padding: 28px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cform-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .page-hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 40px; }
}

/* No-3D fallback (JS-detected low-power device) */
.no-parallax .ln-persp { perspective: none; }
.no-parallax [data-plane] { transform: none !important; opacity: 1 !important; }

/* prefers-reduced-motion — covers grain, drift, parallax, reveal, scroll-behavior */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-plane] { transform: none !important; opacity: 1 !important; }
  [data-rise] { opacity: 1 !important; transform: none !important; }
  [data-section-rise] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ln-persp { perspective: none; }
}
