/* ============================================================
   Sam Bard — v2 "The Descent"
   The page is a dive: surface light up top, abyss at the bottom,
   a live depth gauge on the right. Sand accent, dive-watch lume.
   Plain CSS, no build step. British spelling in comments.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200;0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,200;1,6..72,300;1,6..72,400&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---- Water column ---- */
  --surface-blue: #0A1F30;
  --mid-ink:      #04090F;
  --abyss:        #01040A;

  --ink-900: #0A1018;
  --ink-850: #0E141E;
  --ink-800: #131B27;
  --ink-600: #2A3744;
  --ink-400: #5C6E7D;
  --ink-300: #8294A0;
  --ink-200: #AEBDC6;

  --foam: #F2F6F6;

  /* ---- Accent: sand. Dive-watch lume against the deep. ---- */
  --accent:       #E0A350;
  --accent-hover: #F0BC6E;
  --accent-press: #C98E3D;
  --accent-soft:  rgba(224, 163, 80, 0.12);
  --accent-ink:   #100A04;

  --kelp: #5BB98C;

  --bg:             var(--mid-ink);
  --surface:        var(--ink-900);
  --surface-raised: var(--ink-850);
  --surface-sunken: #02060C;

  --text-primary:   var(--foam);
  --text-secondary: var(--ink-200);
  --text-tertiary:  var(--ink-300);
  --text-muted:     var(--ink-400);

  --border:        rgba(174, 189, 198, 0.13);
  --border-strong: rgba(174, 189, 198, 0.24);
  --border-faint:  rgba(174, 189, 198, 0.06);

  --font-display: "Newsreader", Georgia, serif;
  --font-sans:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;
  --s-11: 80px; --s-12: 104px; --s-13: 140px;
  --gutter: clamp(20px, 5vw, 76px);
  --maxw: 1360px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;

  --shadow-2: 0 4px 14px rgba(0,0,0,0.45);
  --shadow-media: 0 34px 90px -22px rgba(0,0,0,0.8);
  --glow: 0 0 26px rgba(224,163,80,0.28);

  --scrim-bottom: linear-gradient(to top, rgba(2,5,10,0.93) 0%, rgba(2,5,10,0.66) 26%, rgba(2,5,10,0.18) 56%, rgba(2,5,10,0) 82%);
  --scrim-top: linear-gradient(to bottom, rgba(2,5,10,0.66) 0%, rgba(2,5,10,0.14) 50%, rgba(2,5,10,0) 100%);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  /* --dp: descent progress, 0 at surface → 1 at the bottom. Set by JS. */
  --dp: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(224,163,80,0.32); color: var(--foam); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   THE SEA — fixed layers behind everything.
   Light fades and the column darkens as --dp rises.
   ============================================================ */
.sea { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--surface-blue) 0%, var(--mid-ink) 55%, var(--abyss) 100%); }
.sea i { position: absolute; inset: 0; display: block; }
.sea__light {
  background:
    radial-gradient(130% 95% at 62% -25%, rgba(58, 134, 168, 0.42) 0%, rgba(20, 62, 88, 0.16) 42%, rgba(0,0,0,0) 68%),
    radial-gradient(70% 50% at 18% -12%, rgba(47, 104, 134, 0.22) 0%, rgba(0,0,0,0) 60%);
  opacity: calc(1 - var(--dp) * 0.93);
  transform: translate3d(0, calc(var(--dp) * -9vh), 0);
}
.sea__beams {
  background:
    linear-gradient(112deg, rgba(0,0,0,0) 38%, rgba(96, 158, 184, 0.07) 43%, rgba(0,0,0,0) 49%),
    linear-gradient(104deg, rgba(0,0,0,0) 56%, rgba(96, 158, 184, 0.05) 62%, rgba(0,0,0,0) 69%),
    linear-gradient(118deg, rgba(0,0,0,0) 72%, rgba(96, 158, 184, 0.06) 76%, rgba(0,0,0,0) 81%);
  opacity: calc((1 - var(--dp)) * 0.8);
  animation: beams 18s var(--ease) infinite alternate;
  transform-origin: 60% -20%;
}
@keyframes beams { from { transform: skewX(0deg) translateX(0); } to { transform: skewX(-2.4deg) translateX(-2.5%); } }
.sea__abyss { background: var(--abyss); opacity: calc(var(--dp) * 0.88); }
.sea__floor {
  background: radial-gradient(90% 55% at 50% 115%, rgba(224, 163, 80, 0.10) 0%, rgba(0,0,0,0) 62%);
  opacity: calc(var(--dp) * var(--dp));
}
@media (prefers-reduced-motion: reduce) { .sea__beams { animation: none; } }

/* ============================================================
   DEPTH RAIL — live gauge, right edge. Decorative.
   ============================================================ */
