/* Comp A7: one system for the home page (a7.html) and the case study (a7-case.html). Cindy's handoff of 2026-11-15
   (reference/handoffs/2026-11-15-home-case-unification.md). Both pages load this file after their own styles.
   The frame's numbers (--fl left edge, --fw width, --mod module, --lf one screen pixel) are set by a7-system.js.
   Not published. */

/* ---------- fonts: Inter Tight (name, headings, nav), Geist or TeX Gyre Heros (body: a test), Inconsolata (labels).
   Geist still comes from Google Fonts through system.css; the rest are local files ---------- */
@font-face { font-family: "Inter Tight"; src: url("../../assets/fonts/inter-tight-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../../assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../../assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../../assets/fonts/texgyreheros-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../../assets/fonts/texgyreheros-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../../assets/fonts/texgyreheros-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("../font-test/fonts/inconsolata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("../font-test/fonts/inconsolata-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* (mobile audit P0-1/P0-2, 2026-11-19) nothing decorative may widen the page. On <html>, "clip" is passed to the window
   as "hidden", which still lets a trackpad or scrollTo() slide the page sideways; on <body> it is a real clip. "clip",
   not "hidden", so position: sticky keeps working */
body { overflow-x: clip; }

/* body font test (both pages): Geist (default) or TeX Gyre Heros. Heros has no 500: medium text shows Regular */
html.bf-heros body.sys { --text-font: "TeX Gyre Heros", "Helvetica Neue", Helvetica, sans-serif; }
/* Heros's medium (500: the 04 Subtitle level, and the few medium words) has no file of its own: a second family maps
   500 to Heros Bold (Cindy 2026-11-15, "let me see bold for the 04 level"); the panel can show Regular instead */
@font-face { font-family: "Heros M"; src: url("../../assets/fonts/texgyreheros-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros M"; src: url("../../assets/fonts/texgyreheros-bold.otf") format("opentype"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros M"; src: url("../../assets/fonts/texgyreheros-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
html.bf-heros.hm-bold body.sys { --text-font: "Heros M", "TeX Gyre Heros", "Helvetica Neue", Helvetica, sans-serif; }
/* (Heros sets a hair tighter than Geist: opened up 0.01em, Cindy 2026-11-15. Styles with their own spacing keep it) */
html.bf-heros body.sys { letter-spacing: 0.01em; }

/* ---------- line grays ----------
   Case study: its own light gray, now solid (#DBDAD6 is its 10% black over the paper, so crossings no longer
   darken), at the weight it already had. Home: one screen pixel, the light gray (default) or the earlier #B9B6AE. */
html.a7 { --case-line: #DBDAD6; --home-line: #DBDAD6; }
html.a7.lg-dark { --home-line: #B9B6AE; }

/* ---------- the header: one component, both pages ----------
   Fixed, 44px (4 fine rows), opaque paper. Logo at the page margin; WORK on the frame's left edge, ABOUT two modules
   on, the clock two more; every label one inset (6px) in from its line. The bottom rule shows only while content is
   under the band (the pages set html.sh-ruled) */
.sh { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--hd, 44px); background: var(--paper, #F3F2EE); view-transition-name: site-header;
  /* (the nav in global style 05, Body: the text font, Geist or Heros with the body test, 14px regular; in capitals, +0.02em as
     in A6. Was Inter Tight, per the handoff; Cindy 2026-11-15) */
  font: 400 calc(14px + var(--tx-bump, 0px))/1 var(--text-font, "Geist", "Inter", sans-serif); text-transform: uppercase; letter-spacing: .02em; color: #111; }
.sh :is(.sh-logo, .sh-nav a, .sh-clock) { position: absolute; top: 0; height: var(--hd, 44px); display: flex; align-items: center; margin: 0; white-space: nowrap; }
.sh .sh-logo { left: calc(max(var(--px0, 16px), 0px) + 6px); gap: 2px; color: #111; text-decoration: none; }
.sh .sh-logo svg { display: block; width: 19px; height: 19px; }
.sh .sh-nav a { color: #111; text-decoration: none; transition: color 150ms ease-out; }
.sh .sh-nav a > span, .sh .sh-clock > span { text-box: trim-both cap alphabetic; }   /* (the capitals centered in the band) */
/* (title-sheet handoff, 2026-11-15) four items on the grid, each 6px in from its line. 8 columns: evenly spaced, two
   modules apart: logo on the paper's left edge, WORK on the frame's left, ABOUT on the center line, the clock on the
   frame's right. 9 columns: mirrored: logo and WORK as on 8, ABOUT right-aligned to the frame's right edge, the clock
   right-aligned to the paper's right edge */
.sh .sh-work { left: calc(var(--fl, 300px) + 6px); }
html.gr-8 .sh .sh-about { left: calc(var(--fl, 300px) + 2 * var(--mod, 176px) + 6px); }
html.gr-8 .sh .sh-clock { left: calc(var(--fl, 300px) + var(--fw, 704px) + 6px); }
html.gr-9 .sh .sh-about { left: auto; right: calc(100% - var(--fl, 300px) - var(--fw, 770px) + 6px); }
html.gr-9 .sh .sh-clock { left: auto; right: calc(100% - var(--px0, 16px) - var(--pw, 1386px) + 6px); }
.sh .sh-nav a:hover, .sh .sh-nav a[aria-current] { color: var(--accent-text, #C53A1C); }
.sh a:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.sh::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0; border-top: var(--sh-line, 0.75px solid #DBDAD6); opacity: 0; pointer-events: none; }   /* (a border, as each page draws its other lines) */
html.sh-ruled .sh::after { opacity: 1; }
/* (A8: CONTACT in the clock's place, on the frame's right edge; it links to the footer) */
.sh .sh-nav a.sh-contact { left: calc(var(--fl, 300px) + var(--fw, 704px) + 6px); }
@media (max-width: 1023px) {
  .sh p.sh-clock { display: none; }
  .sh .sh-nav a.sh-contact { left: auto; right: 16px; }
  html[data-grid] .sh .sh-nav a.sh-about { right: 92px; }
  html[data-grid] .sh .sh-nav a.sh-work { right: 159px; }
  .sh a.sh-logo { left: 16px; }
  .sh .sh-nav a.sh-work { left: auto; right: 84px; }
  .sh .sh-nav a.sh-about { left: auto; right: 16px; }
}

/* ---------- (mobile audit P0-3, 2026-11-19) tablets and phones in landscape, 761 to 1023: the stacked layout in a 600px
   column, centered (--fl is its left edge, set by a7-system.js). Full-width rules stay full width ---------- */
@media (min-width: 761px) and (max-width: 1023px) {
  html.a7 .sh a.sh-logo { left: var(--fl); }
  html.a7 .sh .sh-nav a.sh-contact { right: var(--fl); }
  html.a7[data-grid] .sh .sh-nav a.sh-about { right: calc(var(--fl) + 76px); }
  html.a7[data-grid] .sh .sh-nav a.sh-work { right: calc(var(--fl) + 143px); }
  html.a7 body .hero, html.a7 body .about { padding-left: var(--fl); padding-right: var(--fl); }
  html.a7 body .a8ft { padding-left: var(--fl); padding-right: var(--fl); }
  html.a7.a7 body.cv3 .m-bar:not([hidden]) { padding-left: var(--fl) !important; padding-right: var(--fl) !important; }   /* (the case study's Work / Contents bar) */
}

/* ---------- the shared test controls (a7-system.js adds them to each page's panel) ---------- */
.a7p { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid #333; }
.a7p fieldset { border: 0; margin: 10px 0 0; padding: 0; }
.a7p legend { color: #fff; padding: 0; margin-bottom: 4px; font-weight: 600; }
.a7p label { display: flex; gap: 6px; align-items: center; cursor: pointer; min-height: 24px; color: #ddd; }
.a7p input { margin: 0; accent-color: #fff; flex: none; }
.a7p :is(input, a):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.a7p .a7t { color: #fff; font-weight: 500; }

/* every comp panel on the A7 pages in a normal, readable sans (never mono: Cindy 2026-11-15); the case study's panel too */
html.a7 aside.panel, html.a7 aside.panel :is(button, input, label, legend, p, span, a, h2, h3, summary, div) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; letter-spacing: normal !important; }
html.a7 aside.panel { font-size: 13px; line-height: 1.4; }

/* the 04 Subtitle level in Heros: a hair more open than Geist's -0.005em (+0.01em, Cindy 2026-11-15). Home's
   .t-subtitle, and the case study's 16px medium headings, which set their own spacing */
html.bf-heros body.sys .t-subtitle,
html.bf-heros body.lx-g.lx-g.lx-g.lx-g.lx-g.lx-g.lx-g.lx-sys .case.v3 :is(h3, h4, .g-sub > h2, .appr-q):not(.sec-line *):not(.eyebrow):not(.hero-row__k) { letter-spacing: 0.005em !important; }
html.bf-heros body.lx-g.lx-g.lx-g.lx-g.lx-g.lx-sys .case.v3 #hypotheses .g-dq .appr-q { letter-spacing: 0.005em !important; }

/* (A8 "no side margins" test, after the Nike Circularity page) the header is a ruled strip: its bottom rule always
   shows, and vertical lines run up the column lines its items sit on (left of WORK, ABOUT and CONTACT), so each item
   has a cell of its own */
html.ed-edge[data-edges] .sh { --shl: var(--hg, var(--case-line, #DBDAD6));
  background:
    linear-gradient(var(--shl), var(--shl)) var(--fl) 0 / var(--lf, 1px) 100% no-repeat,
    linear-gradient(var(--shl), var(--shl)) calc(var(--fl) + 2 * var(--mod)) 0 / var(--lf, 1px) 100% no-repeat,
    linear-gradient(var(--shl), var(--shl)) calc(var(--fl) + var(--fw)) 0 / var(--lf, 1px) 100% no-repeat,
    var(--paper, #F3F2EE); }
html.ed-edge[data-edges] .sh::after { opacity: 1; top: auto; bottom: 0; border-top: var(--lf, 1px) solid var(--shl); }
@media (max-width: 1023px) { html.ed-edge[data-edges] .sh { background: var(--paper, #F3F2EE); } }

/* (A8 test: the case study's lines in true black) */
html.cl-black[data-edges] { --case-line: #000; }

/* (A8, Cindy 2026-11-15: each nav item's link fills its whole ruled cell in the header, so the cell is the click
   target; the text stays 6px in from the cell's line. Not on phones, where the header isn't ruled into cells) */
@media (min-width: 1024px) {
  html.ed-edge[data-edges] .sh .sh-nav a { box-sizing: border-box; padding-left: 6px; }
  html.ed-edge[data-edges] .sh .sh-nav a.sh-work { left: var(--fl); width: calc(2 * var(--mod)); }
  html.ed-edge[data-edges] .sh .sh-nav a.sh-about { left: calc(var(--fl) + 2 * var(--mod)); width: calc(var(--fw) - 2 * var(--mod)); }
  html.ed-edge[data-edges] .sh .sh-nav a.sh-contact { left: calc(var(--fl) + var(--fw)); right: 0; width: auto; }
  html.ed-edge[data-edges] .sh .sh-nav a:focus-visible { outline-offset: -2px; }   /* (the ring inside the cell) */
}

/* (A8, the Work <-> About glide, a test: a8-glide.js runs it; the content pages slide, nothing fades) */
html.glide-vt::view-transition-old(root), html.glide-vt::view-transition-new(root),
html.glide-vt::view-transition-old(pg-home), html.glide-vt::view-transition-new(pg-home),
html.glide-vt::view-transition-old(pg-about), html.glide-vt::view-transition-new(pg-about),
html.glide-vt::view-transition-new(ab-mast) { animation: none; }
html.glide-vt::view-transition-group(ab-mast) { z-index: 3; }
/* (A8: at the foot of the page CONTACT is the current place; the other current item steps back. a8-footer.js) */
.sh.sh-end .sh-nav a[aria-current]:not(.sh-contact):not(:hover) { color: inherit; }
/* (the glide: the leaving page is paper, so it uncovers the arriving one as it slides away, never overlapping it) */
html.glide-out #page { background: var(--paper, #F3F2EE); }
html.glide-vt::view-transition-group(pg-home), html.glide-vt::view-transition-group(pg-about) { z-index: 1; }
html.glide-vt.glide-to-about::view-transition-group(pg-home) { z-index: 2; }   /* (Work slides away above About's entrance) */
html.glide-vt::view-transition-group(site-header) { z-index: 3; }
html.cl-darker[data-edges] { --case-line: #CDCBC5; }   /* (the case study lines one shade darker: a test, Cindy 2026-11-16) */
/* (Cindy 2026-11-16: more paper under the footer's last row, on every A8 page) */
footer.a8ft { margin-bottom: 99px; }
/* (A8, Cindy 2026-11-16: the logo's whole header cell is its click target, as the nav items' are; the mark stays where
   it was, 6px in. Not on phones, where the header isn't ruled into cells) */
@media (min-width: 1024px) {
  html.ed-edge[data-edges] .sh .sh-logo { left: 0; width: var(--fl); box-sizing: border-box; padding-left: calc(max(var(--px0, 16px), 0px) + 6px); }
  html.ed-edge[data-edges] .sh .sh-logo:focus-visible { outline-offset: -2px; }
}
/* (test numbers, Cindy 2026-11-17) */
.panel .tno { display: inline-block; min-width: 2.2em; margin-right: 6px; padding: 0 4px; border: 1px solid #555; border-radius: 3px; font: 600 11px/16px system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff; text-align: center; letter-spacing: 0; text-transform: none; }
/* (Cindy 2026-11-17: every link hover is instant, site-wide: no fade on color, underline, fill, border, shadow or
   opacity. Only movement keeps its motion (an image's zoom, an arrow's nudge, a marker sliding to its place)) */
:is(a, a *, a::before, a::after, summary, summary *, button, button *, .card .mnum, .dtag, .dtag *, #g-index *) { transition-property: transform, translate, width, height, left !important; }

/* the splash (Cindy 2026-11-18; a8-motion.js): the page waits, hidden, under the paper; the C L mark sits small in the
   middle. Below the head script's class, nothing shows until the mark has drawn and gone. */
html.splash-pre body { visibility: hidden; }
/* (mobile audit M2, 2026-11-19: on phones and tablets the header is there from the first frame after the splash; the
   paper parts under it, instead of uncovering it last) */
@media (max-width: 1023px) { html:not(.splash-pre) body:has(> .a8-splash) .sh { z-index: 1001; } }
.a8-splash { visibility: visible; position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; color: #111; pointer-events: none; }
.a8-splash .sp-half { position: absolute; left: 0; right: 0; height: 50%; background: var(--paper, #F3F2EE); }
.a8-splash .sp-top { top: 0; } .a8-splash .sp-bot { bottom: 0; }
.a8-splash .sp-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 0.75px solid #111; transform: scaleX(0); transform-origin: 50% 50%; }
.a8-splash .sp-mark { position: relative; display: flex; gap: 3px; transform-origin: 0 50%; }
.a8-splash svg { display: block; width: 26px; height: 26px; overflow: visible; }
.a8-splash .ikr { transform-box: fill-box; transform-origin: 50% 0; }
.a8-splash .mkr { transform-box: fill-box; transform-origin: 0 50%; }

.panel .sp-play { margin-top: 6px; font: inherit; padding: 4px 10px; border: 1px solid currentColor; border-radius: 3px; background: transparent; color: inherit; cursor: pointer; }

/* ---------- opening a case study and coming back (ot=morph; Cindy's handoff 2026-11-18). Nothing cross-fades: the
   leaving page has already erased itself (or wipes off, going back), the arriving one is under its paper; the header
   holds still; the cover is one image whose crop reshapes as it moves (the arriving page's), moved on the site's clock
   by the arriving page's script (a8-case-entrance.js / a8.js) ---------- */
html.ot-vt::view-transition-old(root), html.ot-vt::view-transition-new(root),
html.ot-vt::view-transition-old(site-header), html.ot-vt::view-transition-new(site-header) { animation: none; }
html.ot-vt::view-transition-old(cover-ao) { animation: none; opacity: 0; }
html.ot-vt::view-transition-new(cover-ao) { animation: none; width: 100%; height: 100%; object-fit: cover; }
html.ot-vt::view-transition-group(site-header) { z-index: 3; }
html.ot-vt::view-transition-group(cover-ao) { z-index: 2; }
/* (opening a case study: the arriving page holds the leaving page's last frame on top until its cover is ready, then ends
   the transition and moves the cover itself; at most 3s) */
@keyframes ot-hold { from { opacity: 1; } to { opacity: 1; } }
html.ot-hold::view-transition-old(root) { animation: ot-hold 3s linear both; }
html.ot-hold::view-transition-new(root) { animation: none; opacity: 0; }
/* (back from a case study: no page transition; the case study plays its entrance backwards, then home moves a copy of
   the cover back into its card itself: a8-case-entrance.js, a8.js. Cindy 2026-11-18) */
/* (B2, motion handoff 2026-11-19) The browser's back from a case study, which plays no exit of its own: the case study
   wipes off right to left (250ms, ease-in, no fade) over home, which registers its work underneath; the cover moves
   from the case study's hero to its card as one image (paired: both pages name it cover-ao) on the one-moving-object
   curve; the header is home's own, live (a8.js draws its rule and registers its links) */
@keyframes bk-wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
html.bk-vt::view-transition-old(root) { animation: bk-wipe 250ms cubic-bezier(.32, 0, .67, 0) both; z-index: 1; }
html.bk-vt::view-transition-new(root) { animation: none; }
html.bk-vt::view-transition-group(cover-ao) { animation-duration: 600ms; animation-timing-function: cubic-bezier(.2, 0, 0, 1); z-index: 2; }
html.bk-vt::view-transition-old(cover-ao) { animation: none; opacity: 0; }
html.bk-vt::view-transition-new(cover-ao) { animation: none; width: 100%; height: 100%; object-fit: cover; }
html.bk-vt::view-transition-group(site-header) { animation: none; z-index: 3; }
html.bk-vt::view-transition-old(site-header) { animation: none; opacity: 0; }
html.bk-vt::view-transition-new(site-header) { animation: none; }
