/* skAI Partners — site styles. Static, no build step. */

:root {
  --charcoal: #242424;
  --cream: #f8f3ed;
  --oxblood: #671e28;        /* surfaces only: ring, closer field, buttons, markers */
  --oxblood-text: #a84450;   /* all oxblood type on dark surfaces */
  --ground: #2a2b2e;         /* the page */

  /* Tints of the two neutrals only. No other hues. */
  --ink: var(--cream);
  --ink-2: rgba(248, 243, 237, 0.7);
  --ink-3: rgba(248, 243, 237, 0.42);
  --line: rgba(248, 243, 237, 0.14);
  --line-2: rgba(248, 243, 237, 0.32);
  --focus: var(--cream);

  --gutter: 32px;
  --section-gap: clamp(64px, 7vw, 104px);
  --max: 1160px;

  /* Scale is spent, not sprayed.
     display  : hero + closer (Home), page opening (Services)
     display-2: the one other display moment per page
     editorial: section headings
     thing    : items that should read as objects */
  --t-display: clamp(40px, 7vw, 88px);
  --t-display-2: clamp(32px, 5vw, 60px);
  --t-title: clamp(2.5rem, 8vw, 4.25rem);
  --t-editorial: clamp(1.7rem, 3.1vw, 2.6rem);
  --t-thing: clamp(1.4rem, 2.35vw, 2rem);
  --t-lead: clamp(1.2rem, 1.75vw, 1.5rem);
  --t-read: clamp(1.0625rem, 1.45vw, 1.3125rem);
  --t-body: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --t-small: 0.875rem;
  --t-kicker: 0.75rem;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Public Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Grain. A fixed, non-interactive noise layer over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
strong, b { font-weight: 600; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  background: var(--cream);
  color: var(--charcoal);
  padding: 0.6rem 0.9rem;
  font-size: var(--t-small);
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 43, 46, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2.25rem);
  font-size: 0.8125rem;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.5rem;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
}

/* ---------- Button + CTA ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  background: var(--oxblood);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--oxblood);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover { background: var(--cream); color: var(--oxblood); border-color: var(--cream); }
.nav .btn { min-height: 2.25rem; padding: 0.45rem 0.85rem; font-size: 0.8125rem; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}
.cta .sep { color: var(--ink-3); }
.cta .mail {
  color: var(--ink-2);
  text-decoration-color: var(--ink-3);
  overflow-wrap: anywhere;
}
.cta .mail:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Type ---------- */

