/* goTwelve Design Studio — Modern Deco, stencil edition */
@font-face {
  font-family: "GoTwelve Stencil";
  src: url("fonts/GoTwelveStencil-Black.woff2") format("woff2"), url("fonts/GoTwelveStencil-Black.woff") format("woff");
  font-style: normal; font-weight: 900; font-display: swap;
}
:root {
  --lime: #ebf3a7;
  --lime-deep: #dde99a;
  --paper: #f6f9df;
  --green: #0e5048;
  --green-deep: #082e2a;
  --ink: #0b2d29;
  --muted: #4c6460;
  --line: rgba(14, 80, 72, 0.28);
  --brand: "GoTwelve Stencil", "Josefin Sans", sans-serif;
  --display: "Josefin Sans", "Futura", "Avenir Next", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --header-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--lime);
  overflow-x: hidden;
}
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--brand); font-weight: 900; font-synthesis: none; letter-spacing: 0; line-height: 1.08; margin: 0 0 0.5em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- texture & cursor ---------- */
.grain-defs { position: absolute; }
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 50;
  filter: url(#grain); opacity: 0.22; mix-blend-mode: multiply;
}
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 60; display: none; }
.has-cursor .cursor { display: block; }
.cursor i { position: absolute; border-radius: 50%; translate: -50% -50%; }
.cursor .dot { left: var(--x); top: var(--y); width: 6px; height: 6px; background: var(--green); }
.cursor .ring {
  left: var(--rx); top: var(--ry); width: 34px; height: 34px; border: 1px solid var(--green);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-radius 0.25s ease;
}
.cursor.is-link .ring { width: 52px; height: 52px; opacity: 0.6; }
.cursor.is-spray .ring { width: 70px; height: 70px; border-style: dashed; }
.cursor.is-spray .dot { width: 10px; height: 10px; }

/* ---------- small type ---------- */
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.32em; color: var(--green); margin: 0 0 1.2em;
}
.rule { display: flex; align-items: center; gap: 14px; margin: 1.4em 0; color: var(--green); }
.rule span { flex: 1; height: 1px; background: var(--line); box-shadow: 0 3px 0 var(--line); max-width: 140px; }
.rule b { font-size: 0.6rem; }
.button {
  display: inline-block; padding: 16px 30px; border: 0;
  font-family: var(--display); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--lime); background: var(--green); text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.button:hover { transform: translateY(-2px); background: var(--green-deep); }
.button:disabled { opacity: 0.6; transform: none; }
.deco-divider {
  height: 22px; background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22' viewBox='0 0 96 22'%3E%3Cpath d='M0 21h16V11h8V3h8v8h8v10h16V11h8V3h8v8h8v10h16' fill='none' stroke='%230e5048' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center bottom;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--header-h);
  background: linear-gradient(var(--lime) 70%, rgba(235, 243, 167, 0));
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 100%; }
.logo img { height: 34px; width: auto; }
nav { display: flex; gap: clamp(14px, 3vw, 32px); }
nav a {
  font-family: var(--display); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.24em;
  text-decoration: none; color: var(--green); position: relative; padding-bottom: 4px;
}
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--green); transition: right 0.3s ease; }
nav a:hover::after { right: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 32px) 0 72px; }
.hero-inner { text-align: center; max-width: 1000px; width: 100%; }
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); text-transform: uppercase; color: var(--green); margin-top: 0.3em; }
.hero .rule { justify-content: center; }
.lede { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 36em; margin: 0 auto 2.2em; }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--green);
  font-family: var(--display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.26em;
}
.scroll-cue svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.hero-frame { position: absolute; inset: calc(var(--header-h) + 18px) 22px 22px; pointer-events: none; }
.hero-frame i { position: absolute; width: 56px; height: 56px; border: 1px solid var(--line); }
.hero-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* the stencil */
.stencil { position: relative; width: min(100%, 980px); margin: 0 auto 2.2em; aspect-ratio: 1335 / 316; touch-action: pan-y; }
.stencil > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.stencil-outline { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 6 8; opacity: 0.6; }
.stencil-static { display: none; }
.stencil.static .stencil-static { display: block; }
.stencil.static .stencil-outline, .stencil.static .stencil-paint, .stencil.static .stencil-hint { display: none; }
.stencil-hint {
  top: auto; bottom: -1.8em; height: auto; margin: 0; pointer-events: none;
  font-family: var(--display); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted);
  opacity: 0; transition: opacity 0.6s ease 1.2s;
}
.stencil.live .stencil-hint { opacity: 0.8; }
.stencil.touched .stencil-hint { opacity: 0; transition-delay: 0s; }
@media (pointer: coarse) { .stencil-hint span { display: none; } .stencil-hint::after { content: "Swipe to spray"; } }

