/* NID Studios — site stylesheet
   Cold concrete + Trondheim red.
   Space Mono (display) · IBM Plex Mono (body) · Caveat (post-its)

   Fonts: download .woff2 files from gwfh.mranftl.com/fonts and drop
   into /assets/fonts/ — see GUIDE.md in the skeleton folder. */

/* ── FONTS ──────────────────────────────────────────────── */
@font-face {
  font-family: "Space Mono";
  src: local("Space Mono Bold"),
       url("/assets/fonts/SpaceMono-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: local("Space Mono"),
       url("/assets/fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: local("IBM Plex Mono Light"),
       url("/assets/fonts/IBMPlexMono-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: local("IBM Plex Mono"),
       url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: local("IBM Plex Mono Medium"),
       url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* Caveat: handwritten text for hero post-it notes */
@font-face {
  font-family: "Caveat";
  src: local("Caveat Bold"), local("Caveat-Bold"),
       url("/assets/fonts/Caveat-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: local("Caveat"), local("Caveat-Regular"),
       url("/assets/fonts/Caveat-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --bg:        #EDEDEA;
  --surface:   #E2E0DB;
  --fg:        #111111;
  --meta:      #8C8C86;
  --accent:    #B83232;

  --rule:        rgba(17, 17, 17, 0.08);
  --rule-strong: rgba(17, 17, 17, 0.16);
  --fg-soft:     rgba(17, 17, 17, 0.62);
  --accent-soft: rgba(184, 50, 50, 0.10);

  --f-display: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-body:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-1: 4px; --s-2: 8px;  --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  --gutter: clamp(24px, 4vw, 64px);
  --maxw:   1280px;

  --ease:     cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --d-micro:  180ms;
  --d-default: 280ms;
  --d-slow:   480ms;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; margin: 0; color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(56px, 11vw, 168px); line-height: 0.86; letter-spacing: -0.012em; text-transform: uppercase; }
h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 0.98; letter-spacing: -0.005em; text-transform: uppercase; }
h3 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.15; text-transform: uppercase; }
h4 { font-size: 22px; line-height: 1.25; text-transform: none; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

/* ── UTILITIES ──────────────────────────────────────────── */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.tg {
  font-family: var(--f-body); font-weight: 500; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--fg); color: var(--fg);
}
.tg.meta { color: var(--meta); border-color: var(--meta); }
.tg.accent { color: var(--accent); border-color: var(--accent); }
.tg .ck { color: var(--accent); }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: padding var(--d-default) var(--ease), background var(--d-default) var(--ease), border-color var(--d-default) var(--ease);
}
.nav.scrolled {
  padding: 12px var(--gutter);
  background: rgba(237,237,234,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--fg); }
.brand .wm { display: inline-block; overflow: hidden; transition: max-width var(--d-slow) var(--ease), opacity var(--d-default) var(--ease); max-width: 200px; white-space: nowrap; }
.nav.scrolled .brand .wm { max-width: 0; opacity: 0; }
.brand-mark { width: 22px; height: 22px; position: relative; display: inline-block; flex-shrink: 0; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--accent); }
.brand-mark::after { transform: rotate(45deg); inset: 3px; border-color: var(--fg); }
.nav-links {
  display: flex; gap: 28px; justify-content: center;
  font-family: var(--f-body); font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta);
}
.nav-links a { position: relative; padding: 4px 0; cursor: pointer; transition: color var(--d-default) var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent); transition: width var(--d-default) var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* ── TRONDHEIM CLOCK ────────────────────────────────────── */
.clock { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.clock-arc { flex: none; overflow: visible; }
.clock-sun circle { animation: clock-sun-pulse 4s ease-in-out infinite; }
.clock-sun line { animation: clock-ray-fade 24s linear infinite; }
@keyframes clock-sun-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.78; } }
@keyframes clock-ray-fade  { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.25; } }
.clock-moon circle { animation: clock-moon-glow 6s ease-in-out infinite; }
@keyframes clock-moon-glow { 0%, 100% { opacity: 0.92; } 50% { opacity: 0.7; } }
.clock-time { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--fg); }
.clock-sep  { color: var(--meta); opacity: 0.6; }
.clock-loc  { color: var(--meta); font-family: var(--f-body); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 760px) { .clock-sep, .clock-loc { display: none; } }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  font-family: var(--f-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.20em; text-transform: uppercase;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  position: relative; overflow: hidden; isolation: isolate;
  transition: background var(--d-default) var(--ease), color var(--d-default) var(--ease);
  cursor: pointer;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transform: translateX(-101%); transition: transform var(--d-slow) var(--ease); }
