/* =========================================================
   Silver Pine Consulting Group
   Display: Gloock · Accent: Instrument Serif italic
   Body: Familjen Grotesk · Data: Martian Mono
   ========================================================= */

:root {
  --night: #0E1C16;
  --pine-deep: #13281F;
  --pine: #1E3B2F;
  --pine-soft: #2A4A3C;
  --moss: #7F9C8C;
  --silver: #D6DADC;
  --silver-bright: #EEF0EF;
  --silver-muted: #A9B4B0;
  --mist: #E9ECEA;
  --ink: #14201A;
  --ink-soft: #46544D;

  --rule: rgba(214, 218, 220, 0.16);
  --rule-strong: rgba(214, 218, 220, 0.32);
  --rule-ink: rgba(20, 32, 26, 0.14);

  --display: "Gloock", "Didot", Georgia, serif;
  --italic: "Instrument Serif", Georgia, serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", monospace;

  --max: 1320px;
  --gutter: clamp(18px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--silver); color: var(--pine-deep); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--silver); color: var(--pine-deep); padding: 12px 18px; font-weight: 600; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--silver); outline-offset: 4px; }
.light :focus-visible { outline-color: var(--pine); }

/* ---------- Type ---------- */
.display { font-family: var(--display); line-height: .98; letter-spacing: -0.02em; color: var(--silver-bright); }
.display em, .h2 em, .italic { font-family: var(--italic); font-style: italic; letter-spacing: -0.01em; }
.xl { font-size: clamp(54px, 10.5vw, 168px); }
.lg { font-size: clamp(44px, 7vw, 108px); }
.h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.015em; color: var(--silver-bright); }
.h3 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; color: var(--silver-bright); }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: var(--silver); max-width: 620px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 300; }
.label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-muted); }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.muted { color: var(--silver-muted); }

.light { background: var(--mist); color: var(--ink-soft); }
.light .display, .light .h2, .light .h3 { color: var(--pine-deep); }
.light .label { color: var(--pine-soft); }
.light .lead { color: var(--ink-soft); }

/* ---------- Pine mark ---------- */
.pine { fill: none; stroke: currentColor; stroke-width: 10; stroke-linejoin: miter; stroke-linecap: square; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--silver-bright); mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(238, 240, 239, .55);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  mix-blend-mode: difference;
}
.cursor-ring span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--night); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(238, 240, 239, .14); }
.cursor.is-label .cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--silver-bright); border-color: transparent; mix-blend-mode: normal; }
.cursor.is-label .cursor-ring span { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 280; background: var(--night);
  display: grid; place-items: center; transition: transform 1s var(--ease-io) .1s;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader .pine { width: 74px; height: 89px; color: var(--silver-bright); stroke-width: 7; }
.preloader .pine * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
.preloader .pine *:nth-child(2) { animation-delay: .15s; }
.preloader .pine *:nth-child(3) { animation-delay: .3s; }
.preloader .pine *:nth-child(4) { animation-delay: .5s; }
.preloader-word { font-family: var(--mono); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--silver-muted); overflow: hidden; }
.preloader-word span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) .5s forwards; }
.preloader.is-done { transform: translateY(-100%); }
.preloader.is-gone, .no-preload .preloader { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- Page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 270; pointer-events: none; }
.curtain-panel { position: absolute; inset: 0; background: var(--pine); transform: translateY(100%); }
.curtain-panel + .curtain-panel { background: var(--night); }
.curtain .pine { position: absolute; left: 50%; top: 50%; width: 46px; height: 55px; margin: -27px 0 0 -23px; color: var(--silver); opacity: 0; transition: opacity .3s; }
.is-entering .curtain-panel { transform: translateY(0); }
.is-entering .curtain .pine { opacity: 1; }
.is-entered .curtain-panel { transform: translateY(-100%); transition: transform .9s var(--ease-io); }
.is-entered .curtain-panel + .curtain-panel { transition-delay: .08s; }
.is-leaving .curtain { pointer-events: all; }
.is-leaving .curtain-panel { transform: translateY(0); transition: transform .7s var(--ease-io); }
.is-leaving .curtain-panel:first-child { transition-delay: .08s; }
.is-leaving .curtain .pine { opacity: 1; transition-delay: .5s; }
.is-leaving .curtain-panel + .curtain-panel { transition-delay: 0s; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 200;
  transition: transform .5s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(14, 28, 22, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--silver-bright); }
