/* ============================================================
   HANNAH KWAKYE — PORTFOLIO HUB
   ink / porcelain / lime-moss / warm understory
   Instrument Serif · Inter Tight · Spline Sans Mono
   ============================================================ */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-var.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('../fonts/spline-sans-mono-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #161513;
  --ink-2: #26241f;
  --ink-40: rgba(22, 21, 19, .4);
  --ink-15: rgba(22, 21, 19, .16);
  --ink-08: rgba(22, 21, 19, .08);
  --porcelain: #F5F3EF;
  --porcelain-60: rgba(245, 243, 239, .6);
  --porcelain-25: rgba(245, 243, 239, .28);
  --porcelain-12: rgba(245, 243, 239, .14);
  --moss: #A8B545;
  --moss-deep: #6d7a25;
  --under: #E8E2D4;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, monospace;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 380;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--moss); color: var(--ink); }
:focus-visible { outline: 2px solid var(--moss-deep); outline-offset: 3px; border-radius: 2px; }
.writing :focus-visible, .contact :focus-visible, .site-foot :focus-visible { outline-color: var(--moss); }
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: var(--porcelain); }
  ::-webkit-scrollbar-thumb { background: var(--ink-40); border: 3px solid var(--porcelain); border-radius: 8px; }
}

h1, h2, h3 { font-weight: 400; }
a { color: inherit; }
em { font-style: italic; }
.mono {
  font-family: var(--mono);
  font-weight: 430;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--porcelain);
  padding: .7rem 1.2rem; border-radius: 4px;
  font-family: var(--mono); font-size: .8rem; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------------- reveals ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 95ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- header ---------------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--gutter);
  transition: background .35s ease, box-shadow .35s ease, transform .45s var(--ease-out);
}
.site-head.scrolled {
  background: color-mix(in srgb, var(--porcelain) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--ink-08);
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--serif); font-size: 1.2rem; text-decoration: none;
}
.brand svg { flex: none; }
.head-nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); align-items: center; }
.head-nav a {
  font-family: var(--mono); font-size: .72rem; font-weight: 450;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  padding: .35rem 0; position: relative;
}
.head-nav a:not(.head-cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--moss-deep);
  transition: right .3s var(--ease-out);
}
.head-nav a:not(.head-cta):hover::after { right: 0; }
.head-cta {
  border: 1px solid var(--ink); border-radius: 999px;
  padding: .45rem 1.1rem !important;
  transition: background .25s ease, color .25s ease;
}
.head-cta:hover { background: var(--ink); color: var(--porcelain); }
@media (max-width: 760px) {
  .head-nav a:not(.head-cta) { display: none; }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5.5rem var(--gutter) 2rem;
  overflow: clip;
}
.thread-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.thread-back { z-index: 0; }
.thread-front { z-index: 2; }
/* stacking: back canvas (0) < name (1) < front canvas (2) < copy (3)
   — the thread weaves through the name but never over readable copy */
.hero-kicker {
  position: relative; z-index: 3;
  color: var(--ink); opacity: .78;
  margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
}
.hero-kicker .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--moss-deep); display: inline-block;
  vertical-align: middle; margin: 0 .55rem .15rem;
}
.hero-name {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 19.5vw, 18rem);
  line-height: .84;
  letter-spacing: -.02em;
  margin-left: -.04em;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-line--2 { margin-left: clamp(1.5rem, 8vw, 9rem); }
.hero-word { display: inline-block; }
.hero-word--it { font-style: italic; }
body.js .hero-word {
  opacity: 0; transform: translateY(105%);
  transition: transform 1.15s var(--ease-out), opacity .7s ease;
  transition-delay: calc(var(--d, 0) * 140ms + 120ms);
}
body.js.loaded .hero-word { opacity: 1; transform: none; }
.hero-foot {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 2rem 8vw;
  align-items: flex-end;
  margin-top: clamp(2rem, 4.5vh, 3.4rem);
  max-width: 68rem;
}
.hero-pos {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 460; line-height: 1.45;
}
.hero-claim {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 26em;
}
.hero-claim em { color: var(--moss-deep); }
.hero-base {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(1.8rem, 4.5vh, 3.4rem);
}
.hero-meta { opacity: .75; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: .9rem;
  text-decoration: none; color: var(--ink);
}
.cue-line {
  width: 3.4rem; height: 1.5px; background: var(--ink); display: inline-block;
  position: relative; overflow: hidden;
}
.cue-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--moss-deep); transform: translateX(-100%);
  animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateX(-101%); } 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }
@media (max-width: 640px) {
  .hero-meta { display: none; }
  .hero-name { font-size: clamp(4rem, 27vw, 8.5rem); }
  .hero-line--2 { margin-left: 9vw; }
}

/* ---------------- section scaffolding ---------------- */
section { padding: clamp(5.5rem, 11vw, 10rem) var(--gutter); }
.sect-no { color: var(--moss-deep); margin-bottom: 1.4rem; }
.sect-head--dark .sect-no, .writing .sect-no, .contact .sect-no { color: var(--moss); }
.sect-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: .98; letter-spacing: -.01em;
  max-width: 14em;
}
.sect-deck {
  margin-top: 1.6rem;
  max-width: 44em;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: color-mix(in srgb, currentColor 78%, transparent);
}
.sect-head { max-width: 82rem; }

/* ---------------- work: view bar ---------------- */
.work { padding-bottom: clamp(6rem, 12vw, 11rem); }
.view-bar {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
  margin: clamp(2.4rem, 5vw, 4rem) 0 2.2rem;
}
.view-toggle {
  position: relative; display: inline-flex;
  border: 1px solid var(--ink-40); border-radius: 999px;
  padding: 4px; background: var(--porcelain);
}
.vt-btn {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); padding: .62rem 1.5rem; border-radius: 999px;
  transition: color .35s ease;
}
.vt-btn.is-on { color: var(--porcelain); }
.vt-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--ink); border-radius: 999px;
  transition: transform .45s var(--ease-io);
}
.view-toggle.wall-on .vt-pill { transform: translateX(100%); }
.view-count { opacity: .72; }

/* view swap animation — the container fades, the items cascade in */
.index-list, .wall {
  transition: opacity .3s ease, transform .3s ease;
}
.view-out { opacity: 0; transform: translateY(14px); }
.wall .tile, .index-list .row {
  transition: opacity .45s ease calc(var(--i, 0) * 16ms),
              translate .5s var(--ease-out) calc(var(--i, 0) * 16ms);
}
.view-out .tile, .view-out .row { opacity: 0; translate: 0 18px; }

/* ---------------- work: the index ---------------- */
.index-list { list-style: none; border-top: 1px solid var(--ink-15); }
.row { position: relative; border-bottom: 1px solid var(--ink-15); }
.row::before {
  content: ''; position: absolute; inset: 0;
  background: var(--pbg);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .42s var(--ease-io);
  z-index: 0;
}
.row:hover::before, .row:focus-within::before, .row.open::before { transform: scaleY(1); }
.row-h { font-size: 1em; }
.row-head {
  position: relative; z-index: 1;
  display: grid; width: 100%;
  grid-template-columns: 3.6rem 1fr auto auto 2rem;
  gap: 1.6rem; align-items: baseline;
  padding: 1.45rem .4rem;
  appearance: none; background: none; border: 0; cursor: pointer;
  text-align: left; color: var(--ink); font: inherit;
}
.row-no {
  font-size: .78rem; color: var(--moss-deep);
  transition: color .3s ease;
}
.row-name {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.9vw, 2.35rem);
  line-height: 1.04; letter-spacing: -.008em;
  transition: color .3s ease, transform .42s var(--ease-out);
}
.row-tag, .row-tier { font-size: .68rem; opacity: .74; transition: color .3s ease, opacity .3s ease; white-space: nowrap; }
.row-x {
  position: relative; width: 14px; height: 14px; align-self: center; justify-self: end;
  transition: transform .4s var(--ease-io);
}
.row-x span {
  position: absolute; left: 0; top: 6px; width: 14px; height: 2px;
  background: currentColor; border-radius: 1px;
  transition: background .3s ease;
}
.row-x span:last-child { transform: rotate(90deg); }
.row.open .row-x { transform: rotate(135deg); }
.row:hover .row-name { transform: translateX(.35em); }
.row:hover .row-no, .row:focus-within .row-no, .row.open .row-no { color: var(--pac); }
.row:hover .row-head, .row:focus-within .row-head, .row.open .row-head { color: var(--pfg); }
.row:hover .row-tag, .row:hover .row-tier,
.row:focus-within .row-tag, .row:focus-within .row-tier,
.row.open .row-tag, .row.open .row-tier { opacity: .8; }