.btn:hover { color: var(--fg); background: transparent; }
.btn:hover::after { transform: translateX(0); }
.btn .arr { display: inline-block; transition: transform var(--d-default) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.ghost::after { background: var(--fg); }
.btn.ghost:hover { color: var(--bg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: clamp(80px, 12vw, 144px) 0; border-top: 1px solid var(--rule); }
.section.alt { background: var(--surface); }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: baseline; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .label { display: flex; align-items: center; gap: 12px; }
.section-head .label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.section-head h2 { max-width: 18ch; }
.section-head h2 .it { font-family: var(--f-body); font-weight: 300; text-transform: none; font-style: italic; font-size: 0.7em; letter-spacing: 0; color: var(--meta); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; padding: 160px 0 96px;
  min-height: 92vh; display: flex; align-items: center;
  isolation: isolate; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 88px 88px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, black 30%, transparent 80%);
  opacity: 0.7;
}
.hero-inner { width: 100%; display: grid; gap: 56px; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta); flex-wrap: wrap; }
.hero-meta .cross { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .cross::before { content: ""; width: 10px; height: 10px; background: linear-gradient(var(--accent), var(--accent)) center/100% 1px no-repeat, linear-gradient(var(--accent), var(--accent)) center/1px 100% no-repeat; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease-out) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .36s; }
@keyframes rise { to { transform: translateY(0); } }
.hero h1 em { font-style: italic; font-family: var(--f-body); font-weight: 400; font-size: 0.66em; color: var(--accent); letter-spacing: -0.005em; text-transform: none; }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding-top: 32px; border-top: 1px solid var(--rule); }
.hero-tag { font-family: var(--f-body); font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--fg); max-width: 50ch; }
.hero-tag b { font-weight: 700; }
.about-lede { font-family: var(--f-body); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; max-width: 28ch; font-weight: 300; color: var(--fg); }
.about-lede em { font-style: italic; color: var(--accent); }
@media (max-width: 820px) { .hero-foot { grid-template-columns: 1fr; gap: 24px; } }