.brand .pine { width: 24px; height: 29px; transition: transform .6s var(--ease); }
.brand:hover .pine { transform: translateY(-3px); }
.brand-word { font-family: var(--display); font-size: 25px; letter-spacing: .12em; line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver-muted); border-left: 1px solid var(--rule-strong); padding-left: 14px; line-height: 1.5; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { position: relative; padding: 12px 16px; font-size: 15px; color: var(--silver); overflow: hidden; display: inline-block; }
.nav-link .t { display: block; transition: transform .5s var(--ease); }
.nav-link .t + .t { position: absolute; left: 16px; top: 12px; transform: translateY(200%); color: var(--silver-bright); font-family: var(--italic); font-style: italic; font-size: 17px; line-height: 1.5; margin-top: -2px; }
.nav-link:hover .t:first-child { transform: translateY(-200%); }
.nav-link:hover .t + .t { transform: translateY(0); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px; background: var(--silver-muted); }
.nav-cta { margin-left: 14px; }

.menu-btn { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-bright); cursor: pointer; }

/* Fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 190; background: var(--pine-deep);
  clip-path: circle(0% at calc(100% - 60px) 42px); transition: clip-path .9s var(--ease-io);
  display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 48px;
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 60px) 42px); visibility: visible; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { overflow: hidden; border-bottom: 1px solid var(--rule); }
.menu-list a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--display); font-size: clamp(44px, 12vw, 80px); line-height: 1.05; color: var(--silver-bright); transform: translateY(105%); transition: transform .8s var(--ease); }
.menu-list a small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--silver-muted); }
.menu.is-open .menu-list a { transform: translateY(0); }
.menu.is-open .menu-list li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open .menu-list li:nth-child(3) a { transition-delay: .12s; }
.menu.is-open .menu-list li:nth-child(4) a { transition-delay: .18s; }
.menu-foot { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.menu-foot a { color: var(--silver-bright); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--silver); color: var(--pine-deep); background: var(--silver); cursor: pointer;
  transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--silver-bright); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn-ghost { background: transparent; color: var(--silver-bright); border-color: var(--rule-strong); }
.btn-ghost::before { background: var(--silver); }
.btn-ghost:hover { color: var(--pine-deep); }
.light .btn { background: var(--pine); border-color: var(--pine); color: var(--silver-bright); }
.light .btn::before { background: var(--pine-deep); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.text-link { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--silver-bright); padding: 6px 0; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.text-link:hover::after { transform: scaleX(0); }
.text-link { white-space: nowrap; }
.text-link .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }
.light .text-link { color: var(--pine-deep); }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }

.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0s)); }
.is-in .split-word > span, .split-ready.is-in .split-word > span { transform: none; }

/* Scroll-scrubbed words */
.scrub { font-family: var(--display); font-size: clamp(30px, 4.2vw, 62px); line-height: 1.12; letter-spacing: -0.015em; color: var(--silver-bright); }
.scrub .w { opacity: .14; transition: opacity .35s; }
.scrub .w.on { opacity: 1; }
.scrub em { font-family: var(--italic); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--night); padding: 140px 0 220px; }
.hero-content { position: relative; z-index: 3; }
.hero .label { margin-bottom: 34px; }
.hero h1 { max-width: 1100px; }
.hero-row { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px; }
.hero-row .lead { max-width: 480px; }

.decoder { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: clamp(13px, 1.2vw, 15px); color: var(--silver-muted); font-weight: 300; }
.decoder-val { color: var(--silver-bright); min-width: 14ch; }
.decoder-val::after { content: "_"; animation: blink 1s steps(1) infinite; color: var(--moss); }
.decoder .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 0 rgba(127, 156, 140, .6); animation: pulse 2s infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 156, 140, .55); } 70% { box-shadow: 0 0 0 10px rgba(127, 156, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 156, 140, 0); } }

