/* Hallmark · macrostructure: bespoke "cable rail" · tone: playful, eccentric · anchor hue: tangerine 48
 * nav: inline wordmark + three links · footer: pine slab with wordmark and contact
 */
@import url("tokens.css");

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
::selection { background: var(--color-canary); color: var(--color-pine); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 50;
  padding: var(--space-2) var(--space-4);
  background: var(--color-pine);
  color: var(--color-mint);
  border-radius: var(--radius-field);
  font-weight: 600;
}
.skip:focus { top: var(--space-4); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: var(--rule-w) solid var(--color-pine);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-cable { background: var(--color-cable); color: var(--color-pine); }
.btn-cable:hover { background: var(--color-canary); }
.btn-cable:active { background: var(--color-pine); color: var(--color-mint); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.link-quiet {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--color-cable);
}
.link-quiet:hover { text-decoration-color: var(--color-pine); text-decoration-thickness: 3px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 5; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 84px;
}
/* logo: the S is the cable (drawn in a scaled group, so its stroke is 20 / 0.83), the rest is ink */
.logo-letters, .logo-s { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-letters { stroke: currentColor; stroke-width: 20; }
.logo-s { stroke: var(--color-cable); stroke-width: 24.1; }
.brand { display: inline-flex; color: var(--color-pine); text-decoration: none; }
.brand svg { width: clamp(138px, 15vw, 186px); height: auto; overflow: visible; }
.site-nav ul { display: flex; align-items: center; gap: clamp(0.75rem, 2.4vw, 2rem); list-style: none; }
.site-nav a { font-weight: 600; text-decoration: none; white-space: nowrap; padding-block: var(--space-2); }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--color-cable); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; text-decoration-color: var(--color-cable); }
.site-nav .nav-cta {
  padding: 0.45rem 1rem;
  border: var(--rule-w) solid var(--color-pine);
  border-radius: var(--radius-btn);
}
.site-nav .nav-cta:hover { background: var(--color-canary); text-decoration: none; }

@media (max-width: 560px) {
  .site-nav .hide-sm { display: none; }
}

/* ---------- the tangle (hero) ---------- */
.tangle { position: relative; height: 270vh; height: 270svh; }
.tangle-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.tangle-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.cable-core { fill: none; stroke: var(--color-cable); stroke-width: var(--rail-w); stroke-linecap: round; stroke-linejoin: round; }
.cable-halo { fill: none; stroke: var(--color-paper); stroke-width: calc(var(--rail-w) + 9px); stroke-linecap: butt; stroke-linejoin: round; }
.tag-string { stroke: var(--color-pine); stroke-width: 2; }
.plug-head rect { fill: var(--color-pine); }
.tangle-grid {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  align-content: center;
  pointer-events: none;
}
.hero-copy { pointer-events: auto; padding-block: var(--space-7) var(--space-8); }
.hero-title {
  --wdth: 72;
  font-size: var(--text-display);
  font-weight: 860;
  font-stretch: calc(var(--wdth) * 1%);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero-title span { display: block; white-space: nowrap; }
@media (max-width: 400px) { .hero-title span { white-space: normal; } }
.hero-lead {
  margin-top: var(--space-5);
  max-width: var(--measure);
  font-size: var(--text-lead);
  color: var(--color-ink);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

/* gene's take: the answer to a tapped tag */
.take {
  margin-top: var(--space-6);
  max-width: var(--measure);
  padding: var(--space-5);
  background: var(--color-pine);
  color: var(--color-mint);
  border-radius: 14px;
  position: relative;
}
.take[hidden] { display: none; }
.take-quote {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 80%;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--color-canary);
}
.take-body { margin-top: var(--space-2); }
.take-body b { font-weight: 700; }
.take-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.take a { color: var(--color-mint); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-cable); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.take a:hover { text-decoration-color: var(--color-canary); }
.take-close {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: var(--rule-w) solid var(--color-mint);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--color-mint);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.take-close:hover { background: var(--color-mint); color: var(--color-pine); }
.take :focus-visible { outline-color: var(--color-canary); }

/* tags hanging off the cable */
.tags { position: absolute; inset: 0; z-index: 3; list-style: none; pointer-events: none; }
.tags li { position: absolute; left: 0; top: 0; }
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.45rem 0.8rem 0.45rem 0.6rem;
  background: var(--color-tag);
  color: var(--color-pine);
  border: var(--rule-w) solid var(--color-pine);
  border-radius: var(--radius-tag);
  font-family: var(--font-display);
  font-size: var(--text-tag);
  font-weight: 700;
  font-stretch: 74%;
  line-height: 1.15;
  white-space: nowrap;
}
/* the punched hole of a hang tag */
.tag::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: var(--rule-w) solid var(--color-pine);
  background: var(--color-paper);
}
button.tag { pointer-events: auto; cursor: pointer; }
button.tag:hover { background: var(--color-white); }
button.tag[aria-expanded="true"] { background: var(--color-pine); color: var(--color-canary); }
button.tag[aria-expanded="true"]::before { border-color: var(--color-canary); background: var(--color-pine); }

