/* ============================================================
   Web2Reality Portfolio 2.0 — styles.css
   Dark studio surface + warm paper resets + brand-green punctuation.
   Animation is progressive enhancement: base styles are the complete
   final states; motion classes exist only under .js + motion-ok.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0e120f;            /* near-black, green undertone */
  --bg-2: #131a14;          /* raised dark surface */
  --paper: #f4f1e9;         /* warm off-white */
  --panel: #ffffff;         /* interface panels */

  /* Ink */
  --text-dark: #f2f1ea;     /* text on dark surfaces */
  --muted-dark: #a9b3a9;
  --ink: #171b17;           /* text on paper */
  --muted-ink: #5a6055;

  /* Lines */
  --line-dark: #26302a;
  --line-paper: #ddd8cb;
  --line-panel: #e4e1d7;

  /* Brand greens */
  --pine: #1c4632;
  --pine-deep: #16382a;
  --signal: #4ec97e;        /* the one signal accent (dark surfaces) */

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, Menlo, monospace;

  --focus: var(--signal);
  --canvas: 1180px;
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.12; margin: 0; }
p, ul, ol { margin: 0; }

a { color: inherit; }

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.canvas {
  max-width: var(--canvas);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: top 120ms ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

/* Brand mark: inline-SVG W→block monogram (the "W" of the web resolving
   into a solid block of reality) + wordmark with the "2" in signal green. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: 1.18rem;
}
.brand-mark { display: block; flex: none; }
.brand-2 { color: var(--signal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--muted-dark);
  padding: 10px 2px;
}
.site-nav a:hover { color: var(--text-dark); }

.nav-cta {
  display: inline-block;
  background: var(--signal);
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 11px 18px !important;
  border-radius: 3px;
  min-height: 44px;
}
.nav-cta:hover { background: #63d68e; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: var(--text-dark);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}
.menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-toggle-bars span { width: 16px; height: 2px; background: var(--text-dark); }

/* Mobile navigation */
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px clamp(20px, 4vw, 40px) 20px;
  }
  .js .site-menu.open { display: block; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
  /* No-JS mobile: nav renders inline, stacked, always visible */
  html:not(.js) .site-menu { width: 100%; }
  html:not(.js) .header-row { flex-wrap: wrap; }
}

/* ---------- Shared section type ---------- */

.section-h {
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lede {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted-dark);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.btn-arrow { display: inline-block; }
.demo-arrow { display: inline-block; font-size: 1.15em; }

/* ---------- 1 · Hero ---------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 20px;
  max-width: 480px;
  font-size: 1.125rem;
  color: var(--muted-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--signal);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 3px;
}
.btn-primary:hover { background: #63d68e; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.link-quiet {
  font-weight: 600;
  color: var(--muted-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding: 8px 0;
}
.link-quiet:hover { color: var(--text-dark); }

.hero-story {
  margin-top: 28px;
  max-width: 460px;
  font-size: 0.92rem;
  color: var(--muted-dark);
  border-left: 2px solid var(--pine);
  padding-left: 14px;
}

.hero-caption {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #bcc5bc; /* one step brighter than --muted-dark for readability; still secondary */
  margin-top: 4px;
}

/* --- Hero stage: base styles ARE the finished composition --- */

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
/* Let the system visual break the canvas grid slightly on wide screens so
   the demonstration reads as the dominant hero element. Stays inside the
   canvas padding — never causes horizontal overflow. */
@media (min-width: 1100px) {
  .hero-stage { margin-right: -24px; }
}

.demo-browser {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.db-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #ecebe3;
  border-bottom: 1px solid var(--line-panel);
}
.db-dots { display: inline-flex; gap: 5px; }
.db-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c9c6ba; }
.db-url {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #6a6f64;
  background: #f7f6f0;
  border: 1px solid var(--line-panel);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  border: 1px solid var(--pine);
  border-radius: 2px;
  padding: 2px 7px;
}

.db-body {
  position: relative;
  padding: 20px 24px 30px;
  background: #fbfaf5;
  overflow: hidden;
  min-height: 252px;
}

