/* SLANT · part 9 · the inner pages (About, Blog, posts, waiting list, 404, Terms, Privacy).
   Signed direction: B · Docket (parts/p9/directions/b). Loaded after kit.css; only inner-page components live here.
   Black for the stages (every page top, the definition, the waiting list, the 404); bone for anything read for more
   than a minute (mission, team, blog, posts, legal), rising on the 8° edge. The site header is fixed and clear at the
   top, so every page opens on black and the bone floor rises under it.
   Signatures: About, the real side cut-out stands across the 8° edge and slides 12 % along its drawbar as the section
   enters (--p, set by inner.js, transform only). Waiting list, the form card is wiped by a graphite curtain on the slant
   and the confirmation lands with his numbers.
   Contrast: goldenrod is 2.8:1 on bone, so on bone it is used for rules only; numbers and small labels there are ink. */

/* ---------- shared ---------- */
/* footer.css paints a graphite strip (the band's under-slant) up to 202 px above the footer and only lifts main over it
   when its reveal is on; with no band (waiting list, 404, legal), reduced motion or no JS it would cover main's last lines. */
main.inner { position: relative; z-index: 1; }
/* without JS nothing would ever draw the kit's entry curtains back, so they are not drawn at all */
html:not(.js) .wipe-curtain { display: none; }

/* ---------- black page top + bone floor ---------- */
.page-top { position: relative; background: var(--black); padding-top: calc(var(--nav-h) + var(--sec) * .5); padding-bottom: calc(var(--edge) + var(--sec) * .45); }
.page-head { display: grid; gap: var(--s4); justify-items: start; }
.page-head .display { max-width: 12ch; }
.page-head .lead { max-width: 40ch; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); color: var(--ink-2); font-family: var(--mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; }
.floor { padding-bottom: var(--sec); }
.floor.edge-top { padding-top: calc(var(--edge) + var(--sec) * .55); }
/* footer.css pads main's last child above the band; on a post that is the article, so the bone floor takes it instead */
main.inner:has(+ .band) > article:last-child { padding-bottom: 0; }
main.inner:has(+ .band) > article:last-child > .floor { padding-bottom: calc(var(--edge) + var(--sec) * .5); }
.surface-bone .eyebrow { color: var(--ink-soft); }
.surface-bone .link::after { background: var(--line-2); }
.frame picture { height: 100%; }
.link .arrow--back { transform: scaleX(-1); }
.link:hover .arrow--back { transform: scaleX(-1) translateX(4px); }

/* ---------- 01 About · the definition stage and the crossing (signature) ---------- */
/* --cw: the cut-out's width; --ch: its height (800 × 459). 62 % of it stands above the 8° edge, 38 % below.
   The stage's bottom padding and the floor's top padding are computed from it, so nothing is ever under the unit.
   Phones and tablets: the cut-out is wider than the window, the unit on the left and the drawbar running off the right. */
.about { --cw: min(calc(100vw - 2 * var(--gutter)), 980px); --ch: calc(var(--cw) * .574); }
@media (max-width: 1023px) { .about { --cw: 136vw; } }
.about { overflow-x: clip; }                         /* the drawbar may run past the window's right edge; no sideways scroll */
.def-stage { background: radial-gradient(60% 55% at 78% 92%, #17181C 0%, var(--black) 70%); padding-top: calc(var(--nav-h) + var(--sec) * .5); padding-bottom: calc(var(--ch) * .62 + var(--s12)); }
.def-in { display: grid; gap: var(--s5); }
.def-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 2rem + 13vw, 15rem); line-height: .82; letter-spacing: -.055em; margin-left: -.04em; color: var(--bone); }
.def-gloss { display: grid; gap: var(--s3); max-width: 46ch; }
.def-gloss .mono { color: var(--amber); text-transform: none; letter-spacing: .12em; font-size: .875rem; white-space: nowrap; }
.def-gloss .lead { color: var(--bone); max-width: 40ch; }
@media (min-width: 1024px) { .def-gloss { grid-template-columns: max-content 1fr; align-items: start; column-gap: var(--s8); max-width: 60ch; } .def-gloss .mono { padding-top: .5em; } }

.crossing.cross-b { display: flow-root; overflow-x: clip; }   /* the unit drives off the right edge without widening the page */              /* keeps the floor's -edge margin inside, so the anchor is the stage's bottom */
/* right-aligned to the container, but never so far left that the 12 % slide would cut the unit at the window's edge */
/* 7 Nov (Chris: "doesn't seem to be moving off noticeably"): at rest when the page opens; as you scroll it drives off to the right,
   the way it tows, about half its width over the first two-thirds of a screen (--x 0 -> 1 from inner.js). */
