/* The Web Shed — thewebshed.net
   Hand-written stylesheet. Tokens first, then base, then components in page order.
   Fonts are self-hosted in /fonts (Space Grotesk 500/700, JetBrains Mono 400/500). */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-700.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-400.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-500.woff2) format("woff2"); }

:root {
  --void: #070B26;
  --panel: #0E1236;
  --panel-2: #141A46;
  --line: rgba(79, 200, 255, 0.14);
  --line-strong: rgba(79, 200, 255, 0.35);
  --cyan: #4FC8FF;
  --cyan-dim: rgba(79, 200, 255, 0.72);
  --cyan-faint: rgba(79, 200, 255, 0.08);
  --amber: #FFA040;
  --amber-ink: #1a0f00;
  --ink: #F2F5FF;
  --text: #E5EAFA;
  --muted: #ADB7D8;
  --muted-2: #8B96BF;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 0.6em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
/* Aurora: the haze around Shedy's picture, as two soft layers of indigo, violet and blue light drifting very slowly.
   Transform-only animation on fixed layers, so it stays on the compositor. Still under reduced motion. */
body::before, body::after { content: ""; position: fixed; inset: -25%; z-index: 0; pointer-events: none; will-change: transform; }
body::before { background: radial-gradient(34% 30% at 68% 28%, rgba(58, 84, 200, 0.24), transparent 70%), radial-gradient(30% 28% at 28% 72%, rgba(79, 200, 255, 0.07), transparent 70%);
  animation: aurora-a 52s ease-in-out infinite alternate; }
body::after { background: radial-gradient(30% 26% at 38% 34%, rgba(90, 80, 200, 0.09), transparent 70%), radial-gradient(28% 24% at 78% 78%, rgba(50, 110, 220, 0.13), transparent 70%);
  animation: aurora-b 71s ease-in-out infinite alternate; }
@keyframes aurora-a { to { transform: translate3d(-7%, 5%, 0) scale(1.14) rotate(7deg); } }
@keyframes aurora-b { to { transform: translate3d(6%, -6%, 0) scale(1.1) rotate(-9deg); } }
main, .site-foot { position: relative; z-index: 1; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: #070B26; padding: 10px 14px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.8rem; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
section { padding-block: var(--section); position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: "> "; color: var(--cyan); }
.head .eyebrow { position: relative; padding-bottom: 0.9rem; }
.head .eyebrow::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: linear-gradient(90deg, var(--cyan), transparent); transition: width 1.2s var(--ease) 0.2s; }
.head.in .eyebrow::after { width: min(100%, 240px); }
.head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head p { color: var(--muted); font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.8em 1.5em;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 0 rgba(255, 160, 64, 0.35); }
.btn-primary:hover { background: #FFB766; color: var(--amber-ink); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 160, 64, 0.6); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transition: transform 0.7s var(--ease); transform: translateX(120%); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--ink); transform: translateY(-2px); }
.btn-cyan { background: var(--cyan-faint); color: var(--cyan); border-color: var(--line-strong); }
.btn-cyan:hover { background: rgba(79, 200, 255, 0.16); color: var(--ink); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0;
  background: linear-gradient(to bottom, rgba(7, 11, 38, 0.92), rgba(7, 11, 38, 0.6));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.site-head.scrolled { border-bottom-color: var(--line); padding: 10px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: 0.08em; font-size: 1.05rem; }
.brand img { width: 40px; height: 32px; object-fit: contain; }
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--cyan); }
.nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 2px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--cyan); transition: right 0.3s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { right: 0; }
.nav .btn { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.92rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--cyan); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; background: rgba(9, 13, 44, 0.98); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.9rem; }
  .nav .btn { margin-top: 1rem; }
}