.db-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.db-logo { font-weight: 800; font-size: 0.85rem; color: var(--pine); letter-spacing: -0.01em; }
.db-links { display: inline-flex; gap: 8px; }
.db-links i { width: 34px; height: 6px; border-radius: 3px; background: #dcd9cc; }

.db-hero { display: block; }
.db-h {
  display: block;
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  color: #1d211c;
  max-width: 270px;
  line-height: 1.15;
}
.db-sub {
  display: block;
  width: 180px; height: 7px;
  border-radius: 3px;
  background: #e2dfd3;
  margin: 12px 0 18px;
}

.db-cta { position: relative; display: inline-block; }
.db-btn {
  display: inline-block;
  background: var(--pine);
  color: #f4f1e9;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 15px;
  border-radius: 3px;
}

.db-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--signal);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.db-tap {
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(78, 201, 126, 0.4);
  opacity: 0;
  pointer-events: none;
}

.demo-cursor {
  position: absolute;
  left: 50%; top: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(150px, 118px);
}

/* Quote-request card (only shown mid-animation) */
.demo-form {
  display: none;
  position: absolute;
  right: 18px;
  top: 44px;
  width: 236px;
  flex-direction: column;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line-panel);
  border-radius: 5px;
  box-shadow: 0 10px 26px rgba(20, 25, 20, 0.18);
  padding: 12px 14px 14px;
}
.df-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6a6f64;
}
.df-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line-panel);
  border-radius: 3px;
  padding: 6px 9px;
  background: #fbfaf5;
}
.df-label { font-size: 0.6rem; color: #8a8f82; }
.df-val { font-size: 0.76rem; font-weight: 600; color: #1d211c; }
.df-submit {
  align-self: flex-start;
  background: var(--pine);
  color: #f4f1e9;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 7px 12px;
  border-radius: 3px;
}

.demo-sent {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-block;
  background: #eaf5ee;
  border: 1px solid #bfe0cc;
  color: var(--pine);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Flow lines + lead card + nodes (finished state visible by default) */

.flow-line {
  width: 2px;
  background: var(--line-dark);
  display: block;
}
.flow-line-1 { height: 26px; }
.flow-line-2 { height: 26px; }

.lead-card {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "dot main chip"
    "dot sub  chip";
  column-gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--signal);
  border-radius: 5px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.lc-dot { grid-area: dot; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.lc-main { grid-area: main; font-weight: 700; font-size: 0.86rem; color: #1d211c; }
.lc-sub { grid-area: sub; font-size: 0.76rem; color: #6a6f64; }
.lc-chip {
  grid-area: chip;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pine);
  border: 1px solid #bfe0cc;
  background: #eaf5ee;
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}

.node-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sys-node {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dark);
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 10px 12px;
}
.node-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }

/* --- Hero animation states (JS + motion only) --- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero-stage.anim .demo-sent,
  .js .hero-stage.anim .lead-card,
  .js .hero-stage.anim .sys-node { opacity: 0; }
  .js .hero-stage.anim .lead-card { transform: translateY(10px); }
  .js .hero-stage.anim .sys-node { transform: translateY(8px); }
  .js .hero-stage.anim .flow-line { transform: scaleY(0); transform-origin: top; }

  .js .hero-stage.anim .demo-cursor { opacity: 1; transition: transform 1000ms cubic-bezier(0.3, 0.7, 0.3, 1), opacity 250ms ease; }
  .js .hero-stage.anim.s1 .demo-cursor { transform: translate(-6px, -4px); }
  .js .hero-stage.anim.s2 .db-btn { transform: scale(0.965); filter: brightness(0.92); }
  .js .hero-stage.anim .db-btn { transition: transform 140ms ease, filter 140ms ease; display: inline-block; }
  .js .hero-stage.anim.s3 .db-btn { transform: none; filter: none; }
  .js .touch-input .hero-stage.anim .demo-cursor { display: none; }
  .js .touch-input .hero-stage.anim.s2 .db-tap { animation: tap-ring 480ms ease-out; }

  .js .hero-stage.anim .demo-form { display: flex; opacity: 0; transform: translateY(8px); transition: opacity 420ms ease, transform 420ms ease; }
  .js .hero-stage.anim.s3 .demo-form { opacity: 1; transform: none; }
  .js .hero-stage.anim .df-val { opacity: 0; transition: opacity 320ms ease; }
  .js .hero-stage.anim.s4 .df-field:nth-child(2) .df-val { opacity: 1; }
  .js .hero-stage.anim.s4 .df-field:nth-child(3) .df-val { opacity: 1; transition-delay: 500ms; }
  .js .hero-stage.anim .df-submit { transition: filter 160ms ease, transform 160ms ease; }
  .js .hero-stage.anim.s5 .df-submit { filter: brightness(0.88); transform: scale(0.97); }

  .js .hero-stage.anim.s5 .db-pulse { animation: pulse-ring 720ms ease-out; }
  .js .hero-stage.anim.s6 .demo-form { opacity: 0; transform: translateY(-4px); }
  .js .hero-stage.anim .demo-sent { transform: scale(0.92); transition: opacity 300ms ease, transform 300ms cubic-bezier(0.2, 0.9, 0.3, 1.2); }
  .js .hero-stage.anim.s6 .demo-sent { opacity: 1; transform: none; }

  .js .hero-stage.anim .flow-line { transition: transform 420ms ease; }
  .js .hero-stage.anim .lead-card { transition: opacity 450ms ease, transform 450ms ease; }
  .js .hero-stage.anim.s6 .flow-line-1 { transform: none; }
  .js .hero-stage.anim.s6 .lead-card { opacity: 1; transform: none; transition-delay: 350ms; }

  .js .hero-stage.anim .sys-node { transition: opacity 400ms ease, transform 400ms ease; }
  .js .hero-stage.anim.s7 .flow-line-2 { transform: none; }
  .js .hero-stage.anim.s7 .sys-node { opacity: 1; transform: none; }
  .js .hero-stage.anim.s7 .n-2 { transition-delay: 180ms; }
  .js .hero-stage.anim.s7 .n-3 { transition-delay: 360ms; }
  .js .hero-stage.anim.s7 .n-4 { transition-delay: 540ms; }
  .js .hero-stage.anim.s7 .demo-cursor { opacity: 0; }
}

@keyframes pulse-ring {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}
@keyframes tap-ring {
  0%   { opacity: 0.85; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* ---------- 2 · Workflows ---------- */

.workflows {
  background: var(--bg-2);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(56px, 8vw, 104px) 0;
}

.wf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
html:not(.js) .wf-tabs { display: none; }

.wf-tab {
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: var(--muted-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  min-height: 48px;
  cursor: pointer;
}
.wf-tab:hover { color: var(--text-dark); border-color: var(--muted-dark); }
.wf-tab[aria-selected="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--bg);
}

.wf-panels { margin-top: 28px; }
.wf-panel[hidden] { display: none; }

.wf-panel {
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--bg);
  padding: clamp(24px, 3.5vw, 40px);
}
.wf-panel + .wf-panel { margin-top: 24px; }

.wf-panel-h {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.js .wf-panel-h { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }

.wf-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 12px;
}

.wf-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wf;
}
.wf-steps li {
  counter-increment: wf;
  position: relative;
  padding: 0 0 18px 44px;
  color: var(--text-dark);
  font-size: 0.98rem;
}
.wf-steps li::before {
  content: counter(wf, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--signal);
}
.wf-steps li::after {
  content: "";
  position: absolute;
  left: 9px; top: 26px; bottom: 4px;
  width: 1px;
  background: var(--line-dark);
}
.wf-steps li:last-child { padding-bottom: 0; }
.wf-steps li:last-child::after { display: none; }

.wf-fit {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 0.94rem;
  max-width: 720px;
}

/* Workflow interface illustrations */

.mini-sheet, .mini-booker {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.ms-head, .mb-head {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6a6f64;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-panel);
}
.ms-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
}
.ms-name { font-weight: 700; color: #1d211c; }
.ms-svc { color: #6a6f64; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-panel);
  color: #6a6f64;
  border-radius: 2px;
  padding: 2px 7px;
  white-space: nowrap;
}
.ms-new { border-color: var(--pine); color: var(--pine); background: #eaf5ee; }
.ms-ok { border-color: #bfe0cc; color: var(--pine); background: #eaf5ee; }

.mb-svc {
  border: 1px solid var(--line-panel);
  border-radius: 3px;
  padding: 8px 11px;
  font-size: 0.78rem;
  color: #1d211c;
}
.mb-active { border-color: var(--pine); box-shadow: inset 2px 0 0 var(--pine); font-weight: 700; }
.mb-times { display: flex; gap: 8px; }
.mb-times i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.7rem;
  border: 1px solid var(--line-panel);
  border-radius: 2px;
  padding: 5px 9px;
  color: #6a6f64;
}
.mb-t-active { background: var(--pine); border-color: var(--pine); color: #f4f1e9; }
.mb-foot {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine);
  padding-top: 6px;
  border-top: 1px solid var(--line-panel);
}

@media (prefers-reduced-motion: no-preference) {
  .js .wf-panel.entering { animation: panel-in 480ms cubic-bezier(0.25, 0.8, 0.3, 1); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 3 · Featured work (paper reset) ---------- */

.work {
  --focus: #123424;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
}
.work .section-lede { color: var(--muted-ink); }

.showcase { margin-top: clamp(44px, 6vw, 80px); }

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
/* Second showcase mirrors the first: info left, media right. Named by
   position, not by project, so swapping a demo never needs a CSS edit. */
.sc-reverse .showcase-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

.sc-media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.26fr);
  gap: 16px;
  align-items: end;
}
.shot-second { grid-column: 1; width: 78%; justify-self: end; }

.shot-frame {
  border: 1px solid var(--line-paper);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 20px 48px rgba(23, 27, 23, 0.14);
}
.shot-desktop .shot-frame { aspect-ratio: 1440 / 900; }
.shot-phone .shot-frame { aspect-ratio: 780 / 1688; border-radius: 12px; }
.shot { margin: 0; }
.shot-cap {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-ink);
  margin-top: 8px;
}

.sc-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--pine);
}
.sc-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.sc-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pine);
  border: 1px solid var(--pine);
  border-radius: 2px;
  padding: 3px 9px;
  margin-top: 12px;
}
.sc-desc {
  margin-top: 16px;
  color: var(--muted-ink);
  max-width: 460px;
}
.sc-meta {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 420px;
}
.sc-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line-paper);
  font-size: 0.9rem;
}
.sc-k { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-ink); padding-top: 3px; }
.sc-v { font-weight: 600; text-align: right; }

