/* ── v4 — Learn more on the industries row + the scope-outline flow ── */

/* Hero: the CTA sits below the industries band — a simple stack, no shared
   baseline. The scroll cue is long gone, so the chart can run further down. */
.hero-baseline { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
/* raised so the trace's troughs clear the Trial counter on the baseline row */
.hero-chart { bottom: 3.6rem; }

/* ── Nav: the host page constrains our wrapper's height, so position:sticky
   un-sticks once you scroll past the first screen. The design already assumes
   a fixed 64px header (the hero's calc reserves it), so pin it and offset the
   shell by header + hairline. ── */
header.nav { position: fixed; top: 0; left: 0; right: 0; }
.shell { padding-top: 65px; }
/* phones and tablets: a shorter top bar, 55px plus its hairline (22 Nov 2026) */
@media (max-width: 999px) { .nav-inner { height: 55px; } .shell { padding-top: 56px; } }

/* ── Service rows: title + duration left, Scope action right, ruled T —
   prose left, frame right, columns ending together ── */
.svcv-row { row-gap: clamp(1.1rem, 2.5vh, 1.5rem); }
.svcv-rowhead-title { display: flex; flex-direction: column; align-items: stretch; gap: 0.9rem; min-width: 0; }
.svcv-rowhead-name { text-wrap: balance; }
.svcv-rowhead-meta {
  display: flex; align-items: baseline; margin: 0;
  font-family: var(--font-heading); font-weight: 400;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.svcv-rowhead-meta span + span:not(.svcv-rowhead-meta-end)::before { content: '·'; margin: 0 0.7rem; color: var(--frame); }
.svcv-rowhead-meta-end { margin-left: auto; padding-left: 1.5rem; }

/* facts + action as one right-hand group on the title's line */
.svcv-rowbar { display: flex; align-items: flex-start; gap: clamp(1.25rem, 3vw, 2.5rem); }
.svcv-rowbar-facts {
  display: flex; flex-wrap: wrap; align-items: baseline; margin: 0;
  font-family: var(--font-heading); font-weight: 400;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.svcv-rowbar-facts span + span::before { content: '·'; margin: 0 0.75rem; color: var(--frame); }
.svcv-rowbar-action {
  display: inline-flex; align-items: baseline; gap: 0.7rem;
  padding: 0;
  font-family: var(--font-heading); font-weight: 300;
  font-size: 2.1rem; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--cyan);
  background: transparent; border: none; cursor: pointer; white-space: nowrap;
  transition: color 0.14s ease;
}
.svcv-rowbar-action:hover { color: var(--cyan-bright); }
.svcv-rowbar-action:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }
.svcv-rowbar-arrow { font-size: 0.8em; transition: transform 0.14s ease; }
.svcv-rowbar-action:hover .svcv-rowbar-arrow { transform: translateX(0.3rem); }

/* the report sits on the page's own ground, not the darker legacy sheet */
.svcv-row .svcv-frame,
.svcv-row .svcv-frame-body { background: var(--bg); }
.svcv-row .svcv-rowhead-name { font-size: 2.1rem; }
.svcv-rowhead-dur { color: var(--muted); margin-left: 0.85rem; }
.svcv-row .svcv-narr-p { text-align: justify; text-justify: inter-word; hyphens: auto; font-size: 1.06rem; }

@media (min-width: 1000px) {
  /* title sits close under the row rule; prose left, frame right */
  .svcv-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2.75rem, 5.75vw, 5.25rem);
    padding-top: clamp(1.2rem, 2.6vh, 1.7rem);
    row-gap: 0;
    align-items: stretch;
  }
  .svcv-row .svcv-rowhead {
    grid-column: 1 / -1; grid-row: 1;
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin: 0;
    padding-bottom: clamp(1.3rem, 2.8vh, 1.8rem);
    border-bottom: 1px solid var(--frame);
  }
  /* T-rule: the header rule across the top, a vertical rule down the middle */
  /* the vertical rule starts at the header rule — the padding lives on the
     content inside, not on the ruled box */
  .svcv-row { --rowpad: clamp(1.9rem, 3.6vw, 3rem); }
  .svcv-row .svcv-copy {
    position: relative;
    padding-top: 0;
    padding-right: var(--rowpad);
    border-right: none;
  }
  /* the vertical rule runs from the header rule down past the columns by the
     same gap the browser frame keeps above it — a fixed overhang, never
     content-dependent */
  .svcv-row .svcv-copy::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px;
    height: calc(100% + var(--rowpad));
    background: var(--frame);
    pointer-events: none;
  }
  .svcv-row .svcv-copy .svcv-narr { padding-top: 31px; }
  .svcv-row .svcv-side { padding-top: var(--rowpad); }
  .svcv-row { column-gap: 0; }
  .svcv-row .svcv-rowhead { align-items: baseline; }
  .svcv-row .svcv-copy { grid-column: 1; grid-row: 2; border-left: none; padding-left: 0; align-self: stretch; }
  .svcv-row .svcv-side { padding-left: var(--rowpad); }
  /* the frame takes whatever height the prose sets — no void under it at any width */
  .svcv-row .svcv-side { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; flex-direction: column; }
  .svcv-row .svcv-frame { flex: 0 0 auto; }
  /* MacBook Pro screen ratio — fixed, never prose-driven */
  .svcv-row .svcv-frame-body { flex: 0 0 auto; aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 999px) {
  .svcv-row .svcv-rowhead { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .svcv-row .svcv-rowbar { width: 100%; justify-content: space-between; }
}

/* Scope-outline action: one ruled row, no box — label left, terse spec and
   arrow right. The rule is the separation; nothing else is needed. */
.svcv-outline-row {
  display: flex; align-items: baseline; gap: 1rem;
  width: 100%; margin-top: 1.6rem;
  padding: 1.05rem 0 0;
  text-align: left;
  background: transparent; border: none;
  border-top: 1px solid var(--frame);
  cursor: pointer;
  transition: border-color 0.14s ease;
}
.svcv-outline-row:hover { border-top-color: var(--cyan); }
.svcv-outline-row:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }
.svcv-outline-label {
  font-family: var(--font-heading); font-weight: 300;
  font-size: 1.15rem; letter-spacing: -0.01em; color: var(--cyan);
  transition: color 0.14s ease;
}
.svcv-outline-meta {
  margin-left: auto;
  font-family: var(--font-heading); font-weight: 400;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.svcv-outline-arrow { font-size: 1.05rem; color: var(--cyan); transition: transform 0.14s ease, color 0.14s ease; }
.svcv-outline-row:hover .svcv-outline-label,
.svcv-outline-row:hover .svcv-outline-arrow { color: var(--cyan-bright); }
.svcv-outline-row:hover .svcv-outline-arrow { transform: translateX(0.3rem); }
@media (max-width: 520px) { .svcv-outline-meta { display: none; } }

/* more air between services: the flex gap sits below each row's content, the
   row's own padding-top sits below its rule */
.svcv-rows { gap: clamp(4.5rem, 10vh, 7rem); }
.svcv-row { padding-top: clamp(2.75rem, 6.5vh, 4.5rem) !important; border-top: none !important; }

/* ── Scope-outline dialog ── */
.brief-overlay { display: flex; }
.brief-dialog { width: min(58rem, 94vw); max-height: 92vh; display: flex; flex-direction: column; }
.brief-body { overflow-y: auto; padding: clamp(1.25rem, 3vh, 2rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 4vh, 2.5rem); }

.brief-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem 1.5rem; }
.brief-intro {
  grid-column: 1 / -1;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--body);
  max-width: 44rem;
  margin: 0 0 0.4rem;
}
.brief-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.brief-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brief-field select.msg-input { appearance: none; cursor: pointer; }
.brief-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
  margin-top: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
}
.brief-foot .msg-send { width: auto; flex: 0 0 auto; padding-left: 1.6rem; padding-right: 1.6rem; }
.brief-note { font-size: 0.8rem; line-height: 1.5; color: var(--muted); max-width: 34rem; }