/* Hero */
.hero { min-height: 100svh; display: grid; align-items: center; padding-top: clamp(6rem, 14vh, 9rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, rgba(79, 200, 255, 0.1), transparent 70%), linear-gradient(to bottom, var(--void) 0%, transparent 30%, transparent 70%, var(--void) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 0.45em; font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 span { display: block; }
.hero h1 .glow { color: var(--cyan); text-shadow: 0 0 32px rgba(79, 200, 255, 0.5), 0 0 90px rgba(79, 200, 255, 0.2); }
.hero .lede { margin-bottom: 2rem; max-width: 46ch; }
/* Staged entrance: eyebrow, two headline lines, lede, buttons, note. CSS only, once, skipped under reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.js .hero .eyebrow, .js .hero h1 .l1, .js .hero h1 .l2, .js .hero .lede, .js .hero-cta, .js .hero-note { animation: rise 0.9s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 .l1 { animation-delay: 0.15s; }
.hero h1 .l2 { animation-delay: 0.3s; }
.hero .lede { animation-delay: 0.5s; }
.hero-cta { animation-delay: 0.62s; }
.hero-note { animation-delay: 0.75s; }
@keyframes shed-in { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes shed-glow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.js .hero-art { animation: shed-in 1.2s var(--ease) 0.1s both; }
.hero-art::before { animation: shed-glow 6s ease-in-out 1.4s infinite; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; }
.hero-note { margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted-2); }
.hero-note b { color: var(--cyan-dim); font-weight: 500; }
.hero-art { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; perspective: 900px; }
.shedy-stage { position: relative; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 48%, transparent 96%); mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 48%, transparent 96%); }
.hero-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* js/shedy-live.js: the same picture through WebGL, laid exactly over the <img> (object-fit: contain box) */
.shedy-gl { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1280 / 1107; transform: translateY(-50%); opacity: 0; transition: opacity 0.8s var(--ease); }
.shedy-gl.on { opacity: 1; }
.hero-art::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(79, 200, 255, 0.18), transparent 65%); filter: blur(10px); z-index: -1; }
.hero-art .tag { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--cyan-dim); white-space: nowrap; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(70vw, 300px); order: -1; margin-bottom: 0.5rem; }
  .hero { min-height: 0; padding-top: 6.5rem; }
}
@media (max-width: 480px) { .hero-cta .btn { width: 100%; } }

/* Proof strip */
.proof { padding-block: 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(79, 200, 255, 0.04), transparent); overflow: hidden; }
.proof li { padding: 1.3rem 1.4rem; border-left: 1px solid var(--line); }
.proof li:first-child { border-left: 0; }
.proof b { display: block; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; margin-bottom: 0.35rem; font-variant-numeric: tabular-nums; }
.proof b span { color: var(--cyan); }
.proof p { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) { .proof ul { grid-template-columns: 1fr 1fr; } .proof li:nth-child(3) { border-left: 0; } .proof li:nth-child(n + 3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .proof ul { grid-template-columns: 1fr; } .proof li { border-left: 0; } .proof li + li { border-top: 1px solid var(--line); } }

/* Work */
.work-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(160deg, var(--panel), var(--void)); position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.work-grid { perspective: 1600px; }
.case.tilt { border-color: var(--line-strong); box-shadow: 0 40px 80px -40px rgba(79, 200, 255, 0.25); }
.case-media .desktop, .case-media .phone { transition: transform 0.35s var(--ease); }
.case.tilt .case-media .phone { transform: translateZ(40px); }
.case.tilt .case-media .desktop { transform: translateZ(14px); }
.case::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at var(--mx, 50%) var(--my, 0%), rgba(79, 200, 255, 0.08), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.case:hover::before { opacity: 1; }
.case:nth-child(even) .case-media { order: 2; }
.case-media { position: relative; }
.case-media .desktop { border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); width: 100%; }
.case-media .phone { position: absolute; right: -4%; bottom: -8%; width: 26%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.9); background: #000; }
.case-media.single .desktop { border-radius: 8px; }
.case-body .eyebrow { margin-bottom: 0.7rem; }
.case-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.4em; }
.case-body .sub { color: var(--muted); margin-bottom: 1rem; }
.facts { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.55rem; }
.facts li { display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem; align-items: start; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.facts li svg { width: 18px; height: 18px; margin-top: 0.2em; color: var(--cyan); flex: none; }
.facts li b { color: var(--ink); font-weight: 700; }
.case-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; }
.case-links .soon { color: var(--amber); }
@media (max-width: 860px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
  .case-media { margin-bottom: 1.5rem; padding-right: 6%; }
  .case-media .phone { right: -2%; bottom: -10%; width: 28%; }
}

