/* OD2 per-page character + outline icons.
   V5: 2px outline icons in product chrome, 44px target, currentColor / Void.
   No filled Emerald icons. No Harbor or Amber icon colour.
   Textures are CSS-only hairlines. No new photos, stock, or generated images.
   Motion follows V5 ease, once, and yields to prefers-reduced-motion.
   Content stays visible if this file or the motion script never runs. */

.ico-sprite{position:absolute;width:0;height:0;overflow:hidden}

.ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  flex:none;
  color:var(--text-primary);
}
.ico svg{
  width:24px;
  height:24px;
  display:block;
  stroke:currentColor;
  fill:none;
}

/* Cards and typographic lists */
.panel > .ico{margin:0 0 4px}
.panel > .ico + .kicker + h3,
.panel > .ico + h3{margin-top:8px}
.menu-card > .ico,
.tool-card > .ico,
.case > .ico{margin:0 0 8px}
.believe-list li{display:flex;flex-direction:column;align-items:center}
.believe-list .ico{margin:0 0 8px}

.reason > div,
.steps li > div{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  column-gap:12px;
  align-items:start;
}
.reason > div > .ico,
.steps li > div > .ico{grid-row:1 / span 8}
.reason > div > h3,
.reason > div > p,
.steps li > div > h3,
.steps li > div > p{grid-column:2}
@media (max-width:700px){
  .reason > div,
  .steps li > div{grid-template-columns:1fr}
  .reason > div > .ico,
  .steps li > div > .ico{margin:0 0 4px}
}

/* Mast icons sit with the kicker, not in the display type */
.mast .kicker,
#pre-read .hero .tag{
  display:flex;
  align-items:center;
  gap:12px;
}
.mast .kicker .ico,
#pre-read .hero .tag .ico{
  width:44px;
  height:44px;
}
.hero-centered .kicker .ico,.hero-copy .kicker .ico{display:none} /* keep the home headline typographic */

/* Page-to-page enter. Applied by JS on later views only, so first paint has no FOUC. */
@media (prefers-reduced-motion: no-preference){
  .page.on.page-enter{
    animation:od2PageEnter 360ms cubic-bezier(.22,1,.36,1) both;
  }
  dialog.discuss-dialog[open].page-enter{
    animation:od2PageEnter 300ms cubic-bezier(.22,1,.36,1) both;
  }
}
@keyframes od2PageEnter{
  from{opacity:0;transform:translateY(8px) scale(.97)}
  to{opacity:1;transform:none}
}

/* ---------- Shared: drawn timeline rail ---------- */
.timeline-draw{position:relative}
.timeline-draw::before{
  content:'';
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:1px;
  background:var(--border);
  transform:scaleY(0);
  transform-origin:top;
  pointer-events:none;
}
@media (prefers-reduced-motion: no-preference){
  .timeline-draw.is-drawn::before{
    transition:transform 700ms cubic-bezier(.22,1,.36,1);
    transform:scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce){
  .timeline-draw::before{transform:none}
}

/* ---------- HOME: keep the original typographic rhythm. Vertical reveals already live in home-polish. ---------- */
#home .chapter + .chapter{border-top:1px solid var(--border)}
#how-we-work .frame.timeline-draw{position:relative;padding-left:20px}
#how-we-work .frame.timeline-draw::before{left:0;top:72px;bottom:24px}
#together .steps.timeline-draw{position:relative;padding-left:12px}

/* Menu: parchment band already from .muted; add a faint vertical rule rhythm and a top mark */
#menu{
  background-image:repeating-linear-gradient(
    90deg,
    transparent,
    transparent 47px,
    color-mix(in srgb, var(--text-primary) 4%, transparent) 47px,
    color-mix(in srgb, var(--text-primary) 4%, transparent) 48px
  );
}
#menu .menu-head{position:relative;padding-top:12px}

/* Horizontal reveal for Menu cards (overrides the polish vertical rise) */
@media (prefers-reduced-motion: no-preference){
  html.home-polish #menu .menu-card.rv{
    opacity:0;
    transform:translateX(24px);
  }
  html.home-polish #menu .menu-card.rv.is-in{
    opacity:1;
    transform:none;
  }
}

