/* ============================================================
   White Ink — Lighting Design Studio
   "White ink on black." Light emerging from darkness.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0b;          /* the canvas */
  --ink-2: #101012;        /* raised sections */
  --raise: #16161a;        /* cards */
  --line: #26262b;         /* hairlines */
  --line-2: #34343b;       /* stronger hairline */
  --white: #f4f4f2;        /* primary text — the "white ink" */
  --muted: #93939a;        /* secondary text */
  --faint: #5c5c63;        /* tertiary / meta */
  --beam: #f5e000;         /* electric yellow — used with restraint */
  --beam-dim: rgba(245, 224, 0, 0.16);

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-alt: "Montserrat", system-ui, sans-serif; /* Brooklyn menu/process font */

  --maxw: 1360px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--beam); color: #000; }

:focus-visible {
  outline: 2px solid var(--beam);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vh, 160px); }
.section--tight { padding-block: clamp(56px, 8vh, 104px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Eyebrow: the beam signature as a short vertical stroke */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}
.eyebrow::before {
  content: "";
  width: 1px;
  height: 15px;
  background: var(--beam);
  box-shadow: 0 0 8px 0 var(--beam-dim);
  flex: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.02; letter-spacing: -0.015em; }
.display {
  font-size: clamp(2.9rem, 9vw, 8.5rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.h-xl { font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -0.02em; line-height: 1.02; }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.015em; line-height: 1.06; }
.h-md { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.12; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.5; color: #d6d6d4; font-weight: 400; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.balance { text-wrap: balance; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--line-2);
  color: var(--white);
  border-radius: 0;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
}
.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover { border-color: var(--beam); }
.btn:hover .arw { transform: translateX(5px); }
.btn--solid { background: var(--beam); color: #0a0a0b; border-color: var(--beam); }
.btn--solid:hover { background: #fff; border-color: #fff; }

/* Text link with beam underline */
.tlink {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white);
  padding-bottom: 4px;
  display: inline-flex; gap: 10px; align-items: center;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--beam); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arw { transition: transform 0.4s var(--ease); }
.tlink:hover .arw { transform: translateX(5px); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-links a {
  font-family: var(--font-alt); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); position: relative; padding-block: 6px;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--beam); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--white); transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { bottom: 15px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transform: scale(1.06); transition: transform 9s ease-out; }
.hero-slide.active img { transform: scale(1); }
.hero-slides::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(10,10,11,0.96) 0%, rgba(10,10,11,0.45) 45%, rgba(10,10,11,0.62) 100%),
    linear-gradient(to right, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0) 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); padding-top: calc(var(--nav-h) + 40px); }
.hero h1 { max-width: 15ch; }
.hero .display span { display: block; }
/* slide-specific: slightly smaller + wider so a long headline holds one line */
.hero .display.is-compact { font-size: clamp(3rem, 9.1vw, 7.9rem); max-width: none; }
.hero-lede { max-width: 46ch; margin-top: 30px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 42px; }

/* subtle text fade when the slide changes (size unchanged) */
.hero-text.anim .eyebrow { animation: heroUp 0.7s var(--ease) both; }
.hero-text.anim .display { animation: heroUp 0.8s var(--ease) 0.06s both; }
.hero-text.anim .hero-lede { animation: heroUp 0.8s var(--ease) 0.14s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-text.anim .eyebrow, .hero-text.anim .display, .hero-text.anim .hero-lede { animation: none; } }