.cross-b .crossing-img { top: 0; width: var(--cw); max-width: none; right: auto; left: max(calc(100% - var(--gutter) - var(--cw)), calc(var(--gutter) + var(--cw) * .12)); transform: translate(calc(var(--x, 0) * 55%), -62%); will-change: transform; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.cross-floor { padding-top: calc(var(--edge) + var(--ch) * .38 + var(--s12)); padding-bottom: var(--sec); }
@media (prefers-reduced-motion: reduce) { .cross-b { --p: 1; --x: 0; } }

/* mission · how · why */
.triad { display: grid; gap: var(--s8); }
.triad > li { display: grid; gap: var(--s3); padding-top: var(--s5); border-top: 2px solid var(--goldenrod); align-content: start; }
.triad .mono { color: var(--ink-2); display: flex; gap: var(--s3); }
.triad .mono b { color: var(--ink); font-weight: 500; }
.triad .h2 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); }
.triad .body { color: var(--ink-2); max-width: 36ch; }
@media (min-width: 900px) { .triad { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); } }

/* team on bone: parallelogram frames on the 8° (tan 8° × 1.25 = 17.6 % of the width) */
.team-sec { padding-top: 0; }
.team-sec .section-head { margin-bottom: var(--s10); }
.team { display: grid; gap: var(--s8) var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person { display: grid; gap: var(--s2); align-content: start; }
.person .frame { aspect-ratio: 4 / 5; margin-bottom: var(--s2); }
.frame--para { clip-path: polygon(17.6% 0, 100% 0, 82.4% 100%, 0 100%); background: var(--bg-2); }
.person .frame img { filter: grayscale(1) contrast(1.05); transition: filter var(--d) var(--ease); }
.person:hover .frame img { filter: none; }
.person .idx { color: var(--ink-2); }
.person .name { font-weight: 700; font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.15; }
.person .role { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .team { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s6) var(--col-gap); } .person .name { font-size: 1.25rem; } }

/* where we are */
.facts { display: grid; margin-top: var(--sec); border-top: 1px solid var(--line); }
.fact { display: grid; gap: var(--s2); padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.fact .mono { color: var(--ink-2); }
.fact p:not(.mono), .fact address { font-style: normal; font-size: var(--fs-lead); font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 0 var(--s8); } }

/* ---------- 02 Blog · the ledger, newest at H1 ---------- */
.ledger { display: grid; border-top: 1px solid var(--line); }
.ledger > li { border-bottom: 1px solid var(--line); }
.ledger a { display: grid; gap: var(--s3) var(--s6); padding: var(--s8) 0; align-items: start; }
.ledger .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.ledger .col { display: grid; gap: var(--s3); }
.ledger .col .mono { color: var(--ink-2); }
.ledger .h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); max-width: 18ch; }
.ledger .h2 { font-size: clamp(1.5rem, 1.05rem + 1.8vw, 2.5rem); max-width: 24ch; }
.ledger .excerpt { color: var(--ink-2); max-width: 56ch; font-size: var(--fs-body); line-height: 1.55; }
.ledger .date { color: var(--ink-2); }
.ledger .more { display: inline-flex; align-items: center; gap: .45em; font-family: var(--mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ledger .more .arrow { width: 14px; height: 14px; transition: transform var(--d) var(--ease); }
.ledger a:hover .h1, .ledger a:hover .h2 { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ledger a:hover .more .arrow { transform: translateX(4px); }
.ledger a:focus-visible { outline-offset: 6px; }
@media (min-width: 900px) { .ledger a { grid-template-columns: 1fr 7fr 2fr 1fr; } .ledger .date { text-align: right; padding-top: .2em; } .ledger .more { justify-self: end; padding-top: .2em; } .ledger .num { padding-top: .04em; } }

/* ---------- posts ---------- */
.post-head { display: grid; gap: var(--s4); justify-items: start; }
.post-head .h1 { max-width: 22ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: var(--s5); }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.7; color: var(--ink); }
.prose h2, .prose h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin-top: var(--s10); text-wrap: balance; }
.prose ul { display: grid; gap: var(--s2); }
.prose p + ul { margin-top: var(--s3); }
.prose li { padding-left: var(--s6); position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 7px; background: var(--goldenrod); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.prose .sign { color: var(--ink-2); font-weight: 500; }
.post-aside { display: grid; gap: var(--s3); align-content: start; }
.post-aside .mono { color: var(--ink-2); }
.post-aside .mono b { color: var(--ink); font-weight: 500; }
.post-foot { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s5) var(--s8); align-items: center; justify-content: space-between; max-width: 66ch; }
@media (max-width: 1023px) { .post-aside { display: none; } }
@media (min-width: 1024px) {
  .post-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--col-gap); }
  .post-grid > .post-head { grid-column: 2; }
  .post-aside { position: sticky; top: calc(var(--nav-h) + var(--s8)); align-self: start; }
}

