/* ============================================================
   Disco Dev — shared styles
   Space Mono (display) + Inter (body)
   ============================================================ */

:root {
  --bg:        #FBFAF8;   /* warm off-white */
  --bg-2:      #F4F1EA;   /* faint panel */
  --sand:      #F0EBE0;   /* sand section — lighter, blends with blue */
  --sand-deep: #E2D9C9;   /* sand line / hover */
  --ink:       #191815;   /* near black */
  --muted:     #6E6A61;   /* body gray */
  --faint:     #9C978C;   /* captions */
  --blue:      #C9DFF0;   /* baby blue accent */
  --blue-deep: #A6C8E4;   /* blue hover */
  --blue-ink:  #4E7C9E;   /* blue text accent */
  --line:      #E5E0D7;   /* hairlines */

  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---- type helpers ---- */
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-ink);
  font-weight: 400;
}
.lede {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
}

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-ink), var(--sand-deep));
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 60;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue-deep);
  flex: none;
  transition: transform .5s var(--ease), background .4s var(--ease);
}
.brand:hover .dot { transform: scale(1.35); background: var(--blue-ink); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}
.nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 60px var(--pad) 0;
}
.hero-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.9rem, 12.5vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0;
}
.hero-title .b { color: var(--blue-ink); }
.hero-sub {
  margin: clamp(22px, 3vw, 34px) auto 0;
  max-width: 540px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  line-height: 1.6;
}
.hero-cta {
  margin-top: clamp(28px, 3vw, 38px);
  display: inline-flex;
  gap: 14px;
  align-items: center;
}
.js .hero-title,
.js .hero-sub,
.js .hero-cta {
  will-change: transform, opacity;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: clamp(22px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--faint);
}
.scroll-cue span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.scroll-cue .rail {
  width: 1px;
  height: 46px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue .rail::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--blue-ink);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(250%); }
  100% { transform: translateY(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .rail::after { animation: none; transform: translateY(60%); }
}
/* avoid the cue colliding with centered hero content on short viewports */
@media (max-height: 660px) {
  .scroll-cue { display: none; }
  .hero { min-height: calc(100svh - var(--header-h)); padding-bottom: 40px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: transparent; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--sand { background: var(--sand); }
.section--tight { padding: clamp(56px, 8vw, 110px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 5vw, 80px);
  align-items: start;
}
.section-head .eyebrow { padding-top: 8px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

.h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
}
.h2 + .body-text { margin-top: 26px; }
.body-text {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
}
.body-text strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Product cards (home)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  min-height: 420px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-deep);
  box-shadow: 0 24px 50px -30px rgba(25, 24, 21, .35);
}

.card-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.card-visual {
  margin: 22px 0 auto;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 24px 0 8px;
}
.card-desc { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.card-go {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.card-go .arr { transition: transform .4s var(--ease); }
.card:hover .card-go .arr { transform: translateX(5px); }

/* ============================================================
   Card visuals — animated scenes
   ============================================================ */

/* Shared "halo" scene — Websites (orb) & In Development (terminal) */
.halo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--sand-deep) 60%, var(--bg)) 0%, var(--bg-2) 72%);
}
.halo-ring {
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 50%;
}
.halo-ring--a { inset: 9%; }
.halo-ring--b { inset: 21%; }

.halo-core {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--sand-deep) 55%, transparent 78%);
  box-shadow: 0 0 56px 16px color-mix(in srgb, var(--sand-deep) 65%, transparent);
  animation: halo-pulse 5s var(--ease) infinite;
}
@keyframes halo-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.halo-orbit {
  position: absolute;
  inset: var(--inset, 16%);
  animation: orbit-spin var(--dur, 24s) linear infinite;
  animation-direction: var(--rdir, normal);
}
.halo-chip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--sand-deep);
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 6px 16px -10px rgba(25, 24, 21, .4);
  animation: orbit-spin-rev var(--dur, 24s) linear infinite;
  animation-direction: var(--rdir, normal);
}
@keyframes orbit-spin     { to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* In Development — little glowing terminal at the halo's center */
.halo-terminal {
  position: absolute;
  inset: 25% 16%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--sand-deep);
  box-shadow: 0 0 46px 12px color-mix(in srgb, var(--sand-deep) 60%, transparent);
  animation: halo-pulse 5s var(--ease) infinite;
}
.halo-terminal__dots { display: flex; gap: 6px; margin-bottom: 4px; }
.halo-terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand-deep);
}
.halo-terminal__line {
  display: block;
  width: var(--w, 60%);
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--sand-deep) 70%, var(--bg-2));
}
.halo-terminal__cursor {
  width: 2px;
  height: 12px;
  background: var(--ink);
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* AI Agents — falling code columns over a blue field */
.cv-agents .codez {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  gap: clamp(6px, 1.4vw, 14px);
  padding: 0 clamp(8px, 1.6vw, 16px);
  background: linear-gradient(165deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.codez-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--blue-ink) 45%, var(--ink) 55%);
  white-space: nowrap;
  animation: code-fall linear infinite;
  animation-duration: var(--dur, 26s);
}
@keyframes code-fall {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0%); }
}
.codez-glow {
  position: absolute;
  left: 0; right: 0;
  top: -40%;
  height: 40%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 50%, transparent) 50%, transparent);
  mix-blend-mode: overlay;
  animation: scan-move 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan-move {
  0%, 100% { top: -40%; }
  50%      { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .halo-core, .halo-orbit, .halo-chip, .halo-terminal, .halo-terminal__cursor,
  .codez-col, .codez-glow {
    animation: none;
  }
}

/* ============================================================
   Striped placeholder
   ============================================================ */
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 9px,
    color-mix(in srgb, var(--sand-deep) 55%, transparent) 9px,
    color-mix(in srgb, var(--sand-deep) 55%, transparent) 10px
  );
}
.ph span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--bg);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.ph--blue { background-color: color-mix(in srgb, var(--blue) 40%, var(--bg)); }