.display {
  font-weight: 600;
  font-size: var(--t-display);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display-2 {
  font-weight: 600;
  font-size: var(--t-display-2);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.title {
  font-weight: 600;
  font-size: var(--t-title);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.h-ed {
  font-weight: 600;
  font-size: var(--t-editorial);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.kicker {
  display: block;
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.34;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.read { font-size: var(--t-read); line-height: 1.55; }
.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: 40em; }
.muted { color: var(--ink-2); }
.strong { font-weight: 600; }
.nw { white-space: nowrap; }

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(1.75rem, 3.5vw, 3rem);
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  }
  .s-all { grid-column: 1 / -1; }
  .s-1-4 { grid-column: 1 / 5; }
  .s-1-5 { grid-column: 1 / 6; }
  .s-1-6 { grid-column: 1 / 7; }
  .s-1-7 { grid-column: 1 / 8; }
  .s-5-13 { grid-column: 5 / 13; }
  .s-6-13 { grid-column: 6 / 13; }
  .s-7-13 { grid-column: 7 / 13; }
  .s-8-13 { grid-column: 8 / 13; }
}

.rule-top { border-top: 1px solid var(--line); }

/* The page's single orchestrated reveal, on load only. */
@media (prefers-reduced-motion: no-preference) {
  .reveal > * { animation: rise 1100ms cubic-bezier(0.2, 0.7, 0.15, 1) both; }
  .reveal > :nth-child(2) { animation-delay: 160ms; }
  .reveal > :nth-child(3) { animation-delay: 320ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.6em); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Cream: rare, small interventions only ---------- */

.panel {
  --ink: var(--charcoal);
  --ink-2: rgba(36, 36, 36, 0.72);
  --ink-3: rgba(36, 36, 36, 0.45);
  --line: rgba(36, 36, 36, 0.16);
  --line-2: rgba(36, 36, 36, 0.4);
  --focus: var(--charcoal);
  background: var(--cream);
  color: var(--ink);
  padding: clamp(2.25rem, 6vw, 4.75rem) clamp(1.25rem, 5vw, 4.75rem);
}
@media (max-width: 759px) {
  .panel { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}
.ox-rule { display: block; height: 3px; background: var(--oxblood); border: 0; margin: 0; }

/* ================= HOME ================= */

/* Open: hero */
.z-hero { padding-block: clamp(2.5rem, 8vw, 4rem) calc(var(--section-gap) / 2); }
@media (min-width: 900px) {
  .z-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) calc(var(--section-gap) / 2); }
}
.z-hero .display { max-width: 12ch; }
.stop { color: var(--oxblood-text); }
.hero-foot {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
}
.hero-foot .tagline {
  font-size: var(--t-lead);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .hero-foot { grid-template-columns: 1fr auto; align-items: center; }
}

/* The problem: the aphorism leads, the passage lands under it */
.z-problem { padding-block: calc(var(--section-gap) / 2); }
.z-problem .display-2 { max-width: 17ch; }

/* Bridge line: spoken register, set apart. Oxblood reads on cream, not on charcoal. */
.z-bridge { padding-block: calc(var(--section-gap) / 2); }

.bridge p {
  color: var(--oxblood-text);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.3vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 40ch;
  text-wrap: balance;
}

/* The diagram, as the answer to the problem */
.z-diagram { padding-block: calc(var(--section-gap) / 2); }
.z-diagram figcaption { display: grid; gap: 1.1rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.z-diagram figcaption .h-ed { max-width: 20ch; }
@media (min-width: 900px) {
  .z-diagram figcaption {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  }
  .z-diagram figcaption .h-ed { grid-column: 1 / 7; }
  .z-diagram figcaption p { grid-column: 7 / 13; }
}

/* Approach: the 01 to 04 spine */
.z-approach { padding-block: calc(var(--section-gap) / 2); }
.approach-close { margin-top: clamp(3.5rem, 8vw, 5.5rem); display: grid; gap: 1.1rem; max-width: 34ch; }

/* Explain: what skAI does + owner map */
.owner-map { margin-block: 0; }
.owner-map svg { width: 100%; height: auto; }
.owner-map .m-mobile { max-width: 440px; margin-inline: auto; }
.owner-map .m-desktop { display: none; }
@media (min-width: 960px) {
  .owner-map .m-mobile { display: none; }
  .owner-map .m-desktop { display: block; }
}
.om-orbit { fill: none; stroke: var(--cream); stroke-opacity: 0.07; stroke-width: 1; }
.om-web { fill: none; stroke: var(--cream); stroke-opacity: 0.13; stroke-width: 1; }
.om-spoke { stroke: var(--cream); stroke-opacity: 0.34; stroke-width: 1; }
.om-dot { fill: var(--cream); }
.om-label {
  fill: var(--cream);
  fill-opacity: 0.82;
  font-family: "Archivo", "Public Sans", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
}
.om-layer { fill: none; stroke: var(--oxblood); }
.om-layer-label {
  fill: var(--cream);
  font-family: "Archivo", "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.om-owner {
  fill: var(--cream);
  font-family: "Archivo", "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Intrigue: Reflex door */
.z-door {
  position: relative;
  overflow: clip;
  padding-block: calc(var(--section-gap) / 2);
}
.z-door .wrap { position: relative; z-index: 1; }
.door-motif {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: clamp(340px, 40vw, 520px);
  height: auto;
  top: 50%;
  right: max(-150px, -12vw);
  transform: translateY(-50%);
}
@media (max-width: 899px) {
  .door-motif { top: 1.5rem; right: -130px; transform: none; }
}
.dm-orbit { fill: none; stroke: var(--oxblood); stroke-width: 1.25; }
.dm-orbit-2 { fill: none; stroke: var(--oxblood); stroke-width: 1; stroke-dasharray: 2 7; }
.dm-radial { stroke: var(--oxblood); stroke-width: 1; }
.dm-return { fill: none; stroke: var(--oxblood); stroke-width: 4; stroke-linecap: round; }
.dm-chev { fill: none; stroke: var(--oxblood); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dm-node { fill: var(--ground); stroke: var(--oxblood); stroke-width: 1.5; }
.dm-node.is-outcome { fill: var(--oxblood); }
.door-name { font-weight: 600; font-size: var(--t-editorial); line-height: 1; letter-spacing: -0.03em; }
.door-sub { margin-top: 0.75rem; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.3; max-width: 22ch; }
.more {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 0.2rem;
}
.more:hover { border-bottom-color: var(--ink); }

/* Open again: closer */
.z-closer { padding-block: calc(var(--section-gap) / 2); }
.closer-line {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
  max-width: 46em;
}
.terminal {
  --focus: var(--cream);
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--oxblood);
  color: var(--cream);
  padding: clamp(32px, 4.5vw, 64px);
}
.terminal .answer {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 34ch;
}
.terminal .cta { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.terminal .sep { color: rgba(248, 243, 237, 0.55); }
.terminal .mail { color: var(--cream); text-decoration-color: rgba(248, 243, 237, 0.55); }
.terminal .mail:hover { text-decoration-color: var(--cream); }
.btn-inverse { background: var(--cream); color: var(--oxblood); border-color: var(--cream); }
.btn-inverse:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

.z-closer .display { max-width: 18ch; }
.z-closer .items li {
  font-size: var(--t-lead);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}
.z-closer .answer { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.012em; max-width: 28ch; }

/* ================= SERVICES ================= */

.stages { display: grid; gap: 56px; }
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 0.75rem;
}
.stage::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 2.4rem;
  bottom: -56px;
  border-left: 1px solid var(--line-2);
}
.stage:last-child::before { border-left-style: dashed; bottom: -28px; }
.node {
  position: absolute;
  z-index: 1;
  left: calc(0.6rem - 5px);
  top: 2.05rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ground);
  border: 1.5px solid var(--line-2);
}
.node-ox { left: calc(0.6rem - 8px); top: 1.8rem; width: 17px; height: 17px; background: var(--oxblood); border-color: var(--oxblood); }
.stage-num {
  color: var(--oxblood-text);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  padding-top: 0.3rem;
}
.stage-title {
  font-weight: 600;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.stage-body { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); }
.stage .prose p { max-width: 40em; }
.stage .prose > * + * { margin-top: 0.9em; }
.approach-close {
  margin-top: 56px;
  margin-left: 3.75rem;
  display: grid;
  gap: 1.1rem;
  max-width: 40em;
}
.rx-head { padding-block: clamp(3.5rem, 11vw, 7rem) clamp(2.5rem, 6vw, 4rem); }
.rx-title {
  font-weight: 600;
  font-size: clamp(1.65rem, 3.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.rx-sub {
  margin-top: 0.9rem;
  color: var(--oxblood-text);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.rx-intro { margin-top: clamp(1.5rem, 3.5vw, 2.25rem); }

.rx-zone { padding-block: clamp(4rem, 10vw, 7rem); }
.rx-zone .kicker { margin-bottom: 0.9rem; color: var(--oxblood-text); }
.rx-h {
  font-weight: 600;
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 28ch;
  margin-bottom: 1.1rem;
}
.rx-body { display: grid; gap: 1rem; }
.rx-body p, .rx-item p, .rx-after p { font-size: var(--t-read); line-height: 1.6; max-width: 46em; }
.rx-lead-term { font-weight: 600; }
.rx-after { margin-top: clamp(1.5rem, 3.5vw, 2.25rem); }

/* The three multi-column blocks */
.rx-cols { display: grid; gap: 1.6rem; margin-top: clamp(1.5rem, 3.5vw, 2.25rem); }
.rx-item p + p { margin-top: 0.45rem; }
@media (min-width: 900px) {
  .rx-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
  .rx-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem); }
}
/* failures: an oxblood bar across the top of each column */
.rx-fails .rx-item { border-top: 2px solid var(--oxblood); padding-top: 1rem; }
/* layers: the term in the light red, the question in cream */
.rx-layers .rx-lead-term { color: var(--oxblood-text); }
/* practice: the landing page's left-bar treatment */
.rx-cases .rx-item { border-left: 3px solid var(--oxblood); padding-left: 1rem; }
.rx-cols .rx-item p { max-width: 48ch; }

.rx-statement {
  font-weight: 600;
  font-size: clamp(1.75rem, 4.6vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 24ch;
  margin-block: clamp(4.5rem, 12vw, 9rem);
  text-wrap: pretty;
}

.rx-figure { margin-block: clamp(3.5rem, 8vw, 5.5rem); margin-inline: auto; max-width: 760px; }
.rx-figure svg { width: 100%; height: auto; }
.rx-figure figcaption { margin-top: 1.25rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.dgm-word {
  fill: var(--cream);
  font-family: "Archivo", "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dgm-line { fill: none; stroke: var(--oxblood); stroke-width: 2; }
.dgm-head { fill: var(--oxblood); stroke: none; }
.dgm-v { display: block; max-width: 320px; }
.dgm-h { display: none; }
@media (min-width: 700px) {
  .dgm-v { display: none; }
  .dgm-h { display: block; }
}

.rx-cta { margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.footer p { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.footer .dot { color: var(--ink-3); }
.footer a { text-decoration-color: var(--ink-3); }
.footer a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Small screens ---------- */

@media (max-width: 559px) {
  .cta .sep { display: none; }
  .cta { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .footer p { flex-direction: column; gap: 0.5rem; }
  .footer .dot { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 24px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 0.9375rem; }
  .nav-links { gap: 0.85rem; font-size: 0.78rem; }
  .nav .btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
}
@media (max-width: 350px) {
  .wordmark { font-size: 0.875rem; }
  .nav-links { gap: 0.6rem; font-size: 0.75rem; }
  .nav .btn { padding: 0.4rem 0.55rem; font-size: 0.75rem; }
}

@media print {
  body::after, .nav { display: none; }
  body { background: #fff; color: #000; }
}

@media (max-width: 899px) {
  .nav .wrap { min-height: 3.25rem; }
  .nav { transition: transform 260ms ease; }
  .nav.is-hidden { transform: translateY(-100%); }
  .nav:focus-within { transform: none; }
  html { scroll-padding-top: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Contact page (/contact/) ---------- */

.contact-page { background: var(--ground); }

.contact { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 9vw, 6rem); }
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 5rem); align-items: start; }
}
.contact-title {
  color: var(--oxblood-text);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.contact-intro .lead { margin-top: 1.5rem; max-width: 42ch; color: var(--ink-2); }
.contact-form,
.f-done {
  background: rgba(36, 36, 36, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(248, 243, 237, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: clamp(28px, 3.5vw, 48px);
}
.contact-form { display: grid; gap: 32px; }

.f-field { display: grid; gap: 6px; }
.f-field label {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(248, 243, 237, 0.7);
}
.f-field input, .f-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(248, 243, 237, 0.25);
  border-radius: 0;
  padding: 12px 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-bottom-color 150ms ease, border-bottom-width 150ms ease;
}
.f-field textarea { min-height: 140px; resize: vertical; }
.f-field input::placeholder, .f-field textarea::placeholder { color: rgba(248, 243, 237, 0.4); }
.f-field input:hover, .f-field textarea:hover { border-bottom-color: rgba(248, 243, 237, 0.45); }
.f-field input:focus, .f-field textarea:focus {
  outline: none;
  box-shadow: none;
  border-bottom: 2px solid var(--oxblood-text);
  padding-bottom: 11px;
}
.hp { position: absolute; left: -9999px; }

.f-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  background: var(--cream);
  color: var(--oxblood);
  border: 1px solid var(--cream);
  border-radius: 2px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.f-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.f-submit:active { transform: translateY(0); box-shadow: none; }
.f-submit[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.f-done { font-size: var(--t-read); line-height: 1.5; color: var(--ink); }
.f-done:focus { outline: none; }
[hidden] { display: none !important; }

/* a large, diffuse glow on the oxblood field behind the card */
.contact-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 78% 6%, rgba(168, 68, 80, 0.1), rgba(168, 68, 80, 0) 70%);
}
.contact-page > header,
.contact-page > main,
.contact-page > footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .f-submit, .f-field input, .f-field textarea { transition: none; }
}

/* Landing: one body size, no italics in the diagram caption */
.z-diagram figcaption p,
.z-door .prose p,
.z-closer > .wrap > .lead,
.approach-close p,
.stage .prose p { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); }
.z-diagram figcaption,
.z-diagram figcaption * { font-style: normal; }

/* Wide screens: the aphorism and the bridge line step in from the left edge */
@media (min-width: 1000px) {
  .z-problem .display-2,
  .z-bridge .bridge { margin-left: 16%; }
}