.sc-photo-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-ink);
  max-width: 420px;
}

.sc-link { margin-top: 24px; }
.sc-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pine);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 20px;
  min-height: 48px;
  border-radius: 3px;
}
.sc-link a:hover { background: var(--pine-deep); }
.sc-link a:hover .demo-arrow { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: no-preference) {
  .demo-arrow, .btn-arrow { transition: transform 180ms ease; }
}

/* Scroll reveal (enhancement only) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.revealed) { opacity: 0; transform: translateY(14px); }
  .js [data-reveal] { transition: opacity 620ms ease, transform 620ms ease; }
}

/* ---------- 4 · Sanity editing demo (paper) ---------- */

.editing {
  --focus: #123424;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line-paper);
  padding: clamp(56px, 8vw, 104px) 0;
}
.editing .section-lede { color: var(--muted-ink); max-width: 680px; }

.ed-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
}

.ed-editor {
  background: var(--panel);
  border: 1px solid var(--line-paper);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(23, 27, 23, 0.12);
  padding: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-bar {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-ink);
  background: #f1efe6;
  border-bottom: 1px solid var(--line-paper);
  border-radius: 6px 6px 0 0;
  padding: 9px 16px;
}
.ed-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 18px 0;
}
.ed-input {
  position: relative;
  margin: 0 18px;
  border: 1px solid var(--line-paper);
  border-radius: 4px;
  background: #fbfaf5;
  padding: 11px 14px;
  font-size: 0.9rem;
  min-height: 44px;
}
.ed-old { display: none; color: #1d211c; }
.ed-new { color: #1d211c; }
.ed-caret {
  display: none;
  width: 1.5px; height: 1.05em;
  background: var(--pine);
  vertical-align: text-bottom;
}
.ed-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}
.ed-publish {
  background: var(--pine);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 3px;
}
.ed-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pine);
}

