/* =========================================================
   Loomix Nest — "Indigo loom" design system
   Layout concept: an indigo-dyed hero band with a woven nest,
   then unbleached-cotton pages stitched together by thread rules.
   ========================================================= */
:root {
  /* Color — indigo dye, saffron thread, moss thread on unbleached cotton */
  --indigo: #1B2452;
  --indigo-deep: #121938;
  --saffron: #E4A62E;
  --moss: #3E8A76;
  --madder: #C0583F;
  --bg: #EEECE4;
  --surface: #F8F7F2;
  --surface-2: #E4E1D5;
  --line: #D3CFC0;
  --fg: #191E36;
  --muted: #565B70;
  --link: #24357E;
  --accent-ink: #8A5B06;
  --mark-a: var(--indigo);
  --on-indigo: #F3EFE3;
  --on-indigo-muted: #B9BCD3;
  --shadow: 0 1px 0 rgba(27,36,82,.06), 0 12px 30px -18px rgba(27,36,82,.35);

  /* Type */
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-xs: .78rem; --t-sm: .9rem; --t-md: 1.0625rem; --t-lg: 1.3rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --t-2xl: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --t-3xl: clamp(2.6rem, 1.5rem + 4.6vw, 4.9rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 14px;
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --indigo: #182050; --indigo-deep: #0C1028;
    --saffron: #F0B848; --moss: #5FB59C; --madder: #E07A5F;
    --bg: #0F1328; --surface: #161B36; --surface-2: #1E2446; --line: #2C3360;
    --fg: #ECE8DC; --muted: #A5A8BE; --link: #AFC0FF; --accent-ink: #F0B848;
    --mark-a: #C9CFF5; --on-indigo: #F3EFE3; --on-indigo-muted: #B9BCD3;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 34px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --indigo: #182050; --indigo-deep: #0C1028;
  --saffron: #F0B848; --moss: #5FB59C; --madder: #E07A5F;
  --bg: #0F1328; --surface: #161B36; --surface-2: #1E2446; --line: #2C3360;
  --fg: #ECE8DC; --muted: #A5A8BE; --link: #AFC0FF; --accent-ink: #F0B848;
  --mark-a: #C9CFF5; --on-indigo: #F3EFE3; --on-indigo-muted: #B9BCD3;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 34px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--t-md)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--saffron); color: #1a1300; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .04em; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Eyebrow: a short thread stitch + uppercase label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px); }
.on-indigo .eyebrow { color: var(--saffron); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 var(--t-sm)/1 var(--f-body); letter-spacing: .01em;
  padding: 15px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-thread { background: var(--saffron); color: #1C1404; }
.btn-thread:hover { background: #F2BC52; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-ink { background: var(--indigo); color: var(--on-indigo); }
.btn-small { padding: 10px 16px; font-size: var(--t-xs); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.28rem/1 var(--f-display); letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--accent-ink); }
.brand-tag { font: 400 .66rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; }
.site-nav ul a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: var(--t-sm); position: relative; padding-block: 6px; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform: scaleX(0); transform-origin: left;
  background: repeating-linear-gradient(90deg, var(--saffron) 0 6px, transparent 6px 9px); transition: transform .25s ease;
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--fg); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: auto; position: relative; transition: transform .25s ease, opacity .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 18px var(--gutter) 26px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: var(--t-md); border-bottom: 1px dashed var(--line); }
  .site-nav ul a::after { display: none; }
}

/* ---------- Indigo band (hero + page heads) ---------- */
.on-indigo {
  position: relative; color: var(--on-indigo); background-color: var(--indigo); isolation: isolate; overflow: hidden;
}
.on-indigo::before { /* woven twill texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.12) 0 2px, transparent 2px 7px);
}
.on-indigo::after { /* dye pooling at the edges */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 80% 20%, transparent 40%, var(--indigo-deep) 100%);
}
.on-indigo p, .on-indigo .lede { color: var(--on-indigo-muted); }
.on-indigo a:not(.btn) { color: var(--on-indigo); }

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -.035em; color: var(--on-indigo); }
.hero h1 .thread {
  color: var(--saffron); position: relative; white-space: nowrap;
}
.hero h1 .thread::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .1em;
  background: repeating-linear-gradient(90deg, var(--saffron) 0 .32em, transparent .32em .46em); opacity: .7;
}
.hero .lede { font-size: var(--t-lg); line-height: 1.55; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 10px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; color: var(--on-indigo-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); display: inline-block; }
.hero-meta i.s { background: var(--saffron); }