/* ---------- 03 Waiting list · the payoff ---------- */
.payoff { position: relative; background: radial-gradient(70% 50% at 20% 30%, #1A1A1F 0%, var(--black) 70%); padding-top: calc(var(--nav-h) + var(--sec) * .5); padding-bottom: var(--sec); }
.wl-grid { display: grid; gap: var(--s10); align-items: start; }
.wl-aside { display: grid; gap: var(--s6); }
.wl-aside .display { font-size: clamp(2.75rem, 1.2rem + 6vw, 5.5rem); max-width: 10ch; }
.wl-aside .lead { color: var(--bone); }
.promises { display: grid; gap: var(--s3); }
.promises li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s3); align-items: start; font-weight: 500; }
.promises li::before { content: ""; width: 14px; height: 8px; margin-top: .6em; background: var(--amber); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.wl-aside .stage, .nf .stage { background: transparent; }
.wl-aside .stage { aspect-ratio: 536 / 672; max-width: 420px; }
.wl-aside .stage img { object-position: 50% 50%; }
.visit { display: grid; gap: var(--s2); padding-top: var(--s5); border-top: 1px solid var(--line); }
.visit .mono { color: var(--ink-2); }
.visit address { font-style: normal; font-weight: 500; line-height: 1.5; }
@media (min-width: 1024px) { .wl-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s16); } .wl-aside { position: sticky; top: calc(var(--nav-h) + var(--s8)); } }
@media (max-width: 1023px) { .wl-aside .stage { display: none; } }

.form-card { position: relative; padding: var(--s6); background: var(--graphite); border: 1px solid var(--line); }
@media (min-width: 640px) { .form-card { padding: var(--s8); } }
.form { display: grid; gap: var(--s5); }
.form .row { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .form .row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s2); align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.req { color: var(--amber); margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--black); color: var(--ink); border: 1px solid var(--line-2); border-radius: 0; font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { color-scheme: dark; padding-right: 40px; }
.field select option { color: var(--black); background: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 192, 0, .3); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #FF8A8A; }
.form .error { font-size: var(--fs-small); color: #FF8A8A; font-weight: 600; line-height: 1.4; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--amber); }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.consent .error { grid-column: 1 / -1; }
.consent.is-invalid input { outline: 2px solid #FF8A8A; outline-offset: 2px; }
.form-status { padding: var(--s4) var(--s5); border-left: 3px solid var(--amber); background: var(--black); font-size: var(--fs-small); }
.form-status.is-error { border-left-color: #FF8A8A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; gap: var(--s5); padding-block: var(--s4); }
.form-success:focus { outline: none; }
.form-success { scroll-margin-top: calc(var(--nav-h) + var(--s6)); }
.form-success .h2 { font-size: clamp(1.875rem, 1rem + 3vw, 3.25rem); max-width: 16ch; }
.form-success .stats { margin-top: var(--s2); }
.form-success .stats .stat { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); color: var(--amber); }

/* the swap: a graphite curtain on −8° with an amber leading edge crosses the card (550 ms), the content changes
   under it, the curtain leaves (700 ms). inner.js drives the classes from what contact.js does; contact.js is unchanged. */
.form-card.wipe { overflow: hidden; }
.swap-curtain { z-index: 3; background: var(--graphite); transform: translateX(118%) skewX(calc(-1 * var(--slant))); transition: transform 550ms var(--ease-expo); }
.swap-curtain::before { width: 3px; }
.form-card.is-swapping .swap-curtain { transform: translateX(0) skewX(calc(-1 * var(--slant))); }
.form-card.is-done .swap-curtain { transform: translateX(-130%) skewX(calc(-1 * var(--slant))); transition-duration: 700ms; }
.form-card.no-trans .swap-curtain { transition: none; }
/* until the curtain covers the card, keep the form on show and the confirmation off */
.form-card.is-swapping:not(.is-covered) .form[hidden] { display: grid !important; }
.form-card.is-swapping:not(.is-covered) .form-success { display: none !important; }
@media (prefers-reduced-motion: reduce) { .swap-curtain { display: none; } }

/* FAQ */
.faq-wrap { margin-top: var(--sec); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); font-size: 20px; line-height: 1; flex: none; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: var(--s6); max-width: 62ch; }

/* ---------- 04 Not found: numerals on the slant ---------- */
.nf { position: relative; min-height: 100svh; display: grid; align-content: center; padding-top: calc(var(--nav-h) + var(--sec) * .4); padding-bottom: var(--sec); background: var(--black); overflow: hidden; }
.nf-grid { display: grid; gap: var(--s8); align-items: center; }
.nf-copy { display: grid; gap: var(--s6); justify-items: start; }
.nf .code { display: inline-flex; font-family: var(--font-display); font-size: clamp(7rem, 4rem + 14vw, 16rem); font-weight: 800; letter-spacing: -.06em; line-height: .85; color: var(--amber); font-variant-numeric: tabular-nums; transform: skewX(calc(-1 * var(--slant))); }
.nf .code span { display: inline-block; }
.nf .display { max-width: 12ch; }
.nf .stage { aspect-ratio: 536 / 672; max-height: 64svh; justify-self: end; width: 100%; max-width: 480px; }
@media (min-width: 1024px) { .nf-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s12); } }
@media (max-width: 1023px) { .nf .stage { display: none; } }
@media (max-width: 479px) { .nf .cluster .btn { width: 100%; justify-content: center; } }

