/* ions Studio — styles.
   Palette: the studio's own, shared with The Second Bell (ink, bone, amber, ember, violet, slate).
   Type: Big Shoulders Display for headlines, Instrument Sans for everything else, KenPixel (CC0) for game captions. */

@font-face {
  font-family: 'KenPixel';
  src: url('../fonts/KenPixel.ttf') format('truetype');
  font-display: swap;
}

:root {
  --ink: #0B0A12;
  --ink-2: #14121E;
  --ink-3: #1F1B2C;
  --bone: #F3EDE2;
  --bone-2: #E6DFD0;
  --slate: #6A6178;
  --slate-2: #A39BAE;
  --amber: #F2C14E;
  --amber-2: #FFF0A8;
  --ember: #E8631A;
  --violet: #8F5BD6;
  --violet-2: #C9A4FF;

  --bg: var(--ink);
  --fg: var(--bone);
  --muted: var(--slate-2);
  --line: rgba(243, 237, 226, 0.12);

  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --pixel: 'KenPixel', 'Courier New', monospace;

  --fs-hero: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  --fs-1: clamp(2.8rem, 1.9rem + 5vw, 6.4rem);
  --fs-2: clamp(2.2rem, 1.5rem + 3.2vw, 4.2rem);
  --fs-3: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem);
  --fs-small: 0.9375rem;

  --gutter: 16px;
  --measure: 60ch;
  --px: 3;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 10, 18, .85), rgba(11, 10, 18, 0));
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: .01em; line-height: 1;
}
.brand-mark { width: 28px; height: 28px; color: var(--bone); }
.top-nav { display: none; gap: 28px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.top-nav a:hover { color: var(--fg); }
@media (min-width: 900px) { .top-nav { display: flex; } }
.top-right { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(11, 10, 18, .6); cursor: pointer; overflow: hidden;
}
.lang span { padding: 7px 11px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.lang span[aria-current="true"] { background: var(--bone); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; color: var(--fg);
  background: transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(243, 237, 226, .4); }
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn-small { padding: 9px 14px; font-size: .875rem; background: rgba(11, 10, 18, .6); }
.btn-ghost { border-color: transparent; padding-inline: 6px; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); border-color: transparent; }

/* ---------- sections ---------- */
section { padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; }
.section-head { max-width: 1200px; margin: 0 auto clamp(40px, 6vw, 88px); display: grid; gap: 20px; }
.section-head h2 { font-family: var(--display); font-size: var(--fs-2); line-height: 1.2; letter-spacing: .005em; text-wrap: balance; max-width: 16ch; }
.section-head p { color: var(--muted); max-width: var(--measure); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding-top: 88px;
  padding-bottom: 40px;
  overflow: hidden;
  isolation: isolate;
}
.field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none;
}
.hero-word {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; line-height: .8; letter-spacing: -.02em;
  font-size: clamp(7rem, 48vw, 30rem);
  color: var(--bone);
  user-select: none;
  min-height: 34svh;
}
.js .hero-word { visibility: hidden; }
.hero-copy {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; gap: 22px;
}
.hero h1 {
  font-family: var(--sans); font-weight: 500; font-size: var(--fs-hero); line-height: 1.25; letter-spacing: -.012em;
  max-width: 34ch; text-wrap: pretty;
}
.lead { color: var(--muted); max-width: var(--measure); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.status {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 48px auto 0; width: 100%;
  display: grid; gap: 10px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--muted);
}
.status li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.status a { color: var(--fg); font-weight: 600; text-decoration: none; }
.status a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; align-self: center; }
.dot.live { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 193, 78, .18); }
.dot.build { background: var(--violet-2); box-shadow: 0 0 0 4px rgba(201, 164, 255, .18); }
.hero-hint {
  position: absolute; right: var(--gutter); top: calc(88px + 34svh);
  font-size: .8rem; color: var(--slate); z-index: 2; display: none;
}
@media (min-width: 1200px) and (hover: hover) { .hero-hint { display: block; } }
@media (min-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-word { min-height: 44svh; }
  .status { grid-template-columns: 1fr 1fr; }
}