.knot-room { display: none; }

.tangle-hint {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: var(--space-5);
  font-size: var(--text-small);
  color: var(--color-ink-soft);
  pointer-events: none;
}

/* no JS: tags become a plain list under the copy, no pinning */
.no-js .tangle { height: auto; }
.no-js .tangle-stage { position: relative; height: auto; }
.no-js .tags { position: static; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--pad) var(--space-8); }
.no-js .tags li { position: static; }
.no-js .tangle-hint, .no-js .tangle-svg { display: none; }

/* ---------- the cable run (everything after the hero) ---------- */
.cable-run { position: relative; }
.rail-track { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.rail-track .wrap { position: relative; height: 100%; }
.rail {
  position: absolute;
  top: 0;
  bottom: var(--rail-end, 0px);
  left: calc(var(--pad) + (100% - 2 * var(--pad)) * var(--rail-at) - var(--rail-w) / 2);
  width: var(--rail-w);
  background: var(--color-cable);
}
/* section backgrounds sit under the rail; section content sits over it */
.cable-run > section > .wrap { position: relative; z-index: 2; }

/* 3-column grid whose middle column is centred on the rail */
.railgrid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 8fr) minmax(0, 32fr);
  align-items: start;
}
.railgrid > .main-col { grid-column: 1; }

.section-head { padding-block: var(--space-10) var(--space-7); }
.section-head h2 { font-size: var(--text-h2); font-weight: 820; font-stretch: 118%; max-width: 14ch; }
.section-head p { margin-top: var(--space-4); max-width: var(--measure); font-size: var(--text-lead); }

/* what I fix: junctions on the rail */
.junction { padding-block: var(--space-7); border-top: var(--rule-w) solid var(--color-pine-line); }
.junction:last-child { padding-bottom: var(--space-9); }
.junction h3 { font-size: var(--text-h3); font-weight: 780; font-stretch: 108%; }
.junction .lead { margin-top: var(--space-3); max-width: var(--measure); font-size: var(--text-lead); }
.fixes { margin-top: var(--space-5); list-style: none; display: grid; gap: var(--space-2); max-width: var(--measure); }
.fixes li { position: relative; padding-left: 1.6rem; }
.fixes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.9rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--color-pine);
}
/* cable tie where the junction meets the rail */
.tie {
  grid-column: 2;
  justify-self: center;
  margin-top: 0.35rem;
  width: calc(var(--rail-w) + 16px);
  height: 12px;
  border-radius: 3px;
  background: var(--color-pine);
}
.tied {
  grid-column: 2 / 4;
  grid-row: 1;
  list-style: none;
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding-top: var(--space-6);
}
.tied li { position: relative; padding-left: 20%; }
.tied li::before {
  content: "";
  position: absolute;
  left: 10%;
  width: 10%;
  top: 50%;
  border-top: var(--rule-w) solid var(--color-pine);
}
.tied .tag { white-space: normal; }

/* how I untangle things: a pine band the cable runs through */
.how { background: var(--color-pine); color: var(--color-mint); }
.how :focus-visible { outline-color: var(--color-canary); }
.how .section-head h2 { color: var(--color-mint); }
.steps { list-style: none; counter-reset: step; padding-bottom: var(--space-10); display: grid; gap: var(--space-7); }
.step { counter-increment: step; }
.step .main-col { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: var(--space-4); }
.step .main-col::before {
  content: counter(step);
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 860;
  font-stretch: 130%;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--color-cable);
}
.step h3 { font-size: var(--text-h3); font-weight: 760; font-stretch: 108%; color: var(--color-mint); }
.step p { margin-top: var(--space-2); max-width: var(--measure); color: oklch(90% 0.03 165); }
.step .tie { background: var(--color-mint); }

/* why the double r */
.double-r { padding-block: var(--space-10) var(--space-9); }
.double-r .wordmark-big { grid-column: 1; grid-row: 1; width: min(100%, 34rem); height: auto; overflow: visible; color: var(--color-pine); }
.double-r .copy { grid-column: 1; margin-top: var(--space-7); }
.double-r h2 { font-size: var(--text-h2); font-weight: 820; font-stretch: 118%; }
.double-r .copy p { margin-top: var(--space-4); max-width: var(--measure); font-size: var(--text-lead); }
.double-r .say { font-size: var(--text-body); color: var(--color-ink-soft); }

