/* Services BDR — fractional Amazon leadership. Portfolio layout: masthead, 12 columns, hairlines, small text. */

:root {
  --bg: #efeee9;
  --ink: #111110;
  --muted: #6f6d67;
  --line: rgba(17, 17, 16, 0.9);
  --hair: rgba(17, 17, 16, 0.14);
  --well: #e3e1da;
  --paper: #f8f7f3;
  --gutter: clamp(16px, 2vw, 28px);
  --gap: clamp(12px, 1.6vw, 24px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.4 var(--sans); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
p { margin: 0; }

.wrap { padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.muted { color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Underline that draws in on hover */
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); padding-bottom: 1px; }
.u:hover, a:hover > .u { background-size: 100% 1px; }

/* Masthead */
.mast { padding-top: clamp(14px, 2vh, 22px); align-items: start; }
.mast .name {
  grid-column: 1 / span 6; margin: 0;
  font-weight: 500; font-size: clamp(3rem, 7.4vw, 8.4rem); line-height: 0.86; letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.mast nav { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); padding-top: 0.5em; font-size: 15px; }
.mast nav a:last-child { justify-self: end; }

/* Opening frame: portrait sits on the rule, like a photograph pinned to the page */
.open { min-height: 100svh; display: flex; flex-direction: column; }
.open .stage { flex: 1; align-items: end; padding-block: clamp(48px, 10vh, 120px) 14px; }
.portrait { grid-column: 7 / span 2; margin: 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1178 / 1335; object-fit: cover; filter: grayscale(1) contrast(1.02); background: var(--well); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; font-size: 12px; color: var(--muted); }
.open .about { padding-block: 14px clamp(28px, 6vh, 56px); }

/* Section pattern: rule, a label in the left half, the content in the right half */
.sec { padding-top: clamp(110px, 20vh, 240px); }
.sec > .grid { padding-top: 14px; }
.label { grid-column: 1 / span 6; font-size: 15px; }
.col-a { grid-column: 7 / span 3; }
.col-b { grid-column: 10 / span 3; }
.col-r { grid-column: 7 / span 6; }
.copy { font-size: 15px; line-height: 1.4; max-width: 34ch; }
.copy + .copy { margin-top: 1em; }

/* Statement */
.statement { padding-top: clamp(120px, 22vh, 260px); }
.statement p {
  grid-column: 4 / span 9; font-size: clamp(1.7rem, 3.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.045em; max-width: 24ch;
}
.statement .by { grid-column: 4 / span 9; margin-top: clamp(20px, 3vh, 32px); font-size: 13px; color: var(--muted); }

/* Practice: an index, always open */
.index { list-style: none; margin: 0; padding: 0; }
.index li { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); padding: 14px 0 22px; border-top: 1px solid var(--hair); }
.index li:first-child { border-top: 0; padding-top: 0; }
.index .n { grid-column: 1 / span 1; color: var(--muted); font-size: 13px; padding-top: 2px; }
.index h3 { grid-column: 2 / span 2; margin: 0; font-weight: 400; font-size: 15px; }
.index p { grid-column: 4 / span 3; color: var(--muted); }

/* Engagement: three movements */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.phases .n { display: block; font-size: 13px; color: var(--muted); margin-bottom: clamp(40px, 8vh, 90px); }
.phases h3 { margin: 0 0 6px; font-weight: 400; font-size: 15px; }
.phases p { color: var(--muted); max-width: 30ch; }

/* The monthly brief: a document on a mat */
.mat { margin: clamp(56px, 9vh, 110px) 0 0; background: var(--well); padding: clamp(24px, 6vw, 96px) clamp(16px, 9vw, 160px) 0; }
.doc { background: var(--paper); padding: clamp(20px, 3.4vw, 48px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.45); }
.doc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-title { margin: clamp(28px, 5vh, 56px) 0 clamp(20px, 3vh, 32px); font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -0.045em; line-height: 1; font-weight: 400; }
.doc-rows { list-style: none; margin: 0; padding: 0; }
.doc-rows li { display: grid; grid-template-columns: 1fr 2fr 7.5em; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.doc-rows .note { color: var(--muted); }
.doc-rows .st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; justify-self: end; }
.doc-rows .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.s-ok { --c: #111110; } .s-watch { --c: #a3a09a; } .s-act { --c: transparent; }
.s-act::before { box-shadow: inset 0 0 0 1.5px #111110; }
.doc-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mat-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 12px; color: var(--muted); }

/* Contact */
.contact { padding-bottom: clamp(56px, 10vh, 120px); }
.big-mail { display: inline-block; margin-top: clamp(48px, 9vh, 120px); font-size: clamp(2.2rem, 6.4vw, 7.2rem); line-height: 0.95; letter-spacing: -0.055em; font-weight: 500; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px var(--gap); }
.form label { display: block; font-size: 13px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 400 16px/1.4 var(--sans); border-radius: 0;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }
.form .send { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.form button[type="submit"] { font-size: 15px; }
.form .status { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px var(--gutter) 22px; font-size: 13px; color: var(--muted); }
.foot .legal { margin: 0; }
.foot-in { border-top: 1px solid var(--line); padding-top: 14px; width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Quiet entrance */
.js .rv { opacity: 0; transform: translate3d(0, 12px, 0); }
.js .rv.on { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .draw { transform: scaleX(0); transform-origin: left; }
.js .draw.on { transform: none; transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s); }

@media (max-width: 1000px) {
  .mast .name { grid-column: 1 / -1; }
  .mast nav { grid-column: 1 / -1; margin-top: 18px; padding-top: 0; }
  .portrait { grid-column: 7 / span 3; }
  .label { grid-column: 1 / -1; margin-bottom: 28px; }
  .col-a { grid-column: 1 / span 6; }
  .col-b { grid-column: 7 / span 6; }
  .col-r { grid-column: 1 / -1; }
  .statement p, .statement .by { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .mast nav { font-size: 14px; }
  .open { min-height: auto; }
  .open .stage { padding-top: 56px; }
  .portrait { grid-column: 5 / span 8; }
  .col-a, .col-b { grid-column: 1 / -1; }
  .col-b { margin-top: 1em; }
  .index li { grid-template-columns: 2.4em 1fr; row-gap: 6px; }
  .index .n { grid-column: 1; }
  .index h3, .index p { grid-column: 2; }
  .phases { grid-template-columns: 1fr; row-gap: 36px; }
  .phases .n { margin-bottom: 10px; }
  .mat { padding: 16px 12px 0; }
  .doc-rows li { grid-template-columns: 1fr auto; }
  .doc-rows .note { grid-column: 1 / -1; grid-row: 2; }
  .form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .draw { opacity: 1; transform: none; transition: none; }
}

/* ---------- v5 additions: shared chrome, tables, legal pages ---------- */

/* Contrast fix: 5.48:1 on --bg, 4.86:1 on --well (was 4.45 / 3.95) */
:root { --muted: #625f59; --hair-strong: rgba(17, 17, 16, 0.42); }

h1, h2, h3 { font-weight: 400; }
h2.label { margin: 0; font-size: 15px; font-weight: 400; }
[id] { scroll-margin-top: 20px; }

/* Skip link */
.skip { position: absolute; left: var(--gutter); top: -200px; z-index: 20; background: var(--ink); color: var(--bg); padding: 8px 12px 9px; font-size: 13px; }
.skip:focus { top: 10px; }

/* Body-text link: always underlined (not hover-only) */
.lnk { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); transition: text-decoration-color 0.3s var(--ease); }
.lnk:hover { text-decoration-color: currentColor; }

/* Top bar: brand lockup left, up to 5 anchors right */
.bar { padding-top: clamp(14px, 2vh, 22px); align-items: center; font-size: 15px; position: relative; z-index: 2; }
.brand { grid-column: 1 / span 6; justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.mark { display: block; width: 22px; height: 22px; flex: none; }
.bar nav { grid-column: 7 / span 6; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px clamp(18px, 2.4vw, 36px); }
.bar nav a { white-space: nowrap; }
.bar nav a[aria-current="page"] .u { background-size: 100% 1px; }

/* Footer: links + trademark line */
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); }
.foot-nav a:hover { color: var(--ink); text-decoration-color: currentColor; }
.foot .legal { width: 100%; max-width: 92ch; padding-top: 6px; font-size: 12px; }

/* Data table: ruled, label-left rows; stacks on mobile */
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.dtable caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: 12px; color: var(--muted); }
.dtable th, .dtable td { text-align: left; vertical-align: top; font-weight: 400; padding: 12px var(--gap) 14px 0; border-top: 1px solid var(--hair); }
.dtable th:last-child, .dtable td:last-child { padding-right: 0; }
.dtable thead th { border-top: 0; border-bottom: 1px solid var(--line); padding-top: 0; padding-bottom: 10px; font-size: 12px; color: var(--muted); }
.dtable tbody tr:first-child > * { border-top: 0; }
.dtable tbody th { width: 30%; font-size: 15px; }
.dtable td { color: var(--muted); }
.dtable .role { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ---------- Legal pages ---------- */
.lhead { padding-top: clamp(72px, 16vh, 180px); }
.lhead h1 { margin: 0 0 clamp(18px, 3vh, 30px) -0.045em; font-weight: 500; font-size: clamp(2.6rem, 7.4vw, 8.4rem); line-height: 0.9; letter-spacing: -0.055em; }
.lmeta-row { padding-top: 14px; }
.lmeta { grid-column: 7 / span 6; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); font-size: 13px; }
.lmeta dt { color: var(--muted); margin-bottom: 2px; }
.lmeta dd { margin: 0; overflow-wrap: anywhere; }

.ltoc { padding-top: clamp(56px, 10vh, 110px); }
.ltoc > .grid { padding-top: 14px; }
.ltoc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--gap); font-size: 15px; }
.ltoc li { break-inside: avoid; border-top: 1px solid var(--hair); }
.ltoc li:first-child { border-top: 0; }
.ltoc a { display: grid; grid-template-columns: 2.4em 1fr; padding: 9px 0 11px; }
.ltoc .n, .lsec h2 .n { color: var(--muted); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }

.lsec { padding-top: clamp(48px, 9vh, 96px); }
.lsec > .grid { padding-top: 14px; }
.lsec h2 {
  grid-column: 1 / span 5; align-self: start; position: sticky; top: 20px;
  margin: 0; display: grid; grid-template-columns: 2.4em 1fr; font-size: 15px; font-weight: 400;
}
.prose { grid-column: 7 / span 6; max-width: 68ch; font-size: 15px; line-height: 1.6; letter-spacing: -0.003em; }
.prose > * + * { margin-top: 1em; }
.prose h3 { margin: 2em 0 0; font-size: 15px; font-weight: 500; }
.prose h3 + * { margin-top: 0.4em; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 500; }
.prose .note { font-size: 13px; color: var(--muted); }
.prose .dtable { margin-top: 1.4em; }
.lback { padding-block: clamp(56px, 10vh, 110px) 0; font-size: 13px; }

@media (max-width: 1000px) {
  h2.label { margin-bottom: 28px; }
  .brand { grid-column: 1 / -1; }
  .bar nav { grid-column: 1 / -1; margin-top: 12px; justify-content: flex-start; }
  .lmeta { grid-column: 1 / -1; }
  .lmeta-row .label { margin-bottom: 18px; }
  .lsec h2 { grid-column: 1 / -1; position: static; margin-bottom: 18px; }
  .prose { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bar nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
  .foot-nav { gap: 8px 18px; }
  .lmeta { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .lmeta > div:last-child { grid-column: 1 / -1; }
  .ltoc ol { columns: 1; }
  .prose { font-size: 15px; line-height: 1.55; }

  /* Table → stacked rows (ARIA roles in markup keep semantics) */
  .dtable, .dtable tbody, .dtable tr, .dtable th, .dtable td { display: block; width: auto; }
  .dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dtable caption { display: block; padding: 0 0 12px; caption-side: top; }
  .dtable tr { border-top: 1px solid var(--hair); padding: 12px 0 14px; }
  .dtable tbody tr:first-child { border-top: 1px solid var(--line); }
  .dtable th, .dtable td { border-top: 0; padding: 0; }
  .dtable tbody th { width: auto; margin-bottom: 8px; }
  .dtable td + td { margin-top: 8px; }
  .dtable td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink); margin-bottom: 1px; }
}

@media print {
  .bar, .skip, .ltoc, .lback, .foot-nav { display: none; }
  body { background: #fff; font-size: 11pt; }
  .js .rv, .js .draw { opacity: 1 !important; transform: none !important; }
  .lsec h2 { position: static; }
  .lsec, .sec { padding-top: 18pt; break-inside: auto; }
  .prose { max-width: none; }
}
@media (forced-colors: active) {
  .rule, .doc-rows li, .dtable th, .dtable td { border-color: CanvasText; }
}

/* ===================================================================
   v8: one system for every page. Shared header, menu pill, pill
   buttons, focus list, flag sheet, closing band, footer.
   =================================================================== */
:root { --fade: #bdb9b0; --alert: #a8321c; --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 30; padding-top: clamp(14px, 2.2vh, 24px); }
.site-head .grid { align-items: start; row-gap: 10px; }
.site-head .brand { grid-column: 1 / span 3; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.head-note { grid-column: 4 / span 3; font-size: 13px; line-height: 1.35; color: var(--muted); max-width: 26ch; }
.head-nav { grid-column: 7 / span 6; display: flex; justify-content: flex-end; gap: clamp(18px, 2.4vw, 36px); font-size: 15px; }
.head-nav a { position: relative; }
.head-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--ink); }

/* ---------- Menu pill and overlay ---------- */
.menu-pill {
  position: fixed; z-index: 60; top: clamp(12px, 2vh, 20px); right: var(--gutter);
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 13px; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(239, 238, 233, .28), 0 10px 30px -12px rgba(17, 17, 16, .5);
  opacity: 0; transform: translate3d(0, -8px, 0) scale(.96); pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease-out), background .25s;
}
.menu-pill.show { opacity: 1; transform: none; pointer-events: auto; }
.menu-pill .dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); transition: transform .45s var(--ease-out); }
.menu-pill .dot::before, .menu-pill .dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.menu-pill:hover .dot { transform: scale(1.15); }


