/* Galactica Labs single-page site.
   Design tokens are defined on :root below. */
:root {
  --night: #0a0e13;
  --slate: #161b22;
  --slate-2: #1c2128;
  --line: #21262d;
  --line-2: #30363d;
  --lime: #fdd756;
  --lime-2: #e8bf3c;
  --snow: #f0f6fc;
  --ash: #8b949e;
  --body: #b4bdc9;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --r-btn: 0.375rem;
  --r-card: 0.75rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
  --grid-faint: rgba(253, 215, 86, 0.045);
  --grid-major: rgba(253, 215, 86, 0.09);
  --tone: #0d1218;
  --field-border: #6e7681;
  --field-hover: #8b949e;
  --placeholder: #7d8590;
  --danger: #ff7b72;
  --danger-text: #ff9b94;
  --lime-ring: rgba(253, 215, 86, 0.22);
  --danger-ring: rgba(255, 123, 114, 0.22);
  --accent-ink: #fdd756;
  --on-accent: #0a0e13;
  --header-bg: rgba(10, 14, 19, 0.88);
  --accent-wash: rgba(253, 215, 86, 0.1);
  --accent-line: rgba(253, 215, 86, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html, html:focus-within { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--body);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent-ink);
  scrollbar-color: var(--line-2) var(--night);
}
::selection { background: var(--lime); color: var(--on-accent); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; text-wrap: pretty; }
h1, h2, h3 { color: var(--snow); margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0.75rem; z-index: 100; background: var(--lime); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: var(--r-btn); font-weight: 700; }
.skip:focus { left: 0.75rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.tone { background: var(--tone); }

/* ── Type ─────────────────────────────────────────────── */
.h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 0.96; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; max-width: 24ch; }
.h2 .soft { color: var(--ash); }
.accent { color: var(--accent-ink); }
.h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--body); max-width: 60ch; }
.measure { max-width: 62ch; }
.muted { color: var(--ash); }
.small { font-size: 0.875rem; }
.head-gap { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ── Buttons & links ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: var(--r-btn);
  background: var(--lime); color: var(--on-accent); font-family: var(--font); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--lime-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.95rem; }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.link:hover { text-decoration-thickness: 2px; }