/* ── WORKBOARD POST-ITS ─────────────────────────────────── */
.workboard {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none; contain: paint;
}
.wb-paper {
  position: absolute;
  width: clamp(190px, 17vw, 240px);
  aspect-ratio: 1 / 0.92;
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0, rgba(0,0,0,0.02) 14px, rgba(0,0,0,0) 28px),
    var(--wb-bg, #FEEE85);
  color: #1F1B14;
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 1px 8px 14px rgba(20,20,16,0.16), 0 2px 4px rgba(20,20,16,0.10);
  transform-origin: 50% 30%;
  will-change: transform, opacity, clip-path;
  animation: wb-life 7s forwards;
}
.wb-paper::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.10) 50%); }
.wb-paper-note { display: block; font-family: "Caveat", "Bradley Hand", cursive; font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.16; color: #1F1B14; text-wrap: pretty; }
.wb-paper-byline { display: block; font-family: "Caveat", cursive; font-weight: 500; font-size: 14px; line-height: 1; color: rgba(31,27,20,0.55); font-style: italic; }
@keyframes wb-life {
  0%   { transform: translate(0,-130vh) rotate(calc(var(--wb-rot) - 28deg)); opacity: 0; clip-path: inset(0); animation-timing-function: cubic-bezier(.22,.78,.36,1); }
  4%   { opacity: 1; animation-timing-function: cubic-bezier(.22,.78,.36,1); }
  14%  { transform: translate(0,16px) rotate(calc(var(--wb-rot) + 8deg)); animation-timing-function: cubic-bezier(.34,1.35,.64,1); }
  20%  { transform: translate(0,-7px) rotate(calc(var(--wb-rot) - 5deg)); animation-timing-function: cubic-bezier(.34,1.2,.64,1); }
  26%  { transform: translate(0,3px) rotate(calc(var(--wb-rot) + 2deg)); animation-timing-function: ease-out; }
  30%  { transform: translate(0,0) rotate(var(--wb-rot)); animation-timing-function: ease-in-out; }
  42%  { transform: translate(0,0) rotate(calc(var(--wb-rot) + 0.8deg)); animation-timing-function: ease-in-out; }
  52%  { transform: translate(0,0) rotate(calc(var(--wb-rot) - 0.6deg)); animation-timing-function: ease-in-out; }
  62%  { transform: translate(0,0) rotate(var(--wb-rot)); clip-path: inset(0); opacity: 1; animation-timing-function: steps(1,end); }
  67%  { transform: translate(0,2px) rotate(calc(var(--wb-rot) - 6deg)) scale(0.94); clip-path: polygon(0% 0%,88% 0%,100% 18%,100% 100%,6% 100%); animation-timing-function: steps(1,end); }
  72%  { transform: translate(4px,8px) rotate(calc(var(--wb-rot) + 22deg)) scale(0.78,0.7); clip-path: polygon(8% 14%,90% 4%,100% 62%,70% 100%,4% 84%); animation-timing-function: steps(1,end); }
  77%  { transform: translate(-3px,12px) rotate(calc(var(--wb-rot) - 36deg)) scale(0.58,0.52); clip-path: polygon(18% 8%,70% 0%,100% 36%,86% 92%,24% 100%,0% 56%); animation-timing-function: steps(1,end); }
  82%  { transform: translate(5px,18px) rotate(calc(var(--wb-rot) + 90deg)) scale(0.38,0.36); clip-path: polygon(24% 18%,76% 6%,96% 40%,80% 84%,36% 96%,8% 64%,14% 32%); animation-timing-function: steps(1,end); }
  89%  { transform: translate(0,28px) rotate(calc(var(--wb-rot) - 60deg)) scale(0.22); clip-path: polygon(30% 22%,70% 28%,84% 60%,60% 86%,28% 80%,18% 50%); opacity: 0.85; animation-timing-function: steps(1,end); }
  94%  { transform: translate(4px,46px) rotate(calc(var(--wb-rot) + 140deg)) scale(0.1); clip-path: polygon(36% 36%,62% 32%,70% 58%,50% 72%,30% 60%); opacity: 0.55; animation-timing-function: steps(1,end); }
  100% { transform: translate(0,96px) rotate(calc(var(--wb-rot) - 80deg)) scale(0.02); opacity: 0; }
}
@media (max-width: 720px)            { .workboard { display: none; } }
@media (prefers-reduced-motion: reduce) { .wb-paper { animation: none; transform: rotate(var(--wb-rot)); } }

/* ── MAKE WEB BEAUTIFUL section ──────────────────────────── */
.mwb { padding: clamp(96px, 14vw, 192px) 0; position: relative; border-top: 1px solid var(--rule); }
.mwb.mwb--dark { background: var(--fg); color: #EDEDEA; border-top-color: rgba(237,237,234,0.12); }
.mwb .mwb-meta { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.mwb .mwb-meta::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.mwb h2 { font-size: clamp(72px, 12vw, 184px); line-height: 0.88; letter-spacing: -0.012em; text-transform: uppercase; max-width: 14ch; }
.mwb h2 em { font-family: var(--f-body); font-style: italic; font-weight: 400; font-size: 0.62em; color: var(--accent); text-transform: none; letter-spacing: 0; }
.mwb .mwb-foot { display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: end; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--rule); }
.mwb.mwb--dark .mwb-foot { border-top-color: rgba(237,237,234,0.12); }
.mwb .mwb-body { font-family: var(--f-body); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; font-weight: 300; max-width: 52ch; }
.mwb .btn { background: var(--accent); color: #EDEDEA; border-color: var(--accent); }
.mwb.mwb--dark .btn { background: #EDEDEA; color: var(--fg); border-color: #EDEDEA; }
@media (max-width: 820px) { .mwb .mwb-foot { grid-template-columns: 1fr; } }

/* ── DRAWER / SERVICES ──────────────────────────────────── */
.case { border: 1px solid var(--rule-strong); }
.drawer { display: grid; grid-template-columns: 80px 1fr 1.2fr 60px; gap: clamp(20px, 4vw, 56px); align-items: center; padding: 32px clamp(20px, 4vw, 44px); border-top: 1px solid var(--rule); position: relative; cursor: pointer; transition: background var(--d-default) var(--ease); }
.drawer:first-child { border-top: 0; }
.drawer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--d-slow) var(--ease); }
.drawer:hover, .drawer.open { background: var(--bg); }
.section.alt .drawer:hover, .section.alt .drawer.open { background: var(--bg); }
.drawer:hover::before, .drawer.open::before { transform: scaleY(1); }
.drawer-num  { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; color: var(--meta); transition: color var(--d-default) var(--ease); }
.drawer:hover .drawer-num, .drawer.open .drawer-num { color: var(--accent); }
.drawer-name { font-family: var(--f-display); font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--fg); display: flex; flex-direction: column; gap: 8px; }
.drawer-name .sub { font-family: var(--f-body); font-style: italic; font-weight: 300; font-size: 13px; color: var(--meta); text-transform: none; letter-spacing: 0; }
.drawer-copy { font-family: var(--f-body); font-size: 14px; line-height: 1.55; color: var(--fg); max-width: 44ch; }
.drawer-pull { justify-self: end; display: flex; align-items: center; gap: 10px; font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta); transition: color var(--d-default) var(--ease); background: none; border: none; cursor: pointer; }
.drawer:hover .drawer-pull, .drawer.open .drawer-pull { color: var(--accent); }
.drawer-pull .pull { width: 22px; height: 22px; border: 1px solid currentColor; display: grid; place-items: center; position: relative; transition: transform var(--d-slow) var(--ease); }
.drawer-pull .pull::before, .drawer-pull .pull::after { content: ""; position: absolute; background: currentColor; }
.drawer-pull .pull::before { width: 10px; height: 1px; }
.drawer-pull .pull::after  { width: 1px; height: 10px; transition: transform var(--d-default) var(--ease); }
.drawer.open .drawer-pull .pull::after { transform: scaleY(0); }
.drawer.open .drawer-pull .pull { transform: rotate(180deg); }
.drawer-detail { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-slow) var(--ease), margin-top var(--d-slow) var(--ease); margin-top: 0; }
.drawer-detail-inner { overflow: hidden; display: grid; grid-template-columns: 80px 1fr 60px; gap: clamp(20px, 4vw, 56px); }
.drawer.open .drawer-detail { grid-template-rows: 1fr; margin-top: 24px; }
.drawer-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; padding-bottom: 8px; }
.spec h4 { font-family: var(--f-body); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.spec ul { list-style: none; padding: 0; margin: 0; }
.spec li { padding: 8px 0; font-family: var(--f-body); font-size: 13px; color: var(--fg); border-bottom: 1px dashed var(--rule); display: flex; justify-content: space-between; gap: 12px; }
.spec li:last-child { border-bottom: 0; }
.spec li .v { color: var(--meta); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 900px) {
  .drawer { grid-template-columns: 50px 1fr 36px; }
  .drawer-copy { display: none; }
  .drawer-detail-inner { grid-template-columns: 50px 1fr 36px; }
  .drawer-detail-body { grid-template-columns: 1fr; }
}

/* ── PACKAGES (services + why us) ───────────────────────── */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg { background: var(--bg); border: 1px solid var(--rule); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 18px; min-height: 380px; transition: background var(--d-default) var(--ease); }
.section.alt .pkg { background: var(--surface); }
.pkg:hover { background: var(--surface); }
.section.alt .pkg:hover { background: var(--bg); }
.pkg .num { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.pkg h3 { font-family: var(--f-display); font-size: 36px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.pkg .price { font-family: var(--f-display); font-weight: 700; font-size: 26px; }
.pkg .price small { font-family: var(--f-body); font-weight: 300; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--meta); display: block; }
.pkg ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pkg li { font-family: var(--f-body); font-size: 13px; color: var(--fg); display: flex; gap: 8px; }
.pkg li::before { content: "·"; color: var(--accent); }
.pkg .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-body); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--meta); }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }

/* ── PROCESS ────────────────────────────────────────────── */
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process-track::before { content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 1px; background: var(--rule); }
.step { padding: 0 18px; }
.step:not(:last-child) { border-right: 1px solid var(--rule); }
.step .node { width: 14px; height: 14px; background: var(--bg); border: 1px solid var(--accent); margin: 20px 0 24px; position: relative; }
.step .node::before { content: ""; position: absolute; inset: 3px; background: var(--accent); }
.step .num  { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 8px; }
.step h3   { font-family: var(--f-display); font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1; margin-bottom: 12px; }
.step p    { font-family: var(--f-body); font-size: 13px; color: var(--fg); line-height: 1.55; max-width: 28ch; }
.step .dur { margin-top: 20px; font-family: var(--f-body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta); }
@media (max-width: 900px) {
  .process-track { grid-template-columns: 1fr; }
  .process-track::before { display: none; }
  .step { padding: 24px 0; border-right: 0 !important; border-top: 1px solid var(--rule); }
  .step:first-child { border-top: 0; }
}

/* ── ABOUT ──────────────────────────────────────────────── */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.founder { background: var(--bg); padding: 28px; border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.section.alt .founder { background: var(--surface); }
.founder .portrait {
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(45deg, var(--meta) 0 2px, transparent 2px 14px), var(--rule-strong);
  display: flex; align-items: end; padding: 14px;
  color: var(--bg); font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.founder h3 { font-family: var(--f-display); font-size: 28px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.founder .role { font-family: var(--f-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.founder p { font-family: var(--f-body); font-size: 14px; line-height: 1.55; color: var(--fg); font-weight: 300; }
.founder .links { display: flex; gap: 16px; font-family: var(--f-body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta); }
.founder .links a { border-bottom: 1px solid var(--meta); padding-bottom: 1px; }
@media (max-width: 700px) { .founders { grid-template-columns: 1fr; } }

/* ── WORK ───────────────────────────────────────────────── */
.work-list { border-top: 1px solid var(--rule); }
.work-row {
  display: grid; grid-template-columns: 60px 96px 1.4fr 1fr 1fr 60px;
  gap: 24px; align-items: center; padding: 24px 0;
  border-bottom: 1px solid var(--rule); cursor: pointer;
  transition: padding var(--d-default) var(--ease), background var(--d-default) var(--ease);
}
.work-row:hover { padding-left: 12px; padding-right: 12px; background: var(--surface); }
.section.alt .work-row:hover { background: var(--bg); }
.work-num   { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; color: var(--meta); }
.work-thumb { width: 96px; height: 64px; background-color: var(--surface); border: 1px solid var(--rule); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter var(--d-default) var(--ease), transform var(--d-default) var(--ease); display: block; }
.work-row:hover .work-thumb img { filter: grayscale(0); transform: scale(1.04); }
.work-title { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--fg); }
.work-meta  { font-family: var(--f-body); font-size: 12px; color: var(--meta); letter-spacing: 0.06em; }
.work-arr   { font-family: var(--f-body); justify-self: end; font-size: 18px; color: var(--meta); transition: color var(--d-default) var(--ease), transform var(--d-default) var(--ease); }
.work-row:hover .work-arr { color: var(--accent); transform: translateX(4px); }
@media (max-width: 760px) {
  .work-row { grid-template-columns: 32px 1fr 40px; }
  .work-thumb, .work-meta { display: none; }
}

/* ── WORK ROULETTE ──────────────────────────────────────── */
.work-roulette { padding-bottom: clamp(60px, 8vw, 96px); }
.roulette-stage { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: stretch; }
.roulette-image-stack { position: relative; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--rule-strong); overflow: hidden; }
.roulette-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.02); transition: opacity 700ms var(--ease), transform 7s linear; background-color: var(--surface); }
.roulette-image.active { opacity: 1; transform: scale(1); }
.roulette-image-stack::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent 0%, rgba(20,20,16,0.55) 100%); pointer-events: none; }
.roulette-image-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 18px 22px; color: #EDEDEA; font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; z-index: 1; }
.roulette-counter { opacity: 0.75; }
.roulette-image-title { text-align: right; }
.roulette-info { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; animation: roulette-slide-in 600ms var(--ease-out); }
@keyframes roulette-slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.roulette-eyebrow { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.roulette-title { font-family: var(--f-display); font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; line-height: 0.98; letter-spacing: -0.005em; text-transform: uppercase; color: var(--fg); margin: 0; }
.roulette-note { font-family: var(--f-body); font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--fg); max-width: 38ch; margin: 0; }
.roulette-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.roulette-progress { margin-top: 24px; height: 2px; background: var(--rule); overflow: hidden; }
.roulette-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left center; animation: roulette-fill 5500ms linear forwards; }
@keyframes roulette-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.roulette-dots { display: flex; gap: 0; margin-top: 20px; border-top: 1px solid var(--rule); }
.roulette-dot { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px 14px 0; background: transparent; border: 0; border-top: 2px solid transparent; margin-top: -1px; cursor: pointer; text-align: left; font: inherit; color: var(--meta); transition: color var(--d-default) var(--ease), border-color var(--d-default) var(--ease); }
.roulette-dot:hover { color: var(--fg); }
.roulette-dot[aria-selected="true"] { color: var(--fg); border-top-color: var(--accent); }
.roulette-dot-num { font-family: var(--f-body); font-weight: 500; font-size: 10px; letter-spacing: 0.18em; color: var(--meta); }
.roulette-dot[aria-selected="true"] .roulette-dot-num { color: var(--accent); }
.roulette-dot-label { font-family: var(--f-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 900px) { .roulette-stage { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 720px) { .roulette-dots { flex-wrap: wrap; } .roulette-dot { flex: 0 1 50%; padding: 12px 10px 0; } }

/* ── CONTACT ────────────────────────────────────────────── */
.contact h2 { font-size: clamp(48px, 8vw, 112px); line-height: 0.92; margin-bottom: 24px; }
.contact h2 em { font-family: var(--f-body); font-style: italic; font-weight: 400; font-size: 0.6em; color: var(--accent); text-transform: none; letter-spacing: 0; }
.contact-lede { font-family: var(--f-body); font-size: 16px; max-width: 44ch; color: var(--fg); margin-bottom: 40px; font-weight: 300; line-height: 1.6; }
.contact-lede em { color: var(--accent); font-style: italic; }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
.form  { display: grid; gap: 0; }
.field { display: grid; grid-template-columns: 130px 1fr; align-items: center; border-bottom: 1px solid var(--rule); padding: 16px 0; gap: 16px; }
.field:first-child { border-top: 1px solid var(--rule); }
.field label { font-family: var(--f-body); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta); transition: color var(--d-default) var(--ease); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; color: var(--fg);
  font-family: var(--f-body); font-size: 15px; padding: 2px 0;
  outline: none; -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--meta); }
