/* "HUMAN ERROR" — limestone & a straight line.
   One family (Archivo), three widths. Grounds mean something:
   stone = the company, ink = the builds, red = how I work, pale = reading.
   Spacing: one 4px-based scale (--s-*). Motion: things draw along the line
   or rise from it; one ease for movement (--ease), one spring in JS. */

@font-face {
  font-family: "Archivo HE";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --stone: #B9B2A6;
  --stone-lo: #A49C8F;
  --stone-hi: #CAC4B9;
  --pale: #DCD7CD;
  --ink: #141210;
  --ink-2: #34302B;
  --on-ink: #E9E4DA;
  --on-ink-2: #B3ACA0;
  --red: #B8381F;
  --red-hi: #CE5233;
  --on-red: #F6EFE6;
  --rule-on-ink: rgba(233, 228, 218, .18);
  --err: #9A2C16; /* errors on the pale sheet: 5.6:1 */

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --pad: clamp(var(--s-5), 3vw, 40px);
  --sec: clamp(var(--s-9), 11vw, 160px);

  /* type scale */
  --t-xs: 13px; --t-s: 15px; --t-m: 18px; --t-l: 24px; --t-xl: 40px;

  --ease: cubic-bezier(.7, 0, .2, 1);       /* drawing, wiping */
  --ease-out: cubic-bezier(.2, .8, .2, 1);  /* rising, settling */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-5); }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: "Archivo HE", "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: 100%;
  font-size: var(--t-m); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Grounds ---------- */
.stone { position: relative; isolation: isolate;
  background: radial-gradient(90% 70% at 18% 8%, var(--stone-hi), transparent 60%), linear-gradient(180deg, var(--stone), var(--stone-lo)); }
.stone::after, .red::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: multiply; background: var(--grain); }
.red { position: relative; isolation: isolate; color: var(--on-red); background: radial-gradient(80% 60% at 80% 0%, var(--red-hi), transparent 60%), var(--red); }
.ink { background: var(--ink); color: var(--on-ink); }

/* ---------- Top bar ---------- */
.top { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: var(--s-5);
  padding: var(--s-5) var(--pad); font-size: var(--t-s); line-height: 1.35; }