.nest-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: center; }
.nest-stage canvas { width: 100%; height: 100%; }
.nest-tag {
  position: absolute; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(10,14,36,.55); border: 1px solid rgba(255,255,255,.16); color: var(--on-indigo);
  padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nest-tag b { color: var(--saffron); font-weight: 500; }
.nest-tag.t1 { left: 2%; top: 18%; } .nest-tag.t2 { right: 0; top: 34%; } .nest-tag.t3 { left: 12%; bottom: 10%; }

.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head h1 { font-size: var(--t-2xl); font-weight: 800; color: var(--on-indigo); max-width: 18ch; }
.page-head .lede { font-size: var(--t-lg); max-width: 56ch; line-height: 1.55; }

/* Selvedge: the woven edge that closes indigo bands and opens the footer */
.selvedge {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--saffron) 0 10px, var(--indigo) 10px 14px, var(--moss) 14px 24px, var(--indigo) 24px 28px);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px); mask: repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 680px; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { color: var(--muted); font-size: var(--t-lg); line-height: 1.55; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(32px, 4vw, 52px); }
.split-head .section-head { margin-bottom: 0; }

/* Warp & weft: apps vs games */
.loom { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.loom-col { padding: clamp(26px, 4vw, 48px); display: grid; gap: 16px; align-content: start; min-width: 0; position: relative; }
.loom-col + .loom-col { border-left: 1px solid var(--line); }
.loom-col h3 { font-size: var(--t-xl); }
.loom-col p { color: var(--muted); }
.loom-label { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.loom-label b { color: var(--fg); font-weight: 500; }
.loom-swatch { height: 64px; border-radius: 10px; }
.loom-col.warp .loom-swatch { background: repeating-linear-gradient(90deg, var(--indigo) 0 6px, color-mix(in srgb, var(--indigo) 70%, var(--bg)) 6px 8px); }
.loom-col.weft .loom-swatch { background: repeating-linear-gradient(0deg, var(--saffron) 0 6px, color-mix(in srgb, var(--saffron) 65%, var(--bg)) 6px 8px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { font-size: var(--t-xs); font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }

/* Services list */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.svc:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px dashed var(--line); }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.24rem; }
.svc p { color: var(--muted); font-size: var(--t-sm); }

/* Process (a real sequence) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; position: relative; }
.process::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--saffron) 0 8px, transparent 8px 13px); }
.step { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: var(--on-indigo); font: 500 var(--t-sm)/1 var(--f-mono); border: 3px solid var(--bg); position: relative; }
.step h3 { font-size: 1.25rem; margin-top: 6px; }
.step .craft { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent-ink); letter-spacing: .08em; text-transform: uppercase; }
.step p { color: var(--muted); font-size: var(--t-sm); }

/* Showcase */
.filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.filter button { font: 600 var(--t-xs)/1 var(--f-body); letter-spacing: .03em; border: 0; background: transparent; color: var(--muted); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.egg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.egg-art { aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; background: var(--surface-2); }
.egg-art .icon-blank {
  width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center;
  background: var(--card-tone, var(--indigo)); color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
}
.egg-art .icon-blank svg { width: 36px; height: 36px; }
.egg-art::before { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--card-tone, var(--indigo)) 14%, transparent) 0 2px, transparent 2px 9px); }
.egg-art > * { position: relative; }
.egg-body { padding: 20px 20px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.egg-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kind { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.status { font-size: .7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.status.dev { background: color-mix(in srgb, var(--saffron) 22%, transparent); color: var(--accent-ink); }
.status.live { background: color-mix(in srgb, var(--moss) 22%, transparent); color: var(--moss); }
.status.plan { background: var(--surface-2); color: var(--muted); }
.egg-card h3 { font-size: 1.2rem; }
.egg-card p { color: var(--muted); font-size: var(--t-sm); }
.store-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding: 0 20px 20px; }
.store { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.store svg { width: 15px; height: 15px; }
.store[aria-disabled="true"] { opacity: .55; cursor: default; }
.empty-note { grid-column: 1 / -1; color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Platforms band */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform { border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); display: grid; gap: 14px; align-content: start; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.platform-top { display: flex; align-items: center; gap: 14px; }
.platform-top svg { width: 34px; height: 34px; color: var(--fg); }
.platform h3 { font-size: var(--t-xl); }
.platform p { color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.stack li { font-family: var(--f-mono); font-size: .74rem; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }

/* CTA band */
.cta-band { border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { font-size: var(--t-2xl); color: var(--on-indigo); }
.cta-band p { margin-top: 12px; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Prose pages: about, legal */
.prose { max-width: 70ch; display: grid; gap: 18px; }
.prose h2 { font-size: var(--t-xl); margin-top: 22px; }
.prose h3 { font-size: 1.15rem; margin-top: 8px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--saffron); }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: var(--t-sm); padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc strong { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.toc a { color: var(--fg); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--accent-ink); }
.updated { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--on-indigo-muted); letter-spacing: .06em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.principles { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles svg { width: 26px; height: 26px; color: var(--accent-ink); margin-top: 2px; }
.principles h3 { font-size: 1.15rem; margin-bottom: 4px; }
.principles p { color: var(--muted); font-size: var(--t-sm); }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.quote-card blockquote { margin: 0; font: 700 var(--t-xl)/1.2 var(--f-display); letter-spacing: -.02em; }
.quote-card blockquote em { font-style: normal; color: var(--accent-ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.3rem/1 var(--f-mono); color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.info-row { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.info-row .k { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-row .v { font: 600 1.12rem/1.3 var(--f-display); word-break: break-word; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 var(--t-md)/1.4 var(--f-body); color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px color-mix(in srgb, var(--saffron) 22%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; }
.form-foot small { color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; font-size: var(--t-sm); }
.alert.ok { background: color-mix(in srgb, var(--moss) 18%, transparent); color: var(--fg); border: 1px solid color-mix(in srgb, var(--moss) 50%, transparent); }
.alert.err { background: color-mix(in srgb, var(--madder) 16%, transparent); color: var(--fg); border: 1px solid color-mix(in srgb, var(--madder) 50%, transparent); }

/* 404 */
.lost { text-align: center; display: grid; gap: 18px; justify-items: center; }
.lost .big { font: 800 clamp(5rem, 18vw, 10rem)/1 var(--f-display); letter-spacing: -.05em; color: var(--saffron); }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: var(--on-indigo); margin-top: var(--section); }
.site-footer .brand { color: var(--on-indigo); }
.site-footer .brand-name b { color: var(--saffron); }
.site-footer .brand-tag { color: var(--on-indigo-muted); }
.site-footer .mark { --mark-a: #C9CFF5; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-slogan { color: var(--on-indigo-muted); font: 600 1.1rem/1.3 var(--f-display); }
.footer-mail a { color: var(--saffron); font-weight: 600; text-decoration: none; }
.footer-h { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-indigo-muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: var(--t-sm); color: var(--on-indigo); }
.footer-links a { color: var(--on-indigo); text-decoration: none; }
.footer-links a:hover { color: var(--saffron); }
.soon { font: 400 .66rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--saffron); border: 1px solid currentColor; padding: 2px 6px; border-radius: 99px; margin-left: 6px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--t-xs); color: var(--on-indigo-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nest-stage { max-width: 420px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .svc:nth-child(2n) { padding-left: 26px; border-left: 1px dashed var(--line); }
  .process { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 760px) {
  .loom, .platforms, .two-col, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .loom-col + .loom-col { border-left: 0; border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-grid, .process { grid-template-columns: 1fr; }
  .svc:nth-child(2n) { padding-left: 0; border-left: 0; }
  .svc { padding-right: 0; }
  .hero h1 .thread { white-space: normal; }
  .nest-tag { font-size: .62rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