.field:focus-within { box-shadow: inset 0 -1px 0 0 var(--accent); }
.field:focus-within label { color: var(--accent); }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 16px; flex-wrap: wrap; }
.form-foot .note { font-family: var(--f-body); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta); }
.form-status { display: block; margin-top: 16px; font-family: var(--f-body); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.form-status.success { color: #2a7a2a; }
.form-status.error   { color: var(--accent); }
.contact-side { border-left: 1px solid var(--rule); padding-left: 48px; }
.contact-block { margin-bottom: 32px; }
.contact-block h4 { font-family: var(--f-body); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.contact-block p, .contact-block a { font-family: var(--f-body); font-size: 15px; line-height: 1.5; color: var(--fg); display: block; }
.contact-block .small { color: var(--meta); font-size: 12px; }
.contact-block a { width: fit-content; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-side  { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; }
  .field { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}

/* ── FOOTER ─────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--rule); padding: 40px var(--gutter) 32px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  font-family: var(--f-body); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--meta);
}
.foot .col { display: flex; flex-direction: column; gap: 8px; }
.foot .col .h { color: var(--fg); font-weight: 700; }
.foot .col a { color: var(--meta); }
.foot .col a:hover { color: var(--fg); }
.foot .col.right { align-items: end; text-align: right; }
.foot .col.right .river { color: var(--fg); font-family: var(--f-body); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0; font-size: 13px; }
.foot .tags-row { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule); margin-top: 8px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot .col.right { align-items: start; text-align: left; } }

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
/* Replaces inline style="" attrs to maintain CSP style-src 'self' */
.grid-2col        { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-2col--wide  { gap: 64px; }
.flex-col-sm      { display: flex; flex-direction: column; gap: 24px; }
.prose            { font-family: var(--f-body); font-size: 16px; line-height: 1.7; font-weight: 300; max-width: 52ch; color: var(--fg); }
.tags-strip       { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.tags-strip--sm   { margin-top: 6px; }
.mt-sm            { margin-top: 8px; }
.contact-label    { color: var(--accent); margin-bottom: 24px; }
.accent           { color: var(--accent); }
.hero--compact    { min-height: 60vh; padding-bottom: 48px; }
.contact-section  { padding-top: 144px; }
.photo-placeholder {
  aspect-ratio: 3/2;
  background:
    repeating-linear-gradient(45deg, var(--meta) 0 2px, transparent 2px 14px),
    var(--rule-strong);
  border: 1px solid var(--rule-strong);
}
.sanity-note      { margin-top: 48px; font-family: var(--f-body); font-size: 13px; color: var(--meta); letter-spacing: 0.12em; text-transform: uppercase; }
.spec-list-plain  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.spec-row         { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--f-body); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; color: var(--fg); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .v      { color: var(--meta); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.river-text       { font-style: italic; color: var(--accent); }
.pkg-arr          { color: var(--fg); }
@media (max-width: 760px) { .grid-2col { grid-template-columns: 1fr; } }

/* ── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .wb-paper { animation: none; }
}