.row-thumb {
  position: absolute; right: clamp(18rem, 32vw, 32rem); top: 50%;
  width: clamp(64px, 7vw, 96px); height: auto; aspect-ratio: 3/4;
  transform: translateY(-42%) rotate(4deg) scale(.85);
  opacity: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: opacity .35s ease, transform .5s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.row:hover .row-thumb, .row:focus-within .row-thumb { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
.row.open .row-thumb { opacity: 0 !important; }

.row-detail {
  position: relative; z-index: 1;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-io);
  color: var(--pfg);
}
.row.open .row-detail { grid-template-rows: 1fr; }
.row-detail-clip { overflow: hidden; min-height: 0; }
.row-detail-in {
  display: grid; grid-template-columns: minmax(130px, 190px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: .8rem .4rem 2.6rem 5.2rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease .1s, transform .5s var(--ease-out) .1s;
}
.row.open .row-detail-in { opacity: 1; transform: none; }
.detail-poster { display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 22px 50px rgba(0, 0, 0, .4); transition: transform .45s var(--ease-out); }
.detail-poster:hover { transform: translateY(-4px) rotate(-1.2deg); }
.detail-poster svg { display: block; width: 100%; height: auto; }
.detail-line {
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.55; max-width: 36em; font-weight: 420;
}
.detail-chips { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--mono); font-size: .64rem; font-weight: 470;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--pfg) 45%, transparent);
  border-radius: 999px; padding: .3rem .75rem;
}
.visit {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.5rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 520;
  letter-spacing: .13em; text-transform: uppercase;
  color: inherit; text-decoration: none;
  border-bottom: 1.5px solid var(--pac, var(--moss-deep));
  padding-bottom: .3rem;
}
.visit-a { transition: transform .3s var(--ease-out); display: inline-block; }
.visit:hover .visit-a { transform: translate(3px, -3px); }
@media (max-width: 1100px) {
  .row-thumb { display: none; }
}
@media (max-width: 720px) {
  .row-head { grid-template-columns: 2.4rem 1fr 1.4rem; gap: .9rem; padding: 1.15rem .2rem; }
  .row-tag, .row-tier, .row-thumb { display: none; }
  .row-detail-in { grid-template-columns: 1fr; padding-left: .2rem; }
  .detail-poster { max-width: 220px; }
}

/* ---------------- work: the wall ---------------- */
.wall[hidden], .index-list[hidden] { display: none; }
.wall {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr));
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: .5rem;
}
.tile-link { display: block; text-decoration: none; color: var(--ink); }
.tile-frame {
  display: block; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--ink-15);
  box-shadow: 0 1px 2px rgba(22, 21, 19, .06);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tile-frame svg { display: block; width: 100%; height: auto; }
.tile-link:hover .tile-frame, .tile-link:focus-visible .tile-frame {
  transform: translateY(-7px) rotate(-.8deg);
  box-shadow: 0 26px 48px -18px rgba(22, 21, 19, .45);
}
.tile-meta {
  display: flex; align-items: baseline; gap: .7rem;
  margin-top: .9rem;
}
.tile-no { font-size: .68rem; color: var(--moss-deep); }
.tile-name { font-family: var(--serif); font-size: 1.18rem; line-height: 1.1; }
.tile-arrow { margin-left: auto; opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s, transform .3s var(--ease-out); }
.tile-link:hover .tile-arrow { opacity: 1; transform: none; }
.tile-line {
  display: block; margin-top: .45rem;
  font-size: .84rem; line-height: 1.5; color: rgba(22, 21, 19, .64);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- seams (thread dividers) ---------------- */
.seam {
  position: absolute; top: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 80px);
  display: block; pointer-events: none;
}
.seam-path {
  fill: none; stroke: var(--moss); stroke-width: 1.6;
  stroke-dasharray: 1700; stroke-dashoffset: 1700;
  transition: stroke-dashoffset 2.4s var(--ease-io);
}
.seam.drawn .seam-path { stroke-dashoffset: 0; }