/* Services */
.services { background: linear-gradient(180deg, transparent, rgba(79, 200, 255, 0.03) 50%, transparent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card { padding: clamp(1.4rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; position: relative; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 30px 50px -35px rgba(79, 200, 255, 0.35); }
.card .ico { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--cyan); margin-bottom: 1.1rem; background: var(--cyan-faint); }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); }
.card .for { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--cyan-dim); text-transform: uppercase; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2.2rem); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); position: relative; }
.price.featured { border-color: rgba(255, 160, 64, 0.55); background: linear-gradient(170deg, rgba(255, 160, 64, 0.07), var(--panel) 45%); box-shadow: 0 40px 80px -50px rgba(255, 160, 64, 0.45); }
.price .badge { position: absolute; top: -13px; left: 1.6rem; background: var(--amber); color: var(--amber-ink); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; padding: 5px 10px; border-radius: 3px; font-weight: 500; }
.price h3 { font-size: 1.1rem; letter-spacing: 0.02em; margin-bottom: 0.8rem; color: var(--muted); font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.16em; }
.price .amount { font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); margin-bottom: 0.4rem; }
.price .amount small { font-size: 0.42em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: 0.3em; vertical-align: 0.6em; }
.price .amount em { display: block; margin-top: 0.45rem; font-style: normal; font-size: 0.42em; color: var(--muted); font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.price .blurb { color: var(--muted); margin-bottom: 1.2rem; font-size: 0.98rem; }
.price ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.55rem; }
.price li { display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem; font-size: 0.95rem; color: var(--text); line-height: 1.45; }
.price li svg { width: 18px; height: 18px; color: var(--cyan); margin-top: 0.15em; }
.price .btn { margin-top: auto; }
.price-note { margin-top: 1.4rem; color: var(--muted-2); font-size: 0.92rem; max-width: 70ch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 560px; } .price.featured { order: -1; } }

/* Process */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { counter-increment: step; padding: 1.5rem 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); position: relative; }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--cyan); display: block; margin-bottom: 1.1rem; }
.steps li::after { content: ""; position: absolute; left: 1.4rem; top: 2.75rem; width: 32px; height: 1px; background: var(--line-strong); }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.steps p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about blockquote { margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: var(--panel); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }
.about blockquote footer { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--cyan-dim); text-transform: uppercase; }
.about p { color: var(--muted); }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 0.6rem; max-width: 820px; }
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--cyan); font-size: 1.2rem; flex: none; transition: transform 0.25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* Contact */
.contact { background: radial-gradient(70% 60% at 50% 100%, rgba(79, 200, 255, 0.07), transparent 70%); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-aside p { color: var(--muted); }
.contact-aside .direct { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.04em; display: grid; gap: 0.5rem; }
.contact-aside .direct a { color: var(--cyan); text-decoration: none; }
.contact-aside .direct a:hover { color: var(--ink); text-decoration: underline; }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-dim); }
.field label .opt { color: var(--muted-2); letter-spacing: 0.08em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: rgba(79, 200, 255, 0.03);
  border: 1px solid rgba(79, 200, 255, 0.2); border-radius: 6px; padding: 0.8rem 0.95rem; min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(79, 200, 255, 0.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff6b6b; }
.form .hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--muted-2); font-size: 0.85rem; }
.form-status { font-family: var(--font-mono); font-size: 0.86rem; color: var(--cyan); min-height: 1.4em; }
.form-status.err { color: #ff8a8a; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: 0.92rem; color: var(--muted-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-foot .tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--cyan-dim); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* Inner pages (thanks, 404, privacy) */
.page { padding-top: clamp(7rem, 16vh, 10rem); min-height: 70svh; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.page p, .page li { color: var(--muted); }
.page h2 { font-size: 1.4rem; margin-top: 2.2rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav a::after, .btn-primary::after { transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
  .hero-bg { background: radial-gradient(50% 40% at 50% 100%, rgba(79, 200, 255, 0.12), transparent 70%); }
  .hero .eyebrow, .hero h1 .l1, .hero h1 .l2, .hero .lede, .hero-cta, .hero-note, .hero-art, .shedy-stage, .hero-art::before, body::before, body::after { animation: none; }
  .case, .case-media .desktop, .case-media .phone { transition: none; transform: none !important; }
  .head .eyebrow::after { width: min(100%, 240px); transition: none; }
}

/* ===== Wow pass (20 Oct 2026): every section gets one deliberate effect. All gated by reduced-motion below. ===== */

/* Scroll progress line at the very top */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), #fff); box-shadow: 0 0 12px rgba(79, 200, 255, 0.7); pointer-events: none; }


/* Headline sizing: first line never wraps */
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 5.2rem); max-width: none; }
.hero h1 .l1 { white-space: nowrap; }