/* ---------- the build ---------- */
.build {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stage { position: sticky; top: 0; height: 100svh; order: 2; display: grid; place-items: center; }
.stage-inner { position: relative; width: min(76vh, 90%); }
.mark { width: 100%; height: auto; color: var(--green); overflow: visible; --finish: 0; --spin: 0deg; }
.blueprint { opacity: calc(0.35 * (1 - var(--finish))); }
.dims { opacity: calc(0.75 * (1 - var(--finish))); }
.sunburst { opacity: calc(0.18 * var(--finish)); transform: rotate(var(--spin)); transform-origin: 512px 520px; }
.ring { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--finish)); opacity: 0.6; }
.targets .target { opacity: 0.4; transition: opacity 0.4s ease; }
.targets .target.hidden { opacity: 0; }
.pieces { transition: filter 0.8s ease; }
.pieces .piece { transform-box: fill-box; transform-origin: center; will-change: transform, opacity; }
.pieces .piece.locked { animation: lock 0.45s ease-out; }
.pieces .piece.locked path { stroke: currentColor; stroke-width: 3; paint-order: stroke; }
.whole { opacity: 0; transition: opacity 0.5s ease; }
.mark.is-whole .whole { opacity: 1; }
@keyframes lock { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }
.mark.is-complete .pieces { filter: drop-shadow(0 18px 30px rgba(14, 80, 72, 0.25)); }

.rail { list-style: none; display: flex; gap: 8px; margin: 10px 0 0; padding: 0 6%; }
.rail li { flex: 1; position: relative; padding-top: 10px; font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--muted); text-align: center; }
.rail li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.rail li::after { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--green); transition: width 0.5s ease; }
.rail li.done::after { width: 100%; }
.rail li.done { color: var(--green); }

.chapters { order: 1; padding: 0 clamp(20px, 6vw, 96px); }
.chapter {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  max-width: 480px; padding: 12vh 0;
  opacity: 0.28; transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.chapter.is-active, .chapter.intro { opacity: 1; transform: none; }
.chapter .num {
  font-family: var(--brand); font-weight: 900; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--green); margin: 0 0 0.2em;
}
.chapter h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--green); }
.chapter .sub { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.74rem; color: var(--muted); margin-bottom: 1.6em; }
.chapter .aside { font-family: var(--display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.26em; color: var(--muted); }
.chapter ul { list-style: none; padding: 0; margin: 1.2em 0 0; border-top: 1px solid var(--line); }
.chapter li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; display: flex; gap: 12px; align-items: baseline; }
.chapter li::before { content: "◆"; font-size: 0.5rem; color: var(--green); }
.chapter .button { align-self: flex-start; margin-top: 8px; }
/* the hub: one website, five things growing out of it */
.hub { width: 100%; max-width: 460px; margin: 1.2em 0 1.4em; color: var(--green); overflow: visible; }
.hub-label { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; fill: var(--muted); stroke: none; }
.hub .spoke { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.7; }
.hub .sat { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; }
.hub.in .spoke { animation: draw 0.7s ease forwards; animation-delay: var(--d); }
.hub.in .sat { animation: pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; animation-delay: var(--d); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.finale h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }

/* ---------- process ---------- */
.process { padding: clamp(80px, 12vw, 140px) 0; }
.process h2 { color: var(--green); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--line); }
.steps li { position: relative; padding-top: 72px; }
.step-num {
  position: absolute; top: 0; left: 0; width: 68px; height: 68px; display: grid; place-items: center;
  background: var(--lime); border: 1px solid var(--green);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: var(--brand); font-weight: 900; font-size: 1.5rem; color: var(--green);
}
.steps h3 { font-size: 1.6rem; color: var(--green); }
.steps p { color: var(--muted); margin: 0; }