/* things I won't do */
.wont { padding-block: var(--space-8) var(--space-9); background: var(--color-mint-deep); }
.wont h2 { font-size: var(--text-h2); font-weight: 820; font-stretch: 118%; }
.wont ul { margin-top: var(--space-6); list-style: none; display: grid; gap: var(--space-3); max-width: var(--measure); }
.wont li {
  position: relative;
  padding-left: 2.2rem;
  font-size: var(--text-lead);
}
/* a snipped piece of cable as the bullet */
.wont li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 1.4rem;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-pine) 0 42%, transparent 42% 58%, var(--color-pine) 58% 100%);
}

/* got a knot: the cable ends in a plug */
.knot-cta { padding-block: var(--space-10) var(--space-10); }
.knot-cta h2 { font-size: var(--text-display); font-weight: 860; font-stretch: 120%; line-height: 0.92; }
.knot-cta p { margin-top: var(--space-5); max-width: var(--measure); font-size: var(--text-lead); }
.knot-cta .btn { margin-top: var(--space-6); }
.plug { grid-column: 2; grid-row: 1; align-self: end; justify-self: center; width: 40px; height: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--color-pine); color: var(--color-mint); padding-block: var(--space-8) var(--space-7); }
.site-footer :focus-visible { outline-color: var(--color-canary); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: end; }
.site-footer .brand { color: var(--color-mint); }
.site-footer .brand svg { width: 190px; }
.footer-lines { margin-top: var(--space-4); display: grid; gap: var(--space-1); color: oklch(88% 0.03 165); }
.site-footer a { color: var(--color-mint); text-decoration-color: var(--color-cable); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.site-footer a:hover { text-decoration-color: var(--color-canary); }
.footer-links { list-style: none; display: grid; gap: var(--space-2); justify-items: end; }
.footer-links a { font-weight: 600; }
.copyright { margin-top: var(--space-6); font-size: var(--text-small); color: oklch(80% 0.03 165); }

/* ---------- contact page ---------- */
.contact-page { position: relative; padding-bottom: var(--space-10); }
.contact-page .rail-track { z-index: 0; }
.contact-head { padding-block: var(--space-8) var(--space-7); }
.contact-head h1 { font-size: var(--text-display); font-weight: 860; font-stretch: 104%; line-height: 0.92; }
.contact-head h1 span { display: block; }
.contact-head p { margin-top: var(--space-5); max-width: var(--measure); font-size: var(--text-lead); }
.contact-body { position: relative; z-index: 1; align-items: start; }
.contact-form { grid-column: 1; display: grid; gap: var(--space-5); max-width: 40rem; }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-weight: 700; }
.field .opt { font-weight: 400; color: var(--color-ink-soft); }
.hint { font-size: var(--text-small); color: var(--color-ink-soft); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: var(--rule-w) solid var(--color-pine);
  border-radius: var(--radius-field);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
}
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { background: var(--color-mint); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-cable); outline-offset: 1px; border-color: var(--color-pine); }
.field [aria-invalid="true"] { border-color: var(--color-error); background: var(--color-error-bg); }
.field-error { font-size: var(--text-small); font-weight: 600; color: var(--color-error); }
.field-error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border: var(--rule-w) solid var(--color-pine);
  border-radius: var(--radius-tag);
  background: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 78%;
  cursor: pointer;
  white-space: nowrap;
}
.chip span::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  border: var(--rule-w) solid var(--color-pine);
  background: var(--color-paper);
}
.chip input:hover + span { background: var(--color-mint); }
.chip input:checked + span { background: var(--color-tag); }
.chip input:checked + span::before { background: var(--color-pine); }
.chip input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: var(--color-error); }
.btn[data-state="loading"] { cursor: progress; opacity: 0.8; }
.turnstile-slot:empty { display: none; }

.sent { grid-column: 1; max-width: 40rem; padding: var(--space-6); background: var(--color-pine); color: var(--color-mint); border-radius: 16px; }
.sent h2 { font-size: var(--text-h2); font-weight: 820; font-stretch: 112%; color: var(--color-canary); }
.sent p { margin-top: var(--space-4); font-size: var(--text-lead); }
.sent a { color: var(--color-mint); text-decoration-color: var(--color-cable); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.sent :focus-visible { outline-color: var(--color-canary); }

.aside { grid-column: 3; display: grid; gap: var(--space-6); padding-top: var(--space-1); }
.aside h2 { font-size: 1.35rem; font-weight: 780; font-stretch: 100%; }
.aside p { margin-top: var(--space-2); }
.mailto-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }
.mailto-row a { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.copy-btn {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: var(--rule-w) solid var(--color-pine);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--color-pine);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: var(--color-canary); }
.copy-btn[data-state="done"] { background: var(--color-pine); color: var(--color-mint); }