/* ---------------- writing ---------------- */
.writing {
  position: relative;
  background: var(--ink); color: var(--porcelain);
  padding-top: clamp(7rem, 13vw, 12rem);
}
.essays {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5.5rem);
  max-width: 82rem;
}
.essay-rule { width: 1px; background: var(--porcelain-25); }
.essay-no { color: var(--moss); margin-bottom: 1.2rem; }
.essay-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.02; margin-bottom: 1.4rem;
}
.essay-body { color: var(--porcelain-60); max-width: 34em; }
.pull {
  margin-top: 2.2rem; padding-left: 1.4rem;
  border-left: 2px solid var(--moss);
}
.pull p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
}
.pull em { color: var(--moss); }
.essay-cta { margin-top: 2.4rem; }
.visit--light { border-bottom-color: var(--moss); }
@media (max-width: 860px) {
  .essays { grid-template-columns: 1fr; }
  .essay-rule { width: 100%; height: 1px; }
}

/* ---------------- services ---------------- */
.svc-list {
  list-style: none;
  margin-top: clamp(2.6rem, 5vw, 4.5rem);
  border-top: 1px solid var(--ink-15);
  max-width: 82rem;
}
.svc {
  display: grid; grid-template-columns: 5rem minmax(12rem, 22rem) 1fr;
  gap: 1.5rem 2.5rem;
  padding: 2.2rem .2rem;
  border-bottom: 1px solid var(--ink-15);
  transition: background .3s ease;
}
.svc-no { color: var(--moss-deep); padding-top: .5rem; }
.svc-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.05;
}
.svc-body { color: var(--ink-2); opacity: .85; max-width: 40em; }
.svc-body a { text-decoration-color: var(--moss-deep); text-underline-offset: 3px; transition: color .2s; }
.svc-body a:hover { color: var(--moss-deep); }
@media (max-width: 820px) {
  .svc { grid-template-columns: 3rem 1fr; }
  .svc-body { grid-column: 2; }
}