.depthrail {
  position: fixed; top: 50%; right: 22px; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); color: var(--text-muted);
}
.depthrail__label { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; writing-mode: vertical-rl; }
.depthrail__track {
  position: relative; width: 1px; height: clamp(120px, 24vh, 220px);
  background:
    repeating-linear-gradient(to bottom, var(--border-strong) 0, var(--border-strong) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 12.5%) ,
    linear-gradient(var(--border), var(--border));
}
.depthrail__marker {
  position: absolute; left: 50%; top: calc(var(--dp) * 100%);
  width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent); box-shadow: 0 0 10px rgba(224,163,80,0.55);
}
.depthrail__read { font-size: 11px; letter-spacing: 0.08em; color: var(--text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1100px) { .depthrail { display: none; } }

/* ============================================================
   SHARED HELPERS
   ============================================================ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: baseline; gap: 12px; margin: 0;
}
.eyebrow--rule { align-items: center; }
.eyebrow--rule::before { content: ""; width: 28px; height: 1px; background: var(--accent); align-self: center; }
.eyebrow__depth { color: var(--text-muted); letter-spacing: 0.1em; font-size: 11px; }
.serif { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--text-secondary); line-height: 1.55; }
.muted { color: var(--text-tertiary); }

.section { padding-block: clamp(72px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(48px, 6.5vw, 96px); }
.section__head { display: flex; flex-direction: column; gap: var(--s-5); margin-bottom: clamp(36px, 5vw, 64px); max-width: 880px; }
.section__head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--s-6); flex-wrap: wrap; }
.section__head--row > div { display: flex; flex-direction: column; gap: var(--s-5); }
.section__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.8vw, 64px); letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.section__title em { font-style: italic; color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--glow); }
.btn--outline { border-color: var(--border-strong); color: var(--text-primary); background: rgba(2,5,10,0.25); backdrop-filter: blur(6px); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 42px; font-size: 14px; padding: 0 18px; }
.btn--lg { height: 58px; font-size: 16px; padding: 0 34px; }

.arrowlink { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-tertiary); transition: color .2s var(--ease), gap .2s var(--ease); }
.arrowlink:hover { color: var(--accent); gap: 14px; }
.arrowlink svg { width: 15px; height: 15px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), padding .3s var(--ease);
}
.nav.is-solid { background: rgba(4,9,15,0.78); backdrop-filter: saturate(1.1) blur(16px); border-bottom-color: var(--border); padding-block: 12px; }
.brand { color: var(--text-primary); flex: none; display: flex; align-items: center; gap: 12px; }
.brand__name { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; font-weight: 300; }
.brand__name b { font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-tertiary); padding: 10px 14px; border-radius: var(--r-pill); position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link.is-active { color: var(--text-primary); }
.nav__link.is-active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(224,163,80,0.6); }
.nav__cta { margin-left: 12px; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--text-primary); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger svg { width: 24px; height: 24px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(2,5,10,0.96); backdrop-filter: blur(10px); display: none; flex-direction: column; padding: 24px var(--gutter); }
.drawer.is-open { display: flex; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { width: 44px; height: 44px; border: 0; background: none; color: var(--foam); cursor: pointer; }
.drawer__close svg { width: 26px; height: 26px; }
.drawer__links { display: flex; flex-direction: column; gap: 4px; margin-top: 44px; }
.drawer__links a { font-family: var(--font-display); font-weight: 300; font-size: 38px; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--border-faint); color: var(--text-secondary); display: flex; justify-content: space-between; align-items: baseline; }
.drawer__links a:hover, .drawer__links a.is-active { color: var(--accent); }
.drawer__links a i { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-muted); }
.drawer__foot { margin-top: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* ============================================================
   HERO — the surface
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(125% 95% at 68% 18%, #123a50 0%, #0a2030 42%, #04090f 100%); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity 1.4s var(--ease-soft); }
.hero__media.is-ready video { opacity: 1; }
.hero__media img { animation: drift 26s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.2%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim-bottom), var(--scrim-top); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(64px, 9vw, 120px); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-7); width: 100%; }
.hero__title {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(42px, 7.4vw, 116px);
  line-height: 0.99; letter-spacing: -0.035em; color: var(--foam);
  text-wrap: balance; max-width: 13em;
}
.hero__title em { font-style: italic; font-weight: 200; color: var(--accent); }
.hero__lead { max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__mark {
  position: absolute; right: var(--gutter); bottom: clamp(64px, 9vw, 120px); z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(242,246,246,0.55); text-align: right; line-height: 2;
}
.hero__mark b { display: block; color: var(--accent); font-weight: 400; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(242,246,246,0.5); display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.hero__scroll i { width: 1px; height: 38px; display: block; background: linear-gradient(var(--accent), rgba(224,163,80,0)); }

/* ============================================================
   WORK — offset editorial grid
   ============================================================ */
.workgrid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.workgrid > :nth-child(2) { margin-top: clamp(48px, 9vw, 140px); }

.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-2); isolation: isolate; background: var(--ink-800); }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1s var(--ease-soft); }
.tile--wide img { aspect-ratio: 16/9; }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--scrim-bottom); z-index: 1; opacity: 0.92; }
.tile__body { position: absolute; left: clamp(18px, 2.4vw, 30px); right: clamp(18px, 2.4vw, 30px); bottom: clamp(16px, 2.2vw, 26px); z-index: 2; }
.tile__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.tile__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.06; margin-top: 7px; color: var(--foam); letter-spacing: -0.02em; }
.tile__meta { font-family: var(--font-mono); font-size: 11px; color: rgba(242,246,246,0.6); margin-top: 8px; letter-spacing: 0.05em; }
.tile:hover img { transform: scale(1.045); }
.tile__watch { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-top: 11px; }
.tile__watch svg { width: 13px; height: 13px; transition: transform .35s var(--ease-soft); }
.tile:hover .tile__watch svg { transform: translateX(4px); }
.tile__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  color: var(--foam); background: rgba(2,5,10,0.42); border: 1px solid rgba(242,246,246,0.5); backdrop-filter: blur(6px);
  transition: transform .45s var(--ease-soft), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.tile__play svg { width: 22px; height: 22px; margin-left: 3px; }