/* slide navigation — plain arrows (no circles) + progress dots */
.hero-nav { display: inline-flex; align-items: center; gap: 16px; margin-left: auto; }
.hero-arrow { font-size: 26px; line-height: 1; color: var(--muted); padding: 4px 2px; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.hero-arrow:hover { color: var(--beam); }
#hero-prev:hover { transform: translateX(-3px); }
#hero-next:hover { transform: translateX(3px); }
.hero-dots { display: inline-flex; gap: 10px; }
.hero-dot { width: 34px; height: 3px; background: rgba(244,244,242,0.22); position: relative; overflow: hidden; transition: background 0.4s var(--ease); }
.hero-dot:hover { background: rgba(244,244,242,0.4); }
.hero-dot.active::after { content: ""; position: absolute; inset: 0; background: var(--beam); transform-origin: left; animation: dotfill 7s linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-dot.active { background: var(--beam); } .hero-dot.active::after { animation: none; transform: scaleX(1); } }
@media (max-width: 560px) { .hero-nav { width: 100%; margin-left: 0; margin-top: 4px; } }

/* flashlight — a big soft glow that follows the pointer */
.fx-flashlight {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.6s var(--ease);
  background: radial-gradient(820px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,238,150,0.5) 0%,
    rgba(255,238,150,0.5) 20%,
    rgba(255,238,150,0.44) 31%,
    rgba(255,237,149,0.35) 41%,
    rgba(255,236,147,0.25) 51%,
    rgba(255,235,145,0.16) 61%,
    rgba(255,234,143,0.09) 71%,
    rgba(255,233,141,0.04) 82%,
    transparent 93%);
}
body.flash-on .fx-flashlight { opacity: 0.7; }
@media (hover: none) { .fx-flashlight { display: none; } }

/* ============================================================
   Staggered entrance for grids
   ============================================================ */
.rise { opacity: 0; }
.rise.in { animation: rise 0.85s var(--ease) both; animation-delay: var(--rd, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; } .rise.in { animation: none; } }

/* animated beam under the wordmark */
.beam-line { position: relative; display: inline-block; }
.beam-line::after {
  content: ""; position: absolute; left: 0; bottom: -0.18em; height: 2px; width: 0;
  background: var(--beam); box-shadow: 0 0 14px 1px rgba(245,224,0,0.35);
  animation: beam-draw 1.1s var(--ease) 0.5s forwards;
}
@keyframes beam-draw { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .beam-line::after { width: 100%; animation: none; } }

/* scroll cue */
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 3;
  writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--beam), transparent); }

/* ============================================================
   Reveal-on-scroll (images emerge from black)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; }
.reveal-img img { transform: scale(1.08); filter: brightness(0.7); transition: transform 1.4s var(--ease), filter 1.4s var(--ease); }
.reveal-img.in img { transform: scale(1); filter: brightness(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal-img img { transform: none; filter: none; }
}

/* ============================================================
   Intro / Stats
   ============================================================ */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } .intro-body { padding-top: 30px; } }
.intro-body p { color: #cfcfcd; max-width: 60ch; }
.intro-body p + p { margin-top: 20px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .stat { border-bottom: 0; } }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; color: var(--beam); }
.stat .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; max-width: 18ch; }

/* ============================================================
   Section head (eyebrow + heading + optional link)
   ============================================================ */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .h-lg { max-width: 20ch; }

/* ============================================================
   Project grid
   ============================================================ */
.pgrid { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid--3 { grid-template-columns: repeat(3, 1fr); } }

/* featured layout: first item spans wide */
.pgrid--feature { grid-auto-flow: dense; }
@media (min-width: 1040px) {
  .pgrid--feature { grid-template-columns: repeat(3, 1fr); }
  .pgrid--feature .pcard:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

.pcard { position: relative; display: block; overflow: hidden; background: var(--raise); }
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.pcard:nth-child(1) .pcard-media { aspect-ratio: 4 / 3; }
@media (min-width: 1040px) { .pgrid--feature .pcard:nth-child(1) .pcard-media { aspect-ratio: auto; height: 100%; } }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); filter: brightness(0.92); }
.pcard:hover .pcard-media img { transform: scale(1.05); filter: brightness(1.02); }
.pcard-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, rgba(10,10,11,0.15) 45%, transparent 75%);
  opacity: 0.9; transition: opacity 0.6s var(--ease);
}
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2vw, 30px); }
.pcard-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--beam); }
.pcard-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 2.1rem); letter-spacing: -0.02em; margin-top: 8px; line-height: 1; }
.pcard-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease), margin-top 0.5s var(--ease); }
.pcard:hover .pcard-meta, .pcard:focus-visible .pcard-meta { max-height: 40px; opacity: 1; }
/* thin beam that grows across the bottom on hover */
.pcard::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--beam); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); z-index: 3; }
.pcard:hover::after, .pcard:focus-visible::after { transform: scaleX(1); }

/* ============================================================
   Filter bar
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 8px 8px; margin-bottom: clamp(32px, 4vw, 52px); }
.filter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 9px 18px; border: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.filter:hover { color: var(--white); border-color: var(--line-2); }
.filter[aria-pressed="true"] { color: #0a0a0b; background: var(--beam); border-color: var(--beam); }
.pcard.is-hidden { display: none; }

/* ============================================================
   Services list
   ============================================================ */