/* ---------- Pill button ---------- */
.pill { display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1;
  background: transparent; color: var(--ink); position: relative; overflow: hidden; isolation: isolate; transition: color .4s var(--ease); cursor: pointer; }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translate3d(-101%, 0, 0); transition: transform .5s var(--ease-out); }
.pill .arr { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: background .4s var(--ease), color .4s var(--ease); }
.pill .arr svg { width: 12px; height: 12px; transition: transform .45s var(--ease-out); }
.pill:hover, .pill:focus-visible { color: var(--bg); }
.pill:hover::before, .pill:focus-visible::before { transform: none; }
.pill:hover .arr, .pill:focus-visible .arr { background: var(--bg); color: var(--ink); }
.pill:hover .arr svg { transform: translate3d(2px, 0, 0); }
.pill.solid { background: var(--ink); color: var(--bg); }
.pill.solid .arr { background: var(--bg); color: var(--ink); }
.pill.solid::before { background: #34322e; }
.pill.solid:hover .arr { background: var(--bg); color: var(--ink); }
.on-dark .pill { border-color: var(--bg); color: var(--bg); }
.on-dark .pill::before { background: var(--bg); }
.on-dark .pill .arr { background: var(--bg); color: var(--ink); }
.on-dark .pill:hover { color: var(--ink); }
.on-dark .pill:hover .arr { background: var(--ink); color: var(--bg); }

/* ---------- Focus list: the line in view darkens and opens ---------- */
.focus-wrap { align-items: start; }
.focus-side { grid-column: 1 / span 4; position: sticky; top: clamp(80px, 14vh, 140px); }
.focus-side h2 { margin: 0; font-size: 15px; font-weight: 500; }
.focus-side p { margin-top: 10px; color: var(--muted); max-width: 30ch; }
.focus-count { display: block; margin-top: clamp(28px, 6vh, 64px); font-size: clamp(3rem, 6vw, 6rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 300; font-variant-numeric: tabular-nums; }
.focus-count small { font-size: 0.32em; letter-spacing: -0.02em; color: var(--muted); }
.focus { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; }
.focus > li { border-top: 1px solid var(--hair); padding: 14px 0 12px; cursor: default; }
.focus > li:last-child { border-bottom: 1px solid var(--hair); }
.focus h3 { margin: 0; font-weight: 300; font-size: clamp(2rem, 4.1vw, 4.4rem); line-height: 1.02; letter-spacing: -0.05em; transition: color .5s var(--ease); }
.focus .more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease-out); }
.focus .more > div { overflow: hidden; }
.focus .more p { padding-top: 10px; max-width: 58ch; color: var(--muted); }
.focus .more ul { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.focus .more ul li { font-size: 13px; padding: 5px 11px 6px; border: 1px solid var(--hair-strong); border-radius: 999px; }
.js .focus h3 { color: var(--fade); }
.js .focus .more { grid-template-rows: 0fr; }
.js .focus > li.is-on h3 { color: var(--ink); }
.js .focus > li.is-on .more { grid-template-rows: 1fr; }
.js .focus > li.is-on .line { transform: scaleX(1); }

/* ---------- Flag sheet (app hero and homepage teaser) ---------- */
.sheet { margin: 0; background: var(--paper); padding: clamp(18px, 2.4vw, 32px); box-shadow: 0 40px 70px -50px rgba(17, 17, 16, .55), 0 0 0 1px var(--hair); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet-head b { font-weight: 500; }
.sheet-head span, .eg { font-size: 12px; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; padding: 13px 0 14px; border-top: 1px solid var(--hair); }
.rows li:first-child { border-top: 0; }
.rows .t small, .rows .amt small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.rows .amt { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sheet-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.js .rows li { opacity: 0; transform: translate3d(0, -10px, 0); }
.js .sheet.on .rows li { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(.25s + var(--i) * .13s), transform .8s var(--ease) calc(.25s + var(--i) * .13s); }
.sev { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12px; line-height: 1; padding: 4px 8px 5px; border: 1px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev-critical { background: var(--alert); border-color: var(--alert); color: #fff; }
.sev-critical::before { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.sev-medium::before { background: transparent; box-shadow: inset 0 0 0 1.25px currentColor; }
.sev-low { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.sev-low::before { display: none; }

/* ---------- Closing band ---------- */
.band { margin-top: clamp(110px, 18vh, 200px); background: var(--ink); color: var(--bg); padding: clamp(48px, 10vh, 112px) var(--gutter) clamp(40px, 7vh, 72px); }
.band .grid { align-items: end; row-gap: 32px; }
.band h2 { grid-column: 1 / span 7; margin: 0; font-weight: 300; font-size: clamp(2.4rem, 5.6vw, 6rem); line-height: 0.95; letter-spacing: -0.055em; }
.band .side { grid-column: 8 / span 5; }
.band .side p { color: rgba(239, 238, 233, .7); max-width: 38ch; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-foot { padding: clamp(40px, 7vh, 72px) var(--gutter) 22px; font-size: 13px; color: var(--muted); }
.site-foot .grid { row-gap: 26px; padding-bottom: clamp(36px, 6vh, 64px); }
.site-foot .f-brand { grid-column: 1 / span 4; color: var(--ink); }
.site-foot .f-brand b { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.site-foot .f-col { grid-column: span 2; }
.site-foot .f-col h2 { margin: 0 0 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.site-foot .f-col a { display: block; width: fit-content; color: var(--ink); padding: 2px 0; }
.site-foot .f-mail { grid-column: 11 / span 2; justify-self: end; text-align: right; }
.site-foot .f-mail a { color: var(--ink); }
.site-foot .f-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 14px; border-top: 1px solid var(--line); }
.site-foot .f-base p { max-width: 92ch; font-size: 12px; }

@media (max-width: 1000px) {
  .site-head .brand { grid-column: 1 / span 6; }
  .head-note { display: none; }
  .head-nav { grid-column: 7 / span 6; }
  .focus-side { grid-column: 1 / -1; position: static; margin-bottom: 28px; }
  .focus-count { display: none; }
  .focus { grid-column: 1 / -1; }
  .band h2, .band .side { grid-column: 1 / -1; }
  .site-foot .f-brand { grid-column: 1 / -1; }
  .site-foot .f-col { grid-column: span 4; }
  .site-foot .f-mail { grid-column: span 4; justify-self: start; text-align: left; }
}
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr auto; row-gap: 8px; }
  .rows .sev { grid-row: 1; }
  .rows .amt { grid-row: 1; grid-column: 2; }
  .rows .t { grid-column: 1 / -1; }
  .head-nav { display: none; }
  .menu-pill { opacity: 1; transform: none; pointer-events: auto; }
  .site-foot .f-col, .site-foot .f-mail { grid-column: span 6; }
  .site-foot .f-mail { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel, .menu .s, .pill::before, .focus .more, .focus h3, .menu-pill { transition: none !important; }
  .sev-critical::before { animation: none; }
  .js .rows li { opacity: 1; transform: none; transition: none; }
}
@media print { .menu-pill, .menu { display: none; } }

/* v10: bars grow and numbers count when a card comes into view */
.num { font-variant-numeric: tabular-nums; }
.js [data-grow] .split { clip-path: inset(0 100% 0 0); }
.js [data-grow].in .split { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-out) calc(.15s + var(--k, 0) * .14s); }
.js [data-grow] .days i { transform: scaleX(0); transform-origin: left; }
.js [data-grow].in .days i { transform: none; transition: transform 1.4s var(--ease-out) calc(.15s + var(--k, 0) * .14s); }
.js [data-grow] .stale .n { color: var(--muted); transition: color .4s var(--ease) calc(1.2s + var(--k, 0) * .14s); }
.js [data-grow].in .stale .n { color: var(--alert); }
@media (prefers-reduced-motion: reduce) {
  .js [data-grow] .split { clip-path: none; }
  .js [data-grow] .days i { transform: none; }
}

/* v12: statement fills in, word by word, as it scrolls through the screen */
[data-scrub] .w { transition: color .35s var(--ease); }
.js [data-scrub] .w { color: var(--fade); }
.js [data-scrub] .w.lit { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .js [data-scrub] .w { color: var(--ink); transition: none; } }

/* v13: contact-form notice; marked placeholder that must be replaced before publishing */
.form-note { font-size: 13px; color: var(--muted); }
.todo { background: #ffe9a8; color: #5a4300; padding: 0 4px; }
.lmeta-lang { margin-top: 18px; font-size: 13px; }

/* ===================================================================
   v14: phones. Display type sized for the screen, tighter section
   rhythm, faster reveals, and a practice list that never changes height
   while you scroll (it only lights up).
   =================================================================== */
@media (max-width: 1000px) {
  /* Every item stays open; the one you've reached turns to ink. No height changes under the thumb. */
  .js .focus .more { grid-template-rows: 1fr; }
  .js .focus .more p { color: var(--fade); transition: color .5s var(--ease); }
  .js .focus > li.is-on .more p { color: var(--muted); }
  .focus > li { padding: 16px 0 18px; }
}
@media (max-width: 640px) {
  [id] { scroll-margin-top: 72px; }

  /* Statement: the line the page is built around, now display size */
  .statement { padding-top: clamp(88px, 14vh, 128px); }
  .statement p { font-size: clamp(2.5rem, 11.6vw, 3.6rem); line-height: 0.98; letter-spacing: -0.055em; max-width: none; }

  /* Section rhythm: still airy, no longer a screen of empty paper */
  .sec { padding-top: clamp(80px, 12vh, 112px); }
  .band { margin-top: clamp(80px, 12vh, 112px); }
  .band h2 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .focus h3 { font-size: clamp(2.1rem, 9.6vw, 2.8rem); }
  .focus .more p { padding-top: 8px; font-size: 15px; }

  /* Reveals: shorter, smaller travel, delays halved, so content is there when your eye arrives */
  .js .rv { transform: translate3d(0, 8px, 0); }
  .js .rv.on { transition: opacity .6s var(--ease) calc(var(--d, 0s) * .5), transform .7s var(--ease) calc(var(--d, 0s) * .5); }
  .js .draw.on { transition-duration: .9s; transition-delay: 0s; }
  .js .sheet.on .rows li { transition-delay: calc(.1s + var(--i) * .08s); }
}


/* ===================================================================
   v15 (8 Nov 2026): lighter type; the menu as a pill that grows into
   a clear glass card; Practice as glass sheets over a rolling number.
   =================================================================== */
body { font-weight: 300; font-size: 16px; line-height: 1.5; }
.site-head .brand, .head-nav { font-weight: 400; }
.focus h3, .focus-count, .band h2 { font-weight: 200; }

/* Clear glass: thin frost, light blur, a bright rim */
.glass { background: rgba(239, 238, 233, .2);
  -webkit-backdrop-filter: blur(12px) saturate(150%) brightness(1.04); backdrop-filter: blur(12px) saturate(150%) brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .35), 0 30px 70px -30px rgba(17, 17, 16, .35); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(239, 238, 233, .95); } }

/* ---------- Menu: the pill grows into a card ---------- */
.menu-pill.show { transition: opacity .3s var(--ease) .55s, transform .5s var(--ease-out) .55s; }
.menu { position: fixed; inset: 0; z-index: 58; --mw: min(520px, calc(100vw - 2 * var(--gutter))); --mh: min(480px, calc(100svh - 40px)); }
.menu[hidden] { display: block; visibility: hidden; pointer-events: none; }
.menu-scrim { position: absolute; inset: 0; background: rgba(17, 17, 16, .04); }
.menu-panel { position: absolute; top: clamp(12px, 2vh, 20px); right: var(--gutter); overflow: hidden; color: var(--ink);
  width: var(--pw, 86px); height: var(--ph, 35px); border-radius: 999px; opacity: 0;
  transition: width .85s var(--ease-out), height .85s var(--ease-out) .05s, border-radius .85s var(--ease-out), opacity .2s .65s; }
.menu-open .menu-panel { width: var(--mw); height: var(--mh); border-radius: 30px; opacity: 1;
  transition: width .85s var(--ease-out), height .85s var(--ease-out) .05s, border-radius .85s var(--ease-out), opacity .12s; }
.menu-inner { position: absolute; top: 0; right: 0; width: var(--mw); height: var(--mh); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; }
.menu-nav { margin: auto 0; padding-right: 64px; }
.menu-nav a { display: block; width: fit-content; font-weight: 200; font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.055em; transition: color .4s var(--ease); }
.menu-nav a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.menu-nav a:hover span, .menu-nav a:focus-visible span { background-size: 100% 1px; }
.menu-foot { padding-top: 14px; border-top: 1px solid var(--hair-strong); font-size: 14px; }
.menu-foot a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hair-strong); }
.menu .s { opacity: 0; transform: translate3d(0, 14px, 0); }
.menu-open .menu .s { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(.18s + var(--s) * .06s), transform .9s var(--ease-out) calc(.18s + var(--s) * .06s); }
@media (max-width: 640px) { .menu { --mh: min(440px, calc(100svh - 24px)); } .menu-nav a { font-size: 13vw; } .menu-panel.glass { background: rgba(239, 238, 233, .55); } }
@media (prefers-reduced-motion: reduce) { .menu .s, .menu-scrim { transition: none !important; } }
@media print { .menu { display: none; } }


/* Headings on the app and legal pages, matched to the homepage's lighter display type */
.mast .name, .lhead h1 { font-weight: 200; letter-spacing: -0.06em; }

/* ===================================================================
   v17 (9 Nov 2026): the pill stays put and becomes the close control,
   the card grows from it without an oval phase, the page scrolls
   under the open menu, and hovering a link no longer greys the others.
   =================================================================== */
.menu-pill { z-index: 60; }
.menu-pill .lbl { display: grid; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.menu-pill .lbl > span { grid-area: 1 / 1; text-align: right; transition: transform .5s var(--ease-out), opacity .3s var(--ease); }
.menu-pill .lbl > span + span { transform: translate3d(0, 100%, 0); opacity: 0; }
.menu-open .menu-pill { opacity: 1; transform: none; pointer-events: auto; transition: none; }
.menu-open .menu-pill .lbl > span:first-child { transform: translate3d(0, -100%, 0); opacity: 0; }
.menu-open .menu-pill .lbl > span + span { transform: none; opacity: 1; }
.menu-open .menu-pill .dot { transform: none; }
.menu-open .menu-pill .dot::before { transform: rotate(45deg); }
.menu-open .menu-pill .dot::after { transform: rotate(-45deg); }
.menu-panel { border-radius: calc(var(--ph, 35px) / 2); }
.menu-open .menu-panel { border-radius: 26px; }
.menu-inner { padding-top: calc(var(--ph, 35px) + clamp(28px, 3.4vw, 48px)); }
.menu-nav { padding-right: 0; }

/* ===================================================================
   v18 (9 Nov 2026): the header stays on screen, so on desktop the
   navigation is always there and the menu pill is for phones only.
   =================================================================== */
.site-head { position: sticky; top: 0; z-index: 50; padding-block: clamp(14px, 2.2vh, 24px) 14px;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease-out); }
.site-head.stuck { padding-top: 14px; background: rgba(239, 238, 233, .78);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 1px 0 var(--hair); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-head.stuck { background: rgba(239, 238, 233, .97); } }
.site-head .head-note { transition: opacity .3s var(--ease); }
.site-head.stuck .head-note { opacity: 0; pointer-events: none; }
.site-head .grid { align-items: center; }
[id] { scroll-margin-top: 76px; }
.lsec h2 { top: 76px; }
.menu-pill, .menu { display: none; }
@media (max-width: 640px) {
  .menu-pill { display: inline-flex; opacity: 1; transform: none; pointer-events: auto; top: 10px; }
  .menu { display: block; }
  .menu-panel { top: 10px; }
  .site-head, .site-head.stuck { padding-block: 18px; }
}