.tile:hover .tile__play { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translate(-50%,-50%) scale(1.07); }
.project__media:hover .tile__play { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translate(-50%,-50%) scale(1.07); }

/* ============================================================
   TWO LINES OF WORK — typographic, no imagery needed
   ============================================================ */
.lines { border-top: 1px solid var(--border); }
.line {
  display: grid; grid-template-columns: 110px 1fr auto; gap: clamp(20px, 4vw, 64px);
  align-items: center; padding-block: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--border); position: relative;
}
.line__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--text-muted); transition: color .3s var(--ease); }
.line__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4vw, 54px); letter-spacing: -0.025em; line-height: 1.05; transition: color .3s var(--ease); }
.line__desc { color: var(--text-tertiary); max-width: 56ch; margin-top: var(--s-3); font-size: 16px; }
.line__go {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--text-tertiary); flex: none;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-soft);
}
.line__go svg { width: 20px; height: 20px; }
.line:hover .line__num { color: var(--accent); }
.line:hover .line__title { color: var(--accent); }
.line:hover .line__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* ============================================================
   ABOUT TEASER / PORTRAIT
   ============================================================ */
.about-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.about-hero__portrait { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-media); }
.about-hero__portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 3vw, 40px); line-height: 1.28; letter-spacing: -0.02em; color: var(--text-secondary); }
.statement em { font-style: italic; color: var(--foam); }

/* ============================================================
   STATS
   ============================================================ */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-7); border-block: 1px solid var(--border); padding-block: clamp(40px, 6vw, 80px); }
.stat__value { font-family: var(--font-display); font-weight: 200; font-size: clamp(40px, 5.4vw, 72px); line-height: 0.95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__value span { font-size: 0.48em; color: var(--accent); margin-left: 3px; }
.stat__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 12px; }
.statnote { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--text-tertiary); margin-top: var(--s-6); max-width: 70ch; line-height: 1.8; }
.statnote a { color: var(--text-secondary); border-bottom: 1px solid var(--border-strong); transition: color .2s var(--ease), border-color .2s var(--ease); }
.statnote a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   PROJECT ROW (media page)
   ============================================================ */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.project__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-media); display: block; }