/* Proof strip: a light sweeps along the top edge once it is in view */
.proof ul { position: relative; }
.proof ul::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 30%; background: linear-gradient(90deg, transparent, #fff, var(--cyan), transparent); opacity: 0; transform: translateX(-100%); }
.proof ul.in::before { animation: sweep 1.6s var(--ease) 0.2s 1; }
@keyframes sweep { 0% { opacity: 0; transform: translateX(-100%); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(340%); } }

/* Work: live badge */
.live { display: inline-flex; align-items: center; gap: 0.5em; color: var(--muted); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(79, 200, 255, 0.6); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 200, 255, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(79, 200, 255, 0); } }

/* Services: rotating conic border on hover */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card { --ang: 0deg; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: 11px; padding: 1px; background: conic-gradient(from var(--ang), transparent 0 70%, var(--cyan) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card:hover::before { opacity: 1; animation: spin 2.4s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
.card .ico { transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.card:hover .ico { transform: translateY(-2px) rotate(-6deg); box-shadow: 0 0 24px rgba(79, 200, 255, 0.35); }

/* Pricing: featured card breathes */
.price.featured::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 1px rgba(255, 160, 64, 0.35), 0 0 60px -10px rgba(255, 160, 64, 0.35); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.price .amount { font-variant-numeric: tabular-nums; }

/* Process: the connector line draws across the four steps in sequence */
.steps { position: relative; }
.steps li::after { transition: width 0.6s var(--ease); width: 0; }
.steps.in li:nth-child(1)::after { width: 32px; transition-delay: 0.1s; }
.steps.in li:nth-child(2)::after { width: 32px; transition-delay: 0.4s; }
.steps.in li:nth-child(3)::after { width: 32px; transition-delay: 0.7s; }
.steps.in li:nth-child(4)::after { width: 32px; transition-delay: 1s; }
.steps li::before { transition: color 0.4s, text-shadow 0.4s; }
.steps.in li::before { text-shadow: 0 0 14px rgba(79, 200, 255, 0.6); }
.steps li:hover { border-color: var(--line-strong); }

/* About: terminal cursor after the house rules */
.about blockquote footer::after { content: "▋"; color: var(--cyan); margin-left: 0.4em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* FAQ: answers unfold (modern browsers; others just open) */
.faq-list details { interpolate-size: allow-keywords; }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-list details[open] summary { color: var(--cyan); }

/* Contact: HUD corner brackets on the form, transmit sweep on the button */
.form { position: relative; }
.form::before, .form::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--cyan); opacity: 0.7; pointer-events: none; }
.form::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.form::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.form.sending .btn-primary::after { animation: sendsweep 0.9s linear infinite; }
@keyframes sendsweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* Footer: system line */
.site-foot .sys { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted-2); width: 100%; }
.site-foot .sys b { color: var(--cyan-dim); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  #progress { display: none; }
  .proof ul.in::before, .live::before, .card:hover::before, .price.featured::after, .about blockquote footer::after, .form.sending .btn-primary::after { animation: none; }
  .steps li::after { width: 32px; transition: none; }
  .faq-list details::details-content { transition: none; }
}

/* ===== Polish pass 2 (20 Oct 2026): conversion and pixel-level quality ===== */
html { scrollbar-color: rgba(79, 200, 255, 0.35) #070B26; scrollbar-width: thin; }
::selection { background: rgba(79, 200, 255, 0.85); color: #070B26; }
input, textarea { color-scheme: dark; }

/* Nav: current section */
.nav a:not(.btn).active { color: var(--ink); }
.nav a:not(.btn).active::after { right: 0; }

/* Hero trust line and scroll hint */
.hero-trust { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.92rem; color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5em; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hero-note { margin-top: 1.2rem; }
.js .hero-trust { animation: rise 0.9s var(--ease) 0.7s both; }
.scroll-hint { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan-dim); z-index: 1; }
.scroll-hint i { display: block; width: 1px; height: 38px; background: linear-gradient(to bottom, var(--cyan), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.scroll-hint:hover { color: var(--ink); }
@media (max-width: 860px) { .scroll-hint { display: none; } }

/* Section index in eyebrows */
.eyebrow .idx { display: inline-block; margin-right: 0.9em; color: var(--muted-2); font-weight: 400; }
.eyebrow .idx::after { content: " //"; }

/* Portfolio: browser chrome and phone device frames */
/* Glass sheen: a soft band of light crosses the screenshot frames as the pointer moves over a case card,
   like light on Shedy's glass walls. --sheen is set by main.js; only shows while the card is tilted. */
.browser::after, .device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(112deg, transparent 32%, rgba(200, 235, 255, 0.10) 46%, rgba(255, 255, 255, 0.16) 50%, rgba(200, 235, 255, 0.06) 54%, transparent 66%);
  background-size: 320% 100%; background-position: var(--sheen, 100%) 0; opacity: 0; transition: opacity 0.5s var(--ease); mix-blend-mode: screen; }
.case.tilt .browser::after, .case.tilt .device::after { opacity: 1; }
.browser { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: #11163C; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: linear-gradient(#181E4C, #11163C); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.browser-bar i:first-child { background: rgba(255, 110, 110, 0.6); }
.browser-bar i:nth-child(2) { background: rgba(255, 190, 70, 0.6); }
.browser-bar i:nth-child(3) { background: rgba(80, 220, 120, 0.6); }
.browser-bar span { margin-left: 8px; flex: 1; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--muted-2); background: rgba(0, 0, 0, 0.3); border-radius: 4px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-media .browser .desktop { border: 0; border-radius: 0; box-shadow: none; }
.device { position: absolute; right: -4%; bottom: -8%; width: 26%; border-radius: 14px; padding: 4px; background: #0A0E2E; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.6); transition: transform 0.35s var(--ease); }
.device::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34%; height: 4px; border-radius: 2px; background: #000; z-index: 1; }
.device .phone { position: static; width: 100%; border-radius: 10px; border: 0; box-shadow: none; }
.case.tilt .device { transform: translateZ(40px); }
@media (max-width: 860px) { .device { right: -2%; bottom: -10%; width: 28%; } }

/* Form: quick-pick chips */
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-dim); margin-bottom: 0.6rem; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 0.5rem 0.9rem; border: 1px solid rgba(79, 200, 255, 0.2); border-radius: 999px; font-size: 0.9rem; color: var(--muted); background: rgba(79, 200, 255, 0.03); transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.chips label:hover span { border-color: var(--cyan-dim); color: var(--ink); }
.chips input:checked + span { border-color: var(--cyan); color: #070B26; background: var(--cyan); font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Sticky quote bar on phones, shown once the hero has scrolled away and hidden on the contact section */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 11, 38, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.35s var(--ease); font-size: 0.9rem; color: var(--muted); }
.sticky-cta b { color: var(--ink); }
.sticky-cta .btn { min-height: 44px; padding: 0.5em 1.1em; font-size: 0.95rem; white-space: nowrap; }
.sticky-cta.show { transform: none; }
@media (max-width: 860px) { .sticky-cta { display: flex; } }

/* Footer back-to-top */
.site-foot .top { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--cyan-dim); }

/* Magnetic primary buttons (transform set by JS) */
.btn-primary { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i::after { animation: none; }
  .js .hero-trust { animation: none; }
  .sticky-cta { transition: none; }
}