/* ---------- AUDIT: parchment mast, left rule, sticky number rail ---------- */
#audit .mast{
  background:
    linear-gradient(90deg, var(--emerald) 0 2px, transparent 2px 100%),
    var(--surface-muted);
  border-bottom:1px solid var(--border);
}
#audit .chapter + .chapter{border-top:0}
#audit .chapter{
  border-top:1px dashed var(--border);
}
#audit .reasons-wrap{
  display:grid;
  gap:0;
  align-items:start;
}
.audit-rail{
  display:none;
  list-style:none;
  margin:0;
  padding:0;
  gap:8px;
}
.audit-rail button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--border);
  border-radius:999px;
  background:transparent;
  color:var(--text-primary);
  font-family:'IBM Plex Mono',monospace;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.audit-rail button.is-current{
  border-color:var(--text-primary);
  box-shadow:0 0 0 1.5px var(--text-primary);
  /* V5: selected state is a heavier Void ring, not an Emerald fill */
}
@media (min-width:1100px){
  #audit .reasons-wrap{
    grid-template-columns:56px minmax(0,1fr);
    gap:40px;
  }
  .audit-rail{
    display:flex;
    flex-direction:column;
    position:sticky;
    top:112px;
  }
}
#audit-how .steps{position:relative}
#audit-how.timeline-draw .steps::before,
#audit-how .frame.timeline-draw::before{content:none}
#audit-how .steps.timeline-draw{padding-left:0}

/* ---------- WORK: alternating bands, case timeline ---------- */
#work .mast{
  background:var(--surface-ground);
  border-bottom:1px solid var(--border);
}
#work .mast .frame::after{
  content:'';
  display:block;
  width:36px;
  height:2px;
  background:var(--text-primary);
  margin-top:28px;
}
#work .chapter.muted{background:var(--surface-muted)}
#work .frame:has(> .case).timeline-draw{padding-left:20px}
#work .frame:has(> .case).timeline-draw::before{left:0;top:80px;bottom:12px}
#work .case + .case{margin-top:20px}

/* ---------- SERIES: double hairline mast, season steps on a line ---------- */
#series .mast{
  background:var(--surface-muted);
  border-bottom:2px solid var(--border);
  box-shadow:0 1px 0 var(--surface-card), 0 2px 0 var(--border);
}
#series .chapter.muted{background:var(--surface-muted)}
#series .frame:has(> .steps).timeline-draw{padding-left:20px}
#series .frame:has(> .steps).timeline-draw::before{left:0;top:72px;bottom:24px}

/* ---------- THROUGHLINE: left instrument bar, columns reveal left-to-right ---------- */
#throughline .mast{
  background:
    linear-gradient(90deg, var(--text-primary) 0 3px, transparent 3px 100%),
    var(--surface-ground);
  border-bottom:1px solid var(--border);
}
#throughline .tl-band + .tl-band{border-top:1px dashed var(--border)}
@media (prefers-reduced-motion: no-preference){
  #throughline .page-enter .drop,
  #throughline.page-enter .drop,
  #throughline .col,
  #throughline .tl-band{
    /* default visible; JS adds .rv */
  }
  #throughline .rv{
    opacity:0;
    transform:translateX(20px);
    transition:opacity 700ms cubic-bezier(.22,1,.36,1) var(--rv-delay,0ms),
                transform 700ms cubic-bezier(.22,1,.36,1) var(--rv-delay,0ms);
  }
  #throughline .rv.is-in{opacity:1;transform:none}
}

/* ---------- PRE-READ: faint map grid, leave the tool UI alone ---------- */
#pre-read .hero{
  background-image:
    radial-gradient(color-mix(in srgb, var(--text-primary) 10%, transparent) 1px, transparent 1.5px);
  background-size:22px 22px;
  background-color:var(--surface-ground);
  border-bottom:1px solid var(--border);
}
@media (prefers-reduced-motion: no-preference){
  #pre-read .rv{
    opacity:0;
    transform:translateY(16px);
    transition:opacity 700ms cubic-bezier(.22,1,.36,1) var(--rv-delay,0ms),
                transform 700ms cubic-bezier(.22,1,.36,1) var(--rv-delay,0ms);
  }
  #pre-read .rv.is-in{opacity:1;transform:none}
}

/* ---------- ABOUT: speaking timeline, quiet mast rule ---------- */
#about .mast{border-bottom:1px solid var(--border)}
#about #speaking .frame.timeline-draw{padding-left:20px}
#about #speaking .frame.timeline-draw::before{left:0;top:64px;bottom:8px}