/* Capabilities — Brooklyn card grid, in dark mode */
.svc-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-list { grid-template-columns: repeat(4, 1fr); } }
.svc {
  background: var(--raise); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(26px, 2.6vw, 36px) clamp(22px, 2vw, 30px); text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc:hover { transform: translateY(-6px); border-color: rgba(245,224,0,0.4); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
.svc-num {
  width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--beam);
  background: rgba(245,224,0,0.12); border: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.svc:hover .svc-num { background: var(--beam); color: #0a0a0b; }
.svc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--white); text-transform: uppercase; }
.svc-body { color: var(--muted); font-size: 14.5px; margin-top: 12px; line-height: 1.65; }

/* ============================================================
   Process (numbered — genuine sequence)
   ============================================================ */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: clamp(26px, 2.4vw, 34px); display: flex; flex-direction: column; min-height: 300px; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step:hover { transform: translateY(-6px); border-color: rgba(245,224,0,0.4); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
.step-num { font-family: var(--font-alt); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--beam); }
.step-title { font-family: var(--font-alt); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; margin-top: 16px; letter-spacing: 0.02em; color: var(--white); }
.step-body { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.step-deliv { margin-top: auto; padding-top: 22px; list-style: none; padding-left: 0; }
.step-deliv li { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint); padding: 7px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.step-deliv li::before { content: "—"; color: var(--beam); }

/* ============================================================
   Values
   ============================================================ */
.vals { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 680px) { .vals { grid-template-columns: repeat(2, 1fr); } }
.val { background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: clamp(28px, 3vw, 44px) clamp(24px, 2.4vw, 38px); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.val:hover { transform: translateY(-6px); border-color: rgba(245,224,0,0.4); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
.val h3 { font-family: var(--font-alt); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); }
.val-index { font-family: var(--font-alt); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--beam); }
.val p { color: var(--muted); margin-top: 14px; max-width: 44ch; }

/* ============================================================
   About split / images
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-r { grid-template-columns: 0.9fr 1.1fr; } }
.story-copy p { color: #cfcfcd; }
.story-copy p + p { margin-top: 18px; }
.figure { position: relative; overflow: hidden; }
.figure img { width: 100%; object-fit: cover; }
.figure-cap { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.06em; margin-top: 14px; }

/* team */
.team-grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2vw, 28px); }
@media (min-width: 620px) { .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; } }
.member { }
.member-photo { overflow: hidden; aspect-ratio: 1 / 1; background: var(--raise); filter: grayscale(1) contrast(1.02); transition: filter 0.6s var(--ease); }
.member:hover .member-photo { filter: grayscale(0); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-top: 18px; }
.member-role { font-family: var(--font-mono); font-size: 12px; color: var(--beam); letter-spacing: 0.06em; margin-top: 6px; text-transform: uppercase; }
.member-note { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* wider team — compact, less emphasized than the founders */
.team-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 720px) { .team-more { grid-template-columns: repeat(4, 1fr); } }
/* square photo placeholders — same style as the founders, just smaller/dimmer */
.tmember-photo {
  overflow: hidden; aspect-ratio: 1 / 1; background: var(--raise);
  display: flex; align-items: center; justify-content: center; color: var(--faint);
  transition: color 0.5s var(--ease);
}
.tmember:hover .tmember-photo { color: var(--muted); }
.tmember-photo svg { width: 36px; height: 36px; opacity: 0.55; }
.tmember-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #d6d6d4; margin-top: 14px; }
.tmember-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 5px; }

/* credentials strip */
.creds { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 64px); }
.creds img { height: 46px; width: auto; opacity: 0.5; filter: grayscale(1) brightness(1.6); transition: opacity 0.4s var(--ease); }
.creds img:hover { opacity: 0.9; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; text-align: center; padding-block: clamp(80px, 13vh, 180px); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-actions { margin-top: 40px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   Project detail
   ============================================================ */
.pd-hero { padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 90px)); }
.pd-titlewrap { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end; }
@media (min-width: 900px) { .pd-titlewrap { grid-template-columns: 1.4fr 1fr; } }
.pd-title { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 0.94; }
.pd-lede { color: #d0d0ce; font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 44ch; }

.pd-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 760px) { .pd-meta { grid-template-columns: repeat(4, 1fr); } }
.pd-meta div { background: var(--ink); padding: 22px 24px; }
.pd-meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.pd-meta dd { margin: 8px 0 0; font-size: 15px; color: var(--white); }