/* ---------- how it starts ---------- */
.start { padding: clamp(80px, 12vw, 140px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.start h2 { color: var(--green); }
.start-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.start-text p { font-size: 1.1rem; }
.start-text .button { margin-top: 8px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 28px; }
.paths div { padding: 22px 22px 16px; border: 1px solid var(--line); background: var(--lime); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.paths h3 { font-size: 1.25rem; color: var(--green); margin-bottom: 0.4em; }
.paths p { font-size: 0.98rem; color: var(--muted); margin: 0; }

.who { list-style: none; padding: 0; margin: 1.6em 0 0; border-top: 1px solid rgba(235, 243, 167, 0.25); }
.who li { padding: 12px 0; border-bottom: 1px solid rgba(235, 243, 167, 0.25); color: rgba(235, 243, 167, 0.82); font-size: 0.98rem; }
.who strong { color: var(--lime); font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-right: 6px; }

/* ---------- about ---------- */
.about { background: var(--green-deep); color: var(--lime); padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.about::before, .about::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(235, 243, 167, 0.25); }
.about::before { top: 14px; } .about::after { bottom: 14px; }
.about .eyebrow, .about .rule, .about h2 { color: var(--lime); }
.about .rule span { background: rgba(235, 243, 167, 0.3); box-shadow: 0 3px 0 rgba(235, 243, 167, 0.3); }
.about p { color: rgba(235, 243, 167, 0.82); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { margin: 0; }
.frame { position: relative; }
.frame img { clip-path: polygon(7% 0, 100% 0, 100% 93%, 93% 100%, 0 100%, 0 7%); }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 12vw, 140px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact h2 { color: var(--green); }
.mini-mark { width: min(100%, 320px); margin-top: 24px; color: var(--green); }
.mini-mark .mini { fill: currentColor; opacity: 0.12; transition: opacity 0.4s ease; }
.mini-mark .mini.on { opacity: 1; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-family: var(--display); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--green); }
.contact-form input, .contact-form textarea {
  font: 1rem var(--body); padding: 14px 16px; border: 1px solid var(--line); border-radius: 0;
  background: var(--paper); color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 80, 72, 0.15); }
.contact-form button { justify-self: start; }
#form-status { margin: 0; color: var(--muted); min-height: 1.5em; }
.picker { border: 0; padding: 0; margin: 0 0 6px; }
.picker legend { font-family: var(--display); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--green); padding: 0; margin-bottom: 6px; }
.picker-help { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .chip {
  display: flex !important; align-items: flex-start; gap: 12px; padding: 16px 16px 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  font-family: var(--body); font-size: 0.95rem; letter-spacing: 0; text-transform: none; line-height: 1.45;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--green); background: var(--lime); position: relative; }
.chip-box::after { content: ""; position: absolute; inset: 4px; background: var(--green); opacity: 0; transition: opacity 0.15s ease; }
.chip-text { display: grid; gap: 2px; }
.chip-text strong { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--green); letter-spacing: 0.02em; }
.chip-text small { font-size: 0.9rem; color: var(--muted); }
.chip:hover { border-color: var(--green); }
.chip:has(input:checked) { background: var(--lime); border-color: var(--green); }
.chip:has(input:checked) .chip-box::after { opacity: 1; }
.chip:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- footer ---------- */
footer { background: var(--green); color: rgba(235, 243, 167, 0.75); padding: 28px 0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.1s; } .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; } .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  /* header: solid, so content doesn't show through as it scrolls under */
  :root { --header-h: 58px; }
  .site-header { background: var(--lime); box-shadow: 0 1px 0 var(--line); }
  .logo img { height: 24px; }
  nav { gap: 14px; }
  nav a { font-size: 0.6rem; letter-spacing: 0.14em; }
  nav a[href="#process"], nav a[href="#start"] { display: none; }

  /* hero: no empty screen-height gaps */
  .hero { min-height: 0; padding: calc(var(--header-h) + 48px) 0 56px; }
  .hero-frame { display: none; }
  .stencil { margin-bottom: 2.6em; touch-action: pan-y; }
  .stencil-hint { left: 0; right: 0; text-align: center; bottom: -2.2em; }
  .hero h1 { font-size: 1.55rem; }
  .lede { font-size: 1rem; margin-bottom: 1.6em; }

  /* the 12: a slim bar pinned to the bottom of the screen while the chapters scroll */
  .build { display: flex; flex-direction: column; }
  .stage { order: 2; position: sticky; top: auto; bottom: 0; height: auto; z-index: 5; width: 100%; align-self: stretch; box-sizing: border-box; display: block;
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom)); background: var(--paper);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(14, 80, 72, 0.08); overflow: hidden; }
  .stage-inner { width: 100%; display: flex; align-items: center; gap: 16px; }
  .mark { width: 56px; flex: none; }
  .blueprint, .dims, .sunburst, .ring { display: none; }
  .rail { flex: 1; padding: 0; margin: 0; }
  .rail li { font-size: 0.58rem; padding-top: 6px; }
  .chapters { order: 1; padding: 0 20px; }
  .chapter { min-height: 0; justify-content: flex-start; padding: 56px 0; max-width: none; opacity: 1; transform: none; }
  .chapter + .chapter { border-top: 1px solid var(--line); }
  .chapter .num { font-size: 2.6rem; }
  .chapter h2 { font-size: 1.8rem; }
  .hub { max-width: 340px; margin: 0.6em auto 1em; }

  .process, .start, .about, .contact { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .start-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .paths, .chips { grid-template-columns: 1fr; }
  .mini-mark { display: none; }
  .portrait { max-width: 300px; }
  h2 { font-size: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .chapter { opacity: 1; transform: none; transition: none; }
  .scroll-cue svg { animation: none; }
  .pieces .piece.locked { animation: none; }
  .hub .spoke { stroke-dashoffset: 0; animation: none; }
  .hub .sat { opacity: 1; transform: none; animation: none; }
}