/* ---------- DISCUSS / CONTACT ---------- */
#contact .mast{
  background:var(--surface-muted);
  border-bottom:1px solid var(--border);
}
dialog.discuss-dialog{border-top:2px solid var(--text-primary)}
dialog.discuss-dialog .kicker{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Reduced motion: no movement, keep content visible */
@media (prefers-reduced-motion: reduce){
  .page.on.page-enter,
  dialog.discuss-dialog[open].page-enter{animation:none}
  html.home-polish #menu .menu-card.rv,
  html.home-polish #menu .menu-card.rv.is-in,
  #throughline .rv,
  #throughline .rv.is-in,
  #pre-read .rv,
  #pre-read .rv.is-in{
    opacity:1 !important;
    transform:none !important;
  }
  .timeline-draw::before{transform:none}
}

/* About portrait and bio column. The real headshot must not shrink the text. */
#about .bio{
  grid-template-areas:none;
}
#about .about-portrait{grid-area:auto}
@media(min-width:900px){
  #about .bio{grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:48px 64px;align-items:start}
}
.bio > *,
.about-portrait{min-width:0}
.about-portrait img{
  display:block;
  width:100%;
  height:auto;
  border-radius:28px;
  object-fit:cover;
  background:var(--surface-muted);
}
#about .about-portrait{border-radius:28px;overflow:hidden}
#about .about-portrait picture{display:block;width:100%}
#about .about-portrait img{aspect-ratio:3/4;object-fit:cover;object-position:center 18%;height:auto}

/* Homepage founder portrait uses the studio headshot. Chamber photos stay in the speaking strip. */
.name-line{white-space:nowrap}
#home-about-title{font-size:clamp(28px,7.5vw,56px);max-width:none}
#about .mast h1{max-width:none;font-size:clamp(30px,8.6vw,72px)}
#home-about .about-bio{max-width:none}
#home-about .about-work h3{margin:12px 0 4px;font-family:Poppins,sans-serif;font-weight:700;font-size:clamp(22px,2vw,28px);letter-spacing:-.02em}
#home-about .speak li{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;row-gap:6px;align-items:center}
#home-about .work-mark{grid-column:1;grid-row:1;display:block;width:24px;height:24px;color:var(--text-primary)}
#home-about .speak strong{grid-column:2;grid-row:1;align-self:center}
#home-about .speak span{grid-column:2;grid-row:2;line-height:1.6}
#home-about .about-close{margin:18px 0 0;font-family:Poppins,sans-serif;font-size:14px;font-weight:400;line-height:1.5;color:var(--text-secondary)}
#home-about .about-portrait picture{display:block;width:100%}
#home-about .about-portrait img{border-radius:28px;object-fit:cover;object-position:center 18%;aspect-ratio:3/4;width:100%;height:auto}
@media(min-width:900px){
  #home-about .about-split{
    grid-template-columns:minmax(0,1.15fr) minmax(300px,.78fr);
    grid-template-areas:"copy photo" "work photo";
    gap:20px 56px;
    align-items:stretch;
  }
  #home-about .about-copy{grid-area:copy}
  #home-about .about-work{grid-area:work}
  #home-about .about-portrait{grid-area:photo;position:relative;align-self:stretch;min-height:100%;margin:0;border-radius:28px;overflow:hidden}
  #home-about .about-portrait picture{position:absolute;inset:0;display:block;height:100%}
  #home-about .about-portrait img{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center 12%;border-radius:0}
}

/* Footer company socials */
.foot-social{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
  align-items:center;
}
.foot-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  color:rgba(255,255,255,.72);
  border:0;
  border-radius:0;
  text-decoration:none;
}
.foot-social a:hover,
.foot-social a:focus-visible{
  color:#fff;
  border-color:#fff;
  background:rgba(255,255,255,.08);
}
.foot-social .ico{width:44px;height:44px;color:currentColor}
.foot-social a[hidden]{display:none !important}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .foot-social a{color:var(--text-primary);border-color:var(--border)}
}
[data-theme="dark"] .foot-social a{color:var(--text-primary);border-color:var(--border)}