/* ============================================================
   Sub-page header band
   ============================================================ */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: clamp(28px, 5vw, 52px);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.back-link:hover { color: var(--ink); gap: 12px; }
.page-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 0;
}
.page-intro {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 560px;
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   Tier / pricing cards
   ============================================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 44px);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.tier:hover { border-color: var(--blue-deep); transform: translateY(-4px); }
.tier--feature { background: var(--sand); border-color: transparent; }
.tier-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.tier-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.tier-desc { color: var(--muted); margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; }
.tier hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.tier--feature hr { border-top-color: var(--sand-deep); }

.price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}
.price-row:last-of-type { margin-bottom: 0; }
.price-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.price-main {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.03em;
}
.price-main .unit { font-size: 0.5em; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-or {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.price-or::before, .price-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.tier--feature .price-or::before, .tier--feature .price-or::after { background: var(--sand-deep); }

/* feature list */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.feat-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.feat-list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-deep);
  margin-top: 8px;
  flex: none;
}

/* template trio */
.templates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(32px, 4vw, 48px);
}
@media (max-width: 760px) { .templates { grid-template-columns: 1fr; } }
.template {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.template:hover { border-color: var(--blue-deep); transform: translateY(-4px); }
.template .visual { aspect-ratio: 3 / 4; position: relative; background: var(--bg-2); }

/* Live, scrollable template previews */
.template-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.template-frame iframe {
  display: block;
  width: 1280px;
  height: 1707px;
  border: 0;
  transform: scale(var(--scale, 0.28));
  transform-origin: top left;
  background: var(--bg);
}
.template-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.template:hover .template-hint { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .template-hint { transition: none; }
}

.template .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
}
.template .meta b { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }
.template .meta span { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }

/* doc links (contracts / invoices) */
.doclinks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 18px);
  margin-top: clamp(28px, 3.5vw, 40px);
}
@media (max-width: 620px) { .doclinks { grid-template-columns: 1fr; } }
.doclink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.doclink:hover { border-color: var(--ink); background: var(--bg-2); }
.doclink b { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.doclink small { display: block; color: var(--faint); font-family: var(--sans); font-weight: 400; letter-spacing: 0; font-size: 13px; margin-top: 3px; }
.doclink .arr { color: var(--muted); transition: transform .35s var(--ease); }
.doclink:hover .arr { transform: translateX(4px); color: var(--ink); }

/* simple two-col rows for ai-agents capabilities */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(28px, 5vw, 80px);
  margin-top: clamp(34px, 4vw, 54px);
}
@media (max-width: 700px) { .specs { grid-template-columns: 1fr; } }
.spec h4 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  display: flex; align-items: baseline; gap: 12px;
}
.spec h4 .n { font-size: 12px; color: var(--blue-ink); font-weight: 400; }
.spec p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px, 9vw, 130px) 0 40px;
}
.footer-cta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0 0 clamp(44px, 6vw, 72px);
}
.footer-cta .b { color: var(--blue-deep); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer-col a, .footer-col p {
  display: block;
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  font-size: 16px;
  margin: 0 0 8px;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--blue-deep); }
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.footer-brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue-deep); }
.footer-note {
  margin-top: clamp(40px, 6vw, 68px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--bg) 45%, transparent);
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 52px);
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info p,
.contact-info a {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.6;
  transition: color .3s var(--ease);
}
.contact-info a:hover { color: var(--ink); }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 60%, transparent);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }

button.btn { font-weight: 400; font-size: 13px; font-family: var(--mono); }
button.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success { display: none; }
.form-success.is-visible { display: block; padding: clamp(16px, 2.5vw, 32px) 0; }

/* keep success state in the same grid cell as the form */
#form-success { grid-column: 2; grid-row: 1; }
@media (max-width: 760px) { #form-success { grid-column: 1; grid-row: auto; } }

/* ============================================================
   Reveal animation (guarded)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