.ed-flow {
  width: clamp(24px, 4vw, 56px);
  height: 2px;
  background: var(--pine);
  display: block;
}

.ed-preview {
  background: var(--panel);
  border: 1px solid var(--line-paper);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(23, 27, 23, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ed-pv-chrome {
  display: flex;
  gap: 5px;
  padding: 9px 14px;
  background: #ecebe3;
  border-bottom: 1px solid var(--line-panel);
}
.ed-pv-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #c9c6ba; }
.ed-pv-announce {
  background: var(--pine);
  color: #f4f1e9;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 12px;
}
.ed-pv-old { display: none; }
.ed-pv-logo {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--pine);
  padding: 16px 18px 0;
}
.ed-pv-h {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #1d211c;
  padding: 10px 18px 0;
  max-width: 260px;
  line-height: 1.2;
}
.ed-pv-btn {
  align-self: flex-start;
  margin: 14px 18px 20px;
  background: var(--pine);
  color: #f4f1e9;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 8px 14px;
  border-radius: 3px;
}

/* Sanity demo animation states */
@media (prefers-reduced-motion: no-preference) {
  .js .ed-stage.anim .ed-old,
  .js .ed-stage.anim .ed-pv-old { display: inline; }
  .js .ed-stage.anim .ed-new,
  .js .ed-stage.anim .ed-pv-new { display: none; }
  .js .ed-stage.anim .ed-status { opacity: 0; }
  .js .ed-stage.anim .ed-caret { display: inline-block; }

  .js .ed-stage.anim.e1 .ed-input { border-color: var(--pine); box-shadow: 0 0 0 2px rgba(28, 70, 50, 0.18); }
  .js .ed-stage.anim.e2 .ed-old { display: none; }
  .js .ed-stage.anim.e2 .ed-new { display: inline; animation: ed-type 360ms ease; }
  .js .ed-stage.anim .ed-publish { transition: filter 160ms ease, transform 160ms ease; }
  .js .ed-stage.anim.e3 .ed-publish { filter: brightness(0.85); transform: scale(0.96); }
  .js .ed-stage.anim.e3 .ed-status { opacity: 1; transition: opacity 260ms ease 200ms; }
  .js .ed-stage.anim.e4 .ed-pv-old { display: none; }
  .js .ed-stage.anim.e4 .ed-pv-new { display: inline; animation: ed-type 400ms ease; }
  .js .ed-stage.anim.e4 .ed-caret { display: none; }
}
@keyframes ed-type {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ed-foot {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
}
.ed-caption {
  font-size: 0.9rem;
  color: var(--muted-ink);
}
.ed-replay {
  display: inline-block;
  margin-left: 10px;
  background: none;
  border: 1px solid var(--pine);
  border-radius: 3px;
  color: var(--pine);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
}
.ed-replay:hover { background: var(--pine); color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .ed-replay { display: none; }
}
html:not(.js) .ed-replay { display: none; }

.ed-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-facts li {
  position: relative;
  padding: 0 0 12px 22px;
  font-size: 0.94rem;
  color: var(--ink);
}
.ed-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pine);
}