.top__name { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.top__id { display: grid; gap: 6px; }
.top__word { font-weight: 800; font-stretch: 125%; letter-spacing: -.03em; font-size: 17px; line-height: 1; white-space: nowrap; }
.top__word .q { color: var(--red); }
.top__sub, .top__r { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; color: var(--ink-2); }
.top__sub { line-height: 1; }
.top__logo { width: 34px; }
.drawer .top__word .q { color: var(--red-hi); }
.drawer .top__sub { color: var(--on-ink-2); }
.top__logo { width: 30px; height: auto; fill: currentColor; flex: none; }
.top__nav { display: flex; gap: var(--s-6); }
.top__nav a { text-decoration: none; padding: var(--s-1) 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.top__nav a:hover, .top__nav a[aria-current] { background-size: 100% 1.5px; }
.top__r { text-align: right; }
.menu-btn { display: none; justify-self: end; align-items: center; gap: var(--s-3); min-height: 44px; margin: -10px 0;
  padding: 0; border: 0; background: none; font-weight: 600; font-size: var(--t-m); text-decoration: none; cursor: pointer; }
.menu-btn i { position: relative; width: 22px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; height: 2px; background: currentColor; }
.menu-btn i::before { top: 0; width: 22px; }
.menu-btn i::after { bottom: 0; width: 15px; left: 7px; }   /* the second bar doesn't line up either */

/* ---------- Drawer (phone menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--pad) max(var(--s-6), env(safe-area-inset-bottom));
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--ease), visibility 0s linear .5s; }
.drawer:focus { outline: none; }
.drawer:target, .drawer.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease), visibility 0s; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) 0; font-size: var(--t-s); line-height: 1.35; }
.drawer__top .top__logo { fill: var(--on-ink); }
.drawer__close { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0; border: 0; background: none; color: var(--on-ink); font-weight: 600; font-size: var(--t-m); cursor: pointer; text-decoration: none; }
.drawer__close i { position: relative; width: 18px; height: 18px; }
.drawer__close i::before, .drawer__close i::after { content: ""; position: absolute; left: -2px; top: 8px; width: 22px; height: 2px; background: currentColor; transform: rotate(45deg); }
.drawer__close i::after { transform: rotate(-45deg); }
.drawer__list { list-style: none; margin: var(--s-8) 0 0; padding: 0; }
.drawer__list li { --i: 0; }
.drawer__list a { display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0 var(--s-3); text-decoration: none; }
.drawer__list small { width: 2.2em; font-size: var(--t-xs); color: var(--on-ink-2); font-variant-numeric: tabular-nums; }
.drawer__list span { font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; font-size: clamp(34px, 10.5vw, 56px); }
.drawer__list a:active span { color: var(--red-hi); }
.drawer__list em { display: block; margin-top: var(--s-2); max-width: 30ch; font-style: normal; font-weight: 500; font-stretch: 100%; letter-spacing: 0; line-height: 1.35; font-size: var(--t-s); color: var(--on-ink-2); }
.build--2 { scroll-margin-top: var(--s-8); }
.drawer__list .line { opacity: .3; }
.drawer__foot { margin-top: auto; padding-top: var(--s-8); display: grid; gap: var(--s-1); font-size: var(--t-s); color: var(--on-ink-2); }
.drawer__foot a { color: var(--on-ink); font-size: var(--t-l); font-weight: 600; text-decoration: none; }
/* stagger: items rise as the panel wipes down */
.drawer__list li, .drawer__foot { opacity: 0; transform: translateY(24px); transition: opacity .2s, transform .2s; }
.drawer__list .line { transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.drawer:target li, .drawer:target .drawer__foot,
.drawer.is-open li, .drawer.is-open .drawer__foot { opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out) calc(.18s + var(--i) * .055s), transform .6s var(--ease-out) calc(.18s + var(--i) * .055s); }
.drawer:target .line, .drawer.is-open .line { transform: scaleX(1); transition: transform .8s var(--ease) calc(.28s + var(--i) * .055s); }

/* ---------- The line (signature) ---------- */
.line { display: block; height: 2px; background: currentColor; transform-origin: left center; }
.anim .line[data-draw] { transform: scaleX(0); }
.anim .line[data-draw].is-in { transform: scaleX(1); transition: transform 1.4s var(--ease); }
.hero .line { animation: draw 1.8s .2s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* rise from the line: content sits in a clip, slides up out of it */
.rise { display: block; overflow: hidden; }
.rise > * { display: block; }
.anim .rise[data-rise] > * { transform: translateY(102%); }
.anim .rise[data-rise].is-in > * { transform: none; transition: transform 1.1s var(--ease-out); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-3) var(--s-5);
  background: var(--ink); color: var(--stone-hi); font-weight: 600; font-size: var(--t-s); text-decoration: none;
  transition: transform .15s var(--ease-out); }
.btn span { transition: transform .25s var(--ease-out); }
.btn:hover span { transform: translateX(var(--s-1)); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--on-ink); color: var(--ink); }
.btn:focus-visible { outline-color: var(--ink); }
.ink .btn:focus-visible { outline-color: var(--on-ink); }

/* ---------- Hero ---------- */
.hero { min-height: max(600px, 100svh); display: grid; grid-template-rows: auto 1fr auto auto auto; overflow: hidden; }
.hero__top { display: flex; justify-content: flex-end; align-items: flex-end; padding: var(--s-6) var(--pad) var(--s-7); min-height: 0; }

.word { margin: 0; padding: 0 var(--pad); font-weight: 800; font-stretch: 125%; letter-spacing: -.045em; line-height: .74;
  font-size: 8.9vw; white-space: nowrap; }
.word .rise { padding-top: .06em; }                         /* room for the quote marks inside the clip */
.word .rise > span { padding-bottom: .055em; }              /* a hair of stone between the letters and the line */
.word .q { color: var(--red); }
.hero .word .rise > span { animation: riseIn 1.15s .95s var(--ease-out) both; }
@keyframes riseIn { from { transform: translateY(102%); } to { transform: none; } }

.hero__below { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: end;
  padding: var(--s-6) var(--pad) var(--s-7); }
.verse { grid-column: 1 / span 7; margin: 0; }
.verse blockquote { margin: 0; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; max-width: 22ch; }
.verse figcaption { margin-top: var(--s-3); font-size: var(--t-s); color: var(--ink-2); }
.state { grid-column: 9 / span 4; justify-self: end; text-align: right; align-self: start; }
.num { font-stretch: 62%; font-weight: 800; letter-spacing: -.01em; line-height: .88; font-variant-numeric: tabular-nums; }
.state .num { font-size: clamp(56px, 5.6vw, 88px); }
.state p:not(.num) { margin-top: var(--s-3); font-size: var(--t-s); line-height: 1.45; }
.state .btn { margin-top: var(--s-5); }
.hero .verse, .hero .state { animation: fadeUp .9s 1.5s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- The mark: "Loose frame" ---------- */
.frame { margin: 0; display: grid; justify-items: end; gap: var(--s-4); }
.frame figcaption { display: grid; gap: 2px; justify-items: end; text-align: right; font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; line-height: 1.4; }
.frame figcaption span:first-child { color: var(--ink-2); }
.frame__mark { display: block; padding: 0; margin: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  width: clamp(140px, 15vw, 220px); outline: 1px solid transparent; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.frame__mark svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
.frame__mark:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.frame__body { transform-origin: 50% 50%; transition: transform .25s var(--ease-out); transform-box: fill-box; }
.frame__mark.is-held .frame__body { transform: scale(.965); }

/* ---------- Section frame ---------- */
.sec { position: relative; padding: var(--sec) var(--pad); }
.label { font-size: var(--t-s); display: flex; justify-content: space-between; gap: var(--s-5); padding-bottom: var(--s-4); }
.ink .label { color: var(--on-ink-2); }
.display { margin: 0; font-weight: 700; font-stretch: 100%; letter-spacing: -.035em; line-height: .96; font-size: clamp(44px, 6.4vw, 104px); }

/* ---------- Builds ---------- */
.builds .display { max-width: 18ch; margin: var(--s-7) 0 var(--s-9); }
.builds .display span { color: var(--on-ink-2); }
.build { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-6); align-items: end; padding: var(--s-6) 0 var(--s-6); }
.build__n { font-size: clamp(120px, 21vw, 320px); }
.build__body { max-width: 460px; padding-bottom: var(--s-4); }
.build__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-3); }
.build h3 { margin: 0; font-size: var(--t-xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.status { font-size: var(--t-s); color: var(--on-ink-2); white-space: nowrap; }
.build p { color: var(--on-ink-2); }
.build__mark { position: absolute; left: clamp(150px, 26vw, 400px); top: 8%; width: clamp(72px, 9vw, 132px); height: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.build--2 .build__n { color: #5C564E; }
.build--3 .build__n { color: transparent; -webkit-text-stroke: 1.5px #6E675E; }
.builds .line.dim { opacity: .25; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); margin-right: var(--s-2); vertical-align: 1px; animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Fields ---------- */
.fields .label { padding-bottom: var(--s-8); }
.field + .field { margin-top: var(--s-7); }
.field__row { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); padding-bottom: var(--s-3); }
.field h3 { margin: 0; font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; line-height: .95; font-size: clamp(36px, 6vw, 96px); }
.field .status { color: var(--ink-2); font-size: var(--t-m); padding-bottom: .4em; }
.field .rise { padding: .08em 0 .04em; }
.fields__note { max-width: 34em; margin-top: var(--s-4); }

/* ---------- How I work ---------- */
.work .display { max-width: 15ch; margin: var(--s-7) 0 var(--s-9); font-size: clamp(44px, 7vw, 120px); }
.work__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.prose { grid-column: 1 / span 6; display: grid; gap: 1.1em; font-size: var(--t-m); max-width: 36em; }
.work .closer { grid-column: 8 / span 5; align-self: end; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; padding: var(--sec) var(--pad) 0; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.foot__lead { grid-column: 1 / span 7; }
.foot__lead .display { font-size: clamp(40px, 5vw, 80px); max-width: 13ch; }
.foot__lead .btn { margin-top: var(--s-6); }
.foot__side { grid-column: 9 / span 4; display: grid; gap: var(--s-6); align-content: end; font-size: var(--t-s); }
.foot__side h2 { margin: 0 0 var(--s-2); font-size: var(--t-s); font-weight: 400; color: var(--on-ink-2); }
.foot__side a { display: block; text-decoration: none; }
.foot__side a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.foot__side strong { display: block; font-size: var(--t-l); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.foot__bottom { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-9); padding: var(--s-4) 0; font-size: var(--t-xs); color: var(--on-ink-2); border-top: 1px solid var(--rule-on-ink); }
.foot .word { padding: 0; margin-top: var(--s-2); color: #2A2622; transform: translateY(.14em); }
.foot .word .q { color: var(--red); }

/* ---------- Contact form (Human Touch footer) ----------
   The form is a pale sheet laid on the ink, a little off square, like the
   mark. It squares up once you start writing. Fields are a label and a
   hairline; focus draws the line across, an error draws it in red. */
.foot__grid:has(.ask-sheet) { grid-template-areas: "lead lead lead lead lead . sheet sheet sheet sheet sheet sheet" "side side side side side . sheet sheet sheet sheet sheet sheet"; grid-template-rows: auto 1fr; }
.foot__grid:has(.ask-sheet) .foot__lead { grid-area: lead; }
.foot__grid:has(.ask-sheet) .foot__side { grid-area: side; align-content: start; margin-top: var(--s-8); }
.ask__lede { margin-top: var(--s-5); max-width: 26em; color: var(--on-ink-2); }

/* The paper is drawn by ::before so its shape can be the mark's: three
   square sides and a right edge out of line. The shadow follows the shape. */
.ask-sheet { grid-area: sheet; position: relative; isolation: isolate; align-self: start; padding: var(--s-6) var(--s-8) var(--s-7) var(--s-7); color: var(--ink);
  filter: drop-shadow(0 36px 40px rgba(0, 0, 0, .55)) drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.ask-sheet::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(220, 215, 205, .55), rgba(220, 215, 205, .55)), var(--grain), var(--pale);
  background-blend-mode: normal, multiply, normal;
  clip-path: polygon(0 0, 100% 14px, calc(100% - 18px) 100%, 0 100%);
  transition: clip-path .9s var(--ease-out); }
.ask-sheet:focus-within::before, .ask-sheet.is-sent::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.ask-sheet__top { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--ink); font-size: var(--t-xs); letter-spacing: .02em; color: var(--ink-2); }
.ask-sheet__top i { display: inline-block; width: 8px; height: 8px; margin-right: var(--s-2); background: var(--red); vertical-align: 1px; }

.ask { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-5); }
.ask__f { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; margin: 0; padding: 0; border: 0; }
.ask__f--wide, .ask__send { grid-column: 1 / -1; }
.ask label, .ask legend { padding: 0; font-size: var(--t-xs); letter-spacing: .02em; color: var(--ink-2); }
.ask small { margin-left: var(--s-2); font-size: var(--t-xs); color: #5E574E; }
.ask__hint { font-size: var(--t-xs); color: #5E574E; }
.ask__in { position: relative; display: block; }
.ask__in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease); }
.ask__in:focus-within::after { transform: scaleX(1); }
.ask__f.is-bad .ask__in::after { transform: scaleX(1); background: var(--ink); }
.ask input:not([type=radio]), .ask textarea { appearance: none; display: block; width: 100%; margin: 0; padding: var(--s-2) 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(20, 18, 16, .3); border-radius: 0; color: var(--ink);
  font: inherit; font-size: 28px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; outline: none; }
.ask textarea { min-height: 112px; resize: none; overflow: hidden; font-size: var(--t-m); font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.ask input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--pale) inset; }
.ask__err { font-size: var(--t-xs); font-weight: 600; color: var(--err); }
.ask__err:empty { display: none; }

.ask__pick legend { margin-bottom: var(--s-2); }
.ask__opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ask__opts label { position: relative; cursor: pointer; }
.ask__opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ask__opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid rgba(20, 18, 16, .3);
  color: var(--ink); font-size: var(--t-s); font-weight: 600; transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s; }
.ask__opts label:hover span { border-color: var(--ink); }
.ask__opts input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ask__opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.ask__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }
.ask__send .btn { border: 0; font: inherit; font-size: var(--t-s); font-weight: 600; cursor: pointer; }
.ask__send .btn b { font-weight: inherit; }
.ask__send .btn[aria-busy=true] { opacity: .7; cursor: progress; }
.ask__status { font-size: var(--t-s); color: var(--ink-2); }
.ask__status.is-bad { color: var(--err); font-weight: 600; }
.ask__status a, .ask-done a { color: var(--ink); }
.ask__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ask-done { outline: none; }
.ask[hidden], .ask-done[hidden] { display: none; }
.ask-done .line { display: block; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .35s; }
.ask-sheet.is-sent .ask-done .line { transform: scaleX(1); }
.ask-done__h { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin-bottom: var(--s-4); }
.ask-done p:not(.ask-done__h) { max-width: 30em; color: var(--ink-2); }