/* The generated outline — set like the report screens: rules, not cards */
.brief-doc { display: flex; flex-direction: column; gap: clamp(1.5rem, 3.5vh, 2.25rem); }
.brief-doc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--frame);
}
.brief-doc-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.brief-doc-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0.5rem 0 0;
}
.brief-doc-sub { font-size: 0.98rem; line-height: 1.6; color: var(--body); margin: 0.55rem 0 0; max-width: 44rem; }
.brief-doc-meta { display: flex; flex-direction: column; gap: 0.7rem; margin: 0; }
.brief-doc-meta dt {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brief-doc-meta dd { font-family: var(--font-heading); font-weight: 300; font-size: 0.95rem; color: var(--text); margin: 0.1rem 0 0; white-space: nowrap; }
.brief-doc-sec { display: flex; flex-direction: column; gap: 0.7rem; }
.brief-doc-h {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}
.brief-doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.brief-doc-list li {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--body);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
}
.brief-doc-assume li { color: var(--muted); }
.brief-doc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.brief-doc-steps li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0 0.6rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--body);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
}
.brief-doc-steps b { font-weight: 400; color: var(--text); }
.brief-doc-step-n { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--cyan); padding-top: 0.3rem; }
.brief-doc-caveat { font-size: 0.85rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: 46rem; }
.brief-doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--frame);
}
.brief-doc-foot .msg-send { width: auto; flex: 0 0 auto; padding-left: 1.6rem; padding-right: 1.6rem; }

@media (max-width: 700px) {
  .brief-doc-head { grid-template-columns: minmax(0, 1fr); }
  .brief-doc-meta { flex-direction: row; flex-wrap: wrap; gap: 0.7rem 1.75rem; }
}

/* Printing the outline gives the PDF — the dialog is the page. Nesting-
   independent: hides everything, then reveals only the overlay subtree
   (the overlay sits inside #dc-root, not as a direct body child). */
@media print {
  body * { visibility: hidden !important; }
  .brief-overlay, .brief-overlay * { visibility: visible !important; }
  .brief-overlay { position: fixed !important; inset: 0 !important; overflow: visible !important; }
  .svc7-overlay-dim, .svc7-dialog-close, .brief-doc-foot { display: none !important; }
  .brief-dialog { width: auto !important; max-height: none !important; border: none !important; background: #fff !important; }
  .brief-body { overflow: visible !important; padding: 0 !important; }
  .brief-doc-title, .brief-doc-steps b, .brief-doc-meta dd { color: #0c0a09 !important; }
  .brief-doc-sub, .brief-doc-list li, .brief-doc-steps li { color: #292524 !important; }
  .brief-doc-h { color: #155e75 !important; }
  .brief-doc-caveat, .brief-doc-assume li, .brief-doc-meta dt { color: #57534e !important; }
  .brief-doc-kicker { color: #854d0e !important; }
}

/* ── Section head: a full-bleed rule above the label, which now carries the
   section on its own ── */
.svcv-sechead-ruled {
  position: relative;
  padding-top: clamp(1.75rem, 4vh, 2.75rem);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.svcv-sechead-ruled::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-1 * clamp(1.25rem, 4vw, 3rem));
  right: calc(-1 * clamp(1.25rem, 4vw, 3rem));
  height: 1px;
  background: var(--frame);
}
.svcv-sechead-ruled .svcv-kicker { font-size: 0.86rem; letter-spacing: 0.16em; }

/* ── Nav contact trigger: envelope glyph before the label ── */
#contactTrigger { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-contact-icon { width: 0.95rem; height: 0.95rem; flex: none; stroke: currentColor; }

/* ── Contact: the label sits under the section rule exactly as Tools and
   Services does, and the form carries the section on its own ── */
/* the space above contact's rule is the services section's bottom padding; keep
   it equal to the space between the rule and the Contact label */
.svcv-contact-ruled {
  padding: 0 var(--gutter) clamp(3.5rem, 9vh, 6.5rem);
  margin-top: clamp(0.5rem, 1.5vh, 1rem);
}
.svcv-sections-bare { padding-bottom: clamp(1.75rem, 4vh, 2.75rem); }
/* ── Principal: portrait left, bio right, badge row beneath ── */
.principal { padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4rem); }
.pr-cols {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}
.pr-portrait {
  /* fixed ratio wins over matching the bio's height: deriving width from a
     stretched height made the track size circular and the frame squashed */
  aspect-ratio: 4 / 5;
  align-self: start;
  width: 100%;
  height: auto;
  border: 1px solid var(--frame);
  overflow: hidden;
  background: rgba(103, 199, 212, 0.03);
}
.pr-portrait image-slot { display: block; width: 100%; height: 100%; }
.pr-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.pr-role {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0.55rem 0 1.75rem;
}
.pr-para {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
  max-width: 62ch;
  margin: 0 0 1.15rem;
  text-wrap: pretty;
}
.pr-cta { margin-top: 1.75rem; }
.pr-badges { margin-top: clamp(2.25rem, 5vh, 3.25rem); border-top: 1px solid var(--frame); padding-top: 1rem; }
@media (min-width: 1000px) { .pr-badges { border-top: 0; } }
.pr-badges-cap {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.pr-badge-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
}
.pr-badge-row li {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #c4d3de;
  border: 1px solid var(--frame);
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
}

@media (max-width: 999px) {
  .pr-cols { grid-template-columns: 1fr; gap: 2rem; }
  .pr-portrait { max-width: 18rem; }
}

.svcv-sechead-bare { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.svcv-contact-ruled .msg-form-wrap { max-width: 46rem; width: 100%; }

/* Contact reads as a pair, matching the service rows' 50/50 vocabulary: what to
   send on the left, the form on the right. */
.contact-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}
/* the form column takes its height from the aside, and the textarea absorbs
   whatever is left over, so both sides finish level as the copy reflows */
.svcv-contact-ruled .msg-form { height: 100%; }
.svcv-contact-ruled .msg-textarea { max-height: none; min-height: 8rem; }
/* inputs sit a shade LIGHTER than the page, not darker */
.svcv-contact-ruled .msg-textarea,
.svcv-contact-ruled .msg-input {
  background: rgba(148, 197, 214, 0.035);
  border-color: rgba(148, 197, 214, 0.15);
}
.svcv-contact-ruled .msg-textarea:hover,
.svcv-contact-ruled .msg-input:hover { background: rgba(148, 197, 214, 0.05); }
.svcv-contact-ruled .msg-textarea:focus,
.svcv-contact-ruled .msg-input:focus {
  background: rgba(148, 197, 214, 0.06);
  border-color: rgba(103, 199, 212, 0.55);
}
/* Send read as disabled at rest — give it the section header's cyan */
.svcv-contact-ruled .msg-send {
  color: var(--cyan);
  background: rgba(103, 199, 212, 0.08);
  border-color: rgba(103, 199, 212, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.85rem 1rem;
}
.svcv-contact-ruled .msg-send:hover {
  color: #eafcff;
  background: rgba(103, 199, 212, 0.18);
  border-color: var(--cyan);
}
.svcv-contact-ruled .msg-send:disabled { opacity: 0.6; }
.contact-lead {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 2rem;
  max-width: 34ch;
  text-wrap: pretty;
}
.contact-facts { margin: 0; display: grid; gap: 1.25rem; }
.contact-fact { border-top: 1px solid var(--frame); padding-top: 0.85rem; }
.contact-fact dt {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.contact-fact dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body);
  max-width: 36ch;
}
.contact-mail { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(103, 199, 212, 0.35); }
.contact-mail:hover { border-bottom-color: var(--cyan); }
.msg-prefill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.msg-prefill[hidden] { display: none; }
.msg-prefill b { color: var(--cyan); font-weight: 400; letter-spacing: 0.14em; }

@media (max-width: 999px) {
  .contact-cols { grid-template-columns: 1fr; gap: 2.25rem; }
}


/* ── v5: services as an index. Six ruled lines — number, name, one claim,
   duration. One line opens at a time into a stage: prose left, the screen
   right. The collapsed section is a ledger; depth is a click away. ── */
.svc-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--frame); }
.svc-item { display: block; padding: 0; margin: 0; border: none; border-bottom: 1px solid var(--frame); background: transparent; }
.svc-item:hover, .svc-item:last-child { background: transparent; border-bottom: 1px solid var(--frame); }
.svc-detail { padding: 0; position: static; }
.svc-line {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
  position: relative;
  width: 100%;
  padding: clamp(1.4rem, 3vh, 2rem) 2.5rem clamp(1.4rem, 3vh, 2rem) 0;
  text-align: left;
  background: transparent; border: none; cursor: pointer;
  color: inherit;
}
.svc-line:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }
.svc-num {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--muted); transition: color 0.2s ease;
}
.svc-name {
  font-family: var(--font-heading); font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15;
  color: var(--text); transition: color 0.2s ease;
  text-wrap: balance;
}
/* every line carries the same shape: name over team on the left, a two-line
   problem on the right. The problem is clamped to two lines and the cell is
   held at two lines, so no row is ever taller or shorter than its neighbours. */