/* ── Header ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) { color: var(--ash); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.7rem 0.85rem; border-radius: var(--r-btn); transition: color 0.2s ease; position: relative; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current] { color: var(--snow); }
.nav a:not(.btn)[aria-current]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem; height: 2px; background: var(--accent-ink); border-radius: 2px; }
.nav .btn { margin-left: 0.75rem; }
.nav .btn[aria-current] { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.nav .btn[aria-current]:hover { background: var(--accent-wash); }
.mnav a[aria-current] { color: var(--accent-ink); }
.mnav a[aria-current]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); margin-right: 0.6rem; vertical-align: middle; }
.nowrap { white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0 0.9rem; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: transparent; color: var(--snow); font: 600 0.95rem var(--font); cursor: pointer; }
.menu-btn:hover { border-color: var(--field-hover); }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; display: grid; }
.mnav[hidden] { display: none; }
.mnav a { color: var(--snow); text-decoration: none; font-weight: 600; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.mnav a:last-child { border-bottom: 0; }
@media (max-width: 960px) { .nav a:not(.btn) { display: none; } .nav { gap: 0.6rem; } .nav .btn { margin-left: 0; } .menu-btn { display: inline-flex; } }
@media (min-width: 961px) { .mnav { display: none !important; } }

/* Logo: G. mark that becomes the stacked wordmark on hover or keyboard focus. */
.brand { position: relative; display: block; flex: none; height: 30px; width: 46px; text-decoration: none; }
.brand::after { content: ""; position: absolute; inset: -8px -6px; }
.brand img { position: absolute; left: 0; top: 0; height: 30px; width: auto; max-width: none; }
.brand .full { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-6px); transition: opacity 0.35s ease, clip-path 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.brand .mark { transform-origin: 0 50%; transition: opacity 0.45s ease 0.15s, transform 0.7s var(--ease-out) 0.05s; }
@media (min-width: 961px) and (hover: hover) {
  .brand { width: 222px; }
  .brand:hover .mark { opacity: 0; transform: scale(0.72); transition: opacity 0.35s ease 0.05s, transform 0.7s var(--ease-out); }
  .brand:hover .full { opacity: 1; clip-path: inset(0 0 0 0); transform: none; transition: opacity 0.45s ease 0.1s, clip-path 0.8s var(--ease-out) 0.1s, transform 0.8s var(--ease-out) 0.1s; }
}
@media (min-width: 961px) { .brand:focus-visible { width: 222px; } }
@media (min-width: 961px) { .brand:focus-visible .mark { opacity: 0; } .brand:focus-visible .full { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .brand img { transition: opacity 0.2s ease !important; transform: none !important; } }

/* ── Blueprint backdrop ───────────────────────────────── */
.blueprint { position: relative; isolation: isolate; overflow: hidden; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-faint) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
}
.blueprint.left::before { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000 25%, transparent 80%); }
.drawing { position: absolute; z-index: -1; pointer-events: none; color: var(--accent-ink); opacity: 0.16; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-more { margin: 1.75rem 0 0; max-width: 56ch; color: var(--ash); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.reassure { display: flex; align-items: center; gap: 0.6rem; color: var(--body); font-size: 0.95rem; margin: 0; }
.reassure svg { flex: none; width: 20px; height: 20px; color: var(--accent-ink); }
.hero-art { width: 100%; max-width: 460px; justify-self: end; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 190px; justify-self: start; margin-bottom: -0.75rem; }
}

/* Beam motion: the one authored loop on the page. Work rises into the beam. */
.rise { animation: rise 7s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
.rise.d2 { animation-delay: -2.33s; }
.rise.d3 { animation-delay: -4.66s; }
@keyframes rise { 0% { transform: translateY(40px); opacity: 0; } 18% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }
.hover-ufo { animation: hover 6s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .rise, .hover-ufo { animation: none; } .rise { opacity: 1; transform: translateY(-78px); } .rise.d2 { transform: translateY(0); } .rise.d3 { transform: translateY(78px) scale(.85); } }

/* ── Opportunity ──────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 861px) { .split > .h2, .split > .split-head { position: sticky; top: 112px; align-self: start; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.problems { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.problems li { display: flex; gap: 0.75rem; align-items: baseline; color: var(--snow); font-weight: 500; }
.problems svg { flex: none; width: 16px; height: 16px; color: var(--accent-ink); transform: translateY(2px); }

/* ── Services: editorial rows, not a card grid ────────── */
.services { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.service { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-art { width: 200px; height: 150px; }
.service .h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin-bottom: 0.6rem; }
.service .tagline { color: var(--snow); font-weight: 600; margin-bottom: 0.9rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.checks li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--snow); font-size: 0.95rem; }
.checks li:last-child { border-bottom: 0; }
.checks svg { flex: none; width: 14px; height: 14px; color: var(--accent-ink); transform: translateY(1px); }
@media (max-width: 960px) { .service { grid-template-columns: 160px minmax(0, 1fr); } .service .checks { grid-column: 2; } .service-art { width: 150px; height: 112px; } }
@media (max-width: 640px) { .service { grid-template-columns: 1fr; } .service .checks { grid-column: auto; } .service-art { width: 132px; height: 99px; } }

/* ── First-call band ──────────────────────────────────── */
.band { display: grid; grid-template-columns: 170px minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--slate); }
.band .h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); max-width: 20ch; margin-bottom: 0.75rem; }
.band p { margin: 0; }
.band .btn { margin-top: 1.25rem; }
.band-art { width: 160px; }
@media (max-width: 960px) { .band { grid-template-columns: 120px minmax(0, 1fr); } .band-art { width: 110px; } .band > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .band { grid-template-columns: 1fr; } .band-art { width: 96px; } }

