/* ============================================================
   SRUC LABS — from scratch
   Type: Inter Tight / Newsreader Italic / IBM Plex Mono (all OFL)
   Colour: paper, pine, mint — from brand artefacts
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_regular.ttf?v=20260924') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_medium.ttf?v=20260924') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_semibold.ttf?v=20260924') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_bold.ttf?v=20260924') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_extra_bold.ttf?v=20260924') format('truetype');
  font-weight: 800; font-display: swap;
}

:root {
  --paper: #F6F7F3;
  --card: #FFFFFF;
  --soft: #EAF7ED;
  --ink: #141613;
  --muted: #5C665E;
  --faint: #8A948C;
  --pine: #1E4A2E;
  --moss: #285C3A;
  --leaf: #4FA86B;
  --mint: #86D99B;
  --line: rgba(30, 74, 46, 0.14);
  --line-strong: rgba(30, 74, 46, 0.28);
  --max: 1280px;
  --gut: 32px;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --soft: cubic-bezier(0.4, 0, 0.2, 1);
  --grid: rgba(30,74,46,0.035);
  --construct: rgba(30,74,46,0.1);
  color-scheme: light;
}

/* ================= DARK MODE — deep pine primary, mint accents ================= */
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0C1210;
  --card: #121A15;
  --soft: #14201A;
  --ink: #EAF2E9;
  --muted: #A9BBAE;
  --faint: #7F9384;
  --pine: #E4F1E2;
  --moss: #A9CBB2;
  --leaf: #7CC795;
  --mint: #86D99B;
  --line: rgba(134,217,155,0.16);
  --line-strong: rgba(134,217,155,0.34);
  --grid: rgba(134,217,155,0.07);
  --construct: rgba(134,217,155,0.18);
}

/* logo variant swap — specificity beats .wordmark-logo below */
.wordmark-logo.logo-light, .foot-logo.logo-light { display: none; }
[data-theme="dark"] .wordmark-logo.logo-dark,
[data-theme="dark"] .foot-logo.logo-dark { display: none; }
[data-theme="dark"] .wordmark-logo.logo-light,
[data-theme="dark"] .foot-logo.logo-light { display: block; }