/* 404 */
.lost { padding-block: var(--space-10); }
.lost h1 { font-size: var(--text-display); font-weight: 860; font-stretch: 110%; line-height: 0.92; }
.lost p { margin-top: var(--space-5); font-size: var(--text-lead); max-width: var(--measure); }
.lost .btn { margin-top: var(--space-6); }

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  /* phones and small tablets: nothing is pinned. The copy comes first, the knot gets its own room below it,
     and it pulls straight as you scroll, landing on the rail of the next section. */
  .js .tags li[data-wide-only] { display: none; }
  .tangle { height: auto; }
  .tangle-stage { position: relative; height: auto; }
  .tangle-grid { height: auto; grid-template-columns: minmax(0, 1fr); align-content: start; z-index: 4; } /* above the tags, so the take sheet covers them */
  .hero-copy { padding-block: var(--space-4) var(--space-3); }
  .knot-room { display: block; height: clamp(380px, 112vw, 560px); }
  .tangle-hint { bottom: var(--space-3); }
  /* "My take" becomes a sheet at the bottom of the screen, where the thumb is */
  .take {
    position: fixed;
    left: var(--space-3);
    right: var(--space-3);
    bottom: max(var(--space-3), env(safe-area-inset-bottom));
    z-index: 30;
    margin: 0;
    max-width: none;
    padding: var(--space-5) var(--space-5) var(--space-4);
  }
}

@media (max-width: 760px) {
  :root { --rail-w: 10px; }
  .rail { left: calc(100% - var(--pad) - 18px - var(--rail-w) / 2); }
  .railgrid { grid-template-columns: minmax(0, 1fr) 36px; }
  .railgrid > .main-col, .railgrid > .copy, .contact-form, .sent, .aside { grid-column: 1; }
  .tie, .plug { grid-column: 2; }
  .tied { grid-column: 1; grid-row: auto; display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-4); }
  .tied li { padding-left: 0; }
  .tied li::before { display: none; }
  .tied .tag { white-space: nowrap; }
  .double-r .wordmark-big { grid-column: 1; width: 100%; }
  .section-head { padding-block: var(--space-8) var(--space-5); }
  .section-head h2, .double-r h2, .wont h2 { font-size: clamp(2rem, 9.2vw, 2.6rem); }
  .junction { padding-block: var(--space-6); }
  .junction:last-child { padding-bottom: var(--space-8); }
  .junction .lead, .section-head p, .double-r .copy p, .wont li, .knot-cta p { font-size: 1.0625rem; }
  .steps { gap: var(--space-6); padding-bottom: var(--space-8); }
  .step .main-col { grid-template-columns: 2.3rem minmax(0, 1fr); column-gap: var(--space-3); }
  .step .main-col::before { font-size: 2.1rem; }
  .double-r { padding-block: var(--space-8) var(--space-7); }
  .double-r .copy { margin-top: var(--space-5); }
  .wont { padding-block: var(--space-7) var(--space-8); }
  .wont ul { margin-top: var(--space-5); }
  .knot-cta { padding-block: var(--space-8) var(--space-9); }
  .knot-cta h2 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .site-footer { padding-block: var(--space-7) var(--space-6); }
  /* hero on phones: a bigger headline, a full-width button within thumb reach */
  .hero-title { font-size: clamp(2.7rem, 12.6vw, 4.2rem); }
  .hero-lead { margin-top: var(--space-4); }
  .hero-actions { margin-top: var(--space-5); gap: var(--space-3); }
  .hero-actions .btn { width: 100%; min-height: 52px; font-size: 1.1rem; }
  .hero-actions .link-quiet { padding-block: var(--space-2); }
  .tag { font-size: 0.9375rem; min-height: 40px; }
  .contact-head { padding-block: var(--space-6) var(--space-5); }
  .contact-head h1 { font-size: clamp(2.7rem, 12.6vw, 4.2rem); }
  .contact-form .btn { width: 100%; min-height: 52px; }
  .btn { font-stretch: 100%; padding-inline: 1.1rem; }
  .knot-cta .btn { width: 100%; min-height: 52px; }
  .plug { width: 30px; }
  .site-nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1.1rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-items: start; }
  .aside { margin-top: var(--space-8); }
  .hero-lead { font-size: 1.0625rem; }
}

@media (max-width: 400px) {
  .tag { font-size: 0.875rem; padding: 0.4rem 0.65rem 0.4rem 0.5rem; gap: 0.45rem; }
  .header-row { min-height: 72px; }
  .site-nav ul { gap: 0.9rem; }
}

/* ---------- reduced motion: nothing pinned, knot holds still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tangle { height: auto; }
  .tangle-stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .hero-title { --wdth: 100; }
}