/* ── How we work: a connected sequence ────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.step { position: relative; counter-increment: step; }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 1px solid var(--line-2); color: var(--accent-ink); font: 600 0.85rem/1 var(--mono); margin-bottom: 1.25rem; position: relative; }
.step .h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1.25rem; }
  .step .num { margin: 0; grid-row: span 2; }
}

/* ── Why ──────────────────────────────────────────────── */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 0; }
.why div { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.why dt { color: var(--snow); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; }
.why dd { margin: 0; text-wrap: pretty; }
.why-title { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: clamp(3.5rem, 7vw, 5rem) 0 1.75rem; max-width: 34ch; }
@media (max-width: 700px) { .why { grid-template-columns: 1fr; } }
.why-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); }
.why-row div { border-top: 1px solid var(--line-2); padding-top: 1.75rem; }
.why-icon { width: 32px; height: 32px; color: var(--accent-ink); margin-bottom: 1rem; }
.why-row dd { font-size: 0.95rem; }
@media (max-width: 960px) { .why-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why-row dt { display: flex; flex-direction: column; }
@media (max-width: 560px) { .why-row { grid-template-columns: 1fr; } .why-row dt { flex-direction: row; align-items: center; gap: 0.85rem; } .why-icon { margin: 0; flex: none; width: 28px; height: 28px; } .why-row dd { padding-left: calc(28px + 0.85rem); } }

/* ── About / founder ──────────────────────────────────── */
.founder { display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--night); margin-top: 1.75rem; }
.founder img { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.founder h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.founder p { font-size: 0.95rem; margin-bottom: 0.6rem; }
@media (max-width: 480px) { .founder { flex-direction: column; align-items: flex-start; } }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; color: var(--snow); font-weight: 600; font-size: 1.05rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq .pm { flex: none; width: 22px; height: 22px; position: relative; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--accent-ink); border-radius: 2px; transition: transform 0.3s var(--ease-out); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details p { margin: 0 0 1.4rem; max-width: 64ch; }

/* ── Contact ──────────────────────────────────────────── */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "intro form" "aside form"; gap: 0 clamp(2rem, 6vw, 5rem); align-items: start; }
.c-intro { grid-area: intro; } .contact .form { grid-area: form; } .c-aside { grid-area: aside; }
.next-short { display: none; list-style: none; padding: 0; margin: 1rem 0 0; color: var(--snow); font-weight: 600; font-size: 0.95rem; }
.next-short li { padding-left: 1.3rem; position: relative; margin: 0.3rem 0; }
.next-short li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "aside"; row-gap: 1.75rem; } .next-short { display: block; } .c-aside .next { display: none; } }
.next { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1rem; }
.next li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.next .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent-ink); color: var(--accent-ink); font: 600 0.8rem/1 var(--mono); }
.next b { color: var(--snow); display: block; }
.alt-contact { display: grid; gap: 0; justify-items: start; font-size: 0.95rem; }
.alt-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--snow); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.25em; }
.alt-contact a:hover { text-decoration-color: var(--accent-ink); }

.form { background: var(--slate); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field label { display: block; color: var(--snow); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field .opt { color: var(--ash); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; border-radius: var(--r-btn);
  background: var(--night); border: 1px solid var(--field-border); color: var(--snow); font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:hover, .field textarea:hover { border-color: var(--field-hover); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--lime-ring); }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] input:focus, .field[data-invalid] textarea:focus { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-ring); }