/* ---------- 5 · Process (dark) — five-stage connected pathway ---------- */

.process {
  background: var(--bg);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}

.path {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  counter-reset: path;
  max-width: 920px;
}
.path-step {
  counter-increment: path;
  position: relative;
  padding: 0 0 clamp(28px, 4vw, 40px) 64px;
}
/* Base styles ARE the completed pathway: green circles, filled connecting
   line. The scroll animation only dims these and restores them, so no-JS
   and reduced-motion users always see the finished, connected sequence. */
.path-step::before {
  content: counter(path, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--bg);
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 999px;
  padding: 7px 10px;
}
.path-step::after {
  content: "";
  position: absolute;
  left: 19px; top: 38px; bottom: 2px;
  width: 1px;
  background: var(--line-dark);
}
.path-fill {
  position: absolute;
  left: 19px; top: 38px; bottom: 2px;
  width: 1px;
  background: var(--signal);
  transform-origin: top;
}
.path-step:last-child { padding-bottom: 0; }
.path-step:last-child::after,
.path-step:last-child .path-fill { display: none; }
.path-h {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-top: 4px;
}
.path-p {
  margin-top: 6px;
  color: var(--muted-dark);
  font-size: 0.95rem;
  max-width: 560px;
}
@media (min-width: 901px) {
  .path-step {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    column-gap: clamp(24px, 4vw, 56px);
  }
  .path-p { margin-top: 0; padding-top: 6px; }
}