.pd-lead-img { margin-top: clamp(40px, 6vw, 80px); overflow: hidden; aspect-ratio: 16 / 9; }
.pd-lead-img img { width: 100%; height: 100%; object-fit: cover; }

.pd-body { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 60px); }
@media (min-width: 900px) { .pd-body { grid-template-columns: 0.35fr 0.65fr; } }
.pd-body .lede { max-width: 60ch; }
.pd-body p + p { margin-top: 20px; }

.pd-gallery { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 1.4vw, 20px); }
.pd-gallery figure { margin: 0; overflow: hidden; background: var(--raise); cursor: zoom-in; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s var(--ease); filter: brightness(0.96); }
.pd-gallery figure:hover img { transform: scale(1.03); filter: brightness(1.05); }
@media (min-width: 720px) {
  .pd-gallery { grid-template-columns: repeat(2, 1fr); }
  .pd-gallery figure.wide { grid-column: 1 / -1; }
}

.pd-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,6,7,0.96); display: none; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 64px); }
.lightbox.open { display: flex; animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.lb-close, .lb-nav { position: absolute; color: var(--white); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; padding: 14px; text-transform: uppercase; }
.lb-close { top: 18px; right: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 30px; padding: 20px; transition: color 0.3s var(--ease); }
.lb-nav:hover, .lb-close:hover { color: var(--beam); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.field { margin-bottom: 26px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,0.02); border: 1px solid var(--line-2);
  color: var(--white); font-family: var(--font-body); font-size: 16px; padding: 14px 16px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease); border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--beam); background: rgba(255,255,255,0.04); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--ink); }

.contact-detail { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.contact-detail:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.contact-detail .ct-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.contact-detail .ct-value { font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin-top: 10px; color: var(--white); }
.contact-detail a.ct-value:hover { color: var(--beam); }

.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 8px; }
.form-status { font-family: var(--font-mono); font-size: 13px; margin-top: 18px; min-height: 20px; }
.form-status.ok { color: var(--beam); }

/* Google map embed — dark-mode filtered to match the site */
.map-embed { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--raise); height: clamp(300px, 46vh, 460px); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(0.9) hue-rotate(180deg) brightness(0.97) contrast(0.92); transition: filter 0.5s var(--ease); }
.map-embed:hover iframe { filter: none; }
@media (prefers-reduced-motion: reduce) { .map-embed iframe { transition: none; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 40px; }
.foot-top { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 820px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand img { height: 26px; margin-bottom: 22px; }
.foot-brand p { color: var(--muted); max-width: 34ch; font-size: 14.5px; }
.foot-col h4 { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color 0.3s var(--ease); margin: 0; }
.foot-col a:hover { color: var(--white); }
/* social links carry a small brand glyph */
.foot-col a.social-link { display: inline-flex; align-items: center; gap: 9px; }
.foot-col a.social-link svg { width: 15px; height: 15px; flex: none; transition: color 0.3s var(--ease); }
.foot-col a.social-link:hover svg { color: var(--beam); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.foot-bottom p { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em; margin: 0; }

/* ============================================================
   Loader (brand mark, brief)
   ============================================================ */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); display: flex; align-items: center; justify-content: center; transition: opacity 0.7s var(--ease), visibility 0.7s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { width: clamp(112px, 20vw, 150px); opacity: 0.95; }
.loader-bar { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--beam); animation: load 1.1s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }

/* ============================================================
   Mobile nav
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; height: 100dvh; overflow-y: auto;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 8px; padding: 0 var(--gutter); background: var(--ink);
    transform: translateY(-100%); transition: transform 0.55s var(--ease), visibility 0.55s;
    visibility: hidden; pointer-events: none; z-index: 110;
  }
  body.menu-open .nav-links { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-alt); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); padding-block: 12px; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin-top: 24px; }
}

/* utility */
.only-lg { display: none; }
@media (min-width: 900px) { .only-lg { display: block; } }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; }