.field[data-invalid] input:focus, .field[data-invalid] textarea:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.err { display: none; color: var(--danger-text); font-size: 0.9rem; margin-top: 0.4rem; }
.field[data-invalid] .err { display: block; }
.form .fine { color: var(--ash); font-size: 0.875rem; margin: 0.9rem 0 0; }
.form-status { display: none; }
.hint { color: var(--ash); font-size: 0.875rem; margin: 0.4rem 0 0; }
.field input[readonly] { color: var(--snow); background: var(--slate-2); border-color: var(--line-2); }
.suggest { color: var(--ash); font-size: 0.875rem; margin: 0.4rem 0 0; }
.suggest[hidden] { display: none; }
.text-btn.inline { display: inline; min-height: 0; padding: 0; font-size: inherit; }
.text-btn { background: none; border: 0; padding: 0.5rem 0; text-align: left; min-height: 44px; color: var(--accent-ink); font: 600 0.95rem var(--font); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; display: block; }
.form-fail { color: var(--danger-text); background: rgba(255, 123, 114, 0.08); border: 1px solid rgba(255, 123, 114, 0.35); border-radius: var(--r-btn); padding: 0.75rem 0.9rem; margin: 0 0 1rem; font-size: 0.95rem; }
.form-fail .link { color: var(--snow); }
.form-fail:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.btn-ghost { margin-top: 0.5rem; min-height: 44px; padding: 0 1rem; border-radius: var(--r-btn); border: 1px solid var(--field-border); background: transparent; color: var(--snow); font: 600 0.95rem var(--font); cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent-ink); }
.sent-to { color: var(--snow); font-weight: 600; word-break: break-all; }
.form.sent .form-fields { display: none; }
.form.sent .form-status { display: block; }
.form-status .h3 { margin-bottom: 0.6rem; }
.form-status svg { width: 44px; height: 44px; color: var(--accent-ink); margin-bottom: 1rem; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: 0.9rem; color: var(--ash); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; align-items: center; }
.site-footer .wordmark { height: 30px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--snow); text-decoration: none; padding: 0.7rem 0; display: inline-block; min-height: 44px; }
.site-footer a:hover { color: var(--accent-ink); }

/* ── Bio page ─────────────────────────────────────────── */
.bio .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.bio aside img { width: 220px; height: 220px; border-radius: var(--r-card); object-fit: cover; border: 1px solid var(--line-2); }
.bio aside ul { list-style: none; padding: 0; margin: 1.25rem 0; font-size: 0.9rem; color: var(--ash); display: grid; gap: 0.5rem; }
.bio .h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 0.4rem; }
.bio .role { color: var(--accent-ink); font-weight: 600; margin-bottom: 1.75rem; }
.bio article p { max-width: 64ch; }
.bio article .lead { color: var(--snow); }
@media (max-width: 700px) { .bio .wrap { grid-template-columns: 1fr; row-gap: 1.5rem; } .bio aside { display: grid; grid-template-columns: 112px minmax(0,1fr); column-gap: 1rem; align-items: center; } .bio aside img { width: 112px; height: 112px; grid-row: span 2; } .bio aside ul { margin: 0; } .bio aside .link { grid-column: 2; margin-top: 0.5rem; } }

.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; }
fieldset.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.form-fields:disabled input, fieldset.form-fields:disabled textarea { opacity: .6; cursor: not-allowed; }
fieldset.form-fields:disabled .btn { opacity: .75; cursor: progress; }