/* Scroll-driven pathway states (JS + motion only). `.animate` is added by
   script.js only when IntersectionObserver exists, so the dimmed start
   state can never strand without its activation mechanism. Classes are
   cumulative and never removed: completed steps stay completed, scrolling
   up never reverses, and the sequence cannot replay. Text stays readable
   (dimmed, never hidden) before activation. */
@media (prefers-reduced-motion: no-preference) {
  /* Calm pacing (scroll-correction 2026-07-19): the segment fill starts
     immediately (800ms) and the circle/heading/description follow on a
     200ms CSS delay (600ms each) — the line visibly travels first, then
     the stage brightens. No JS timers involved. Inactive stages stay
     readable: dimmed, never hidden. */
  .js .path.animate .path-step::before {
    color: var(--muted-dark);
    background: var(--bg);
    border-color: var(--line-dark);
    transition: color 600ms ease 200ms, background 600ms ease 200ms, border-color 600ms ease 200ms;
  }
  .js .path.animate .path-fill { transform: scaleY(0); transition: transform 800ms ease; }
  .js .path.animate .path-h { color: var(--muted-dark); transition: color 600ms ease 200ms; }
  .js .path.animate .path-p {
    opacity: 0.76;
    transform: translateY(4px);
    transition: opacity 600ms ease 200ms, transform 600ms ease 200ms;
  }
  .js .path.animate .path-step.is-active::before {
    color: var(--bg);
    background: var(--signal);
    border-color: var(--signal);
  }
  .js .path.animate .path-step.is-active .path-h { color: var(--text-dark); }
  .js .path.animate .path-step.is-active .path-p { opacity: 1; transform: none; }
  .js .path.animate .path-step.is-complete .path-fill { transform: scaleY(1); }
}

.process-bridge {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 1.05rem;
  font-weight: 600;
}
.process-bridge a { color: var(--signal); text-decoration: none; font-weight: 700; }
.process-bridge a:hover .btn-arrow { transform: translateX(3px); }

/* ---------- 6 · Booking (paper) ---------- */

.book {
  --focus: #123424;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 8vw, 104px) 0;
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.book h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.book-lede {
  margin-top: 18px;
  color: var(--muted-ink);
  max-width: 440px;
}
.book-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.book-points li {
  position: relative;
  padding: 0 0 12px 24px;
  font-weight: 600;
  font-size: 0.98rem;
}
.book-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pine);
}
.book-solo {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-paper);
  color: var(--muted-ink);
  font-size: 0.94rem;
  max-width: 420px;
}

.book-widget {
  min-width: 0;
  /* Small optical offset so the widget's white panel sits level with the
     booking headline's cap height rather than floating above it. */
  padding-top: 6px;
}
.sq-embed {
  /* Reserved pre-load space only (CLS guard). min-height never crops: the
     widget's initial screen measured 500px + 16px padding locally, and
     later Square screens grow the box naturally. (Was 70vh/660px — left
     ~90–130px of permanent blank space under the initial view.) */
  min-height: clamp(420px, 55vh, 520px);
  border: 1px solid var(--line-paper);
  border-radius: 6px;
  background: var(--panel);
  padding: 8px;
  overflow-x: auto;
}
.sq-embed iframe { max-width: 100%; }
.sq-fallback {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted-ink);
}
.sq-fallback a { color: var(--pine); font-weight: 700; }