@media (max-width: 860px) {
  .foot__grid:has(.ask-sheet) { grid-template-areas: "lead" "sheet" "side"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .ask-sheet { margin-top: var(--s-6); padding: var(--s-5) var(--s-6) var(--s-6) var(--s-5); }
  .ask-sheet::before { clip-path: polygon(0 0, 100% 8px, calc(100% - 10px) 100%, 0 100%); }
  .ask input:not([type=radio]) { font-size: var(--t-l); }
  .ask__opts span { padding: 0 var(--s-3); }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .ask__send .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .ask-sheet::before, .ask__in::after, .ask-done .line { transition: none; } }
@media (forced-colors: active) {
  .ask-sheet { border: 1px solid CanvasText; filter: none; }
  .ask-sheet::before { clip-path: none; }
  .ask input:not([type=radio]), .ask textarea, .ask__opts span { border-color: CanvasText; }
  .ask__in::after { background: Highlight; }
  .ask__opts input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* ---------- Archive ---------- */
.page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.page-head { padding: var(--s-9) var(--pad) var(--s-8); }
.back { font-size: var(--t-s); text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-head .display { margin-top: var(--s-6); max-width: 14ch; }
.page-head .lede { margin-top: var(--s-6); max-width: 36em; }
.page-head .btn { margin-top: var(--s-6); }
.issues { padding: 0 var(--pad) var(--sec); }
.issue-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: var(--s-5); align-items: end; padding: var(--s-5) 0 var(--s-4); text-decoration: none; }
.issue-row .num { font-size: clamp(56px, 7vw, 104px); }
.issue-row strong { font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.issue-row span:last-child { transition: transform .25s var(--ease-out); font-size: var(--t-l); }
.issue-row:hover span:last-child { transform: translateX(6px); }
.issue-row:hover strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.issues .line.dim { opacity: .3; }

.article { background: var(--pale); padding: var(--s-9) var(--pad) var(--sec); }
.article__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.article .prose { grid-column: 1 / span 7; max-width: 33em; }
.article .prose h2 { margin: 1.4em 0 0; font-size: var(--t-l); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.article .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: .7em; }
.takeaways { grid-column: 9 / span 4; align-self: start; position: sticky; top: var(--s-5); padding: var(--s-6); }
.takeaways.red { background: var(--red); }
.takeaways h2 { margin: 0 0 var(--s-4); font-size: var(--t-s); font-weight: 700; }
.takeaways ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-4); font-size: var(--t-s); line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: var(--t-s); color: var(--ink-2); }

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top > .top__nav, .top__r { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { min-height: max(560px, 100svh); }
  .hero__top { padding: var(--s-5) var(--pad) var(--s-6); }
  .frame { grid-template-columns: auto auto; align-items: end; gap: var(--s-4); }
  .frame figcaption { order: -1; }
  .frame__mark { width: clamp(96px, 28vw, 128px); }
  .frame__name { display: none; }
  .word { font-size: 17.5vw; white-space: normal; line-height: .8; }

  .hero__below { grid-template-columns: 1fr; gap: var(--s-7); padding: var(--s-6) var(--pad) var(--s-7); }
  .state { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; }
  .verse { grid-column: 1; }
  .verse blockquote { font-size: clamp(24px, 6.4vw, 30px); }

  .builds .display { margin: var(--s-6) 0 var(--s-8); }
  .build { grid-template-columns: 1fr; gap: var(--s-2); padding-bottom: var(--s-7); }
  .build__n { font-size: 44vw; }
  .build__mark { left: auto; right: 0; top: var(--s-5); width: 84px; }
  .field__row { flex-direction: column; align-items: start; gap: var(--s-2); }
  .field .status { padding: 0; }
  .work .display { margin: var(--s-6) 0 var(--s-8); }
  .prose, .work .closer, .foot__lead, .foot__side, .article .prose, .takeaways { grid-column: 1 / -1; }
  .work .closer { margin-top: var(--s-6); }
  .foot__side { margin-top: var(--s-7); }
  .takeaways { position: static; margin-top: var(--s-7); }
  .issue-row { grid-template-columns: auto 1fr; }
  .issue-row span:nth-child(3), .issue-row span:last-child { display: none; }
  .foot__bottom { flex-direction: column; }
  .label span + span { display: none; }
}
@media (min-width: 861px) { .drawer { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .line, .hero .word .rise > span, .hero .verse, .hero .state { animation: none; }
  .anim .line[data-draw], .anim .rise[data-rise] > * { transform: none; }
  .drawer, .drawer.is-open, .drawer:target { clip-path: none; transition: opacity .2s, visibility 0s linear .2s; opacity: 0; }
  .drawer.is-open, .drawer:target { opacity: 1; transition: opacity .2s, visibility 0s; }
  .drawer__list li, .drawer__foot, .drawer__list .line { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}
@media (forced-colors: active) {
  .line { background: CanvasText; }
  .btn { border: 1px solid ButtonText; }
  .build--3 .build__n { -webkit-text-stroke: 1.5px CanvasText; }
  .frame__mark, .top__logo { fill: CanvasText; color: CanvasText; }
  .menu-btn i::before, .menu-btn i::after, .drawer__close i::before, .drawer__close i::after { background: ButtonText; }
}

/* ---------- Profile card (ported from the "Profile card" component;
   motion and timing unchanged, colours/font/corners from this site) ---------- */
.mind { grid-column: 8 / span 5; margin-top: var(--s-8); }
.mind__label { font-size: var(--t-s); padding-bottom: var(--s-4); }
.pfc {
  --pfc-ink: var(--ink);
  --pfc-soft: #5F5850;
  --pfc-surface: var(--pale);
  --pfc-spring: cubic-bezier(.3,1.32,.5,1);
  position: relative; width: 292px; height: 236px; max-width: 100%;
  font-family: inherit; color: var(--pfc-ink); -webkit-font-smoothing: antialiased;
}
.pfc-body {
  position: absolute; left: 0; top: 94px; width: 176px; height: 48px;
  border-radius: 0; overflow: hidden; isolation: isolate; background: var(--pfc-surface);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.05);
  transition: left 260ms cubic-bezier(.5,0,.3,1), top 260ms cubic-bezier(.5,0,.3,1), width 260ms cubic-bezier(.5,0,.3,1), height 260ms cubic-bezier(.5,0,.3,1), border-radius 260ms ease, box-shadow 260ms ease;
}
.pfc[data-open="true"] .pfc-body {
  left: 0; top: 0; width: 292px; height: 236px; border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 36px -18px rgba(0,0,0,.45);
  transition: left 520ms var(--pfc-spring), top 520ms var(--pfc-spring), width 520ms var(--pfc-spring), height 520ms var(--pfc-spring), border-radius 400ms ease, box-shadow 400ms ease;
}
.pfc-trigger { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pfc-trigger:focus-visible { outline: 2px solid var(--pfc-ink); outline-offset: -3px; }
.pfc[data-open="true"] .pfc-trigger { cursor: default; }
.pfc-cover {
  position: absolute; left: 0; top: 0; width: 292px; height: 74px;
  background-color: var(--pfc-cover);
  background-image: repeating-radial-gradient(circle at 84% 135%, transparent 0 15px, rgba(233,228,218,.13) 15px 16.2px);
  transform: translateY(-102%); transition: transform 200ms cubic-bezier(.5,0,.8,.5);
}
.pfc[data-open="true"] .pfc-cover { transform: none; transition: transform 460ms cubic-bezier(.25,1.2,.45,1) 40ms; }
.pfc-face {
  position: absolute; left: 18px; top: 42px; width: 60px; height: 60px; overflow: hidden; pointer-events: none;
  background: var(--ink); box-shadow: 0 0 0 0 var(--pfc-surface);
  transform-origin: 0 0; transform: translate(-12px, -36px) scale(.6);
  transition: transform 260ms cubic-bezier(.5,0,.3,1), box-shadow 200ms ease;
}
.pfc-face img { display: block; width: 60px; height: 60px; object-fit: cover; }
.pfc[data-open="true"] .pfc-face { transform: none; box-shadow: 0 0 0 3.5px var(--pfc-surface); transition: transform 560ms var(--pfc-spring), box-shadow 300ms ease 120ms; }
.pfc-handle {
  position: absolute; left: 18px; top: 131px; pointer-events: none;
  font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; color: var(--pfc-ink);
  transform-origin: 0 50%; transform: translate(32px, -116px) scale(1.115);
  transition: transform 260ms cubic-bezier(.5,0,.3,1), color 200ms ease;
}
.pfc[data-open="true"] .pfc-handle { transform: none; color: var(--pfc-soft); transition: transform 540ms var(--pfc-spring) 20ms, color 300ms ease; }
.pfc-more { position: absolute; left: 0; top: 0; width: 292px; height: 236px; pointer-events: none; }
.pfc[data-open="true"] .pfc-more { pointer-events: auto; }
.pfc-name, .pfc-bio, .pfc-stats, .pfc-follow { position: absolute; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity 120ms ease, transform 120ms ease; }
.pfc[data-open="true"] :is(.pfc-name, .pfc-bio, .pfc-stats, .pfc-follow) { opacity: 1; transform: none; transition: opacity 260ms ease var(--d), transform 480ms var(--pfc-spring) var(--d); }
.pfc-name { --d: 110ms; left: 18px; top: 110px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 20px; white-space: nowrap; }
.pfc-bio { --d: 170ms; left: 18px; right: 18px; top: 155px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.pfc-stats { --d: 230ms; left: 18px; top: 200px; display: flex; align-items: center; font-size: 12.5px; line-height: 18px; color: var(--pfc-soft); white-space: nowrap; }
.pfc-stats b { font-weight: 600; color: var(--pfc-ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.pfc-stats i { width: 3px; height: 3px; border-radius: 50%; background: #9A9389; margin: 0 8px; }
.pfc-follow {
  --d: 150ms; z-index: 2; right: 16px; top: 84px; height: 34px; padding: 0 16px; border: 0; border-radius: 0;
  display: inline-flex; align-items: center; gap: 5px; background: var(--pfc-ink); color: var(--on-ink); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.pfc-follow svg { display: none; }
.pfc-follow[data-on="true"] { background: var(--pfc-surface); color: var(--pfc-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); padding: 0 14px 0 11px; }
.pfc-follow[data-on="true"] svg { display: block; }
.pfc[data-open="true"] .pfc-follow[data-on="true"] { animation: pfc-squash 480ms var(--pfc-spring); }
.pfc[data-open="true"] .pfc-follow:active { transform: scale(.95); transition: transform 80ms ease; }
.pfc-follow:focus-visible { outline: 2px solid var(--pfc-ink); outline-offset: 2px; }
@keyframes pfc-squash { 0% { transform: scale(.82, 1.1); } 45% { transform: scale(1.08, .94); } 100% { transform: none; } }
.pfc-check { stroke-dasharray: 22; stroke-dashoffset: 22; }
.pfc-follow[data-on="true"] .pfc-check { animation: pfc-draw 300ms ease-out 140ms forwards; }
@keyframes pfc-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pfc *, .pfc[data-open="true"] * { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
  .pfc-check { stroke-dashoffset: 0; }
}
@media (forced-colors: active) { .pfc-body { border: 1px solid CanvasText; } }
@media (max-width: 860px) { .mind { grid-column: 1 / -1; margin-top: var(--s-7); } }

/* ---------- Dot field (ported from the "Dot field" component; motion and
   timing unchanged; ink panel, stone dots, the loose side in red) ---------- */
.field { margin: 0; display: grid; justify-items: end; gap: var(--s-4); }
.field figcaption { display: grid; gap: 2px; justify-items: end; text-align: right; font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; line-height: 1.4; }
.field figcaption > span:first-child { color: var(--ink-2); }
.df {
  --ground: var(--ink);
  --tone: var(--stone-hi);
  position: relative;
  height: clamp(240px, 36svh, 380px);
  aspect-ratio: 4 / 3;
  max-width: calc(100vw - 2 * var(--pad));
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.035), transparent 60%), var(--ground);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 24px 48px -28px rgba(0,0,0,.7);
  overflow: hidden; touch-action: pan-y; cursor: crosshair; outline: none;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.df:focus-visible { box-shadow: 0 0 0 2px var(--stone), 0 0 0 4px var(--ink), inset 0 0 0 1px rgba(255,255,255,.07); }
.df-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.df::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 50%, transparent 55%, color-mix(in srgb, var(--ground) 85%, transparent)); }
.df-still { position: absolute; left: 50%; top: 50%; height: 62%; width: auto; transform: translate(-50%, -50%); fill: var(--stone-hi); }
.df-still__err { fill: var(--red-hi); }
.df.is-live .df-still { display: none; }
@media (max-width: 860px) {
  .field { justify-items: stretch; width: 100%; }
  .field figcaption { justify-items: start; text-align: left; }
  .df { height: auto; width: 100%; aspect-ratio: 16 / 9; }
}
@media (forced-colors: active) { .df { border: 1px solid CanvasText; } }

/* ---------- Human Touch (its own page) ----------
   N° 002 gets the issue-page head, then ink for what it builds and the work,
   red for how it works. Same parts as the rest of the site. */
.ht-head .num { font-size: clamp(64px, 8vw, 120px); margin-top: var(--s-6); }
.ht-head .display { margin-top: var(--s-3); }
.ht-status { margin-top: var(--s-5); font-size: var(--t-s); color: var(--ink-2); }
.ht-head + .line { animation: draw 1.8s .2s var(--ease) both; }

.ht .display { max-width: 15ch; margin: var(--s-7) 0 var(--s-9); }
.ht .line.dim { opacity: .25; }

.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-5); align-items: baseline; padding: var(--s-6) 0 var(--s-5); }
.offer h3 { margin: 0; font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; line-height: .95; font-size: clamp(30px, 3.8vw, 60px); }
.offer .rise { padding: .08em 0 .04em; }
.offer p { color: var(--on-ink-2); max-width: 34em; }

.ht-work-label { margin-top: var(--s-10); }
.ht-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-7); }
.shot { display: block; text-decoration: none; }
.shot__frame { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 30px 60px -30px rgba(0,0,0,.8); }
.shot__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .9s var(--ease-out); }
.shot:hover img { transform: scale(1.03); }
/* the real site, running, laid over its screenshot (js/live-work.js) */
.shot__frame[data-live] { position: relative; }
.shot__live { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0;
  opacity: 0; transition: opacity .6s var(--ease-out); pointer-events: none; }