/* Speaking photos and the optional real-footage slot */
.speak-strip,
.speak-photos{
  display:grid;
  gap:12px;
  margin:40px 0 0;
}
.speak-strip{grid-template-columns:1fr;width:min(1120px,calc(100% - 32px));margin-inline:auto}
@media(min-width:768px){.speak-strip{width:min(1120px,calc(100% - 48px))}}
@media(min-width:1200px){.speak-strip{width:min(1200px,calc(100% - 144px))}}
.speak-photos{grid-template-columns:1fr 1fr}
.speak-photos-wide{grid-column:1 / -1}
@media (min-width:700px){
  .speak-strip{grid-template-columns:minmax(0,3fr) minmax(0,4fr)}
}
.speak-strip figure,
.speak-photos figure{margin:0}
.speak-strip img,
.speak-photos img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  background:var(--surface-muted);
}
.speak-strip .photo-note,
.speak-photos .photo-note,
.speaking-video .photo-note{margin-top:8px}
.speaking-video{margin:32px 0 0}
.speaking-video[hidden]{display:none !important}
.speaking-video video{
  display:block;
  width:100%;
  height:auto;
  background:var(--surface-muted);
}
@media (prefers-reduced-motion: reduce){
  .speaking-video video{scroll-margin:0}
}

/* Homepage work illustration: three connected example documents, no photography. */
.hero-work{width:100%;max-width:560px;margin-inline:auto}
.hero-work-stage{
  position:relative;
  aspect-ratio:560 / 500;
  width:100%;
  isolation:isolate;
}
.hero-work-links{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  color:var(--text-primary);
  opacity:.28;
  z-index:1;
  pointer-events:none;
}
.hero-doc{
  position:absolute;
  background:var(--surface-card);
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:0 12px 40px rgba(10,10,10,.06);
  padding:18px 20px 20px;
  z-index:2;
}
.hero-doc.is-brief{left:0;top:14%;width:58%;transform:rotate(-2.2deg);z-index:3}
.hero-doc.is-note{right:8px;top:5%;width:52%;transform:rotate(3.2deg);z-index:4}
.hero-doc.is-map{right:3%;bottom:3%;width:57%;transform:rotate(-1.6deg);z-index:5}
.hero-doc-label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--text-label);
}
.hero-doc-label .ico{display:inline-flex;color:var(--text-primary)}
.hero-doc-title{
  margin:0;
  font-family:Poppins,sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1.25;
  letter-spacing:-.02em;
  color:var(--text-primary);
  overflow-wrap:break-word;
}
.hero-brief-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px}
.hero-brief-list li{
  display:flex;
  align-items:baseline;
  gap:10px;
  font-family:Poppins,sans-serif;
  font-size:15px;
  font-weight:400;
  line-height:1.3;
  color:var(--text-primary);
  border-top:1px solid var(--border);
  padding-top:8px;
}
.hero-brief-list .n{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:500;
  letter-spacing:.12em;
  color:var(--text-label);
}
.hero-doc-lines{display:grid;gap:8px;margin-top:14px}
.hero-doc-lines span{
  display:block;
  height:6px;
  border-radius:999px;
  background:var(--surface-muted);
}
.hero-doc-lines span:nth-child(1){width:92%}
.hero-doc-lines span:nth-child(2){width:78%}
.hero-doc-lines span:nth-child(3){width:86%}
.hero-doc-lines span:nth-child(4){width:54%}
.hero-map{position:relative;height:120px;margin-top:8px}
.hero-map-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  color:var(--text-primary);
  opacity:.28;
}
.hero-map-node{
  position:absolute;
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-primary);
  background:var(--surface-card);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  white-space:nowrap;
}
.hero-map-node.is-you{
  left:50%;
  top:46%;
  transform:translate(-50%,-50%);
  background:#fff;
  color:#0A0A0A;
  border-color:var(--emerald);
  font-weight:600;
}
.hero-map-node.is-room{left:0;top:6px}
.hero-map-node.is-buyers{right:0;top:6px}
.hero-map-node.is-partners{left:50%;bottom:0;transform:translateX(-50%)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .hero-doc{box-shadow:0 12px 40px rgba(0,0,0,.35)}
  :root:not([data-theme="light"]) .hero-map-node.is-you{background:#fff;color:#0A0A0A}
}
[data-theme="dark"] .hero-doc{box-shadow:0 12px 40px rgba(0,0,0,.35)}
[data-theme="dark"] .hero-map-node.is-you{background:#fff;color:#0A0A0A}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion: no-preference){
  .hero-doc{transition:transform .5s var(--ease), box-shadow .5s var(--ease)}
  .hero-work:hover .hero-doc.is-brief,
  .hero-work:focus-within .hero-doc.is-brief{transform:rotate(-2.2deg) translateY(-8px);box-shadow:0 18px 44px rgba(10,10,10,.10)}
  .hero-work:hover .hero-doc.is-note,
  .hero-work:focus-within .hero-doc.is-note{transform:rotate(3.2deg) translateY(-10px);box-shadow:0 20px 46px rgba(10,10,10,.11)}
  .hero-work:hover .hero-doc.is-map,
  .hero-work:focus-within .hero-doc.is-map{transform:rotate(-1.6deg) translateY(-6px);box-shadow:0 16px 40px rgba(10,10,10,.10)}
  .hero-work:hover .hero-work-links,
  .hero-work:focus-within .hero-work-links{opacity:.28}
}
@media (prefers-reduced-motion: reduce){
  .hero-doc,
  .hero-work-links{transition:none}
}
@media (max-width:899px){
  .hero-work{max-width:100%}
  .hero-work-stage{aspect-ratio:560 / 640}
  .hero-doc{padding:14px 16px 16px;border-radius:24px}
  .hero-doc-label{letter-spacing:.08em}
  .hero-doc.is-brief{left:0;top:2%;width:64%;transform:rotate(-1.4deg);z-index:3}
  .hero-doc.is-note{right:0;top:0;width:50%;transform:rotate(2.2deg);z-index:4}
  .hero-doc.is-map{left:6%;right:auto;bottom:0;width:88%;transform:rotate(-0.8deg);z-index:5}
  .hero-doc-title{font-size:15px}
  .hero-brief-list{gap:6px;margin-top:10px}
  .hero-brief-list li{font-size:15px;padding-top:6px}
  .hero-map{height:108px;margin-top:4px}
  .hero-map-node{font-size:12px;letter-spacing:.04em;padding:4px 6px}
}

/* Selected work and Who this is for: one rhythm on Work and About.
   These two blocks used to share a squeezed 32px pad, so the next heading sat on the card. */
#work [aria-labelledby="fit-title"]{border-top:0}
#work [aria-labelledby="cases-title"] h2,
#work [aria-labelledby="fit-title"] h2,
#about .has-selected-work > .frame > h2{
  margin-top:0;
}
#work [aria-labelledby="cases-title"] h2,
#about .has-selected-work > .frame > h2:first-of-type{
  margin-bottom:var(--space-heading);
}
#work [aria-labelledby="fit-title"] h2,
#about .has-selected-work .fit-follow{
  margin-bottom:16px;
}
#work [aria-labelledby="fit-title"] .lede,
#about .has-selected-work .fit-follow + .lede{
  margin:0 0 32px;
  max-width:46rem;
}
#work [aria-labelledby="fit-title"] .proof,
#about .has-selected-work .proof{
  margin-top:0;
}
#about .has-selected-work > .frame > h2.fit-follow{margin-top:var(--space-section)}
#work .case + .case{margin-top:var(--space-stack)}
#work .case > .ico{margin:0 0 12px}
#work .case h3{margin:0 0 8px}
#work .case .case-context{margin:0 0 24px}
#work .case dt{margin-top:20px}
#work .case dt:first-of-type{margin-top:0}
#work .case dd{margin:8px 0 0}

/* Surfaces that follow the theme need type that follows the theme.
   The pre-read ledger is always Void, so its type stays light. */
#pre-read .pr-ledger,
#pre-read .pr-ledger .quiet-line,
#pre-read .pr-ledger h2{color:#F2F2EE}
#pre-read .pr-row.pr-head,
#pre-read .pr-row.pr-head span{color:#D4D0C6}
#mayors .my-kicker,
#mayors .my-kicker-line,
#mayors .my-sec span{color:var(--text-label)}
#mayors .tag,
#mayors .my-field label,
#mayors .my-brief span,
#mayors .my-url,
#mayors .my-found-host,
#mayors .my-tier.inst{color:var(--text-secondary)}
#mayors .my-event{color:var(--amber-ink)}
#mayors input,
#mayors textarea{background:var(--surface-card);color:var(--text-primary);border-color:var(--border)}
#mayors .my-room,
#mayors .my-card{background:var(--surface-muted);color:var(--text-primary);border-color:var(--border)}
@media (min-width:800px){
  #work .proof li.glow-card,
  #about .proof li.glow-card{
    grid-template-columns:22rem minmax(0,1fr);
    gap:8px 32px;
    align-items:start;
  }
}