/* dark-mode surface + contrast fixes */
[data-theme="dark"] ::selection { background: var(--mint); color: #0C1210; }
[data-theme="dark"] .topbar { background: rgba(12,18,16,0.85); }
[data-theme="dark"] .mobilemenu { background: rgba(12,18,16,0.97); }
[data-theme="dark"] .topnav-pill:hover { background: var(--mint); color: #0C1210 !important; }
[data-theme="dark"] .btn-dark { background: var(--mint); color: #0C1210; }
[data-theme="dark"] .btn-dark:hover { background: #A5E3B8; box-shadow: 0 14px 28px rgba(0,0,0,0.4); }
[data-theme="dark"] .btn-light { background: var(--mint); color: #0C1210; }
[data-theme="dark"] .btn-light:hover { background: #A5E3B8; box-shadow: 0 14px 30px rgba(0,0,0,0.4); }
[data-theme="dark"] .lede { color: #B4C4B6; }
[data-theme="dark"] .strip { background: #10231A; }
[data-theme="dark"] .work { background: #132419; border: 1px solid var(--line-strong); }
[data-theme="dark"] .name-copy { color: #B9C8BB; }
[data-theme="dark"] .footer { background: #0E1712; }
[data-theme="dark"] .contact-card::after { background: linear-gradient(var(--mint), #2E6B42); }
[data-theme="dark"] .figure-bar { background: rgba(134,217,155,0.06); }
[data-theme="dark"] .figure-steps li.on { background: rgba(134,217,155,0.09); }
[data-theme="dark"] .rules-title { background: rgba(134,217,155,0.06); }
[data-theme="dark"] .rules li:hover { background: #16241C; }
[data-theme="dark"] .grain { opacity: 0.035; }
[data-theme="dark"] .ambient .a1 { background: radial-gradient(circle at center, rgba(134,217,155,0.17), transparent 65%); }
[data-theme="dark"] .ambient .a2 { background: radial-gradient(circle at center, rgba(24,50,34,0.9), transparent 70%); }
[data-theme="dark"] .ambient .a3 { background: radial-gradient(circle at center, rgba(134,217,155,0.09), transparent 65%); }
/* the phone mock stays a light interface in both modes — intentional */
[data-theme="dark"] .phone { box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
/* construction grid streaks through text on dark — keep it light-mode only */
[data-theme="dark"] .page-grid { display: none; }
[data-theme="dark"] .scroll-top {
  background: rgba(18, 26, 21, 0.78);
  border-color: var(--line-strong);
  color: var(--mint);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .scroll-top:hover {
  background: rgba(24, 38, 29, 0.94);
  border-color: var(--mint);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(134, 217, 155, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: auto; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
section[id], footer[id] { scroll-margin-top: 73px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--pine); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* faint construction grid behind everything — kept sparse on purpose */
.page-grid {
  position: fixed; inset: 0; z-index: -2;
  max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-inline: var(--gut);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 82%, transparent 100%);
}
.page-grid span { border-left: 1px solid var(--grid); }
.page-grid span:last-child { border-right: 1px solid var(--grid); }

/* slow ambient wash in brand colours — barely there, always moving */
.ambient { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.ambient span {
  position: absolute; border-radius: 50%;
  filter: blur(50px);
  backface-visibility: hidden;
  will-change: transform;
}
.ambient .a1 {
  width: 52vmax; height: 52vmax; left: -14vmax; top: -15vmax;
  background: radial-gradient(circle at center, rgba(134,217,155,0.32), transparent 65%);
  animation: drift1 30s ease-in-out infinite alternate;
}
.ambient .a2 {
  width: 44vmax; height: 44vmax; right: -12vmax; top: 24vh;
  background: radial-gradient(circle at center, rgba(190,228,200,0.95), transparent 70%);
  animation: drift2 38s ease-in-out infinite alternate;
}
.ambient .a3 {
  width: 48vmax; height: 48vmax; left: 14vw; bottom: -20vmax;
  background: radial-gradient(circle at center, rgba(40,92,58,0.17), transparent 65%);
  animation: drift3 46s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(7vw, 8vh, 0); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-7vw, 7vh, 0); }
}
@keyframes drift3 {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6vw, -7vh, 0); }
}

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; word-spacing: normal; }

/* ================= TOPBAR ================= */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 247, 243, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  height: 72px;
  display: flex; align-items: center; gap: 24px;
}
.wordmark { display: flex; align-items: center; color: var(--pine); }
.wordmark-logo { width: 160px; height: auto; display: block; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topnav a {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  display: inline-flex; gap: 7px; align-items: baseline;
}
.topnav a i { font-family: var(--mono); font-style: normal; font-size: 10px; color: var(--faint); }
.topnav a:hover { color: var(--pine); }
.topnav-pill {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px !important; color: var(--pine) !important;
  transition: background 0.25s, color 0.25s;
}
.topnav-pill:hover { background: var(--pine); color: #fff !important; }
.menu-btn {
  display: none; margin-left: auto;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 18px; color: var(--pine); cursor: pointer;
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--pine); cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.25s ease, background 0.25s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--pine); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.mobilemenu { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-6px); padding-bottom: 0; background: rgba(246,247,243,0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: max-height 0.4s var(--ease), opacity 0.3s ease, transform 0.4s var(--ease), padding-bottom 0.3s ease; }
.mobilemenu a {
  padding: 13px 0; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 15px; color: var(--pine);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
.mobilemenu.open { max-height: 420px; opacity: 1; transform: none; padding-bottom: 0; }
.mobilemenu.open a { opacity: 1; transform: none; }
.mobilemenu.open a:nth-child(2) { transition-delay: 0.05s; }
.mobilemenu.open a:nth-child(3) { transition-delay: 0.1s; }
.mobilemenu.open a:nth-child(4) { transition-delay: 0.15s; }
.mobilemenu.open a:nth-child(5) { transition-delay: 0.2s; }

/* ================= HERO ================= */
.hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: start;
  padding-top: 72px; padding-bottom: 72px;
}
/* kicker removed — h1 keeps its exact position via first-child margin */
.hero-main > h1:first-child { margin-top: 44px; }
.hero h1 {
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 0.94; letter-spacing: -0.065em; word-spacing: 0.08em; font-weight: 800; color: var(--pine);
}
.hero h1 .serif { color: var(--ink); }
.lede {
  margin-top: 26px; max-width: 480px;
  font-size: 17px; line-height: 1.75; color: #43503F;
}
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 24px; border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); transition-duration: 0.12s; }
.btn-dark { background: var(--pine); color: #fff; }
.btn-dark:hover { background: #143320; box-shadow: 0 14px 28px rgba(30,74,46,0.22); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--pine); background: transparent; }
.btn-ghost:hover { border-color: var(--pine); }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.25); }
.hero-specs {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 28px; justify-content: start;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-specs dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.hero-specs dd { font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* figure — one quiet instrument on its own faint sheet */
.figure {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
}
.figure-bar {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--faint); text-transform: uppercase;
  padding: 13px 20px; border-bottom: 1px solid var(--line);
}
.figure-svg {
  width: 100%; height: auto; display: block;
  padding: 30px 30px 10px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
}
.f-construction { stroke: var(--construct); stroke-width: 1; }
.f-eyelet, .f-handle { stroke: var(--pine); stroke-width: 1.5; }
.f-rim { stroke: var(--pine); stroke-width: 1.5; }
.f-bowl { stroke: var(--pine); stroke-width: 1.5; fill: none; }
.f-liquid { fill: rgba(134,217,155,0.12); stroke: none; }
.f-well { fill: var(--pine); stroke: var(--mint); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: receive 6s ease-in-out infinite; }
.f-drop { fill: rgba(134,217,155,0.5); stroke: var(--pine); stroke-width: 1.25; transform-box: fill-box; transform-origin: center; animation: deliver 6s ease-in-out infinite; }
.f-splash { fill: none; stroke: var(--leaf); stroke-width: 1.25; transform-box: fill-box; transform-origin: center; opacity: 0; animation: splash 6s ease-out infinite; }
.f-ground { stroke: var(--pine); stroke-width: 1.5; }
.f-ground-thin { stroke: rgba(30,74,46,0.5); stroke-width: 1; }
.f-origin { fill: var(--pine); }
.f-carrier { fill: var(--mint); stroke: var(--pine); stroke-width: 1.25; transform-box: fill-box; transform-origin: center; animation: carry 6s var(--ease) infinite; }
.f-ring { stroke: var(--leaf); stroke-width: 1.25; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 6s ease-out infinite; }
/* loop stays parked at t=0 until JS releases it together with the highlights */
.figure .f-carrier, .figure .f-ring, .figure .f-well, .figure .f-drop, .figure .f-splash { animation-play-state: paused; }
.figure.go .f-carrier, .figure.go .f-ring, .figure.go .f-well, .figure.go .f-drop, .figure.go .f-splash { animation-play-state: running; }
/* one 6s story, in order: gather (0–2s) → hold (2–4s) → release (4–6s) */
@keyframes carry {
  0%, 6% { transform: translateY(0); opacity: 0; }
  12% { transform: translateY(0); opacity: 1; }
  34% { transform: translateY(244px); opacity: 1; }
  42%, 100% { transform: translateY(244px); opacity: 0; }
}
@keyframes receive {
  0%, 32%, 58%, 100% { transform: scale(1); }
  42%, 50% { transform: scale(1.25); }
}
@keyframes deliver {
  0%, 46% { transform: translateY(0) scale(0.55); opacity: 0; }
  54% { transform: translateY(0) scale(1); opacity: 1; }
  76% { transform: translateY(38px) scale(0.94); opacity: 1; }
  84%, 100% { transform: translateY(44px) scale(0.7); opacity: 0; }
}
@keyframes splash {
  0%, 74% { transform: scale(0.4); opacity: 0; }
  80% { transform: scale(1); opacity: 0.8; }
  90%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes ring {
  0%, 6% { opacity: 0; transform: scale(0.6); }
  12% { opacity: 0.85; transform: scale(1); }
  26%, 100% { opacity: 0; transform: scale(1.35); }
}
.figure-steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); margin-top: 0;
}
.figure-steps li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 20px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  border-left: 1px solid var(--line);
  opacity: 0.5; transition: opacity 0.4s, color 0.4s, background 0.4s;
  white-space: nowrap;
}
.figure-steps li:first-child { border-left: 0; }
.figure-steps li b { font-weight: 400; }
.figure-steps li.on { opacity: 1; color: var(--pine); background: rgba(234,247,237,0.45); }
.figure-cap {
  padding: 12px 20px 14px; font-size: 12.5px; line-height: 1.6; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ================= STRIP ================= */
.strip {
  border-block: 1px solid var(--line-strong);
  background: var(--pine); color: #DCEFE1;
  overflow: hidden; white-space: nowrap;
}
.strip-track {
  display: flex; width: max-content;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  animation: strip 36s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
/* two identical halves — the -50% loop lands exactly on the seam */
.strip-group {
  display: flex; align-items: center; gap: 22px; flex: none;
  padding: 13px 22px 13px 0;
}
.strip-track i { color: var(--mint); font-style: normal; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ================= SECTIONS ================= */
.section { padding-top: 110px; padding-bottom: 8px; }
.sec-index {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 26px;
}
.sec-index span:first-child { color: var(--pine); font-weight: 500; }
.sec-index i { display: block; width: 36px; height: 1px; background: var(--leaf); }
.sec-head h2 {
  font-size: clamp(36px, 4.4vw, 64px); line-height: 1.0;
  letter-spacing: -0.055em; word-spacing: 0.055em; font-weight: 800; color: var(--pine);
  max-width: 16ch;
}
.sec-head h2 .serif { color: var(--ink); }
.sec-sub { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* trio */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden;
  margin-top: 48px; background: var(--card);
}
.trio article { padding: 32px 30px 30px; border-left: 1px solid var(--line); }
.trio article:first-child { border-left: 0; }
.trio-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--leaf); margin-bottom: 16px; }
.trio h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; color: var(--pine); margin-bottom: 10px; }
.trio article > p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.trio ul { list-style: none; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.trio li { font-family: var(--mono); font-size: 11.5px; color: var(--pine); padding: 5px 0 5px 16px; position: relative; }
.trio li::before { content: '—'; position: absolute; left: 0; color: var(--leaf); }

/* rules — single card table so dividers always line up */
.rules {
  margin-top: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  overflow: hidden;
  position: relative;
}
.rules-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(234,247,237,0.4);
}
.rules ol {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.rules li {
  padding: 22px 24px 24px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
  line-height: 1.45;
  background: var(--card);
}
.rules li:nth-child(-n+4) { border-top: 0; }
.rules li:nth-child(4n+1) { border-left: 0; }
.rules li span {
  font-family: var(--mono); font-weight: 400; font-size: 11px;
  font-variant-numeric: tabular-nums; color: var(--faint);
  display: block; margin-bottom: 12px; letter-spacing: 0.08em;
}
.rules li small {
  display: block; font-weight: 400; color: var(--muted);
  font-size: 13px; margin-top: 6px; line-height: 1.6;
}

/* ================= WORK ================= */
.work {
  margin-top: 48px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  background: var(--pine); color: #EDF5EE;
  border-radius: 6px; overflow: hidden; position: relative;
}
.work::before {
  content: ''; position: absolute; width: 520px; height: 520px;
  right: -200px; top: -230px; border-radius: 50%;
  border: 1px solid rgba(134,217,155,0.3);
  box-shadow: 0 0 0 26px rgba(134,217,155,0.05), 0 0 0 54px rgba(134,217,155,0.035), 0 0 0 84px rgba(134,217,155,0.02);
  pointer-events: none;
}
.work-info { padding: 56px 52px; position: relative; z-index: 1; }
.work-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { border: 1px solid rgba(134,217,155,0.5); border-radius: 999px; padding: 4px 12px; font-size: 10.5px; color: #fff; }
.work-info h3 { font-size: clamp(38px, 4vw, 60px); line-height: 0.98; letter-spacing: -0.055em; word-spacing: 0.055em; font-weight: 800; margin: 22px 0 18px; }
.work-desc { color: #C9DDCD; font-size: 15px; line-height: 1.75; max-width: 42ch; }
.work-list { list-style: none; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); display: grid; gap: 10px; }
.work-list li { font-size: 13.5px; color: #DCEFE1; }
.work-list b { color: #fff; }
.work-cta { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.work-meta { margin-top: 26px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(220,239,225,0.6); }
.work-visual { padding: 56px 52px 40px 0; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.phone {
  background: #F4F8F4; color: var(--ink); border-radius: 10px;
  padding: 18px; max-width: 400px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  transform: rotate(1.6deg); transition: transform 0.5s var(--ease);
  /* mock stays a light interface in both modes — pin light vars */
  --pine: #1E4A2E; --ink: #141613; --faint: #8A948C;
}
.work:hover .phone { transform: rotate(0deg) translateY(-4px); }
.phone-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.phone-search {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding: 13px 4px; border-bottom: 2px solid var(--pine);
  font-size: 13.5px; color: var(--faint);
}
.phone-search b { color: var(--pine); font-size: 18px; font-weight: 400; }
.phone-row { display: flex; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.phone-row i { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); position: relative; flex: none; }
.phone-row i::after { content: ''; position: absolute; inset: 9px; border: 1.5px solid var(--pine); border-radius: 50%; }
.phone-row div { flex: 1; min-width: 0; }
.phone-row strong { display: block; font-size: 12.5px; color: var(--pine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-row small { font-size: 11px; color: var(--faint); }
.phone-row em { font-style: normal; color: var(--pine); }
.phone-foot { display: flex; justify-content: space-between; padding-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.work-cap { margin-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: rgba(220,239,225,0.55); }
.work-note { margin-top: 22px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--mint); padding-left: 16px; max-width: 60ch; }

/* ================= NAME ================= */
.name {
  margin-top: 110px; background: var(--soft);
  border-block: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.name-in {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  padding-top: 88px; padding-bottom: 88px; align-items: center;
}
.name h2 { font-size: clamp(48px, 5.5vw, 84px); letter-spacing: -0.06em; word-spacing: 0.06em; font-weight: 800; color: var(--pine); line-height: 1; }
.name h2 .dev { font-weight: 400; font-size: 0.45em; letter-spacing: 0; color: var(--moss); }
.name-copy { margin-top: 20px; max-width: 52ch; color: #4A574E; font-size: 16px; line-height: 1.75; }
.name-copy i { font-family: var(--serif); }
.name-defs { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 560px; }
.name-defs div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 20px 0 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.name-defs dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); }
.name-defs dd { font-size: 13.5px; color: var(--ink); }
.name-glyph { text-align: right; position: relative; }
.name-big {
  font-size: clamp(104px, 13vw, 196px); line-height: 1.08; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.5px var(--pine); letter-spacing: -0.05em;
  display: block;
}
.name-small { display: block; margin-top: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); line-height: 1.8; }

/* ================= CONTACT ================= */
.contact { padding-top: 96px; padding-bottom: 110px; }
.contact-card {
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--card);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  padding: 60px 56px; position: relative; overflow: hidden;
}
.contact-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--mint), var(--pine));
}
.contact-card h2 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -0.055em; word-spacing: 0.055em; line-height: 1.0; color: var(--pine); font-weight: 800; }
.contact-card h2 .serif { color: var(--ink); }
.contact-card > div:first-child > p:last-of-type { margin-top: 16px; color: var(--muted); max-width: 44ch; font-size: 15px; line-height: 1.7; }
.sec-index.light { margin-bottom: 20px; }
.contact-side { border-left: 1px solid var(--line); padding-left: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.mail { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.03em; color: var(--pine); border-bottom: 2px solid var(--mint); padding-bottom: 4px; align-self: flex-start; }
.mail:hover { border-color: var(--pine); }
.contact-meta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.contact-side .btn { align-self: flex-start; margin-top: 6px; }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--line-strong); background: #EFF2EB; padding-top: 56px; }
.foot-big { margin: 0; line-height: 1; }
.foot-logo { width: min(560px, 100%); height: auto; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.foot-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-grid p, .foot-grid a { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.foot-grid div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot-grid a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.foot-muted { font-size: 12px !important; color: var(--faint) !important; }
.foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}

/* ================= REVEAL — one calm rise, no blur, no bounce ================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.topnav a, .mail, .foot-grid a {
  transition: color 0.25s ease, border-color 0.25s ease;
}
.trio article, .rules li {
  transition: transform 0.35s var(--ease), background 0.3s ease, box-shadow 0.35s ease;
}
.trio article:hover { transform: translateY(-3px); }
.rules li:hover { transform: translateY(-2px); background: #FDFFFD; }
.work:hover .phone { transform: rotate(0deg) translateY(-4px); }
.phone { transition: transform 0.5s var(--ease), box-shadow 0.4s ease; }

/* ================= SCROLL TO TOP ================= */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 247, 243, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  color: var(--pine);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 74, 46, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.35s, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.35s ease;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-3px);
  background: rgba(234, 247, 237, 0.92);
  border-color: var(--pine);
  color: var(--pine);
  box-shadow: 0 14px 28px rgba(30, 74, 46, 0.18);
}
.scroll-top:active {
  transform: translateY(-1px) scale(0.96);
  transition-duration: 0.12s;
}
.scroll-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}
.scroll-top:hover svg {
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 36px; }
  .topnav { gap: 18px; }
  .rules ol { grid-template-columns: repeat(2, 1fr); }
  .rules li:nth-child(-n+4) { border-top: 1px solid var(--line); }
  .rules li:nth-child(-n+2) { border-top: 0; }
  .rules li:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .rules li:nth-child(odd) { border-left: 0; }
  .work-info, .work-visual { padding: 44px 36px; }
  .work-visual { padding-top: 0; }
  .work { grid-template-columns: 1fr; }
  .phone { max-width: 440px; }
  .name-in { grid-template-columns: 1fr; gap: 32px; }
  .name-glyph { text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --gut: 24px; }
  .topnav { display: none; }
  .topbar-in { gap: 12px; }
  .theme-toggle { margin-left: auto; width: 40px; height: 40px; }
  .menu-btn { display: block; margin-left: 0; flex: none; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .figure { max-width: 560px; }
  .trio { grid-template-columns: 1fr; }
  .trio article { border-left: 0; border-top: 1px solid var(--line); }
  .trio article:first-child { border-top: 0; }
  .contact-card { grid-template-columns: 1fr; padding: 44px 32px; gap: 32px; }
  .contact-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .hero-specs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gut: 20px; }
  section[id], footer[id] { scroll-margin-top: 65px; }
  .topbar-in { height: 64px; }
  .wordmark-logo { width: 136px; }
  .foot-logo { width: 100%; }
  .page-grid { grid-template-columns: repeat(2, 1fr); opacity: 0.7; }
  .ambient span { filter: blur(44px); }
  .ambient .a1, .ambient .a2, .ambient .a3 { animation-duration: 60s; }
  .section { padding-top: 80px; }
  .hero h1 { font-size: clamp(46px, 13vw, 68px); }
  .lede { font-size: 15.5px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-specs { grid-template-columns: 1fr 1fr; }
  .figure-steps { grid-template-columns: 1fr; }
  .figure-steps li { border-left: 0; border-top: 1px solid var(--line); }
  .figure-steps li:first-child { border-top: 0; }
  .rules ol { grid-template-columns: 1fr; }
  .rules li { border-left: 0 !important; }
  .rules li:nth-child(n) { border-top: 1px solid var(--line); }
  .rules li:first-child { border-top: 0; }
  .work-info { padding: 36px 24px 28px; }
  .work-visual { padding: 0 24px 28px; }
  .name-in { padding-top: 64px; padding-bottom: 64px; }
  .name-defs div { grid-template-columns: 1fr; gap: 6px; }
  .contact { padding-bottom: 80px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-base { flex-direction: column; gap: 8px; }
  .scroll-top { right: 18px; bottom: 18px; width: 40px; height: 40px; }
  .scroll-top svg { width: 16px; height: 16px; }
}

@media (max-width: 420px) {
  .hero { padding-top: 44px; padding-bottom: 52px; }
  .hero-specs { grid-template-columns: 1fr; gap: 12px; }
  .phone-row strong { white-space: normal; }
  .contact-card { padding: 36px 22px; }
  .mail { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .strip-track, .f-carrier, .f-ring, .f-well, .f-drop, .f-splash, .ambient span { animation: none; }
  .f-carrier { opacity: 1; transform: translateY(110px); }
  .f-drop { opacity: 1; transform: none; }
  .f-splash { opacity: 0; }
  .btn:hover, .work:hover .phone, .trio article:hover, .rules li:hover { transform: none; }
  .mobilemenu, .mobilemenu a { transition: none; }
  .btn:active { transform: none; }
  .scroll-top { transition: opacity 0.15s ease, visibility 0.15s; }
  .scroll-top:hover, .scroll-top:active, .scroll-top:hover svg { transform: none; }
}