/* ---------- 7 · Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line-dark);
  padding: clamp(40px, 6vw, 64px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.footer-line {
  margin-top: 12px;
  color: var(--muted-dark);
  font-size: 0.94rem;
  max-width: 320px;
}
.footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--muted-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 4px 0;
  display: inline-block;
}
.footer-nav a:hover { color: var(--text-dark); }
.footer-contact a { color: var(--signal); font-weight: 700; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted-dark);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .sc-media { grid-template-columns: minmax(0, 1fr) minmax(0, 0.3fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-caption { grid-column: 1; }
  .hero-stage { margin-top: 8px; }
  .showcase-grid,
  .sc-reverse .showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .sc-reverse .sc-info { order: 2; }
  .sc-reverse .sc-media { order: 1; }
  .ed-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ed-flow { width: 2px; height: 28px; }
  .ed-editor, .ed-preview { width: 100%; max-width: 480px; }
  .ed-foot { grid-template-columns: minmax(0, 1fr); }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 720px) {
  .wf-panel-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-visual { max-width: 420px; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .cta-row { align-items: stretch; flex-direction: column; }
  .btn-primary { justify-content: center; text-align: center; }
  .link-quiet { text-align: center; border-bottom: none; }
  .sc-media { grid-template-columns: 1fr; }
  .shot-phone { max-width: 190px; }
  .demo-form { right: 8px; width: 190px; }
  .db-h { font-size: 1.1rem; }
  .node-grid { grid-template-columns: 1fr; }
  .sc-meta li { flex-direction: column; gap: 2px; }
  .sc-v { text-align: left; }
}

/* ============================================================
   Mobile polish pass (320–768px) — owner-directed 2026-07-22

   Spacing, hierarchy and scroll-length only. Every rule below lives
   inside a max-width query, so nothing at ≥769px is affected: no
   branding, colour, typography scale, copy, animation timing or
   desktop layout changes. Placed after the 480px block on purpose —
   these rules are the single mobile source of truth and must win the
   cascade at every mobile width.

   One spacing scale is used throughout:
     --m-section  section top/bottom padding
     --m-block    major block separation inside a section
     --m-group    related elements inside a block
     --m-tight    tight pairs
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --m-section: 52px;
    --m-block: 32px;
    --m-group: 20px;
    --m-tight: 12px;
  }

  /* ---------- Header ---------- */

  .header-row { min-height: 56px; }
  /* Kill the inherited 1.6 line-height so the mark + wordmark box is
     exactly the mark's height and centres optically, not just
     mathematically, against the Menu button. */
  .header-row .brand { line-height: 1; }
  .menu-toggle {
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.92rem;
    /* min-height stays 44px — visual size drops via width/type, never
       below the touch-target floor. */
  }
  .menu-toggle-bars span { width: 15px; }
  .js .site-menu { padding-bottom: 16px; }

  /* ---------- Shared section rhythm ---------- */

  .section-lede { margin-top: var(--m-group); }

  .workflows,
  .editing,
  .book { padding: var(--m-section) 0; }
  .work,
  .process { padding: var(--m-section) 0 var(--m-section); }

  /* ---------- 1 · Hero ---------- */

  .hero { padding: 40px 0 32px; }
  .hero-copy .eyebrow { margin-bottom: 26px; }
  .hero-lede {
    margin-top: 22px;
    max-width: 34ch; /* shorter measure — easier to read on a phone */
  }
  .cta-row { gap: 22px; margin-top: 34px; }
  .hero-story { margin-top: 30px; }
  .hero-stage { margin-top: 14px; }
  .hero-caption { margin-top: 10px; }

  /* ---------- 2 · Systems ---------- */

  .wf-tabs {
    /* Equal-width toggles at every mobile width, side by side so the
       section does not gain a whole button of height. */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 40px;
  }
  .wf-tab {
    padding: 13px 12px;
    font-size: 0.95rem;
    text-align: center;
  }
  .wf-panels { margin-top: var(--m-block); }
  .wf-panel { padding: 30px 26px; }
  .wf-steps li { padding-bottom: 22px; }
  .wf-fit { margin-top: 24px; }

  /* ---------- 3 · Featured work ---------- */

  .showcase { margin-top: 36px; }
  .showcase-grid { gap: 22px; }

  /* The phone shot stands beside a stacked pair of desktop shots
     instead of below them. Same three screenshots, same order, but the
     media block stops being a ~900px vertical run, so the project
     information is reached far sooner. 42% keeps the two columns close
     to equal height from 320px to 768px — that near-balance is what
     removes the dead space — while giving the phone shot more presence
     against the desktop pair than it had stacked. */
  .sc-media {
    grid-template-columns: minmax(0, 1fr) 42%;
    gap: 14px;
    align-items: end;
  }
  .sc-media .shot-desktop:not(.shot-second) { grid-column: 1; grid-row: 1; }
  .sc-media .shot-second {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
  }
  .sc-media .shot-phone {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: none;
    align-self: end;
  }
  .shot-cap { margin-top: 6px; }

  /* Project cards — identical scale for 01 and 02 (shared classes) */
  .sc-title { margin-top: 4px; }
  .sc-badge { margin-top: 10px; }
  .sc-desc { margin-top: 14px; }
  .sc-meta { margin-top: 18px; }
  .sc-meta li { padding: 8px 0; }
  .sc-photo-note { margin-top: var(--m-tight); }
  .sc-link { margin-top: var(--m-group); }

  /* ---------- 4 · Editing dashboard ---------- */

  /* The demo panels are decorative (aria-hidden) illustrations. On
     mobile they are scaled down to read as a concise product demo
     rather than an oversized embedded panel, which also lifts the
     Replay button into comfortable reach. */
  .ed-stage {
    gap: 14px;
    margin-top: 24px;
  }
  .ed-editor,
  .ed-preview { max-width: 420px; }
  .ed-flow { height: 20px; }

  .ed-editor { gap: 9px; padding-bottom: 14px; }
  .ed-bar { font-size: 0.6rem; padding: 7px 14px; }
  .ed-label { font-size: 0.72rem; padding: 2px 14px 0; }
  .ed-input {
    margin: 0 14px;
    padding: 9px 12px;
    font-size: 0.82rem;
    min-height: 38px; /* decorative field, not a touch target */
  }
  .ed-actions { gap: 10px; padding: 0 14px; }
  .ed-publish { font-size: 0.74rem; padding: 7px 14px; }
  .ed-status { font-size: 0.62rem; }

  .ed-pv-chrome { padding: 7px 12px; }
  .ed-pv-announce { font-size: 0.7rem; padding: 6px 12px; }
  .ed-pv-logo { font-size: 0.76rem; padding: 12px 14px 0; }
  .ed-pv-h { font-size: 1rem; padding: 8px 14px 0; }
  .ed-pv-btn { font-size: 0.7rem; padding: 7px 12px; margin: 12px 14px 16px; }

  .ed-foot { margin-top: 18px; gap: var(--m-group); }
  /* Inline, the button landed mid-wrap after a ragged caption line. On its
     own line it reads as the obvious "play this again" control. */
  .ed-replay {
    display: block;
    margin: 12px 0 0;
    padding: 9px 16px;
  }
  .ed-facts li { padding-bottom: 14px; }
  .ed-facts li:last-child { padding-bottom: 0; }

  /* ---------- 5 · Process timeline ---------- */

  /* The circle (::before) and the 19px line offset are deliberately
     untouched — only the text inset and the step rhythm change, so
     circle/segment alignment stays exact. */
  .path { margin-top: var(--m-block); }
  .path-step { padding: 0 0 24px 56px; }
  .path-step:last-child { padding-bottom: 0; }
  .process-bridge { margin-top: 28px; padding-top: var(--m-group); }

  /* ---------- 6 · Booking ---------- */

  .book-grid { gap: 26px; }
  .book-points { margin-top: var(--m-group); }
  .book-points li { padding-bottom: 10px; }
  .book-points li:last-child { padding-bottom: 0; }
  .book-solo { margin-top: 18px; padding-top: 16px; }
  /* The 6px optical offset only exists to level the widget with the
     headline in the two-column desktop layout. Stacked, it is dead space. */
  .book-widget { padding-top: 0; }
  .sq-fallback { margin-top: var(--m-tight); }

  /* ---------- 7 · Footer ---------- */

  .site-footer { padding: 32px 0; }
  .footer-grid { gap: 24px; }
  .footer-line { margin-top: 10px; }
  /* Gap removed and padding raised together: the link list reads as one
     tight block while each link finally clears 44px (it was ~34px). */
  .footer-nav ul { gap: 0; }
  .footer-nav a { padding: 10px 0; }
  .footer-note { margin-top: var(--m-tight); }
}

/* Narrowest widths — the two-up toggles and the workflow card need a
   little more room for their text at 320–400px. */
@media (max-width: 400px) {
  .wf-tab { font-size: 0.88rem; padding: 12px 8px; }
  .wf-panel { padding: 26px 20px; }
  .path-step { padding-left: 52px; }
  /* Narrow widths wrap the editing lede onto more lines, so the demo's
     own seams tighten further to keep Replay in comfortable reach. */
  .ed-stage { margin-top: 20px; gap: 12px; }
  .ed-flow { height: 16px; }
  .ed-foot { margin-top: 14px; }
}

/* ============================================================
   Reduced motion — kill every non-essential transition
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