.svc-title { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.svc-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.svc-for {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-problem {
  font-family: var(--font-heading); font-weight: 300;
  font-size: 1.02rem; line-height: 1.5; color: var(--body);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: calc(1.02rem * 1.5 * 2);
  text-wrap: pretty;
}
/* detail meta: team and duration as a labelled pair above the prose */
.svc-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.25rem; margin: 0 0 0.35rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--hairline);
}
.svc-meta div { display: flex; flex-direction: column; gap: 0.3rem; }
.svc-meta dt {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.svc-meta dd { margin: 0; font-family: var(--font-heading); font-weight: 300; font-size: 0.98rem; color: var(--text); }
.svc-mark { position: absolute; right: 0; top: calc(clamp(1.4rem, 3vh, 2rem) + 0.6rem); width: 0.75rem; height: 0.75rem; }
.svc-mark::before, .svc-mark::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px;
  background: var(--muted); transition: transform 0.35s ease, background 0.2s ease;
}
.svc-mark::after { transform: rotate(90deg); }
.svc-line:hover .svc-name, .svc-line:hover .svc-num { color: var(--cyan); }
.svc-problem { transition: color 0.14s ease; }
.svc-line:hover .svc-problem { color: #eef6fa; }
.svc-line:hover .svc-mark::before, .svc-line:hover .svc-mark::after { background: var(--cyan); }
.svc-item[data-open="true"] .svc-num { color: var(--cyan); }
.svc-item[data-open="true"] .svc-mark::after { transform: rotate(0deg); }
.svc-item[data-open="true"] .svc-mark::before, .svc-item[data-open="true"] .svc-mark::after { background: var(--cyan); }

.svc-detail[hidden] { display: none; }
.svc-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
  padding: clamp(0.75rem, 2vh, 1.4rem) 2.5rem clamp(3rem, 7vh, 4.5rem) 0;
}
/* the prose's first line sits optically level with the frame's top edge: the
   only correction is the lead's half-leading, so text and frame start together */
.svc-prose { min-width: 0; display: block; padding-top: 0; margin-top: -0.28rem; max-width: 34rem; }
.svc-prose .svcv-narr-p { margin: 0 0 1.45rem !important; font-size: 1.02rem; line-height: 1.68; color: var(--body); text-align: justify !important; text-justify: inter-word; hyphens: auto; }
.svc-prose .svcv-narr-p:last-child { margin-bottom: 0 !important; }
.svc-prose .svcv-narr-p:first-child { font-family: var(--font-heading); font-weight: 300; font-size: 1.22rem; line-height: 1.45; color: var(--text); margin-bottom: 1.7rem !important; }
.svc-screen { min-width: 0; }
.svc-screen .svcv-frame, .svc-screen .svcv-frame-body { background: var(--bg); }
.svc-screen .svcv-frame-body { aspect-ratio: 16 / 10; }

@media (min-width: 961px) and (max-width: 1180px) {
  .svc-problem { -webkit-line-clamp: 3; min-height: calc(1.02rem * 1.5 * 3); }
}
@media (max-width: 960px) {
  .svc-line {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.8rem;
  }
  .svc-problem { -webkit-line-clamp: 3; min-height: 0; }
  .svc-detail-inner { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .svc-prose { max-width: none; padding-top: 0; margin-top: 0; }
  .svc-prose .svcv-narr-p { text-align: left !important; hyphens: none; }
}
@media (max-width: 600px) {
  .svc-line { column-gap: 0.9rem; }
  .svc-detail-inner .svcv-frame-body { aspect-ratio: 16 / 9; }
}

/* the section opens straight onto the index — the rule above is the index's own */
.svcv-sections-bare { padding-top: clamp(2.5rem, 6vh, 4rem); }


/* service titles and the principal's name share the hero title face:
   Alliance No.2 Light with the Oxanium J and Saira y */
.svc-name,
.pr-name {
  font-family: 'Alliance No 2 Mix', 'Alliance No 2', var(--font-heading);
  font-weight: 300;
}

/* ── Collapsed services: ledger rows ──
   [num | name over team] ┃ two-line problem   +
   The number hangs inside the title column so the 5fr/7fr split still lines up
   with the open detail below. The title block is sized to exactly the problem's
   two lines: name sits on line one, team label on line two's baseline. */
.svc-line { align-items: stretch; }
.svc-num {
  display: block;
  grid-column: 1; grid-row: 1;
  /* numerals match the title size and line, set dim so they index without competing */
  font-family: 'Alliance No 2 Mix', 'Alliance No 2', var(--font-heading); font-weight: 300;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.15; letter-spacing: 0;
  color: rgba(148, 170, 188, 0.38);
  font-variant-numeric: tabular-nums;
}
.svc-title {
  grid-column: 1; grid-row: 1;
  padding-left: clamp(3.4rem, 4.6vw, 4.4rem);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 0.7rem;
  min-height: calc(1.12rem * 1.55 * 2);
}
.svc-name {
  display: block;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.15;
  white-space: nowrap; overflow: visible; text-overflow: clip;
  -webkit-line-clamp: unset;
}
.svc-for { line-height: 1.2; padding-bottom: 0.25rem; }
.svc-problem {
  grid-column: 2; grid-row: 1;
  font-size: 1.12rem; line-height: 1.55;
  min-height: calc(1.12rem * 1.55 * 2);
  padding: 0.1rem 0 0 clamp(1.25rem, 2.4vw, 2rem);
  margin-left: calc(-1 * clamp(1.25rem, 2.4vw, 2rem));
  border-left: 1px solid var(--frame);
  align-self: center;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.svc-line:hover .svc-problem,
.svc-item[data-open="true"] .svc-problem { border-left-color: rgba(103, 199, 212, 0.45); }
.svc-line:hover .svc-num,
.svc-item[data-open="true"] .svc-num,
.svc-item[data-open="true"] .svc-name { color: var(--cyan); }
.svc-mark { top: 50%; margin-top: -0.375rem; }

@media (min-width: 961px) and (max-width: 1180px) {
  .svc-problem { min-height: calc(1.12rem * 1.55 * 3); }
  .svc-title { min-height: 0; justify-content: flex-start; }
}
@media (max-width: 960px) {
  .svc-title { padding-left: 3.2rem; min-height: 0; justify-content: flex-start; }
  .svc-problem {
    grid-column: 1; grid-row: 2;
    margin-left: 3.2rem; padding-left: 0; border-left: none;
    font-size: 1rem; min-height: 0;
  }
  .svc-name { white-space: normal; }
  .svc-mark { top: calc(clamp(1.4rem, 3vh, 2rem) + 0.8rem); margin-top: 0; }
}

/* contact aside, minimised: lead · clickable include-list · one sign-off line
   pinned to the bottom so it sits level with Send */
.contact-aside { display: flex; flex-direction: column; min-height: 100%; }
.contact-lead { margin-bottom: 2.25rem; }
.contact-sub {
  font-family: var(--font-heading); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
}
.contact-include { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--frame); }
.contact-include li { border-bottom: 1px solid var(--frame); }
.contact-include button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7rem 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-weight: 300; font-size: 0.95rem; color: var(--body);
  transition: color 0.14s ease;
}
.contact-include button span { color: var(--muted); font-size: 1.05rem; transition: color 0.14s ease; }
.contact-include button:hover, .contact-include button:hover span { color: var(--cyan-bright, var(--cyan)); }
/* fixed glyph box so swapping + / − / ✓ never changes the row height */
.contact-include button span { display: inline-block; width: 1rem; height: 1.5rem; line-height: 1.5rem; text-align: center; }
.contact-include button[data-state="added"] { color: var(--text); }
.contact-include button[data-state="added"] span { color: var(--cyan); }
.contact-include button[data-state="locked"],
.contact-include button[data-state="locked"]:hover { color: rgba(196, 211, 222, 0.62); cursor: default; }
.contact-include button[data-state="locked"] span,
.contact-include button[data-state="locked"]:hover span { color: rgba(196, 211, 222, 0.62); }
.contact-include button:focus-visible { outline: 1px solid var(--cyan); outline-offset: 2px; }
.contact-sign {
  margin: auto 0 0; padding-top: 2rem;
  font-size: 0.92rem; line-height: 1.6; color: var(--muted);
}