/* ---------- processes with AI: the diagram ---------- */
.processes { background: var(--ink-2); }
.diagram-wrap { max-width: 1200px; margin: 0 auto; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.diagram { display: block; width: 100%; min-width: 860px; height: auto; color: var(--slate); overflow: visible; }
.edge { fill: none; stroke: currentColor; stroke-width: 2; marker-end: url(#arr); }
.edge.loop { stroke-dasharray: 5 6; color: var(--ember); opacity: .8; marker-end: url(#arr); }
.node circle, .node rect, .node path { fill: var(--ink); stroke: var(--slate-2); stroke-width: 2; transition: stroke .4s, fill .4s; }
.node.person rect { stroke: var(--amber); }
.node.check path { stroke: var(--violet-2); }
.node.ship circle { fill: var(--amber); stroke: var(--amber); }
.node .glyph { fill: var(--bone); font-family: var(--display); font-weight: 900; font-size: 30px; text-anchor: middle; }
.node.person .glyph { font-size: 22px; fill: var(--amber); }
.node.check .glyph { fill: var(--violet-2); font-size: 28px; }
.node .label { fill: var(--bone-2); font-family: var(--sans); font-size: 15px; font-weight: 600; text-anchor: middle; }
.node .sub, .loop-label { fill: var(--slate-2); font-family: var(--sans); font-size: 13px; text-anchor: middle; }
.loop-label { fill: var(--ember); }
/* The pulse: each edge carries a bead of light in turn; nodes flash as it arrives. One cycle, 9 s. */
.in-view .edge::after { content: none; }
.in-view .edge { stroke-dasharray: 26 1000; stroke-dashoffset: 26; animation: bead 9s linear infinite; animation-delay: calc(var(--i) * 1.1s); }
.in-view .edge.loop { animation-name: bead-loop; }
@keyframes bead { 0% { stroke-dashoffset: 26; stroke: var(--slate); } 2% { stroke: var(--amber-2); } 10% { stroke-dashoffset: -420; stroke: var(--amber-2); } 10.01%, 100% { stroke-dashoffset: 26; stroke: var(--slate); } }
@keyframes bead-loop { 0% { stroke-dashoffset: 26; } 2% { stroke: var(--ember); } 14% { stroke-dashoffset: -760; stroke: #FF9A3D; } 14.01%, 100% { stroke-dashoffset: 26; stroke: var(--ember); } }
.in-view .node.agent circle, .in-view .node.person rect, .in-view .node.check path { animation: arrive 9s linear infinite; animation-delay: calc(var(--i) * 1.1s + .9s); }
@keyframes arrive { 0%, 1% { fill: var(--ink); } 3% { fill: var(--ink-3); } 12%, 100% { fill: var(--ink); } }
.in-view .node.ship circle { animation: shipped 9s linear infinite; animation-delay: 6.5s; }
@keyframes shipped { 0% { r: 12; } 3% { r: 18; } 10%, 100% { r: 12; } }
.diagram-steps { max-width: 1200px; margin: 40px auto 0; display: grid; gap: 18px; counter-reset: ds; }
.diagram-steps li { position: relative; padding-left: 34px; color: var(--bone-2); max-width: 46ch; counter-increment: ds; }
.diagram-steps li::before { content: counter(ds); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; display: grid; place-items: center; color: var(--amber); }
.proof-facts { max-width: 1200px; margin: 48px auto 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.proof-facts div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 12px; font-size: var(--fs-small); }
.proof-facts dt { color: var(--muted); }
.proof-facts dd { margin: 0; color: var(--bone-2); }
@media (min-width: 900px) {
  .diagram-steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .proof-facts { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (max-width: 899px) { .proof-facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- work ---------- */
.work { padding-top: clamp(64px, 9vw, 120px); }
.work::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.case {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 40px;
  padding: clamp(40px, 6vw, 96px) 0;
}
.case:first-of-type { padding-top: 0; }
.case + .case { border-top: 1px solid var(--line); }
.case-kind { font-size: var(--fs-small); color: var(--muted); margin-bottom: 14px; }
.case h3 { font-family: var(--display); font-size: var(--fs-1); line-height: 1.2; letter-spacing: .004em; margin-bottom: 24px; text-wrap: balance; }
.case-lead { max-width: var(--measure); margin-bottom: 30px; }
.facts { display: grid; gap: 14px; margin: 0 0 34px; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.case-commander .case-visual { display: grid; gap: 28px; align-content: start; }
.shot { margin: 0; }
.shot img {
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  background: var(--ink-2);
}
.shot figcaption, .refuge figcaption { font-size: .85rem; color: var(--slate); margin-top: 12px; }

.pipeline { width: 100%; height: auto; overflow: visible; }
.pipe-track { stroke: var(--line); stroke-width: 2; fill: none; }
.pipe-pulse {
  stroke: var(--amber); stroke-width: 2; fill: none; stroke-linecap: round;
  stroke-dasharray: 70 490; stroke-dashoffset: 70;
  filter: drop-shadow(0 0 6px rgba(242, 193, 78, .8));
}
.in-view .pipe-pulse { animation: pulse-run 4.5s linear infinite; }
@keyframes pulse-run { to { stroke-dashoffset: -560; } }
.node circle { fill: var(--ink-2); stroke: var(--slate); stroke-width: 2; }
.node text { fill: var(--muted); font-size: 15px; text-anchor: middle; font-family: var(--sans); }
.node:nth-child(5) circle { stroke: var(--violet-2); }
.node:nth-child(7) circle { stroke: var(--amber); }

@media (min-width: 980px) {
  .case-commander { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
  .case-commander .case-text { position: sticky; top: 100px; }
}

/* The Second Bell */
.case-bell { grid-template-areas: 'scene' 'text' 'refuge'; }
.case-bell .scene { grid-area: scene; }
.case-bell .case-text { grid-area: text; }
.case-bell .refuge { grid-area: refuge; }
@media (min-width: 980px) {
  .case-bell { grid-template-columns: 1.25fr 1fr; grid-template-areas: 'scene scene' 'text refuge'; gap: 48px 64px; }
}
.scene {
  position: relative; aspect-ratio: 16 / 9; max-height: 70svh; width: 100%;
  overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: #0a0916;
  image-rendering: pixelated;
}
.layer {
  position: absolute; inset: -8% 0; background-repeat: no-repeat; background-size: cover; background-position: center bottom;
  image-rendering: pixelated; will-change: transform;
}
.layer.sky { background-image: url('../img/tsb/title_sky.png'); }
.layer.far { background-image: url('../img/tsb/title_forest_far.png'); }
.layer.near { background-image: url('../img/tsb/title_forest_near.png'); }
.layer.ground { background-image: url('../img/tsb/title_ground.png'); }
.layer.tower {
  inset: auto 0 10% 0; height: 72%;
  background-image: url('../img/tsb/title_tower.png'); background-size: auto 100%; background-position: center bottom;
}
.layer.tower .window {
  position: absolute; left: 50%; bottom: 68%; transform: translateX(-50%);
  --px: 1.6;
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.spr {
  display: block; flex: none;
  width: calc(var(--w) * 1px * var(--px));
  height: calc(var(--h) * 1px * var(--px));
  background-repeat: no-repeat;
  background-size: calc(var(--w) * var(--n) * 1px * var(--px)) calc(var(--h) * 1px * var(--px));
  image-rendering: pixelated;
  animation: spr calc(var(--n) / var(--fps, 6) * 1s) steps(var(--n)) infinite;
}
@keyframes spr { to { background-position-x: calc(var(--w) * var(--n) * -1px * var(--px)); } }
.walker { position: absolute; bottom: 7%; left: 0; --px: 2.5; animation: spr calc(var(--n) / var(--fps) * 1s) steps(var(--n)) infinite, walk 22s linear infinite; }
@keyframes walk { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw + 120px)); } }
.crow { position: absolute; right: 12%; bottom: 46%; --px: 2; animation: none; opacity: .9; }
@media (min-width: 720px) { .walker { --px: 3; } .crow { --px: 2.5; } }

.refuge { margin: 0; align-self: end; }
.refuge img { border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; }
.refuge figcaption { font-family: var(--pixel); font-size: .95rem; letter-spacing: .02em; color: var(--amber); }

/* ---------- services on paper ---------- */
.paper { background: var(--bone); color: var(--ink); --muted: #5C5566; --line: rgba(11, 10, 18, .16); }
.paper::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper > * { position: relative; }
.svc-list { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center;
  padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.svc-name { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 1.4rem + 3vw, 4rem); line-height: 1.2; letter-spacing: .004em; grid-column: 1; }
.svc-sum { color: var(--muted); font-size: var(--fs-small); grid-column: 1; max-width: 60ch; }
.svc-plus { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), background-color .3s; }
.svc-plus::before, .svc-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-head[aria-expanded="true"] .svc-plus { background: var(--ink); color: var(--bone); transform: rotate(45deg); }
.svc-head:hover .svc-plus { transform: scale(1.08); }
.svc-head[aria-expanded="true"]:hover .svc-plus { transform: rotate(45deg) scale(1.08); }
.svc-body { overflow: hidden; }
.svc-body p { max-width: var(--measure); padding: 0 0 30px; color: #2A2535; }
.svc-body[hidden] { display: none; }
@media (min-width: 900px) {
  .svc-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
  .svc-name { grid-column: 1; grid-row: 1; }
  .svc-sum { grid-column: 2; grid-row: 1; }
  .svc-plus { grid-column: 3; grid-row: 1; }
  .svc-body p { margin-left: calc(50% + 6px); }
}

/* ---------- process ---------- */
.process { overflow: hidden; }
.steps { max-width: 1200px; margin: 0 auto; display: grid; gap: 40px; counter-reset: step; }
.step { position: relative; padding-left: 0; display: grid; gap: 12px; align-content: start; }
.step-n {
  font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 3rem + 6vw, 9rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--slate); letter-spacing: -.02em;
  transition: color .6s var(--ease);
}
.step.lit .step-n { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.step h3 { font-size: var(--fs-3); font-weight: 600; letter-spacing: -.01em; }
.step p { color: var(--muted); max-width: 44ch; }
.rail { max-width: 1200px; margin: 48px auto 0; height: 2px; background: var(--line); position: relative; }
.rail-charge { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--violet), var(--amber)); box-shadow: 0 0 12px rgba(242, 193, 78, .6); transition: width .2s linear; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- stack ---------- */
.stack { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.stack h2 { max-width: 1200px; margin: 0 auto 28px; font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); color: var(--muted); }
.stack-wall { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.stack-wall li {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 2.2vw, 3.2rem); line-height: 1;
  padding: 8px 14px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--bone-2);
  transition: border-color .3s, color .3s, background-color .3s, transform .3s var(--ease);
}
.stack-wall li:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 48px; border-top: 1px solid var(--line); }
.contact h2 { font-family: var(--display); font-size: var(--fs-2); line-height: 1.2; margin-bottom: 18px; text-wrap: balance; max-width: 14ch; }
.contact-main p { color: var(--muted); max-width: var(--measure); margin-bottom: 28px; }
.mail {
  display: inline-block; font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 0.9rem + 3.6vw, 3.6rem); line-height: 1;
  text-decoration: none; color: var(--amber); overflow-wrap: anywhere;
  background-image: linear-gradient(var(--amber), var(--amber)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .5s var(--ease);
}
.mail:hover { background-size: 100% 3px; }
.cform { display: grid; gap: 18px; align-content: start; }
.cform fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cform legend { padding: 0; margin-bottom: 10px; font-size: var(--fs-small); color: var(--muted); }
.cform-types label { position: relative; }
.cform-types input { position: absolute; opacity: 0; inset: 0; }
.cform-types span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-small); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.cform-types input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cform-types input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.cform-field { display: grid; gap: 6px; font-size: var(--fs-small); color: var(--muted); }
.cform input[type="email"], .cform textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font-size: 1rem; resize: vertical;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: transparent; }
.cform-note { min-height: 1.4em; font-size: var(--fs-small); color: var(--muted); }
.cform-note.ok { color: var(--amber); }
.cform-note.err { color: #FF9A3D; }
.cform-note a { color: var(--fg); }
.cform .btn { justify-self: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; } }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--muted);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1px solid rgba(242, 193, 78, .55);
    transition: transform .18s var(--ease), border-color .3s, background-color .3s, opacity .3s;
    opacity: 0; mix-blend-mode: screen;
  }
  .cursor i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--amber); }
  .cursor.on { opacity: 1; }
  .cursor.hot { transform: scale(1.7); border-color: rgba(201, 164, 255, .8); background: rgba(143, 91, 214, .12); }
  .cursor.hot i { background: var(--violet-2); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .walker { left: 30%; transform: none; }
  .pipe-pulse { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .5; }
  .in-view .edge { animation: none; stroke-dasharray: none; }
  .in-view .edge.loop { stroke-dasharray: 5 6; }
  .cursor { display: none; }
  .hero-hint { display: none; }
}