/* ---------------- build story ---------------- */
.story { background: var(--under); }
.story-in { max-width: 82rem; }
.story-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: .98; letter-spacing: -.01em;
}
.story-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  margin-top: clamp(2.2rem, 4.5vw, 3.6rem);
  max-width: 72rem;
}
.story-cols p { line-height: 1.7; color: var(--ink-2); }
.story-cols strong { font-weight: 600; }
.story-cols a { text-decoration-color: var(--moss-deep); text-underline-offset: 3px; }
.thesis {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.12;
  max-width: 22em;
  margin: clamp(3rem, 6vw, 5rem) 0;
}
.thesis em { color: var(--moss-deep); }
.story-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem; max-width: 62rem;
  border-top: 1px solid var(--ink-15);
  padding-top: 2rem;
}
.stat dt { opacity: .6; margin-bottom: .5rem; }
.stat dd {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1;
}
.story-links { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.story-links .visit { border-bottom-color: var(--moss-deep); }
@media (max-width: 760px) {
  .story-cols { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- contact ---------------- */
.contact {
  position: relative;
  background: var(--ink); color: var(--porcelain);
  padding-top: clamp(7rem, 13vw, 12rem);
}
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 82rem;
}
.contact .sect-deck { color: var(--porcelain-60); }
.contact-mail { margin-top: clamp(2rem, 4vw, 3.2rem); }
.contact-mail a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-decoration: none;
  border-bottom: 2px solid var(--moss);
  transition: color .25s ease;
}
.contact-mail a:hover { color: var(--moss); }
.contact-loc { margin-top: 1.2rem; opacity: .55; }
.contact-form { display: grid; gap: 1.6rem; align-content: start; }
.hp-field { position: absolute; left: -9999px; }
.ff { display: grid; gap: .55rem; }
.ff label { color: var(--moss); }
.ff input, .ff select, .ff textarea {
  appearance: none; background: transparent;
  border: 0; border-bottom: 1.5px solid var(--porcelain-25);
  border-radius: 0;
  color: var(--porcelain); font: inherit; font-size: 1.05rem;
  padding: .55rem .1rem;
  transition: border-color .25s ease;
}
.ff select { cursor: pointer; }
.ff select option { color: var(--ink); background: var(--porcelain); }
.ff textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
.ff input::placeholder, .ff textarea::placeholder { color: var(--porcelain-25); }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-bottom-color: var(--moss); }
.submit {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .7rem;
  appearance: none; cursor: pointer;
  background: var(--moss); color: var(--ink);
  border: 1px solid var(--moss); border-radius: 999px;
  font-family: var(--mono); font-size: .78rem; font-weight: 560;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .95rem 2rem;
  transition: background .25s ease, color .25s ease, transform .3s var(--ease-out);
}
.submit:hover { background: transparent; color: var(--moss); transform: translateY(-2px); }
.form-ok { color: var(--moss); font-size: 1rem; line-height: 1.55; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------------- footer ---------------- */
.site-foot {
  background: var(--ink); color: var(--porcelain);
  padding: 0 var(--gutter) 2.5rem;
}
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 3rem;
  border-top: 1px solid var(--porcelain-12);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 100%;
}
.foot-sig { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; }
.foot-credit { margin-top: 1.3rem; color: var(--porcelain-60); font-size: .92rem; line-height: 1.65; max-width: 28em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-h { color: var(--moss); margin-bottom: 1.1rem; }
.foot-col a {
  display: block; text-decoration: none;
  color: var(--porcelain-60); font-size: .95rem;
  padding: .28rem 0;
  transition: color .2s ease, transform .3s var(--ease-out);
}
.foot-col a:hover { color: var(--porcelain); transform: translateX(4px); }
.foot-fine {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--porcelain-12);
  color: var(--porcelain-60);
}
.foot-fine a { color: inherit; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- long-page perf ---------------- */
.writing, .services, .story, .contact { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ---------------- guide & process shared ---------------- */
.doc { max-width: 52rem; margin: 0 auto; padding: 8.5rem var(--gutter) 5rem; }
.doc-kicker { color: var(--moss-deep); margin-bottom: 1.2rem; }
.doc h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: .98; letter-spacing: -.01em;
  margin-bottom: 1.6rem;
}
.doc .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink-2); max-width: 38em; }
.doc h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  margin: 3.8rem 0 1.1rem;
}
.doc h3 { font-family: var(--serif); font-size: 1.45rem; margin: 2.4rem 0 .7rem; }
.doc p { margin: 1rem 0; line-height: 1.72; color: var(--ink-2); }
.doc ul, .doc ol { margin: 1rem 0 1rem 1.3rem; line-height: 1.7; color: var(--ink-2); }
.doc li { margin: .45rem 0; }
.doc li::marker { color: var(--moss-deep); }
.doc a { text-decoration-color: var(--moss-deep); text-underline-offset: 3px; }
.doc a:hover { color: var(--moss-deep); }
.doc .sec-label { color: var(--moss-deep); margin: 3.6rem 0 -0.4rem; display: block; }
.doc pre {
  background: var(--ink); color: var(--porcelain);
  border-radius: 8px; padding: 1.4rem 1.6rem;
  overflow-x: auto;
  font-family: var(--mono); font-size: .82rem; line-height: 1.65; font-weight: 400;
  margin: 1.4rem 0;
}
.doc code { font-family: var(--mono); font-size: .88em; }
.doc p code, .doc li code { background: var(--under); padding: .1em .4em; border-radius: 4px; }
.doc .callout {
  background: var(--under); border-left: 3px solid var(--moss-deep);
  padding: 1.2rem 1.5rem; border-radius: 0 6px 6px 0;
  margin: 1.6rem 0;
}
.doc .callout p { margin: .3rem 0; }
.doc hr { border: 0; border-top: 1px solid var(--ink-15); margin: 3.5rem 0; }
.doc-foot {
  max-width: 52rem; margin: 0 auto; padding: 0 var(--gutter) 4rem;
  display: flex; flex-wrap: wrap; gap: 2rem;
}
.doc-foot .visit { border-bottom-color: var(--moss-deep); }
.doc .passlog { list-style: none; margin-left: 0; }
.doc .passlog > li { margin: 1.6rem 0; }
.doc .passlog .mono { color: var(--moss-deep); display: block; margin-bottom: .5rem; }
.doc .passlog ul { margin-top: .3rem; }

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  body.js .hero-word { opacity: 1; transform: none; }
  .seam-path { stroke-dashoffset: 0; }
  .row:hover .row-name { transform: none; }
}
