/* Moon & Code — moonandcode.com
   A studio of Orange Luna L.L.C-FZ.
   Night #0D1830 · Cream #F5F1E8 · Ink #1C1D22 · Orange #F08A24 */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --night: #0D1830;
  --night-2: #16264A;
  --night-3: #22345C;
  --cream: #F5F1E8;
  --cream-2: #ECE6D8;
  --paper: #FBF9F4;
  --ink: #1C1D22;
  --ink-2: #4A4B53;
  --orange: #F08A24;
  --orange-ink: #B85F0B;   /* orange for text on cream: 4.6:1 */
  --moon: #E9E3D1;
  --dust: #A9B0C2;

  /* themed (switched by data-theme, tweened by JS) */
  --bg: var(--cream);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --line: rgba(28, 29, 34, .14);
  --panel: var(--paper);
  --accent-text: var(--orange-ink);

  --sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;

  /* type scale, 1.25 minor third-ish, fluid at the top */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.5rem, 1.1rem + 1.3vw, 2rem);
  --t-xl: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --t-2xl: clamp(2.6rem, 1.2rem + 5.4vw, 6rem);
  --t-3xl: clamp(3rem, 1rem + 8vw, 9.5rem);
}

@property --bg { syntax: "<color>"; inherits: true; initial-value: #F5F1E8; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #1C1D22; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #4A4B53; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #FBF9F4; }
html.js { transition: --bg 1s cubic-bezier(.4,0,.2,1), --fg .8s cubic-bezier(.4,0,.2,1), --muted .8s, --panel 1s; }

/* No JS: each section carries its own sky. With JS: the page has one sky that changes as you scroll (html[data-sky]). */
html:not(.js) [data-theme="night"], html.js[data-sky="night"], .is-night {
  --bg: var(--night);
  --fg: var(--cream);
  --muted: var(--dust);
  --line: rgba(245, 241, 232, .16);
  --panel: var(--night-2);
  --accent-text: var(--orange);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-weight: 360;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* JS drives a single page-wide sky colour. Without JS each section paints its own. */
html:not(.js) [data-theme] { background: var(--bg); color: var(--fg); }

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--orange); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
h1 { font-size: var(--t-2xl); font-weight: 620; letter-spacing: -.04em; }
h2 { font-size: var(--t-xl); letter-spacing: -.035em; }
h3 { font-size: var(--t-lg); letter-spacing: -.02em; line-height: 1.15; }
h4 { font-size: var(--t-md); letter-spacing: -.01em; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: var(--orange); color: var(--night); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: var(--night); font-weight: 600; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 34em; }
.lede { font-size: var(--t-md); line-height: 1.5; color: var(--muted); max-width: 32em; font-weight: 330; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 52rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: .3em; text-decoration: none; color: var(--fg); font-size: 1.32rem; line-height: 1; white-space: nowrap; }
.logo-m { font-family: var(--sans); font-weight: 700; letter-spacing: -.045em; display: inline-flex; align-items: baseline; }
.logo-c { font-family: var(--mono); font-weight: 450; font-size: .78em; letter-spacing: -.02em; opacity: .9; }
.ph { display: inline-block; width: .56em; height: .56em; border-radius: 50%; margin: 0 .025em; position: relative; top: .02em; flex: none; }
.ph-half { border: .085em solid currentColor; background: linear-gradient(90deg, transparent 50%, currentColor 50%); }
.ph-full { background: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--orange); --b-fg: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg);
  font: 600 var(--t-sm)/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s;
  position: relative; isolation: isolate;
}
.btn:hover { background: #F69B41; }
.btn:active { transform: scale(.97); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-small { min-height: 42px; padding: 0 1.15em; font-size: var(--t-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { font-weight: 550; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.link:hover { color: var(--accent-text); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity .3s; }
.nav.is-solid::before { opacity: .92; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-solid { box-shadow: 0 1px 0 var(--line); }
.nav > * { position: relative; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); list-style: none; }
.nav-links a:not(.btn) { text-decoration: none; font-size: var(--t-sm); font-weight: 450; color: var(--fg); opacity: .82; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); width: 46px; height: 46px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: var(--bg); box-shadow: 0 1px 0 var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; font-size: var(--t-md); border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links li:last-child { padding-top: 20px; }
  .nav-links .btn { width: 100%; }
  .nav.is-open .nav-links { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s; }
  .nav.is-open::before { opacity: 1; }
  .nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- Moon canvas ---------- */
.moon { width: 100%; height: auto; aspect-ratio: 1; touch-action: pan-y; }
.moon-wrap { position: relative; }

/* ---------- Hero (home) ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-top: 110px; padding-bottom: 60px; position: relative; overflow: clip; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 4vw, 64px); position: relative; }
.hero h1 { max-width: 12em; font-size: clamp(2.5rem, .9rem + 4.4vw, 5.4rem); }
.hero h1 .price { color: var(--orange); white-space: nowrap; }
.hero .lede { margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
.hero-moon { position: relative; width: min(100%, 620px); justify-self: end; will-change: transform; }
.hero-note { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--t-sm); color: var(--muted); list-style: none; }
.hero-note li { display: flex; gap: 10px; align-items: center; }
.hero-note li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-size: var(--t-xs); color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-moon { order: -1; width: min(62vw, 300px); justify-self: start; margin-bottom: 8px; }
  .scroll-cue { display: none; }
}

/* ---------- Build sequence ---------- */
.build { position: relative; }
.build-pin { min-height: 100svh; display: grid; align-content: center; padding-block: 96px 24px; }
.build-grid { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.build-copy h2 { max-width: 9em; }
.steps { list-style: none; margin-top: 36px; display: grid; gap: 4px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .4s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-xs); padding-top: .35em; color: var(--accent-text); }
.steps li strong { font-weight: 600; font-size: var(--t-md); }
.steps li p { grid-column: 2; margin: 0; font-size: var(--t-sm); color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .5s; }
.steps li.is-on { opacity: 1; }
.steps li.is-on p { max-height: 6em; }

.stage { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0; border-radius: var(--r-lg); background: #0A1226; box-shadow: 0 0 0 1px rgba(245,241,232,.08), 0 50px 120px -40px rgba(0,0,0,.6); overflow: hidden; min-height: 520px; }
.editor { padding: 0; border-right: 1px solid rgba(245,241,232,.08); font-size: 12.5px; line-height: 1.75; color: #C8CCDA; min-width: 0; }
.bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(245,241,232,.08); font-family: var(--mono); font-size: 11.5px; color: var(--dust); }
.bar .dots { display: flex; gap: 6px; margin-right: 8px; }
.bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(245,241,232,.18); }
.code { margin: 0; padding: 16px 0; white-space: pre; overflow: hidden; }
.code .ln { display: block; padding: 0 16px 0 0; clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }
.code .ln::before { content: attr(data-n); display: inline-block; width: 3em; padding-right: 1em; text-align: right; color: rgba(245,241,232,.22); }
.tk-t { color: #F08A24; } .tk-a { color: #9FC3FF; } .tk-s { color: #C9E3A4; } .tk-c { color: rgba(245,241,232,.38); } .tk-k { color: #E7B8FF; }
.browser { display: flex; flex-direction: column; background: #F8F5EE; color: #24261F; min-width: 0; }
.browser .bar { background: #ECE7DC; color: #6A6C66; border-color: rgba(0,0,0,.06); }
.browser .bar .dots i { background: rgba(0,0,0,.14); }
.url { flex: 1; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; background: #F8F5EE; font-size: 11px; overflow: hidden; white-space: nowrap; }
.url .lock { width: 9px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; opacity: 0; transition: opacity .3s; }
.url .lock::before { content: ""; position: absolute; left: 1px; right: 1px; top: -5px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.stage.is-live .url .lock { opacity: 1; }
.live { font-family: var(--sans); font-weight: 600; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: #2F7A4E; color: #fff; opacity: 0; transform: scale(.8); transition: .3s; }
.stage.is-live .live { opacity: 1; transform: none; }

/* the mock site being built: "Alba Ceramics" */
.mock { position: relative; flex: 1; padding: 18px 22px 22px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; font-family: var(--sans); overflow: hidden; }
.mk { position: relative; }
.mk-skel { position: absolute; inset: 0; border-radius: 8px; background: repeating-linear-gradient(-45deg, #E6E0D2 0 6px, #EDE8DD 6px 12px); opacity: var(--sk, 0); }
.mk-real { opacity: var(--rl, 0); transform: translateY(calc((1 - var(--rl, 0)) * 10px)); }
.mk-nav .mk-real { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.mk-nav b { font-weight: 700; letter-spacing: -.02em; font-size: 13px; }
.mk-nav span { display: flex; gap: 14px; color: #6B6E62; }
.mk-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: center; min-height: 170px; }
.mk-hero h4 { font-size: clamp(15px, 1.7vw, 24px); line-height: 1.05; letter-spacing: -.03em; font-weight: 650; color: #1F2A1E; }
.mk-hero p { font-size: 10.5px; color: #6B6E62; margin: 8px 0 12px; line-height: 1.5; }
.mk-btn { display: inline-block; font-size: 10px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #4E6B4A; color: #F8F5EE; }
.mk-art { aspect-ratio: 1.15; border-radius: 10px; background: #D9CDB4; position: relative; overflow: hidden; }
.mk-art i { position: absolute; border-radius: 50%; }
.mk-art i:nth-child(1) { width: 58%; aspect-ratio: 2/1; border-radius: 0 0 999px 999px; left: 10%; bottom: 18%; background: #4E6B4A; }
.mk-art i:nth-child(2) { width: 34%; aspect-ratio: 2/1; border-radius: 0 0 999px 999px; right: 9%; bottom: 18%; background: #B9774E; }
.mk-art i:nth-child(3) { width: 100%; height: 18%; left: 0; bottom: 0; border-radius: 0; background: #C5B796; }
.mk-art i:nth-child(4) { width: 22%; aspect-ratio: 1; right: 16%; top: 14%; background: #F3E9D2; }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.mk-card { border-radius: 8px; background: #EFE9DC; padding: 8px; font-size: 9.5px; color: #4A4D42; }
.mk-card i { display: block; aspect-ratio: 1.3; border-radius: 5px; margin-bottom: 6px; background: #CFC2A6; }
.mk-card:nth-child(2) i { background: #A9B79E; } .mk-card:nth-child(3) i { background: #D7A685; }
.mk-card b { display: flex; justify-content: space-between; font-weight: 600; color: #24261F; }
.mk-foot .mk-real { display: flex; justify-content: space-between; font-size: 9.5px; color: #6B6E62; border-top: 1px solid rgba(0,0,0,.08); padding-top: 10px; }

.brief-card { position: absolute; inset: 52px 22px auto; z-index: 3; background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); font-size: 11px; color: #33352E; opacity: var(--bc, 0); transform: translateY(calc((1 - var(--bc, 0)) * 20px)) scale(calc(.96 + var(--bc, 0) * .04)); pointer-events: none; }
.brief-card h5 { margin: 0 0 10px; font-size: 12.5px; font-weight: 650; }
.brief-card dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 7px 10px; margin: 0; }
.brief-card dt { color: #85877F; }
.brief-card dd { margin: 0; font-family: var(--mono); font-size: 10.5px; overflow: hidden; white-space: nowrap; clip-path: inset(0 calc(100% - var(--tp, 0) * 100%) 0 0); }

.checks { position: absolute; right: 18px; bottom: 18px; z-index: 4; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #1C1D22; color: var(--cream); font-size: 11px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); opacity: var(--ck, 0); transform: translateY(calc((1 - var(--ck, 0)) * 16px)); }
.checks li { list-style: none; display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #2F7A4E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.build-note { margin-top: 18px; font-size: var(--t-xs); color: var(--muted); }

@media (max-width: 980px) {
  .build-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
  .steps li { grid-template-columns: 1fr; padding: 10px 0 0; }
  .steps li p { display: none; }
  .steps li strong { font-size: var(--t-sm); }
  .build-step-text { display: block !important; min-height: 3.2em; }
}
@media (max-width: 680px) {
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .editor { order: 2; border-right: 0; border-top: 1px solid rgba(245,241,232,.08); max-height: 150px; font-size: 11px; }
  .mock { min-height: 360px; }
  .mk-hero { min-height: 130px; }
}
.build-step-text { display: none; margin: 14px 0 0; color: var(--muted); font-size: var(--t-sm); }

/* ---------- Services (home) ---------- */
.svc { border-top: 1px solid var(--line); padding-block: clamp(28px, 4vw, 52px); display: grid; gap: 18px; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-name { font-size: clamp(3rem, 1rem + 7.4vw, 9rem); line-height: .9; letter-spacing: -.055em; font-weight: 640; white-space: nowrap; will-change: transform; margin: 0; }
.svc-name em { font-style: normal; font-weight: 450; font-size: .2em; letter-spacing: -.01em; vertical-align: .25em; margin-left: .7em; color: var(--accent-text); }
.svc-body { width: min(100%, 640px); margin-left: auto; }
.svc-body ul { list-style: none; display: grid; }
.svc-body li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: var(--t-sm); display: flex; justify-content: space-between; gap: 16px; }
.svc-body li span { color: var(--muted); white-space: nowrap; }
.svc-wrap { overflow: clip; }
@media (max-width: 860px) {
  .svc-name { font-size: clamp(2.6rem, 13vw, 5rem); white-space: normal; }
  .svc-name em { display: block; margin: .6em 0 0; font-size: .3em; }
}

/* ---------- Work stack ---------- */
.stack { display: grid; gap: 0; }
.card-work { position: sticky; top: 96px; margin-bottom: 8vh; transform-origin: 50% 0; }
.card-work:last-child { margin-bottom: 0; }
.cw { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg, var(--paper)); color: var(--c-fg, var(--ink)); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 40px 80px -50px rgba(13,24,48,.5); min-height: min(68vh, 620px); }
.cw::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0D1830; opacity: var(--dim, 0); pointer-events: none; z-index: 5; }
.cw-text { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.cw-text h3 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem); letter-spacing: -.04em; line-height: .98; }
.cw-kind { font-size: var(--t-sm); opacity: .75; }
.cw-text p { font-size: var(--t-sm); opacity: .9; max-width: 30em; }
.cw-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: auto; }
.cw-tags li { font-size: var(--t-xs); padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }
.cw-text .link { align-self: flex-start; }
.cw-shot { position: relative; overflow: hidden; margin: 14px 14px 14px 0; border-radius: calc(var(--r-lg) - 10px); background: rgba(0,0,0,.08); }
.cw-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(var(--z, 1.14)); transform-origin: 50% 0; }
@media (max-width: 860px) {
  .cw { grid-template-columns: 1fr; min-height: 0; }
  .cw-shot { aspect-ratio: 16/10; margin: 0 12px 12px; order: -1; margin-top: 12px; }
  .card-work { top: 84px; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.plan { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan p { margin: 0; }
.plan h3 { font-size: var(--t-lg); display: flex; align-items: center; gap: 10px; }
.plan h3 .ph { width: .62em; height: .62em; }
.plan .ph-new { border: .08em solid currentColor; }
.plan .ph-q { border: .08em solid currentColor; background: linear-gradient(90deg, transparent 78%, currentColor 78%); }
.plan .ph-gib { border: .08em solid var(--orange); background: radial-gradient(circle at 70% 50%, var(--orange) 62%, transparent 63%); }
.plan-price { font-size: clamp(2.6rem, 1.6rem + 2.4vw, 3.8rem); font-weight: 640; letter-spacing: -.05em; line-height: 1; }
.plan-price small { font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan-for { color: var(--muted); font-size: var(--t-sm); min-height: 3.2em; margin: 0; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: var(--t-sm); }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--orange); }
.plan .btn { margin-top: auto; }
.plan.is-pick { background: var(--night); color: var(--cream); --muted: var(--dust); --line: rgba(245,241,232,.16); }
.plan-flag { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); font-size: var(--t-xs); color: var(--orange); }
.plans-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.offer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .2s; }
.offer:hover { border-color: var(--fg); }
.offer b { font-weight: 600; display: block; }
.offer span { font-size: var(--t-sm); color: var(--muted); }
.offer strong { font-size: var(--t-lg); font-weight: 620; letter-spacing: -.03em; white-space: nowrap; }
.pricing-note { margin-top: 28px; font-size: var(--t-sm); color: var(--muted); max-width: 46em; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plans-foot { grid-template-columns: 1fr; }
}

/* ---------- Process (arc) ---------- */
.process { position: relative; }
.arc-svg { width: 100%; height: auto; overflow: visible; }
.arc-svg .arc-base { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 7; }
.arc-svg .arc-done { fill: none; stroke: var(--orange); stroke-width: 2; }
.arc-svg .horizon { stroke: var(--line); stroke-width: 1; }
.proc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin-top: -10px; counter-reset: p; }
.proc-steps li { counter-increment: p; display: grid; gap: 10px; align-content: start; }
.proc-steps li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-xs); color: var(--accent-text); }
.proc-steps h3 { font-size: var(--t-md); }
.proc-steps p { font-size: var(--t-sm); color: var(--muted); margin: 0; }
@media (max-width: 860px) { .proc-steps { grid-template-columns: 1fr 1fr; } .arc-svg { display: none; } }
@media (max-width: 520px) { .proc-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-weight: 520; font-size: var(--t-md); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, transparent 50%, currentColor 50%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.faq-list details[open] summary::after { transform: rotate(180deg); background: var(--orange); border-color: var(--orange); }
.faq-list .ans { padding: 0 0 24px; color: var(--muted); max-width: 40em; }
.faq-list .ans p:last-child { margin: 0; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.cta { overflow: clip; text-align: left; }
.cta-inner { position: relative; min-height: 80svh; display: grid; align-content: center; gap: 28px; }
.cta h2 { font-size: var(--t-2xl); max-width: 10em; position: relative; z-index: 2; }
.cta .lede { position: relative; z-index: 2; }
.cta .btn-row { position: relative; z-index: 2; }
.cta-moon { position: absolute; right: -16vw; bottom: -34%; width: min(66vw, 780px); z-index: 1; }
.cta .lede { max-width: 24em; }
@media (max-width: 860px) { .cta-moon { right: -30vw; bottom: -12%; width: 110vw; opacity: .45; } }

/* ---------- Footer ---------- */
.footer { padding-block: 64px 40px; font-size: var(--t-sm); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--muted); }
.foot-grid a:hover { color: var(--fg); text-decoration: underline; }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--muted); font-size: var(--t-xs); }
.foot-legal p { margin: 0; max-width: 60em; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Inner pages ---------- */
.page-hero { padding-top: clamp(130px, 16vw, 200px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: clip; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 300px); gap: 40px; align-items: end; }
.page-hero h1 { font-size: var(--t-2xl); max-width: 12em; }
.page-hero .lede { margin-top: 24px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero .moon-wrap { width: 100%; max-width: 300px; justify-self: end; }
.crumbs { font-size: var(--t-xs); color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 760px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero .moon-wrap { order: -1; justify-self: start; max-width: 120px; } }

.cols-2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.cols-2 > :first-child { position: sticky; top: 110px; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } .cols-2 > :first-child { position: static; } }
.prose { max-width: 40em; }
.prose h2 { font-size: var(--t-lg); margin: 2em 0 .6em; }
.prose h3 { font-size: var(--t-md); margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--orange); }

.list-rows { list-style: none; border-top: 1px solid var(--line); }
.list-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list-rows h3 { font-size: var(--t-md); }
.list-rows p { grid-column: 1; margin: 0; font-size: var(--t-sm); color: var(--muted); max-width: 38em; }
.list-rows .price { grid-row: 1; grid-column: 2; font-weight: 600; white-space: nowrap; font-size: var(--t-sm); }

.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th, .table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 600; border-bottom-color: var(--fg); }
.table td:not(:first-child), .table th:not(:first-child) { white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table tbody th { font-weight: 450; color: var(--muted); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.calc-form { padding: clamp(22px, 3vw, 40px); display: grid; gap: 28px; }
.calc fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.calc legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.seg label, .chk label { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: var(--t-sm); transition: box-shadow .2s, background-color .2s; }
.seg label small, .chk label small { color: var(--muted); font-size: var(--t-xs); }
.seg input, .chk input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked), .chk label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--orange); background: rgba(240,138,36,.07); }
.seg label:has(input:focus-visible), .chk label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.chk { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.chk label { grid-template-columns: 1fr auto; align-items: center; }
.chk label b { font-weight: 500; }
.chk label .amt { color: var(--muted); font-size: var(--t-xs); white-space: nowrap; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-sm); }
.stepper div { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); font: 500 18px/1 var(--sans); cursor: pointer; }
.stepper button:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.stepper output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-out { background: var(--night); color: var(--cream); padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; position: relative; --muted: var(--dust); --line: rgba(245,241,232,.16); }
.calc-out .big { font-size: clamp(2.6rem, 1.8rem + 2vw, 3.6rem); font-weight: 640; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; font-size: var(--t-sm); }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.calc-out .lines { font-size: var(--t-xs); color: var(--muted); list-style: none; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.calc-out .lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc-out .btn { margin-top: auto; }
.calc-moon { width: 64px; position: absolute; top: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 40px); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-weight: 550; font-size: var(--t-sm); }
.field .hint { font-size: var(--t-xs); color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: 400 var(--t-base)/1.4 var(--sans); color: var(--fg); background: var(--panel); border: 0; border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; transition: box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--orange); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { box-shadow: inset 0 0 0 2px #C0392B; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: var(--t-md); margin-bottom: 14px; padding: 0; letter-spacing: -.01em; }
.form-block { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 20px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.form-status { font-size: var(--t-sm); min-height: 1.5em; margin: 0; }
.form-status.is-error { color: #C0392B; }
.notice { padding: 16px 18px; border-radius: var(--r-md); background: rgba(240,138,36,.1); box-shadow: inset 0 0 0 1px rgba(240,138,36,.4); font-size: var(--t-sm); }
.hp { position: absolute; left: -5000px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Misc blocks ---------- */
.split-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.split-cards > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.split-cards h3 { font-size: var(--t-md); margin-bottom: 10px; }
.split-cards p { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.big-num { font-size: var(--t-3xl); font-weight: 640; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.payback { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.payback > div { padding: clamp(22px, 3vw, 40px); }
.payback > div:last-child { background: var(--night); color: var(--cream); --muted: var(--dust); }
.payback input[type="range"] { width: 100%; accent-color: var(--orange); }
@media (max-width: 760px) { .payback { grid-template-columns: 1fr; } }
.thanks-steps { list-style: none; counter-reset: t; display: grid; gap: 0; border-top: 1px solid var(--line); }
.thanks-steps li { counter-increment: t; display: grid; grid-template-columns: 3em 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.thanks-steps li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-xs); color: var(--accent-text); padding-top: .3em; }
.pay-row { display: grid; gap: 10px; }
.pay-row a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.pay-row a:hover { box-shadow: inset 0 0 0 2px var(--orange); }
.pay-row a.is-match { box-shadow: inset 0 0 0 2px var(--orange); background: rgba(240,138,36,.07); }
.pay-row b { font-weight: 600; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; list-style: none; }
.ind-grid a { display: grid; gap: 6px; padding: 24px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; min-height: 150px; align-content: end; transition: box-shadow .2s; }
.ind-grid a:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.ind-grid b { font-size: var(--t-md); font-weight: 600; letter-spacing: -.015em; }
.ind-grid span { font-size: var(--t-sm); color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.work-item a { text-decoration: none; display: grid; gap: 14px; }
.work-item .shot { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r-md); background: var(--cream-2); box-shadow: 0 0 0 1px var(--line); }
.work-item .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.work-item a:hover .shot img { transform: scale(1.04); }
.work-item h3 { font-size: var(--t-lg); }
.work-item p { font-size: var(--t-sm); color: var(--muted); margin: 0; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* reveal helper (JS adds .is-in); kept subtle and only on a few blocks */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* progress moon (back to top) */
.phase-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 7px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -12px rgba(0,0,0,.4); cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; color: var(--fg); }
.phase-top.is-on { opacity: 1; transform: none; }
.phase-top svg { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
@media print { .nav, .phase-top, .stars, canvas { display: none !important; } body { background: #fff; color: #000; } }