.acquire {
  display: flex; align-items: center; gap: 6px; width: min(100%, 520px);
  padding: 6px 6px 6px 22px; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: rgba(14, 28, 22, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s;
}
.acquire:focus-within { border-color: var(--silver); }
.acquire input { flex: 1; min-width: 0; min-height: 48px; background: none; border: 0; outline: 0; color: var(--silver-bright); font-family: var(--mono); font-size: 14px; font-weight: 300; }
.acquire input::placeholder { color: #7D8B85; }
.acquire .btn { min-height: 50px; padding: 0 22px; flex-shrink: 0; }

.moon { position: absolute; z-index: 1; right: -8vw; top: 10vh; width: min(62vw, 760px); aspect-ratio: 1; pointer-events: none; }
.moon svg { width: 100%; height: 100%; animation: spin 90s linear infinite; }
.moon circle { fill: none; stroke: var(--silver); }
@keyframes spin { to { transform: rotate(360deg); } }

.forest { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; min-height: 260px; z-index: 2; pointer-events: none; }
.forest svg { position: absolute; left: -5%; width: 110%; bottom: 0; height: 100%; will-change: transform; }

.scroll-cue { position: absolute; z-index: 4; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 14px; }
.scroll-cue .bar { width: 1px; height: 46px; background: var(--rule-strong); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--silver-bright); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(170px, 24vh, 240px) 0 clamp(80px, 12vw, 140px); overflow: hidden; border-bottom: 1px solid var(--rule); }
.page-hero .label { margin-bottom: 30px; }
.page-hero .lead { margin-top: 40px; }
.page-hero .ghost-pine { position: absolute; right: -4vw; bottom: -10vw; width: min(46vw, 560px); height: auto; color: var(--pine-soft); opacity: .5; stroke-width: 3; }
.crumbs { display: flex; gap: 10px; margin-top: 56px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-muted); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--rule); overflow: hidden; padding: 26px 0; background: var(--night); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 48px; padding-right: 48px; font-family: var(--display); font-size: clamp(42px, 6vw, 92px); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--silver-muted); }
.marquee-item .solid { color: var(--silver-bright); -webkit-text-stroke: 0; font-family: var(--italic); font-style: italic; }
.marquee-item .pine { width: 30px; height: 36px; color: var(--moss); stroke-width: 9; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head .label { margin-bottom: 26px; }
.section-head .lead { justify-self: end; max-width: 460px; }

/* Intro statement */
.statement { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.statement-side { padding-top: 14px; display: flex; flex-direction: column; gap: 18px; }

/* Services list (home) */
.svc-list { border-top: 1px solid var(--rule-ink); list-style: none; margin: 0; padding: 0; }
.svc-item { border-bottom: 1px solid var(--rule-ink); }
.svc-link {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 56px; align-items: center; gap: 24px;
  padding: clamp(28px, 3.5vw, 46px) 0; color: var(--pine-deep); overflow: hidden; isolation: isolate;
}
.svc-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pine); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.svc-link:hover::before, .svc-link:focus-visible::before { transform: scaleY(1); }
.svc-num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-soft); transition: color .5s, transform .7s var(--ease); }
.svc-title { font-family: var(--display); font-size: clamp(32px, 4.4vw, 64px); line-height: 1; transition: color .5s, transform .7s var(--ease); }
.svc-desc { font-size: 16px; color: var(--ink-soft); max-width: 380px; transition: color .5s; }
.svc-arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--rule-ink); display: grid; place-items: center; transition: transform .7s var(--ease), border-color .5s, color .5s; }
.svc-arrow svg { width: 20px; height: 20px; }
.svc-link:hover .svc-num, .svc-link:hover .svc-desc { color: var(--silver); }
.svc-link:hover .svc-title { color: var(--silver-bright); transform: translateX(18px); }
.svc-link:hover .svc-num { transform: translateX(18px); }
.svc-link:hover .svc-arrow { transform: rotate(-45deg); border-color: var(--silver-muted); color: var(--silver-bright); }

/* Steps rail (home) */
.rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.rail-line { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--rule); }
.rail-line i { position: absolute; inset: 0; background: var(--silver); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .2s; }
.rail.is-in .rail-line i { transform: scaleX(1); }
.rail-step { position: relative; padding-right: 32px; }
.rail-node { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--night); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--silver-bright); margin-bottom: 36px; position: relative; z-index: 1; transition: background .6s, color .6s, border-color .6s; transition-delay: calc(var(--i) * .45s + .3s); }
.rail.is-in .rail-node { background: var(--silver); color: var(--pine-deep); border-color: var(--silver); }
.rail-step h3 { margin-bottom: 14px; }
.rail-step p { color: var(--silver-muted); font-size: 16px; max-width: 260px; }