/* email copies to clipboard — no mailto */
.contact-copy {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0; background: none; border: none; cursor: pointer;
  font: inherit; color: var(--cyan);
  transition: color 0.14s ease;
}
.contact-copy-addr { border-bottom: none; }
.contact-copy-ico { width: 0.95rem; height: 0.95rem; flex: none; }
.contact-copy:hover { color: var(--cyan-bright, var(--cyan)); }
.contact-copy:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }
/* "Copied" crossfades in where the icon was; it's positioned out of flow from
   the icon's slot, so the line never reflows */
.contact-copy { position: relative; white-space: nowrap; }
.contact-copy-ico { transition: opacity 0.6s ease; }
.contact-copy-done {
  position: absolute; left: calc(100% - 0.95rem); top: 50%; transform: translateY(-50%);
  font-family: var(--font-heading); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
  pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity 0.6s ease;
}
.contact-copy[data-copied="true"] .contact-copy-ico { opacity: 0; }
.contact-copy[data-copied="true"] .contact-copy-done { opacity: 1; }

.contact-lead { font-size: 0.98rem; }
.contact-sign { font-size: 1.02rem; }

.svc-pricing {
  margin: 1.1rem 0 0;
  font-family: var(--font-heading); font-weight: 300;
  font-size: 0.92rem; color: var(--muted);
}

/* include list is a plain ruled list now — no interaction */
.contact-include li {
  padding: 0.7rem 0;
  font-family: var(--font-heading); font-weight: 300; font-size: 0.95rem; color: var(--body);
}