.project__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1s var(--ease-soft); }
.project__media:hover img { transform: scale(1.045); }
.project__status { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--r-sm); background: rgba(2,5,10,0.55); backdrop-filter: blur(6px); border: 1px solid var(--border-strong); }
.project__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.8vw, 50px); letter-spacing: -0.025em; margin-top: var(--s-4); }
.project__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; color: var(--text-muted); margin-top: var(--s-3); }
.project__body { color: var(--text-secondary); margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.project__links { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: center; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.gallery a { display: block; overflow: hidden; border-radius: var(--r-md); cursor: zoom-in; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .8s var(--ease-soft); }
.gallery a:hover img { transform: scale(1.055); }
.gallery a:nth-child(3n-1) { transform: translateY(clamp(12px, 2vw, 28px)); }

/* ============================================================
   SPECS / KIT
   ============================================================ */
.specs { border-top: 1px solid var(--border); margin: 0; }
.spec { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.spec dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }
.spec dd { margin: 0; color: var(--text-secondary); }
.kitcard { border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); background: rgba(10,16,24,0.55); backdrop-filter: blur(4px); }
.kitcard .specs { border-top: 0; }
.kitcard .spec { grid-template-columns: 110px 1fr; padding: var(--s-3) 0; }
.kitcard .spec:last-child { border-bottom: 0; }

/* ============================================================
   CREDENTIAL CARDS (consultancy)
   ============================================================ */
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.cred { border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); background: rgba(10,16,24,0.55); backdrop-filter: blur(4px); transition: border-color .3s var(--ease); }
.cred:hover { border-color: var(--border-strong); }
.cred__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.cred__v { font-family: var(--font-display); font-weight: 300; font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.02em; line-height: 1.15; color: var(--text-primary); margin-top: var(--s-4); }
.cred__note { color: var(--text-tertiary); font-size: 15px; margin-top: var(--s-3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 88px); }
.contact__aside { display: flex; flex-direction: column; gap: var(--s-5); }
.contact__direct { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); font-family: var(--font-mono); font-size: 15px; }
.contact__direct a, .contact__direct span { display: inline-flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.contact__direct a:hover { color: var(--accent); }
.contact__direct svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.contact__rule { height: 1px; background: var(--border); margin: var(--s-4) 0; }

.form { display: flex; flex-direction: column; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 9px; }
.field > label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(2,6,12,0.7); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  font-family: var(--font-sans); font-size: 16px; padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.form__note { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   LOGBOOK (about page)
   ============================================================ */
.logbook { border-top: 1px solid var(--border); }
.log {
  display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--border);
}
.log__when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-top: 8px; }
.log__when small { display: block; color: var(--text-muted); letter-spacing: 0.06em; margin-top: 5px; text-transform: none; font-size: 11px; }
.log__body { max-width: 640px; }
.log__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.log__text { color: var(--text-secondary); margin-top: var(--s-3); font-size: 17px; line-height: 1.7; }
.log__text strong { color: var(--text-primary); font-weight: 600; }

.fullimg { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-media); }
.fullimg img { width: 100%; aspect-ratio: 21/10; object-fit: cover; }
.fullimg figcaption { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-muted); padding-top: var(--s-4); text-transform: uppercase; }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-6); max-width: 860px; margin-inline: auto; }
.cta__title { font-family: var(--font-display); font-weight: 200; font-size: clamp(36px, 5.6vw, 78px); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.cta__title em { font-style: italic; color: var(--accent); }
.cta__mark { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }

/* ============================================================
   FOOTER — the sea floor
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: var(--s-11) var(--s-7); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-8); }
.footer__brand { display: flex; flex-direction: column; gap: var(--s-5); max-width: 320px; }
.footer__mark { display: flex; align-items: center; gap: 14px; }
.footer__mark .seal-emblem { width: 72px; height: 72px; color: var(--text-primary); flex: none; }
.footer__tag { color: var(--text-tertiary); font-size: 15px; }
.footer__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-4); }
.footer__col a, .footer__col span { display: block; color: var(--text-tertiary); font-size: 15px; margin-bottom: 11px; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__soon { opacity: 0.55; }
.footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-10); padding-top: var(--s-5); border-top: 1px solid var(--border-faint); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(1,4,10,0.95); display: none; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out; }
.lightbox.is-open { display: flex; animation: lbfade .3s var(--ease); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; border-radius: var(--r-md); box-shadow: var(--shadow-media); }
.lightbox__close { position: absolute; top: 24px; right: 28px; width: 48px; height: 48px; border: 0; background: none; color: var(--foam); cursor: pointer; }
.lightbox__close svg { width: 30px; height: 30px; }

/* ============================================================
   REVEAL + BLUR-UP
   ============================================================ */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js img[data-img] { opacity: 0; filter: blur(18px); transform: scale(1.02); transition: opacity 1s var(--ease-soft), filter 1.2s var(--ease-soft), transform 1.1s var(--ease-soft); }
html.js img[data-img].is-loaded { opacity: 1; filter: blur(0); transform: none; }
/* hover zooms must outrank the blur-up reset above */
html.js .tile:hover img[data-img].is-loaded { transform: scale(1.045); }
html.js .project__media:hover img[data-img].is-loaded { transform: scale(1.045); }
html.js .gallery a:hover img[data-img].is-loaded { transform: scale(1.055); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js img[data-img] { opacity: 1; filter: none; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .footer__brand { grid-column: 1 / -1; }
  .workgrid { grid-template-columns: 1fr; }
  .workgrid > :nth-child(2) { margin-top: 0; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__mark { display: none; }
  .line { grid-template-columns: 1fr auto; }
  .line__num { grid-column: 1 / -1; }
  .project { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-5); }
  .spec { grid-template-columns: 140px 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:nth-child(3n-1) { transform: none; }
  .log { grid-template-columns: 1fr; gap: var(--s-3); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .statband { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr; gap: 6px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-6); }
}