/* ── Round 9: changes agreed by Claude and Codex (F1-F11) ── */
/* F2: process drawing gets its own grid column on wide screens */
.how-lead { margin: 1.25rem 0 clamp(2.5rem, 5vw, 3.5rem); }
#how .drawing { display: none; }
@media (min-width: 1200px) {
  .how-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 64px; }
  .how-grid > .h2 { grid-column: 1; grid-row: 1; }
  .how-grid > .how-lead { grid-column: 1; grid-row: 2; }
  #how .drawing { display: block; position: static; grid-column: 2; grid-row: 1 / 3; align-self: center; width: 240px; height: 240px; opacity: 0.12; z-index: 0; }
  .how-grid > .steps { grid-column: 1 / -1; grid-row: 3; }
}
/* F3: hero balance */
@media (min-width: 861px) { .hero .h1 { font-size: clamp(3rem, 4.45vw, 4rem); line-height: 1; } }
@media (min-width: 1100px) { .hero-art { width: 108%; max-width: 500px; transform: translateX(24px); } }
@media (max-width: 640px) { .hero { padding-top: 32px; } .hero .wrap { gap: 24px; } .hero-art { max-width: 145px; transform: none; margin-bottom: 0; } }
/* F4: services rhythm */
#services .head-gap { margin-bottom: 32px; }
@media (max-width: 640px) {
  .service { gap: 16px; padding-top: 40px; }
  .service:first-child { padding-top: 0; }
  .services { gap: 40px; }
  .service > div > p:last-child { margin-bottom: 0; }
}
/* F6: founder card */
.founder { align-items: flex-start; }
@media (min-width: 1100px) { .founder img { width: 120px; height: 120px; } }
/* F7: FAQ split */
#faq .head-gap { margin-bottom: 0; }
#faq .faq { width: 100%; max-width: none; }
/* F8: spacing variation */
@media (min-width: 1100px) { .band { padding: 48px; } #contact { padding-block: 128px; } }
/* F9: footer */
.foot-loc { margin: 0; }
.site-footer .foot-cta { color: var(--on-accent); padding: 0 1.4rem; display: inline-flex; min-height: 48px; }
.site-footer .foot-cta:hover { color: var(--on-accent); }
@media (min-width: 1100px) {
  .site-footer { padding: 64px 0; }
  .site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 24px; align-items: center; }
  .site-footer .wordmark { width: 296px; height: auto; }
  .site-footer .foot-cta { justify-self: end; }
  .site-footer nav { align-self: baseline; }
  .foot-loc { justify-self: end; align-self: baseline; text-align: right; }
}
/* F11: quieter grid behind bio prose */