/* Discretion split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillar { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 30px 0; border-top: 1px solid var(--rule); }
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar svg { width: 30px; height: 30px; fill: none; stroke: var(--silver-bright); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.pillar h3 { font-family: var(--display); font-size: 26px; color: var(--silver-bright); margin-bottom: 8px; line-height: 1.15; }
.pillar p { color: var(--silver-muted); font-size: 16px; }
.sticky { position: sticky; top: 130px; }

/* Big CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(120px, 18vw, 240px) 0; background: var(--pine); }
.cta .display { margin: 26px auto 52px; }
.cta-rings { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.cta-rings span { position: absolute; width: 40vmax; height: 40vmax; border: 1px solid var(--rule); border-radius: 50%; animation: ripple 9s linear infinite; }
.cta-rings span:nth-child(2) { animation-delay: -3s; }
.cta-rings span:nth-child(3) { animation-delay: -6s; }
@keyframes ripple { from { transform: scale(.2); opacity: 0; } 15% { opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.cta .container { position: relative; }

/* ---------- Services page ---------- */
.svc-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); }
.svc-index { position: sticky; top: 130px; align-self: start; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.svc-index a { position: relative; display: flex; gap: 14px; padding: 14px 0 14px 22px; color: var(--silver-muted); transition: color .4s; }
.svc-index a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--silver-bright); transform: scaleY(0); transition: transform .5s var(--ease); }
.svc-index a.is-active { color: var(--silver-bright); }
.svc-index a.is-active::before { transform: scaleY(1); }
.svc-index .mono { padding-top: 4px; }
.svc-block { padding-bottom: clamp(80px, 10vw, 140px); }
.svc-block + .svc-block { padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--rule); }
.svc-block .h2 { margin: 20px 0 30px; }
.svc-block .lead { max-width: 680px; }
.checks { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.checks li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 16px; color: var(--silver); }
.checks svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--moss); stroke-width: 1.6; }

/* Timeline */
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline-line { position: absolute; left: 31px; top: 0; bottom: 0; width: 1px; background: var(--rule-ink); }
.timeline-line i { position: absolute; inset: 0; background: var(--pine); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 0 0 clamp(64px, 8vw, 110px); }
.tl-step:last-child { padding-bottom: 0; }
.tl-node { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--rule-ink); background: var(--mist); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--pine-deep); position: relative; z-index: 1; transition: background .6s, color .6s, border-color .6s; }
.tl-step.is-active .tl-node { background: var(--pine); color: var(--silver-bright); border-color: var(--pine); }
.tl-step h3 { font-family: var(--display); font-size: clamp(32px, 3.4vw, 48px); color: var(--pine-deep); line-height: 1.05; padding-top: 8px; }
.tl-step .tl-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pine-soft); margin-top: 12px; }
.tl-step p { padding-top: 14px; color: var(--ink-soft); }

/* Not / Do */
.contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
.contrast > div { padding: clamp(32px, 4vw, 56px); }
.contrast > div + div { border-left: 1px solid var(--rule); }
.contrast ul { list-style: none; margin: 28px 0 0; padding: 0; }
.contrast li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 17px; }
.contrast .no li { color: var(--silver-muted); text-decoration: line-through; text-decoration-color: rgba(169, 180, 176, .5); }
.contrast .yes li { color: var(--silver-bright); }

/* FAQ */
.faq { max-width: 960px; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 30px 0; background: none; border: 0; cursor: pointer; font-family: var(--display); font-size: clamp(22px, 2.3vw, 30px); color: var(--silver-bright); line-height: 1.2; }
.faq-icon { position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong); transition: transform .6s var(--ease), background .4s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin-left: -7px; background: var(--silver-bright); transition: transform .5s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon { transform: rotate(180deg); background: var(--silver); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: var(--pine-deep); }
.faq-item.is-open .faq-icon::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 80px 32px 0; color: var(--silver-muted); max-width: 760px; }