.shot__live.is-live { opacity: 1; }
.shot__live iframe { display: block; width: 1440px; height: 900px; border: 0; background: transparent; pointer-events: none; }
.shot__cap { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-top: var(--s-4); }
.shot__cap strong { font-size: var(--t-l); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.shot__cap span { font-size: var(--t-s); color: var(--on-ink-2); white-space: nowrap; }
.shot:hover .shot__cap strong { text-decoration: underline; text-underline-offset: 4px; }
.shot p { margin-top: var(--s-2); max-width: 34em; font-size: var(--t-s); color: var(--on-ink-2); }
.shot:focus-visible { outline-color: var(--on-ink); outline-offset: 8px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
.steps li { display: grid; gap: var(--s-3); align-content: start; }
.steps .line { opacity: .4; margin-bottom: var(--s-3); }
.steps .num { font-size: clamp(56px, 6vw, 96px); }
.steps h3 { margin: var(--s-2) 0 0; font-size: var(--t-l); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.steps p:not(.num) { font-size: var(--t-s); line-height: 1.5; max-width: 30ch; }

.ht-quote { margin: var(--s-10) 0 0; max-width: 34ch; }
.ht-quote blockquote { margin: 0; font-size: clamp(26px, 3vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.ht-quote figcaption { margin-top: var(--s-4); font-size: var(--t-s); }
.ht-quote a { text-underline-offset: 4px; }
.red :focus-visible { outline-color: var(--on-red); }

@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; gap: var(--s-2); }
  .ht-work { grid-template-columns: 1fr; gap: var(--s-8); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ht-work-label { margin-top: var(--s-9); }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .ht-head + .line { animation: none; }
  .shot__frame img { transition: none; }
  .shot:hover img { transform: none; }
}
.build__link { display: inline-flex; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--t-s); font-weight: 600; color: var(--on-ink); text-decoration: none; }
.build__link span { transition: transform .25s var(--ease-out); }
.build__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.build__link:hover span { transform: translateX(var(--s-1)); }

/* Directions: reference designs a client can start from. On stone, set
   apart from the Work section so they never read as client work.
   Every rule targets the card's own children only (>): the live designs
   render inside the frame and must not inherit any of this. */
.dirs .display { max-width: 15ch; margin: var(--s-7) 0 var(--s-6); }
.dirs__note { max-width: 38em; color: var(--ink-2); }
.dirs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); margin-top: var(--s-9); }
.dir { margin: 0; }
.dir__frame { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--stone-lo);
  box-shadow: inset 0 0 0 1px rgba(20,18,16,.12), 0 30px 60px -32px rgba(20,18,16,.6); }
.dir__frame > img { width: 100%; height: 100%; object-fit: cover; }
.dir > figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-top: var(--s-4); }
.dir > figcaption > strong { font-size: var(--t-l); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.dir > figcaption > span { font-size: var(--t-s); color: var(--ink-2); white-space: nowrap; }
.dir > p { margin-top: var(--s-2); max-width: 34em; font-size: var(--t-s); color: var(--ink-2); }
@media (max-width: 860px) {
  .dirs__grid { grid-template-columns: 1fr; gap: var(--s-8); margin-top: var(--s-8); }
}