/* ---------- 05 Legal: numbered contents, anchored clauses ---------- */
.legal-grid { display: grid; gap: var(--s8); }
.legal-toc { display: grid; align-content: start; border-top: 1px solid var(--line); }
.legal-toc a { display: grid; grid-template-columns: 3ch 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2); }
.legal-toc a b { font-family: var(--mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: .1em; color: var(--ink); padding-top: .2em; }
.legal-toc a:hover { color: var(--ink); }
.legal .prose p, .legal .prose li { font-size: var(--fs-body); }
.legal .prose h3 { scroll-margin-top: calc(var(--nav-h) + var(--s6)); }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--col-gap); } .legal-toc { position: sticky; top: calc(var(--nav-h) + var(--s8)); } }
@media (max-width: 1023px) { .legal-toc { display: none; } }

/* ---------- 10 Nov final round (Tarun) ---------- */
/* what SLANT means: three lines, each starting with "A" */
.def-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.def-lines li { margin: 0; }
/* mission / how / why: bigger and broken up into rows, not three columns of text */
.triad--rows { gap: 0; }
.triad--rows > li { padding: var(--s8) 0; gap: var(--s4); }
.triad--rows .h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); letter-spacing: -.025em; line-height: 1.02; max-width: 16ch; }
.triad--rows .body { font-size: var(--fs-lead); line-height: 1.5; max-width: 44ch; }
@media (min-width: 900px) {
  .triad.triad--rows { grid-template-columns: 1fr; }
  .triad--rows > li { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "mono mono" "h2 body"; column-gap: var(--col-gap); align-items: end; padding: var(--s10) 0; }
  .triad--rows > li > .mono { grid-area: mono; }
  .triad--rows > li > .h2 { grid-area: h2; }
  .triad--rows > li > .body { grid-area: body; }
}
/* team: five portraits on one backdrop (4:5 sources). Details: an overlay on the photo on wide pointer screens; under the name on touch and phones */
@media (min-width: 1200px) { .team { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.person { position: relative; }
.person .bio { display: grid; gap: var(--s2); align-content: end; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.person .bio p { margin: 0; }
.bio-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.bio-link .arrow { width: 14px; height: 14px; }
.bio-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (hover: hover) and (min-width: 768px) {
  .person .bio { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; padding: var(--s4) 21% var(--s4) 12%; clip-path: polygon(17.6% 0, 100% 0, 82.4% 100%, 0 100%); background: linear-gradient(180deg, rgba(11, 11, 13, 0) 22%, rgba(11, 11, 13, .88) 58%); color: var(--bone); opacity: 0; transform: translateY(10px); transition: opacity var(--d) var(--ease), transform var(--d) var(--ease); }
  .person .bio-link { color: var(--amber); }
  .person:hover .bio, .person:focus-within .bio { opacity: 1; transform: none; }
  .person:focus-within .frame img { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .person .bio { transition: none; transform: none; } }
.fact-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