/* ── Round 10: second agreed list (G1-G8) ── */
/* G2 */
.hero.blueprint::before { -webkit-mask-image: radial-gradient(ellipse 50% 75% at 82% 45%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 50% 75% at 82% 45%, #000 30%, transparent 78%); }
@media (max-width: 860px) { .hero.blueprint::before { -webkit-mask-image: radial-gradient(ellipse 70% 32% at 30% 10%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 70% 32% at 30% 10%, #000 25%, transparent 80%); } }
.bio.blueprint::before { -webkit-mask-image: radial-gradient(ellipse 45% 40% at 90% 12%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 45% 40% at 90% 12%, #000 20%, transparent 80%); }
/* G3 */
@media (min-width: 1100px) { .hero-art { transform: none; } }
/* G4 */
.split-facts { margin: 32px 0 0; padding: 0; list-style: none; max-width: 34ch; }
.split-facts li { padding: 12px 0; border-top: 1px solid var(--line-2); color: var(--body); font-size: .95rem; }
.split-help { margin: 20px 0 0; max-width: 34ch; color: var(--ash); }
.split-help a { display: flex; align-items: center; min-height: 44px; color: var(--snow); text-underline-offset: .25em; }
.split-help a:hover { color: var(--accent-ink); }
@media (max-width: 860px) { .split-facts, .split-help { display: none; } }
/* G5 */
.why-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; max-width: 26ch; }
/* G6 */
@media (min-width: 1100px) { .service { grid-template-columns: 240px minmax(0, 1fr) minmax(0, .8fr); gap: 38px; } .service-art { width: 240px; height: 180px; } }
@media (max-width: 640px) { .hero-art { max-width: 176px; } }
/* G7 */
.bio article .lead { max-width: 60ch; }
/* G8 */
.faq details[open] summary { color: var(--accent-ink); }
.faq details[open] { border-top-color: var(--accent-line); }

/* ── Round 11: agreed fixes H1-H4 ── */
.contact.blueprint::before { -webkit-mask-image: radial-gradient(ellipse 42% 70% at 86% 50%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 42% 70% at 86% 50%, #000 25%, transparent 78%); }
@media (max-width: 860px) { .contact.blueprint::before { -webkit-mask-image: radial-gradient(ellipse 60% 20% at 85% 0%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 60% 20% at 85% 0%, #000 20%, transparent 80%); } }
@media (max-width: 700px) { .bio.blueprint::before { -webkit-mask-image: radial-gradient(ellipse 55% 16% at 100% 0%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 55% 16% at 100% 0%, #000 20%, transparent 80%); } }
.founder p { text-wrap: wrap; }

/* Spam trap: kept off-screen so people never see or tab into it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Cookie consent card ───────────────────────────────── */
.consent { position: fixed; z-index: 60; left: 1rem; bottom: 1rem; width: min(22rem, calc(100vw - 2rem)); padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--slate); color: var(--body); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); font-size: 0.95rem; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.85rem; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent-actions > * { flex: 1; margin: 0; }
@media (max-width: 560px) { .consent { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--r-card) var(--r-card) 0 0; border-bottom: 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); } }
:root[data-theme="light"] .consent { background: #ffffff; box-shadow: 0 8px 24px rgba(13, 17, 23, 0.12); }
.site-footer .foot-legal button.foot-cookie { background: none; border: 0; padding: 0.7rem 0; min-height: 44px; font: inherit; color: var(--ash); cursor: pointer; white-space: nowrap; }
.site-footer .foot-legal button.foot-cookie:hover { color: var(--snow); }
.site-footer .foot-legal button.foot-cookie[hidden] { display: none; }

/* ── Legal pages ───────────────────────────────────────── */
.legal .h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 0.5rem 0 1rem; }
.legal-label { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-ink); }
.legal-body { max-width: 72ch; margin-top: 2.5rem; color: var(--body); line-height: 1.7; }
.legal-body h2 { margin: 3rem 0 1rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; color: var(--snow); }
.legal-body h3 { margin: 2rem 0 0.75rem; font-size: 1.1rem; font-weight: 700; color: var(--snow); }
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 1rem 0 1.5rem; padding-left: 1.5rem; }
.legal-body li { margin-bottom: 0.5rem; }
.legal-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.legal-body strong { color: var(--snow); }

/* ── Light theme ─────────────────────────────────────────
   Set by data-theme on <html> (early inline script picks the stored
   choice, else dark). Yellow stays the button fill;
   text, links and icons use a deeper gold so they pass contrast. */
:root[data-theme="light"] {
  --night: #f7f5ef;
  --tone: #efece3;
  --slate: #ffffff;
  --slate-2: #ebe8df;
  --line: #e2ded3;
  --line-2: #cfcabd;
  --snow: #0d1117;
  --body: #39414b;
  --ash: #5b636e;
  --lime-2: #f2c53d;
  --accent-ink: #7a5900;
  --field-border: #7d848e;
  --field-hover: #5b636e;
  --placeholder: #646c77;
  --danger: #cf3b30;
  --danger-text: #b42318;
  --lime-ring: rgba(176, 131, 0, 0.28);
  --danger-ring: rgba(207, 59, 48, 0.2);
  --grid-faint: rgba(13, 17, 23, 0.04);
  --grid-major: rgba(13, 17, 23, 0.075);
  --header-bg: rgba(247, 245, 239, 0.9);
  --accent-wash: rgba(176, 131, 0, 0.1);
  --accent-line: rgba(122, 89, 0, 0.5);
  color-scheme: light;
}
:root[data-theme="light"] .drawing { opacity: 0.22; }
:root[data-theme="light"] .form, :root[data-theme="light"] .band { box-shadow: 0 1px 2px rgba(13, 17, 23, 0.04), 0 8px 24px rgba(13, 17, 23, 0.05); }
/* Illustrations: keep white bodies with dark outlines; darken stars and outlines meant for a dark sky. */
:root[data-theme="light"] .hero-art > g[fill="#f0f6fc"] { fill: #8b949e; }
:root[data-theme="light"] .hero-art [stroke="#f0f6fc"] { stroke: #0d1117; }
:root[data-theme="light"] .hero-art [fill="#1c2128"] { fill: #ffffff; }
:root[data-theme="light"] .hero-art path[stroke="#f0f6fc"][opacity] { opacity: 0.2; }
:root[data-theme="light"] .service-art circle[fill="#f0f6fc"]:not([stroke]) { fill: #8b949e; }
:root[data-theme="light"] .service-art [stroke="#30363d"], :root[data-theme="light"] .service-art path[stroke="#30363d"] { stroke: #9aa1aa; }
:root[data-theme="light"] .service-art path[stroke="#f0f6fc"] { stroke: #0d1117; }
:root[data-theme="light"] .hero-art path[stroke="#fdd756"] { stroke: #b08300; }
/* Logo swaps */
.logo-light { display: none !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
:root[data-theme="light"] .logo-light { display: block !important; }

/* ── Theme switch ── */
.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: transparent; color: var(--snow); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.theme-btn:hover { border-color: var(--field-hover); color: var(--accent-ink); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: block; } .theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
.nav .theme-btn { margin-left: 0.5rem; }
.mnav .theme-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0 0.25rem; color: var(--snow); font-weight: 600; border-top: 0; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: 600 1rem var(--font); cursor: pointer; text-align: left; min-height: 44px; width: 100%; }
.mnav .theme-row .theme-state { color: var(--ash); font-weight: 500; font-size: 0.9rem; }
@media (max-width: 960px) { .nav .theme-btn { display: none; } }
@media (min-width: 961px) { .mnav .theme-row { display: none; } }
/* Large display accents only need 3:1, so they can use a brighter gold (3.2:1 on the tinted sections). */
:root[data-theme="light"] .h1 .accent, :root[data-theme="light"] .h2 .accent { color: #a87c00; }

/* ── Software-factory illustration (between FAQ and Contact) ── */
.factory { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }
.factory-art { margin: 0; }
.factory-art svg { width: 100%; height: auto; aspect-ratio: 1200 / 540; overflow: visible; }

/* Founder pull quote, bio page */
.pull-quote { margin: 0 0 clamp(3.5rem, 7vw, 5.5rem); padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 3px solid var(--accent-ink); max-width: 52rem; }
.pull-quote blockquote { margin: 0; }
.pull-quote p { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--snow); margin: 0; text-wrap: pretty; }
.pull-quote p::before { content: "\201C"; color: var(--accent-ink); }
.pull-quote p::after { content: "\201D"; color: var(--accent-ink); }
.pull-quote figcaption { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.95rem; }
.pq-name { color: var(--snow); font-weight: 600; }
.pq-role { color: var(--ash); }
.bio aside .pull-quote { margin: 1.5rem 0; padding-left: 1rem; border-left-width: 2px; }
.bio aside .pull-quote p { font-size: 1.05rem; line-height: 1.45; font-weight: 600; letter-spacing: -0.005em; }
@media (max-width: 700px) {
  .bio aside img { grid-row: 1; }
  .bio aside .link { grid-row: 1; margin-top: 0; }
  .bio aside .pull-quote { grid-column: 1 / -1; grid-row: 2; margin: 1.25rem 0 0; }
}
/* Footer copyright */
.foot-copy { flex-basis: 100%; grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ash); }
.foot-copy p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.foot-legal a { white-space: nowrap; }
.site-footer .foot-legal a { color: var(--ash); }
.site-footer .foot-legal a:hover { color: var(--snow); }
.site-footer .foot-li { display: inline-flex; align-items: center; }
.site-footer .foot-li:hover { color: var(--accent-ink); }
.site-footer .foot-loc a { display: block; padding: 0 0 0.35rem; min-height: 0; }
/* Footer tagline */
.foot-tag { margin: 0.9rem 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--ash); }
.foot-tag span { display: block; }