/* bio matches the service prose: justified, hyphenated, beside its image */
.pr-para { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* portrait at roughly half its old size: fixed 4:5 thumbnail, top-aligned with
   the name, no longer stretched to the bio's height. The bio keeps a 62ch
   measure so the wider column doesn't turn into long, tiring lines. */
.pr-cols { align-items: start; grid-template-columns: auto minmax(0, 1fr); }
.pr-portrait { width: clamp(9rem, 13vw, 12rem); height: auto; min-height: 0; aspect-ratio: 1 / 1; }
.pr-para { max-width: 62ch; }
@media (max-width: 999px) { .pr-portrait { width: 9rem; max-width: none; } }

/* service leads: same size as the body paragraphs below them */
.svc-prose .svcv-narr-p:first-child { font-size: 1.02rem; line-height: 1.68; margin-bottom: 1.45rem !important; }

/* left-aligned: at ~45ch with no working hyphenation, justify opened rivers */
.svc-prose .svcv-narr-p,
.svcv-row .svcv-narr-p,
.pr-para { text-align: left !important; hyphens: manual; text-wrap: pretty; }

.svcv-cite {
  display: inline-block; margin-top: 0.35rem;
  font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* product names inside running text take the wordmark face */
.brand-inline { font-family: 'Alliance No 2 Mix', 'Alliance No 2', 'Alliance No 1', sans-serif; font-weight: 300; }
/* English-only product names: literal stack + pinned metrics so JA/ES never change their width */
html .brand-inline, html[lang] .brand-inline { font-family: 'Alliance No 2 Mix', 'Alliance No 2', 'Alliance No 1', sans-serif !important; font-weight: 300 !important; letter-spacing: normal !important; font-size: inherit; }
html[lang] .industries-band.in-hero.ib-tools .ib-label { font-family: 'Alliance No 2 Mix', 'Alliance No 2', 'Alliance No 1', sans-serif !important; font-weight: 300 !important; letter-spacing: -0.01em !important; }

/* collapsed rows: no vertical rule — the column gap and numbers carry the structure */
.svc-problem { border-left: none !important; padding-left: 0 !important; margin-left: 0 !important; }


/* Min Max: 50/50 interlocking grid — past text | past browser, then present
   browser under the past text and present text under the first browser */
@media (min-width: 961px) {
  .svc-detail-inner.mm-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 2.5rem;
    align-items: start;
  }
  .mm-grid > .mm-past-text   { grid-column: 1; grid-row: 1 / span 2; }
  .mm-grid > .mm-past-screen { grid-column: 2; grid-row: 1; }
  .mm-grid > .mm-now-text    { grid-column: 2; grid-row: 2 / span 2; padding-top: 1.5rem; }
  .mm-grid > .mm-now-screen  { grid-column: 1; grid-row: 3; }
  .mm-grid > .svc-prose { max-width: none; }
}

/* ── light mode (v5 surfaces that hardcode dark-mode literals) ──
   Browser-frame embeds stay dark on purpose: they are product screens. */
html[data-theme='light'] { --hero-title: #0c0a09; }
html[data-theme='light'] .svc-line:hover .svc-problem { color: var(--text); }
html[data-theme='light'] .svc-item[data-open="true"] .svc-problem { border-left-color: rgba(0, 121, 160, 0.5); }
html[data-theme='light'] .contact-mail { border-bottom-color: rgba(0, 121, 160, 0.4); }
html[data-theme='light'] .svcv-contact-ruled .msg-input,
html[data-theme='light'] .svcv-contact-ruled .msg-textarea { background: rgba(41, 37, 36, 0.035); border-color: rgba(41, 37, 36, 0.22); color: var(--text); }
html[data-theme='light'] .svcv-contact-ruled .msg-textarea:hover { background: rgba(41, 37, 36, 0.05); }
html[data-theme='light'] .svcv-contact-ruled .msg-input:hover { background: rgba(41, 37, 36, 0.05); }
html[data-theme='light'] .contact-include button[data-state="locked"]:hover,
html[data-theme='light'] .contact-include button[data-state="locked"]:hover span { color: var(--dim); }
html[data-theme='light'] .pr-badge-row li { color: var(--body); }
html[data-theme='light'] .svc-num { color: rgba(87, 83, 78, 0.55); }
html[data-theme='light'] .svcv-contact-ruled .msg-textarea:focus,
html[data-theme='light'] .svcv-contact-ruled .msg-input:focus { background: rgba(41, 37, 36, 0.06); border-color: rgba(0, 121, 160, 0.6); }
html[data-theme='light'] .svcv-contact-ruled .msg-send { background: rgba(0, 121, 160, 0.07); border-color: rgba(0, 121, 160, 0.5); }
html[data-theme='light'] .svcv-contact-ruled .msg-send:hover { color: #fff; background: var(--cyan); }
html[data-theme='light'] .theme-toggle:focus-visible { outline: 1px solid var(--cyan); outline-offset: 2px; }
/* gradients can't transition, so the scrim colour is a registered property that can */
@property --scrim-c { syntax: '<color>'; inherits: false; initial-value: #1f262a; }
.hero-chart-scrim {
  --scrim-c: #1f262a;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--scrim-c) 90%, transparent) 0%,
    color-mix(in srgb, var(--scrim-c) 55%, transparent) 34%,
    color-mix(in srgb, var(--scrim-c) 5%, transparent) 64%,
    transparent 100%);
}
html[data-theme='light'] .hero-chart-scrim { --scrim-c: #f5f5f4; }
html.theme-anim .hero-chart-scrim { transition: --scrim-c 2s ease !important; }
html[data-theme='light'] .hero-lede { color: var(--body); }

/* 2s cross-fade while switching theme (class lives on <html> only during the swap) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 2s ease, color 2s ease, border-color 2s ease, fill 2s ease, stroke 2s ease,
              box-shadow 2s ease, text-shadow 2s ease, -webkit-text-fill-color 2s ease, filter 2s ease, opacity 2s ease !important;
}
/* embedded product screens: rendered as a light screen by inverting luminance and
   rotating hue back, so cyan stays cyan and amber stays amber */
.svcv-frame-body::after { display: none; } /* no bottom fade — the frame shows the whole screen */
.svcv-frame-body > * { transition: filter 2s ease; }
html[data-theme='light'] .svcv-frame-body > * { filter: invert(1) hue-rotate(180deg) saturate(1.15); }
html[data-theme='light'] .svcv-frame-body { background: var(--bg); }
/* grid pattern quieter on stone */
html[data-theme='light'] .grid-bg { --hairline-faint: var(--bg); } /* hidden in light — decide whether to drop */
/* cyan a touch deeper so it holds on stone */
html[data-theme='light'] { --cyan: #0079a0; --cyan-bright: #00628a; } /* saturated cerulean-cyan ≈ oklch(0.53 0.12 225) — max chroma at a readable lightness */

/* ── light-mode legibility: dark ink on stone reads thinner than light ink on black ── */
html[data-theme='light'] { --body: #1c1917; --muted: #44403c; --dim: #57534e; }
html[data-theme='light'] body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* was auto: macOS fattens dark-on-light glyph edges into a halo */
/* running text steps up to Alliance No.1 Regular; headings and labels keep Light */
html[data-theme='light'] .svcv-narr-p,
html[data-theme='light'] .contact-lead,
html[data-theme='light'] .contact-include li,
html[data-theme='light'] .pr-bio,
html[data-theme='light'] .pr-cols p { font-weight: 400; }
/* .svcv-narr-p is Alliance No.2, which ships Light only — thicken the stroke instead of
   swapping typeface between themes */
/* (an early light-mode test thickened body text with a 0.25px stroke; removed 21 Nov 2026: on the light ground it read as blur) */

/* service numerals: solid ink + greyscale AA in light (subpixel AA on a thin face read as a heavy halo) */
html[data-theme='light'] .svc-num { color: #a8a29e; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-shadow: none; }
html[data-theme='light'] .svc-line:hover .svc-num,
html[data-theme='light'] .svc-item[data-open="true"] .svc-num { color: var(--cyan); }
/* + marks: larger, heavier, full body ink; a slow pulse on hover while collapsed */
.svc-mark { width: 1rem; height: 1rem; margin-top: -0.5rem; }
.svc-mark::before, .svc-mark::after { height: 1.5px; margin-top: -0.75px; background: var(--body); }
/* hover (collapsed): the vertical stays as a shaft; the horizontal splits into two arms that drop to its foot — a down arrow */
.svc-mark {
  color: var(--body);
  background: linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: color 0.2s ease, background-size 0.3s ease;
}
.svc-line:hover .svc-mark, .svc-item[data-open="true"] .svc-mark { color: var(--cyan); }
.svc-item[data-open="true"] .svc-mark { background-size: 1.5px 0; }
.svc-mark::before, .svc-mark::after { transition: transform 0.85s cubic-bezier(0.22,0.61,0.36,1), background 0.2s ease; }
.svc-item[data-open="false"] .svc-line:hover .svc-mark::before { transform: translate(-0.1275rem, 0.2975rem) rotate(45deg) scaleX(0.42); }
.svc-item[data-open="false"] .svc-line:hover .svc-mark::after { transform: translate(0.1275rem, 0.2975rem) rotate(-45deg) scaleX(0.42); }
/* expanded: hovering the header (not the body) turns the − into the same arrow, pointing up */
.svc-item[data-open="true"] .svc-line:hover .svc-mark { background-size: 1.5px 100%; }
.svc-item[data-open="true"] .svc-line:hover .svc-mark::before { transform: translate(-0.1275rem, -0.2975rem) rotate(-45deg) scaleX(0.42); }
.svc-item[data-open="true"] .svc-line:hover .svc-mark::after { transform: translate(0.1275rem, -0.2975rem) rotate(45deg) scaleX(0.42); }
.svc-mark { transition: color 0.2s ease, background-size 0.6s cubic-bezier(0.22,0.61,0.36,1); }
/* only the header is clickable — the open body keeps the normal cursor */
.svc-item, .svc-detail { cursor: auto; }
.svc-line { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .svc-mark::before, .svc-mark::after { transition: none; } }
@media (min-width: 961px) and (max-width: 1180px) { .svc-mark { margin-top: 0; } }

/* titles + marks sit at summary ink; hover brightens to full text ink (no cyan) */
.svc-name { color: var(--body); }
.svc-line:hover .svc-name { color: var(--text); }
.svc-mark { width: 0.85rem; height: 0.85rem; margin-top: -0.425rem; }
@media (min-width: 961px) and (max-width: 1180px) { .svc-mark { margin-top: 0; } }
.svc-mark::before, .svc-mark::after,
.svc-line:hover .svc-mark::before, .svc-line:hover .svc-mark::after,
.svc-item[data-open="true"] .svc-mark::before, .svc-item[data-open="true"] .svc-mark::after { background: currentColor; }
.svc-mark { color: var(--body); }
.svc-line:hover .svc-mark, .svc-item[data-open="true"] .svc-mark { color: var(--text); }
/* Custom Solution envelope: same ink; on hover the flap lifts open */
.svc-msg { position: absolute; right: -0.1rem; top: 50%; width: 1rem; height: 1rem; margin-top: -0.5rem; overflow: visible; color: var(--body); transition: color 0.2s ease; }
.svc-line:hover .svc-msg { color: var(--text); }
.svc-msg-flap { transform-box: view-box; transform-origin: 12px 6px; transition: transform 0.85s cubic-bezier(0.22,0.61,0.36,1); }
.svc-line:hover .svc-msg-flap { transform: scaleY(-0.6); }
@media (prefers-reduced-motion: reduce) { .svc-msg-flap { transition: none; } }

/* light mode: row header rests at a softer stone ink, darkens to full ink on hover/open (inverse of dark) */
html[data-theme='light'] .svc-name,
html[data-theme='light'] .svc-problem,
html[data-theme='light'] .svc-mark,
html[data-theme='light'] .svc-msg { color: #6b6560; transition: color 0.2s ease, background-size 0.6s cubic-bezier(0.22,0.61,0.36,1); }
html[data-theme='light'] .svc-line:hover .svc-name,
html[data-theme='light'] .svc-line:hover .svc-problem,
html[data-theme='light'] .svc-line:hover .svc-mark,
html[data-theme='light'] .svc-line:hover .svc-msg,
html[data-theme='light'] .svc-item[data-open="true"] .svc-mark,
html[data-theme='light'] .svc-item[data-open="true"] .svc-problem { color: #0c0a09; }

/* light mode: greyscale AA on the row header (auto/subpixel thickens Alliance Light into a halo);
   the caps line rests paler than the title and darkens on hover */
html[data-theme='light'] .svc-line { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html[data-theme='light'] .svc-name { text-shadow: none; }
html[data-theme='light'] .svc-for { color: #78716c; font-weight: 400; text-shadow: none; transition: color 0.2s ease; }
html[data-theme='light'] .svc-line:hover .svc-for,
html[data-theme='light'] .svc-item[data-open="true"] .svc-for { color: #57534e; }

/* light mode: hero trial counter — greyscale AA, no glow, soft stone ink */
html[data-theme='light'] .hero-trial,
html[data-theme='light'] .hero-trial * { text-shadow: none !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html[data-theme='light'] .hero-trial-k { color: #857e78; }
html[data-theme='light'] .hero-trial-n { color: var(--cyan); }

/* row header: gentler colour fade on hover (both modes) */
.svc-num, .svc-name, .svc-for, .svc-problem, .svc-msg,
html[data-theme='light'] .svc-name, html[data-theme='light'] .svc-problem,
html[data-theme='light'] .svc-for, html[data-theme='light'] .svc-msg { transition: color 0.45s ease; }
.svc-mark, html[data-theme='light'] .svc-mark { transition: color 0.45s ease, background-size 0.6s cubic-bezier(0.22,0.61,0.36,1); }

/* hero buttons: Learn more ▾ + MRO History ▸ */
.hero-btns { display: flex; align-items: center; gap: 0.7rem; }
.hero-btn { gap: 0.55rem; cursor: pointer; font: inherit; font-family: var(--font-heading); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-btn-tri { width: 0.5rem; height: 0.5rem; flex: none; transition: transform 0.45s cubic-bezier(0.22,0.61,0.36,1); }
a.hero-btn:hover .hero-btn-tri { transform: translateY(2px); }
.hero-btn-ghost:hover .hero-btn-tri { transform: translateX(2px); }
.hero-btn-ghost { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); }
.hero-btn-ghost:hover { background: transparent; color: var(--cyan-bright); border-color: var(--cyan-bright); }
@media (prefers-reduced-motion: reduce) { .hero-btn-tri { transition: none; } }
/* history video dialog */
.vid-dlg { margin: auto; padding: 0; border: 0; background: transparent; width: min(1100px, 92vw); max-width: none; max-height: 92vh; color: var(--body); overflow: visible; }
.vid-dlg::backdrop { background: rgba(5, 6, 8, 0.82); }
html[data-theme='light'] .vid-dlg::backdrop { background: rgba(245, 245, 244, 0.88); }
.vid-dlg-frame { border: 1px solid var(--frame); background: var(--bg); display: flex; flex-direction: column; }
.vid-dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.55rem 0.55rem 1rem; border-bottom: 1px solid var(--frame); }
.vid-dlg-title { font-family: var(--font-heading); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vid-dlg-close { width: 2rem; height: 2rem; display: grid; place-items: center; background: transparent; border: 0; color: var(--body); cursor: pointer; padding: 0; transition: color 0.45s ease; }
.vid-dlg-close:hover { color: var(--text); }
.vid-dlg-close svg { width: 1rem; height: 1rem; }
.vid-dlg-close:focus-visible { outline: 1px solid var(--cyan); outline-offset: 2px; }
.vid-dlg-video { display: block; width: 100%; max-height: calc(92vh - 3.2rem); aspect-ratio: 16 / 9; background: #000; }
@media (max-width: 999px) { .hero-btns { gap: 0.5rem; } }

/* headerless: video only, centred; X floats over its top-right corner */
.vid-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; }
.vid-dlg-frame { position: relative; background: #000; }
.vid-dlg-video { max-height: 92vh; }
.vid-dlg-close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 2.25rem; height: 2.25rem; color: #f5f5f4; background: rgba(0,0,0,0.45); opacity: 0.8; transition: opacity 0.45s ease, background 0.45s ease; }
.vid-dlg-close:hover { color: #fff; opacity: 1; background: rgba(0,0,0,0.7); }

/* ── Japanese: Alliance has no kana/kanji — Noto Sans JP carries them at matching weights;
   wide uppercase tracking reads as gaps in CJK, so labels tighten */
html[lang='ja'] {
  --font-sans: 'Alliance No 2', 'Noto Sans JP', sans-serif;
  --font-heading: 'Alliance No 1', 'Noto Sans JP', sans-serif;
  --font-mono: 'JourneyDesign Tech', 'Chakra Petch', 'Noto Sans JP', sans-serif;
}
html[lang='ja'] body { font-family: var(--font-sans); }
html[lang='ja'] .svc-for, html[lang='ja'] .contact-sub, html[lang='ja'] .hero-btn { letter-spacing: 0.06em; }
html[lang='ja'] .svcv-narr-p, html[lang='ja'] .pr-para, html[lang='ja'] .contact-lead, html[lang='ja'] .svc-problem { line-height: 1.85; line-break: strict; }
html[lang='ja'] .hero-lede, html[lang='ja'] .svc-problem, html[lang='ja'] .svcv-narr-p { word-break: auto-phrase; }

/* ── Japanese readability: kanji need size, weight and contrast that Latin micro-labels don't.
   Crisper system gothics first, Noto as the fallback; Alliance stays first so Latin/numerals keep the brand. */
html[lang='ja'] {
  --font-sans: 'Alliance No 2', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Noto Sans JP', sans-serif;
  --font-heading: 'Alliance No 1', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Noto Sans JP', sans-serif;
  --font-mono: 'JourneyDesign Tech', 'Chakra Petch', 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', sans-serif;
}
/* running text: Regular, ~6% larger, open leading */
html[lang='ja'] .svcv-narr-p, html[lang='ja'] .pr-para, html[lang='ja'] .contact-lead,
html[lang='ja'] .contact-include li, html[lang='ja'] .hero-lede { font-weight: 300; font-size: 1.06em; line-height: 1.85; letter-spacing: 0.02em; }
html[lang='ja'] .svc-problem { font-weight: 400; letter-spacing: 0.02em; }
html[lang='ja'] .svc-prose .svcv-narr-p:first-child { font-weight: 400; line-height: 1.85; }
/* titles: no Light for kanji */
html[lang='ja'] .svc-name, html[lang='ja'] .pr-name, html[lang='ja'] .hero-slogan .sl-line { font-weight: 400; letter-spacing: 0.02em; font-feature-settings: 'palt'; }
/* micro-labels: floor at 12.5px, Medium, near-body ink, minimal tracking */
html[lang='ja'] .svc-for, html[lang='ja'] .ib-label, html[lang='ja'] .contact-sub, html[lang='ja'] .pr-role,
html[lang='ja'] .hero-btn, html[lang='ja'] .contact-sign, html[lang='ja'] .foot-send { font-weight: 500 !important; letter-spacing: 0.04em !important; }
/* size floor only for labels that are below ~12.5px in English — larger ones keep their size */
html[lang='ja'] .svc-for, html[lang='ja'] .contact-sub, html[lang='ja'] .pr-role,
html[lang='ja'] .hero-btn { font-size: 0.82rem !important; }
/* hero: larger JA type must not move the CTA row — pin line boxes to the English metrics */
/* the Japanese hero caption takes the English line pitch (1.65 × the English size), so switching language
   doesn't move Learn more; on phones where English wraps to three lines, both reserve three (21 Nov 2026) */
html[lang='ja'] .hero-lede { line-height: calc(1.65 * clamp(1rem, 1.5vw, 1.2rem)); }
@media (max-width: 600px) { html[lang='ja'] .hero-lede { line-height: calc(1.65 * 1.16rem); } }
@media (max-width: 600px) { html .hero-lede { min-height: calc(2 * 1.65 * 1.16rem); } }
@media (max-width: 419px) { html .hero-lede { min-height: calc(3 * 1.65 * 1.16rem); } }
html[lang='ja'] .hero-btn { line-height: 19.97px; }
html[lang='ja'] .contact-sub { color: var(--body); }
html[lang='ja'] .svc-for { color: var(--muted); }
html[data-theme='light'][lang='ja'] .svc-for { color: #6b6560; }



/* JA: English service name stays as the title; the Japanese name takes the caption, the function sits beneath */
html[lang='ja'] .svc-for[data-ja-fn]::after { content: none; display: none; margin-top: 0.3em; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); opacity: 0.8; }
html[data-theme='light'][lang='ja'] .svc-for[data-ja-fn]::after { color: #857e78; opacity: 1; }

/* ═══ Phones (≤820px, the hero chart's own mobile breakpoint): a reduced, read-straight-down page ═══ */
.svc-deliver { display: none; }
@media (max-width: 999px) {
  /* hero: title, lede, sawtooth, then industries directly beneath it — no button */
  .hero-slogan { order: 1; }
  /* sawtooth sits between title and lede and takes all spare height, so the hero
     fills the visible screen. svh = height with browser bars shown, so nothing
     lands under a bottom URL bar. */
  .hero { min-height: calc(100svh - 130px); max-height: calc(100svh - 130px); }
  .hero-chart { order: 2; flex: 1 1 0; aspect-ratio: auto; min-height: 9rem; margin-top: clamp(0.4rem, 1.5vh, 1rem);
    -webkit-mask-image: none; mask-image: none; }
  .hero-lede { order: 3; margin-top: clamp(0.6rem, 1.8vh, 1.2rem); }
  .hero-baseline { order: 4; display: block; margin-top: clamp(0.8rem, 2vh, 1.4rem); }
  .hero .ib-tools, .hero-cta { display: none !important; }
  .hero .industries-band.in-hero { margin-top: 0; }

  /* services: flat list — number, name, caption, what's delivered, ask link */
  .svc-item { padding: 1.35rem 0 1.4rem; }
  .svc-line { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); row-gap: 0.55rem; column-gap: 0.5rem; cursor: default; padding: 0; }
  .svc-line .svc-num { grid-column: 1; grid-row: 1; }
  .svc-line .svc-title { grid-column: 2; grid-row: 1; padding-left: 0; min-height: 0; gap: 0.4rem; align-items: flex-start; text-align: left; }
  .svc-line .svc-name { white-space: normal; font-size: 1.35rem; }
  .svc-line .svc-for { text-align: left; }
  .svc-line .svc-num { font-size: 1.35rem; }
  .svc-line .svc-deliver, #custom .svc-line .svc-problem { font-family: var(--font-sans); text-align: left; margin: 0; padding: 0; border: 0; }
  .svc-line .svc-problem { display: none; }
  .svc-line .svc-deliver { display: block; grid-column: 2; font-size: 0.98rem; line-height: 1.6; color: var(--body); text-wrap: pretty; }
  .svc-line .svc-mark { display: none; }
  #custom .svc-line { cursor: pointer; }
  #custom .svc-line .svc-problem { display: block; grid-column: 2; -webkit-line-clamp: unset; font-size: 0.98rem; line-height: 1.6; }
  #custom .svc-msg { display: none; }
  .svc-detail { display: none !important; }

  /* principal: photo, name, role — client list folds away */
  .pr-cols { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; }
  .pr-portrait { width: 6.5rem; }
  .pr-para { display: none; }
  .pr-name { margin: 0; }
  .pr-badges-cap { cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; }
  .pr-badges-cap::after { content: '+'; font-size: 1.1rem; letter-spacing: 0; color: var(--body); transition: transform 0.45s ease; }
  .pr-badges.open .pr-badges-cap::after { transform: rotate(45deg); }
  .pr-badges:not(.open) .pr-badge-row { display: none; }

  /* contact: lead, short form, email copy */
  .contact-sub, .contact-include { display: none; }
  .contact-cols { gap: 1.5rem; }
  /* direct email moves under the form */
  .contact-aside { display: contents; }
  .contact-lead { order: 1; }
  .msg-form-wrap { order: 2; }
  .contact-sign { order: 3; margin: 0; padding-top: 0; }
  .msg-textarea { min-height: 11rem; font-size: 16px; }
  .msg-input { font-size: 16px; min-height: 48px; }
  .msg-send { width: 100%; min-height: 48px; }
}

/* phones: industries in two fluid columns that never run past the gutter */
@media (max-width: 999px) {
  .industries-band.in-hero { width: 100%; max-width: 100%; }
  .industries-band.in-hero .ib-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
  .industries-band.in-hero .ib-item { min-width: 0; padding: 0; border: 0; }
  .industries-band.in-hero .ib-label { font-size: 0.98rem; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .industries-band.in-hero .ib-ico { width: 1.3rem; flex: none; }
}

/* small uppercase labels → Chakra Petch (matches the business card). JA rules
   of the form html[lang='ja'] .x still win on specificity. */
html .ib-head, html .nav-menu-trigger, html .hero-trial, html .svc-for,
html .svcv-kicker, html .svcv-cite, html .pr-role, html .pr-badges-cap,
html .contact-sub, html .msg-prefill, html .foot-copy, html .svc7-dialog-kicker, html .nav-text {
  font-family: var(--font-mono);
  font-weight: 400;
}
/* Chakra Petch reads ~8% small beside Alliance: normalise its cap height
   (native cap ≈ 0.70em → 0.756em). Only on elements set in it. */
html .ib-head, html .nav-menu-trigger, html .hero-trial, html .svc-for,
html .svcv-kicker, html .svcv-cite, html .pr-role, html .pr-badges-cap,
html .contact-sub, html .msg-prefill, html .foot-copy, html .svc7-dialog-kicker,
html .msg-about-label, html .nav-drawer-lang-code, html .svc7-custom-block h4, html .nav-text,
[style*="--font-mono"] {
  font-size-adjust: cap-height 0.756;
}
/* Research/Education: .shell already pads for the fixed nav, so only the footer is subtracted */
@media (min-width: 761px) {
  .research-main { min-height: calc(100svh - 1px - 64px); max-height: calc(100svh - 1px - 64px); }
}


/* Nav chrome is language-invariant: same font, weight, tracking and width in EN/ES/JA.
   Literal family (not var(--font-mono), which JA redefines) so nothing in the bar moves. */
html .nav-menu-trigger, html[lang] .nav-menu-trigger,
html .lang-select-trigger, html[lang] .lang-select-trigger {
  font-family: 'JourneyDesign Tech', 'Chakra Petch', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
  font-size-adjust: cap-height 0.756;
}

/* Industry analysis tiles: column count always divides 6, so no empty cell shows the hairline fill */
.ia-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 999px) { .ia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* JA: English section labels keep their face; the Japanese follows in a subtler inline caption */
html[lang='ja'] [data-ja-sub]::after { content: attr(data-ja-sub); margin-left: 0.8em; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Noto Sans JP', sans-serif; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted); opacity: 0.85; }

/* ── Research article pages: breadcrumb bar + section rail with scroll spy ── */
.wordmark.mo-mark { padding-right: 1.25rem; }
.wordmark.mo-mark .mark-j { clip-path: none; }
.mo-crumbs { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; padding-left: 1.25rem; min-width: 0; overflow: hidden; white-space: nowrap;
  font-family: 'JourneyDesign Tech', 'Chakra Petch', ui-sans-serif, sans-serif; font-weight: 400; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-size-adjust: cap-height 0.756; }
.mo-crumbs a { color: var(--cyan); }
.mo-crumbs a:hover { color: var(--cyan-bright); }
.mo-crumb-sep { color: var(--dim); }
.mo-crumb-mid { color: #9fb0c4; }
.mo-crumb-here { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.mo-layout { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.mo-rail { position: sticky; top: calc(64px + 2rem); }
.mo-rail-list { display: flex; flex-direction: column; border-left: 1px solid var(--hairline); }
.mo-rail-item { display: grid; grid-template-columns: 1.75rem auto; gap: 0.4rem; padding: 0.5rem 0 0.5rem 0.9rem; margin-left: -1px;
  border-left: 1px solid var(--bar, transparent); white-space: nowrap; text-decoration: none;
  font-family: 'JourneyDesign Tech', 'Chakra Petch', ui-sans-serif, sans-serif; font-weight: 400; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-size-adjust: cap-height 0.756;
  transition: color 0.14s ease, border-color 0.14s ease; }
.mo-rail-item:hover { color: var(--cyan-bright) !important; }
@media (max-width: 900px) {
  .mo-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .mo-rail { top: 64px; z-index: 5; background: var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
  .mo-rail::-webkit-scrollbar { display: none; }
  .mo-rail-list { flex-direction: row; gap: 1.25rem; border-left: 0; }
  .mo-rail-item { grid-template-columns: auto auto; padding: 0.85rem 0; margin: 0 0 -1px; border-left: 0; border-bottom: 1px solid var(--bar, transparent); }
}
@media (max-width: 999px) {
  .mo-nav .nav-right { display: flex; }
  .mo-crumb-mid { display: none; }
}

/* ── View transitions: Research tab (same page) and Research → article (cross-page) ── */
@keyframes jm-page-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes jm-page-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes jm-page-out-back { to { opacity: 0; transform: translateY(14px); } }
@keyframes jm-page-in-back { from { opacity: 0; transform: translateY(-20px); } }
@keyframes jm-crumb-in { from { opacity: 0; transform: translateX(-18px); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes jm-crumb-out { to { opacity: 0; transform: translateX(-10px); } }
@keyframes jm-links-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes jm-links-in { from { opacity: 0; transform: translateY(6px); } }
::view-transition-group(root) { animation-duration: 0.35s; }
::view-transition-group(jm-page) { animation: none; }
::view-transition-image-pair(jm-page) { isolation: auto; }
::view-transition-old(jm-page), ::view-transition-new(jm-page) { height: auto; width: 100%; object-fit: none; object-position: top center; }
::view-transition-old(jm-page) { animation: jm-page-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(jm-page) { animation: jm-page-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
html[data-vt='back']::view-transition-old(jm-page) { animation-name: jm-page-out-back; }
html[data-vt='back']::view-transition-new(jm-page) { animation-name: jm-page-in-back; }
::view-transition-group(jm-mark) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(jm-mark), ::view-transition-new(jm-mark) { height: 100%; width: auto; object-fit: none; object-position: left center; }
::view-transition-old(jm-mark) { animation: jm-crumb-out 0.18s ease both; }
::view-transition-new(jm-mark) { animation: jm-links-in 0.3s ease 0.05s both; }
::view-transition-group(jm-crumbs) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(jm-crumbs), ::view-transition-new(jm-crumbs) { height: 100%; width: auto; object-fit: none; object-position: left center; }
::view-transition-new(jm-crumbs) { animation: jm-crumb-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
::view-transition-old(jm-crumbs) { animation: jm-crumb-out 0.2s ease both; }
::view-transition-old(jm-links) { animation: jm-links-out 0.2s ease both; }
::view-transition-new(jm-links) { animation: jm-links-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
::view-transition-group(jm-lang) { animation: none; }
::view-transition-old(jm-lang) { display: none; }
::view-transition-new(jm-lang) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── Page-to-page: content fades/lifts out, next page rises in once rendered (no half-painted flash) ── */
@keyframes jm-leave { to { opacity: 0; transform: translateY(-12px); } }
@keyframes jm-arrive { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes jm-crumbs-arrive { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
html.jm-leaving .shell, html.jm-leaving .mo-crumbs, html.jm-leaving .nav-links, html.jm-leaving .hero-footer, html.jm-leaving .page-rule { animation: jm-leave 0.24s cubic-bezier(0.4, 0, 1, 1) both; }
html.jm-entering .shell { animation: jm-arrive 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
html.jm-entering .mo-crumbs { animation: jm-crumbs-arrive 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
html.jm-entering .hero-footer, html.jm-entering .page-rule { animation: jm-arrive 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
@media (prefers-reduced-motion: reduce) { html.jm-leaving *, html.jm-entering * { animation: none !important; } }

/* ── Wordmark: everything after the J slides away for Research, and back for Home ── */
.jm-wordmark .mark-tail { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom;
  transition: max-width 0.42s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, transform 0.42s cubic-bezier(0.65, 0, 0.35, 1); }
.jm-wordmark .mark-tail.is-off { max-width: 0 !important; opacity: 0; transform: translateX(-0.6em); }
.mo-crumbs { animation: jm-crumbs-arrive 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
/* header stays live through the view transition so the typing is seen, not cross-faded */
::view-transition-group(jm-nav) { animation: none; }
::view-transition-old(jm-nav) { display: none; }
::view-transition-new(jm-nav) { animation: none; }
@media (prefers-reduced-motion: reduce) { .mo-crumbs { animation: none; } }


/* ── Research: Industry analysis folds open like a service row (same + mark, same unfold) ── */
.ia-index { min-height: 0 !important; display: block !important; border-top: 0; }
.ia-line { display: block; position: relative; width: 100%; padding: clamp(1.5rem, 4vh, 2.5rem) 2.5rem clamp(1.5rem, 4vh, 2.5rem) 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; }
.ia-line .ia-title { color: var(--text); transition: color 0.2s ease; }
.ia-line:hover .ia-title, .ia-item[data-open="true"] .ia-title { color: var(--cyan); }
.ia-item .svc-mark { top: 50%; }
@media (max-width: 999px) {
  .ia-line { padding-right: 2rem; }
  .ia-line .svc-mark { display: block; }
  .ia-item .svc-detail:not([hidden]) { display: block !important; }
}

/* ── Breadcrumb: the article step slides out to the right on open, and back in on return ── */
.mo-crumbs .mo-crumb-tail { display: inline-grid; grid-template-columns: 1fr; min-width: 0;
  transition: grid-template-columns 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, transform 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.mo-crumbs .mo-crumb-tail.is-off { grid-template-columns: 0fr; opacity: 0; transform: translateX(-1.2rem); }
.mo-crumbs .mo-crumb-tail-in { display: flex; align-items: center; gap: 0.7rem; min-width: 0; overflow: hidden; white-space: nowrap; }
.mo-crumbs .mo-crumb-tail-in > * { flex: none; }
.mo-crumbs { gap: 0.7rem; }
.mo-crumbs .mo-crumb-research.is-current { color: var(--text); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mo-crumbs .mo-crumb-tail { transition: none; } }

/* ── Data explorer dialog (gold article) ── */
#moExplorer::backdrop { background: rgba(8, 9, 12, 0.74); }
#moExplorer[open] { animation: mo-ex-in 0.34s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes mo-ex-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.mo-ex-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); min-width: 0; min-height: 0; height: 100%; }
.mo-ex-info { position: relative; }
.mo-ex-tip { display: none; position: absolute; left: 1.25rem; right: 1.25rem; bottom: calc(100% - 0.5rem); flex-direction: column; gap: 0.4rem; padding: 0.9rem 1rem; background: #1f262a; border: 1px solid rgba(103, 199, 212, 0.55); box-shadow: 0 0 22px rgba(103, 199, 212, 0.12); z-index: 2; }
.mo-ex-info:hover .mo-ex-tip, .mo-ex-info:focus-within .mo-ex-tip { display: flex; }
@media (max-width: 900px) {
  .mo-ex-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 26rem auto; overflow: auto; }
  .mo-ex-side { border-left: 0 !important; border-top: 1px solid var(--hairline); grid-template-rows: auto 18rem !important; }
}
@media (prefers-reduced-motion: reduce) { #moExplorer[open] { animation: none; } }

/* explorer header: same J as the nav wordmark */
#moExplorer .wordmark, #moExplorer .wordmark .mark-j { font-family: 'Alliance No 2 Mix', 'Alliance No 2', var(--font-heading); font-weight: 300; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--text); }
#moExplorer .wordmark .mark-j { clip-path: none; }
@media (max-width: 720px) { #moExplorer .mo-ex-title-mid { display: none; } }
#moExplorer .mo-ex-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent); }
@media (min-width: 1200px) { #moExplorer .mo-ex-tabs { -webkit-mask-image: none; mask-image: none; } }

/* explorer chart motion: reveal on tab change, fade on trace toggle */
#moExplorer .mo-ex-reveal { transform-box: fill-box; transform-origin: 0 50%; animation: mo-ex-reveal 0.65s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes mo-ex-reveal { from { transform: scaleX(0); } }
#moExplorer .mo-ex-fade { animation: mo-ex-fade 0.22s ease both; }
@keyframes mo-ex-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #moExplorer .mo-ex-reveal, #moExplorer .mo-ex-fade { animation: none; } }

/* light mode: crisp type (21 Nov 2026). Glows are a dark-ground effect; on cream they read as blur around text.
   macOS font smoothing fattens glyph edges, which light text on dark absorbs but thin dark text on cream shows as a halo. */
html[data-theme='light'] { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html[data-theme='light'] *, html[data-theme='light'] *::before, html[data-theme='light'] *::after { text-shadow: none !important; -webkit-text-stroke: 0 !important; }

/* theme switch as one view-transition cross-fade (see theme.js jmThemeSwitch): every captured group fades
   together over 0.6s, so the nav and the page never drift apart (21 Nov 2026) */
html.theme-vt::view-transition-group(*) { animation-duration: 0.6s !important; animation-timing-function: ease !important; }
html.theme-vt::view-transition-old(*) { animation: jm-vt-out 0.6s ease both !important; }
html.theme-vt::view-transition-new(*) { animation: jm-vt-in 0.6s ease both !important; }
@keyframes jm-vt-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes jm-vt-in { from { opacity: 0; } to { opacity: 1; } }
/* phone-ground:start (generated, see phoneground.py) */
@media (max-width: 999px){
.hero-chart-scrim{--scrim-c: #1c2024}
.mo-ex-tip{background: #1c2024}
}
/* phone-ground:end */