/* ---------- About page ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.principle {
  position: relative; padding: clamp(32px, 4vw, 52px); min-height: 320px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--rule-ink); background: var(--silver-bright); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s;
}
.principle:hover { box-shadow: 0 30px 60px -30px rgba(14, 28, 22, .35); }
.principle .big { font-family: var(--display); font-size: clamp(64px, 7vw, 108px); line-height: .9; color: var(--pine); opacity: .14; transform: translateZ(30px); }
.principle h3 { font-family: var(--display); font-size: clamp(28px, 2.8vw, 40px); color: var(--pine-deep); margin: 30px 0 12px; transform: translateZ(40px); }
.principle p { color: var(--ink-soft); transform: translateZ(20px); max-width: 440px; }

.pine-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.pine-figure { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; background: var(--pine-deep); }
.pine-figure .pine { width: 46%; color: var(--silver-bright); stroke-width: 6; }
.js .pine-figure .pine * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.js .pine-figure.is-in .pine * { stroke-dashoffset: 0; }
.js .pine-figure.is-in .pine *:nth-child(2) { transition-delay: .25s; }
.js .pine-figure.is-in .pine *:nth-child(3) { transition-delay: .5s; }
.js .pine-figure.is-in .pine *:nth-child(4) { transition-delay: .8s; }
.pine-figure .coord { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-muted); }
.pine-figure .c1 { left: 20px; top: 18px; } .pine-figure .c2 { right: 20px; top: 18px; }
.pine-figure .c3 { left: 20px; bottom: 18px; } .pine-figure .c4 { right: 20px; bottom: 18px; }
.prose p + p { margin-top: 20px; }
.prose p { color: var(--silver); max-width: 600px; }

.duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.duo > div { padding: 40px 32px 0 0; }
.duo > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.duo h3 { font-family: var(--display); font-size: 28px; color: var(--silver-bright); margin: 18px 0 12px; }
.duo p { color: var(--silver-muted); font-size: 16px; }

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.next-steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.next-steps li::before { counter-increment: ns; content: "0" counter(ns); font-family: var(--mono); font-size: 12px; color: var(--moss); padding-top: 4px; }
.next-steps strong { display: block; font-weight: 500; color: var(--silver-bright); margin-bottom: 4px; }
.next-steps span { color: var(--silver-muted); font-size: 15.5px; }
.direct { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); }
.direct a { display: inline-block; margin-top: 10px; font-family: var(--display); font-size: clamp(26px, 2.8vw, 38px); color: var(--silver-bright); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--rule); background: rgba(19, 40, 31, .55); }
.f { position: relative; padding-top: 18px; }
.f-full { grid-column: 1 / -1; }
.f input, .f textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 14px 0 12px; min-height: 52px; color: var(--silver-bright); font-family: var(--sans); font-size: 17px; outline: 0;
  transition: border-color .3s;
}
.f textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.f label.fl { position: absolute; left: 0; top: 32px; color: var(--silver-muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .3s; }
.f input:focus + .fl, .f input:not(:placeholder-shown) + .fl,
.f textarea:focus + .fl, .f textarea:not(:placeholder-shown) + .fl { transform: translateY(-28px) scale(.78); color: var(--silver); }
.f .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--silver-bright); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.f input:focus ~ .bar, .f textarea:focus ~ .bar { transform: scaleX(1); }
.f-domain input { font-family: var(--mono); font-size: 15px; font-weight: 300; }
.dpreview { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 22px; font-family: var(--mono); font-size: 12px; color: var(--silver-muted); }
.dpreview .n { color: var(--silver-bright); }
.dpreview .t { color: var(--moss); }
.dpreview .ok { margin-left: auto; padding: 3px 10px; border: 1px solid var(--moss); border-radius: 999px; color: var(--moss); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.dpreview.valid .ok { opacity: 1; transform: none; }

.chips-label { display: block; font-size: 16px; color: var(--silver-muted); margin: 26px 0 14px; }
.chips-label small { color: #7D8B85; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 14.5px; color: var(--silver); cursor: pointer; transition: background .35s, color .35s, border-color .35s; }
.chip span:hover { border-color: var(--silver); }
.chip input:checked + span { background: var(--silver); color: var(--pine-deep); border-color: var(--silver); }
.chip input:focus-visible + span { outline: 1px solid var(--silver); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.form-note { font-size: 13.5px; color: var(--silver-muted); max-width: 300px; }
.form-status { grid-column: 1 / -1; min-height: 24px; font-size: 15px; }
.form-status.ok { color: var(--silver-bright); }
.form-status.err { color: #F0C6B9; }

.sent { grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.sent .pine { width: 54px; height: 65px; margin: 0 auto 26px; color: var(--silver-bright); stroke-width: 7; }
.sent .pine * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) forwards; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--night); border-top: 1px solid var(--rule); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: clamp(60px, 8vw, 100px); }
.foot-top .h2 { max-width: 640px; }
.foot-mail { font-family: var(--italic); font-style: italic; font-size: clamp(28px, 3.6vw, 52px); color: var(--silver-bright); position: relative; }
.foot-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--silver-muted); transform-origin: right; transition: transform .7s var(--ease); }
.foot-mail:hover::after { transform: scaleX(0); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; border-top: 1px solid var(--rule); }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-muted); margin-bottom: 18px; font-weight: 300; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li a { display: inline-block; padding: 6px 0; color: var(--silver); transition: color .3s, transform .4s var(--ease); }
.foot-grid li a:hover { color: var(--silver-bright); transform: translateX(6px); }
.foot-grid p { color: var(--silver-muted); max-width: 320px; font-size: 15.5px; }
.foot-mark { font-family: var(--display); font-size: clamp(56px, 16vw, 270px); line-height: .78; letter-spacing: -0.035em; color: var(--pine); white-space: nowrap; text-align: center; margin: 0 0 -0.06em; user-select: none; }
.foot-mark em { font-family: var(--italic); color: var(--pine-soft); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 30px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--silver-muted); position: relative; z-index: 1; background: var(--night); }
.to-top { background: none; border: 0; cursor: pointer; color: var(--silver); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.lost .mono { margin-bottom: 26px; display: block; color: var(--moss); }
.lost .display { margin-bottom: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-link { grid-template-columns: 56px minmax(0, 1fr) 56px; }
  .svc-desc { grid-column: 2 / 3; grid-row: 2; }
  .svc-arrow { grid-row: 1 / 3; grid-column: 3; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .rail-line { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .brand-sub { display: none; }
  .section-head, .split, .statement, .svc-detail, .pine-story, .contact-wrap { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .statement-side { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
  .svc-index { display: none; }
  .sticky { position: static; }
  .tl-step { grid-template-columns: 64px minmax(0, 1fr); }
  .tl-step p { grid-column: 2; padding-top: 0; }
  .principles { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .duo > div, .duo > div + div { padding: 32px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .duo > div:first-child { border-top: 0; }
  .contrast { grid-template-columns: 1fr; }
  .contrast > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .pine-figure { max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 130px 0 200px; }
  .acquire { flex-wrap: wrap; border-radius: 24px; padding: 10px; }
  .acquire input { padding: 0 10px; }
  .acquire .btn { width: 100%; justify-content: center; }
  .rail { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px 18px; }
  .faq-a p { padding-right: 0; }
  .svc-link { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .svc-arrow { display: none; }
  .svc-desc { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; }
  .moon { width: 120vw; right: -50vw; top: 6vh; }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
  .grain { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
  .scrub .w { opacity: 1; }
}

/* ---------- Web studio ---------- */
.studio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.studio-card { position: relative; padding: 40px 28px 44px 0; border-right: 1px solid var(--rule); }
.studio-card + .studio-card { padding-left: 28px; }
.studio-card:last-child { border-right: 0; }
.studio-card .mono { color: var(--moss); }
.studio-card h3 { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; color: var(--silver-bright); margin: 22px 0 12px; }
.studio-card p { color: var(--silver-muted); font-size: 16px; }
.studio-card svg { width: 34px; height: 34px; fill: none; stroke: var(--silver-bright); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-top: 26px; }
.addon {
  margin-top: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border: 1px solid var(--rule-strong); border-radius: 999px;
}
.addon-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pine-deep); background: var(--silver); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.addon p { color: var(--silver); }
.addon strong { color: var(--silver-bright); font-weight: 500; }
.light .addon { border-color: var(--rule-ink); }
.light .addon p { color: var(--ink-soft); }
.light .addon strong { color: var(--pine-deep); }
.light .addon-tag { background: var(--pine); color: var(--silver-bright); }
.svc-index .group { padding: 22px 0 8px 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.svc-index .group:first-child { padding-top: 6px; }
.practice-head { padding: 0 0 clamp(56px, 7vw, 90px); }
.practice-head + .svc-block { padding-top: 0; border-top: 0; }
.svc-block.addon-block { border-top: 1px solid var(--rule); }
.fee-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 10px 18px; border: 1px solid var(--rule-strong); border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--silver-bright); }
@media (max-width: 1080px) {
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-card:nth-child(2) { border-right: 0; }
  .studio-card:nth-child(3) { padding-left: 0; }
  .studio-card:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-card, .studio-card + .studio-card { padding: 32px 0; border-right: 0; }
  .studio-card + .studio-card { border-top: 1px solid var(--rule); }
  .addon { grid-template-columns: 1fr; border-radius: 28px; gap: 16px; }
}

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--silver-bright); transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease);
}
.socials a:hover { background: var(--silver); color: var(--pine-deep); border-color: var(--silver); transform: translateY(-3px); }
.socials svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; display: block; }
.socials span { font-size: 15px; }
.socials-lg a { height: 52px; padding: 0 20px; }
.menu-foot + .socials { margin-top: 20px; }
.direct .socials a { display: inline-flex; margin-top: 0; font-family: var(--sans); font-size: 15px; }
