/* handyside.legal — shared stylesheet
   One idea runs through the site: a single orange line that carries a case
   from the barrister who enters it, through review and generation, to the
   ranking it earns. Everything else stays quiet: white, near-black, rules. */

:root {
  --orange: #FF4F00;
  --orange-deep: #EE4D04;
  --orange-wash: #FFF4EE;
  --ink: #1A1A1A;
  --text: #040505;
  --muted: #5F6468;
  --surface: #FFFFFF;
  --surface-muted: #F7F8F9;
  --border: #DDDDDD;
  --hair: #E8E9EA;
  --dark: #121415;
  --dark-raised: #1B1E1F;
  --dark-text: #F2F1EF;
  --dark-muted: #A7ABAE;
  --dark-rule: #2C3032;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --line: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.95rem, 3.3vw, 2.9rem); line-height: 1.08; letter-spacing: -0.016em; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.2; letter-spacing: -0.008em; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.header-row {
  display: flex; align-items: center; gap: 40px;
  height: 76px;
}
.logo { display: block; flex: none; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  position: relative;
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--line); background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { flex: none; }

@media (max-width: 760px) {
  .header-row { height: auto; flex-wrap: wrap; gap: 0; padding-top: 14px; }
  .logo img { height: 26px; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { padding: 9px 14px; font-size: .875rem; }
  .nav {
    order: 3; width: 100%; margin: 12px 0 0; gap: 26px;
    border-top: 1px solid var(--hair); padding: 4px 0;
    overflow-x: auto;
  }
  .nav a { padding: 8px 0; white-space: nowrap; }
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 15px 22px; border-radius: 2px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-dark .btn-line { color: var(--dark-text); box-shadow: inset 0 0 0 1px #585D60; }
.on-dark .btn-line:hover { background: var(--dark-text); color: var(--dark); }
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.text-link {
  font-weight: 600; font-size: 0.9375rem; color: var(--ink);
  text-decoration: none; border-bottom: var(--line) solid var(--orange); padding-bottom: 2px;
}
.text-link:hover { color: #000; border-bottom-color: var(--ink); }
.on-dark .text-link { color: var(--dark-text); }
.on-dark .text-link:hover { border-bottom-color: var(--dark-text); }

/* ---------- small type ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink); margin: 0 0 22px;
}
.kicker::before { content: ""; width: 28px; height: var(--line); background: var(--orange); flex: none; }
.on-dark .kicker { color: var(--dark-text); }

.lede { font-size: clamp(1.125rem, 1.45vw, 1.3rem); line-height: 1.55; color: #2A2D2F; max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.serif { font-family: var(--serif); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(56px, 6vw, 88px) 0; }
.band-muted { background: var(--surface-muted); }
.rule-top { border-top: 1px solid var(--hair); }

.on-dark { background: var(--dark); color: var(--dark-text); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--dark-text); }
.on-dark .muted { color: var(--dark-muted); }

.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head p { color: var(--muted); max-width: 34em; }
.section-head.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(64px, 8vw, 116px) 0 clamp(56px, 6vw, 88px); position: relative; }
.page-hero h1 { max-width: 15em; }
.page-hero .lede { margin-top: 28px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 80px; align-items: end; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- home hero ---------- */
.hero { padding: clamp(44px, 5vw, 72px) 0 clamp(64px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: 56px 72px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5.9rem); line-height: .98; }
.hero h1 em { font-style: italic; color: var(--ink); }
.hero .lede { margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.hero-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: .875rem; color: var(--muted); max-width: 30em; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- trust line ---------- */
.trust { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 30px 0; }
.trust-row { display: block; }
.trust-row .trust-label { display: block; margin-bottom: 12px; }
.trust-label { font-size: .8125rem; font-weight: 600; color: var(--muted); flex: none; }
.trust-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-family: var(--serif); font-size: 1.125rem; color: var(--ink); }
.trust-names li { display: flex; align-items: center; }
.trust-names li + li::before { content: ""; width: 5px; height: 5px; background: var(--orange); margin: 0 16px; flex: none; transform: translateY(-1px); }
@media (max-width: 760px) {
  .trust-row { display: block; }
  .trust-label { display: block; margin-bottom: 14px; }
  .trust-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; font-size: 1rem; }
  .trust-names li { padding: 8px 0; border-top: 1px solid var(--hair); }
  .trust-names li + li::before { display: none; }
}

/* ---------- quotes ---------- */
.quote-xl { margin: 0; max-width: 1040px; }
.quote-xl blockquote {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.85rem); line-height: 1.18; letter-spacing: -0.012em; color: var(--ink);
  text-indent: -0.42em;
}
.on-dark .quote-xl blockquote { color: var(--dark-text); }
.quote-xl figcaption { margin-top: 32px; display: flex; align-items: center; gap: 16px; font-size: .9375rem; }
.quote-xl figcaption::before { content: ""; width: 40px; height: var(--line); background: var(--orange); }
.cite-name { font-weight: 600; }
.cite-role { color: var(--muted); }
.on-dark .cite-role { color: var(--dark-muted); }

.quotes-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.quotes-3 figure { margin: 0; padding: 36px 36px 8px 0; }
.quotes-3 figure + figure { padding-left: 36px; border-left: 1px solid var(--border); }
.quotes-3 blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.quotes-3 figcaption { font-size: .875rem; line-height: 1.5; }
.quotes-3 figcaption span { display: block; }
@media (max-width: 900px) {
  .quotes-3 { grid-template-columns: 1fr; }
  .quotes-3 figure { padding: 28px 0; }
  .quotes-3 figure + figure { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- the throughline: horizontal (home) ---------- */
.line-h { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.line-h::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: var(--line); background: var(--orange); }
.line-h li { position: relative; padding-top: 64px; }
.node {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; background: var(--surface); border: var(--line) solid var(--orange);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1rem; color: var(--ink); line-height: 1;
}
.band-muted .node { background: var(--surface-muted); }
.node.filled { background: var(--orange); color: var(--ink); }
.line-h h3 { margin-bottom: 12px; }
.line-h p { color: var(--muted); font-size: 1rem; }
.line-h .who { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.line-end { display: flex; justify-content: flex-end; margin-top: 48px; }
@media (max-width: 900px) {
  .line-h { grid-template-columns: 1fr; gap: 0; padding-left: 60px; }
  .line-h::before { display: none; }
  .line-h li:not(:last-child)::after { content: ""; position: absolute; left: -43px; top: 34px; bottom: 0; width: var(--line); background: var(--orange); }
  .line-h li { padding: 0 0 40px; }
  .line-h li:last-child { padding-bottom: 0; }
  .line-h .node { left: -60px; }
}

/* ---------- the throughline: vertical spine (how it works) ---------- */
.spine { position: relative; }
.chapter { position: relative; padding-left: 92px; padding-bottom: clamp(88px, 10vw, 140px); }
.chapter::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: -18px; width: var(--line); background: var(--orange); }
.chapter:last-child::before { display: none; }
.chapter:last-child { padding-bottom: 0; }
.chapter > .node { top: 0; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.chapter-step { font-size: .8125rem; font-weight: 600; color: var(--muted); margin: 6px 0 18px; display: block; }
.chapter h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 22px; }
.chapter .copy p { color: #2A2D2F; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--border); }
.facts li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--border); position: relative; font-size: .975rem; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: var(--line); background: var(--orange); }
.chapter-aside { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
@media (max-width: 1000px) {
  .chapter-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chapter { padding-left: 56px; }
  .chapter::before { left: 13px; top: 14px; bottom: -14px; }
  .chapter > .node { width: 28px; height: 28px; font-size: .875rem; }
}

/* ---------- figures (the client's own numbers) ---------- */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.figure { padding: 32px 32px 0 0; }
.figure + .figure { padding-left: 40px; border-left: 1px solid var(--border); }
.figure .num { font-family: var(--serif); font-size: clamp(4rem, 8vw, 6.5rem); line-height: .9; letter-spacing: -0.03em; color: var(--ink); display: flex; align-items: flex-start; }
.figure .num small { font-size: .45em; margin-top: .12em; margin-left: .04em; color: var(--orange); }
.figure p { margin-top: 18px; color: var(--muted); max-width: 18em; }
.figure p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) {
  .figure { padding-right: 16px; }
  .figure + .figure { padding-left: 20px; }
  .figure p { font-size: .9375rem; }
}
.on-dark .figures, .on-dark .figure + .figure { border-color: var(--dark-rule); }
.on-dark .figure .num { color: var(--dark-text); }
.on-dark .figure p strong { color: var(--dark-text); }

/* ---------- two-column feature blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border); }
.split > div { padding: 40px 48px 8px 0; }
.split > div + div { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--border); }
.split h3 { margin-bottom: 16px; }
.split p { color: var(--muted); }
.split .text-link { display: inline-block; margin-top: 12px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > div { padding: 32px 0; }
  .split > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

.grid-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 80px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- privacy list ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-rule); }
.ledger li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--dark-rule); }
.ledger strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.3; color: var(--dark-text); }
.ledger span { color: var(--dark-muted); font-size: 1rem; }
.ledger .soon { display: inline-block; margin-left: 8px; font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dark); background: var(--orange); padding: 3px 7px; vertical-align: middle; }
.band-muted .ledger, .light .ledger { border-color: var(--border); }
.light .ledger li { border-color: var(--border); }
.light .ledger strong { color: var(--ink); }
.light .ledger span { color: var(--muted); }
@media (max-width: 640px) { .ledger li { grid-template-columns: 1fr; } }

/* ---------- news list (home + index) ---------- */
.news-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.news-3 article { padding: 32px 36px 8px 0; position: relative; }
.news-3 article + article { padding-left: 36px; border-left: 1px solid var(--border); }
.news-3 time { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 16px; }
.news-3 h3 { margin-bottom: 12px; }
.news-3 h3 a { text-decoration: none; }
.news-3 h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.news-3 p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .news-3 { grid-template-columns: 1fr; }
  .news-3 article { padding: 28px 0; }
  .news-3 article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- closing call to action + footer (one dark block) ---------- */
.close { padding: clamp(80px, 10vw, 136px) 0 clamp(64px, 7vw, 96px); position: relative; overflow: hidden; }
.close-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 80px; align-items: end; }
.close h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.03; max-width: 12em; }
.close .lede { color: var(--dark-muted); margin-top: 24px; }
.close-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.direct { border-top: 1px solid var(--dark-rule); }
.direct div { padding: 18px 0; border-bottom: 1px solid var(--dark-rule); }
.direct dt { font-size: .8125rem; color: var(--dark-muted); margin-bottom: 4px; }
.direct dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.direct a { text-decoration: none; }
.direct a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.close-mark { position: absolute; right: -40px; top: -30px; width: 300px; opacity: .05; pointer-events: none; }
@media (max-width: 900px) { .close-grid { grid-template-columns: 1fr; } }

.site-footer { background: var(--dark); color: var(--dark-muted); font-size: .875rem; padding: 0 0 40px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding: 56px 0 48px; border-top: 1px solid var(--dark-rule); }
.footer-top img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-top h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--dark-text); margin-bottom: 14px; letter-spacing: 0; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 8px; }
.footer-top a { text-decoration: none; color: var(--dark-muted); }
.footer-top a:hover { color: var(--dark-text); }
.footer-top address { font-style: normal; line-height: 1.7; }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--dark-rule); }
.footer-base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-base a { color: var(--dark-muted); text-decoration: none; }
.footer-base a:hover { color: var(--dark-text); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }

/* =====================================================================
   PRODUCT FRAMES — drawn, illustrative. Everything inside scales with the
   frame's own width (container units), so a frame is the same picture at
   any size.
   ===================================================================== */
.frame-fig { margin: 0; position: relative; }
.frame-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: .8125rem; color: var(--muted); }
.frame-cap b { font-weight: 600; color: var(--ink); }

.browser {
  container-type: inline-size;
  background: #fff; border: 1px solid #D6D8DA; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 30px 60px -32px rgba(18, 22, 26, .32), 0 10px 20px -14px rgba(18,22,26,.12);
  font-family: var(--sans); color: #1A1A1A; line-height: 1.35;
}
.browser > .bz { font-size: clamp(7.5px, 1.86cqw, 13px); }
.b-bar { display: flex; align-items: center; gap: 1em; height: 2.9em; padding: 0 1.1em; background: #F4F5F6; border-bottom: 1px solid #E4E5E7; }
.b-dots { display: flex; gap: .5em; }
.b-dots i { width: .78em; height: .78em; border-radius: 50%; background: #D3D5D8; display: block; }
.b-url { flex: 1; max-width: 26em; margin: 0 auto; height: 1.95em; display: flex; align-items: center; justify-content: center; gap: .5em; background: #fff; border: 1px solid #E1E2E4; border-radius: .4em; font-size: .88em; color: #5F6468; }
.b-url .lock { width: .7em; height: .8em; border: .14em solid #8A8F93; border-radius: .15em; position: relative; top: .1em; }
.b-url .lock::before { content: ""; position: absolute; left: .08em; top: -.55em; width: .3em; height: .4em; border: .14em solid #8A8F93; border-bottom: 0; border-radius: .3em .3em 0 0; }
.b-tag { font-size: .78em; font-weight: 600; color: #5F6468; border: 1px solid #DDDEE0; padding: .25em .6em; border-radius: 99em; white-space: nowrap; }

.app { display: grid; grid-template-columns: 13.5em minmax(0, 1fr); min-height: 34em; }
.app-side { background: #FAFAFB; border-right: 1px solid #ECEDEE; padding: 1.3em .9em; display: flex; flex-direction: column; gap: .2em; }
.app-brand { display: flex; align-items: center; gap: .6em; padding: 0 .6em 1.2em; margin-bottom: .6em; border-bottom: 1px solid #ECEDEE; }
.app-brand img { width: 1.55em; height: auto; }
.app-brand span { font-weight: 600; font-size: .95em; line-height: 1.2; }
.app-brand small { display: block; font-weight: 500; color: #5F6468; font-size: .85em; }
.app-nav { display: flex; align-items: center; gap: .7em; padding: .55em .7em; border-radius: .4em; color: #42474B; font-size: .96em; }
.app-nav i { width: .95em; height: .95em; border: .13em solid #9A9EA2; border-radius: .2em; flex: none; }
.app-nav.on { background: #fff; color: #1A1A1A; font-weight: 600; box-shadow: inset .2em 0 0 #FF4F00, 0 0 0 1px #ECEDEE; }
.app-nav.on i { border-color: #FF4F00; }
.app-nav .cnt { margin-left: auto; font-size: .82em; color: #7A7F83; font-weight: 500; }
.app-side .sp { flex: 1; }
.app-user { display: flex; align-items: center; gap: .6em; padding: .8em .6em 0; border-top: 1px solid #ECEDEE; font-size: .9em; }
.av { width: 2.1em; height: 2.1em; border-radius: 50%; background: #E9EAEB; display: grid; place-items: center; font-size: .78em; font-weight: 600; color: #42474B; flex: none; }
.av.o { background: #FFE6DA; color: #8A2B00; }

.app-main { padding: 1.6em 1.8em; min-width: 0; }
.crumbs { font-size: .85em; color: #7A7F83; margin-bottom: .5em; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; margin-bottom: 1.3em; }
.app-title { font-size: 1.55em; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.app-sub { font-size: .9em; color: #5F6468; margin-top: .25em; }
.ui-btn { display: inline-flex; align-items: center; gap: .5em; font-size: .9em; font-weight: 600; padding: .62em 1em; border-radius: .4em; background: #FF4F00; color: #1A1A1A; white-space: nowrap; }
.ui-btn.ghost { background: #fff; box-shadow: inset 0 0 0 1px #D6D8DA; color: #1A1A1A; }
.ui-btn.ink { background: #1A1A1A; color: #fff; }

.tabs { display: flex; gap: 1.6em; border-bottom: 1px solid #ECEDEE; margin-bottom: 1.1em; font-size: .92em; color: #5F6468; }
.tabs span { padding: .55em 0; }
.tabs .on { color: #1A1A1A; font-weight: 600; box-shadow: inset 0 -.16em 0 #FF4F00; }

.tbl { width: 100%; border-collapse: collapse; font-size: .92em; }
.tbl th { text-align: left; font-weight: 500; color: #7A7F83; font-size: .88em; padding: .55em .7em; border-bottom: 1px solid #ECEDEE; white-space: nowrap; }
.tbl td { padding: .78em .7em; border-bottom: 1px solid #F1F2F3; vertical-align: middle; }
.tbl tr.sel td { background: #FFF8F4; }
.tbl .t-strong { font-weight: 600; }
.tbl .t-dim { color: #7A7F83; font-size: .92em; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

.chip { display: inline-flex; align-items: center; gap: .4em; font-size: .82em; font-weight: 500; padding: .22em .65em; border-radius: 99em; background: #F1F2F3; color: #42474B; white-space: nowrap; }
.chip.dot::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: #FF4F00; }
.chip.line { background: #fff; box-shadow: inset 0 0 0 1px #DADCDE; }
.chip.ink { background: #1A1A1A; color: #fff; }

.cb { width: 1.15em; height: 1.15em; border: .13em solid #B6BABD; border-radius: .25em; display: inline-block; position: relative; vertical-align: middle; }
.cb.on { background: #FF4F00; border-color: #FF4F00; }
.cb.on::after { content: ""; position: absolute; left: .3em; top: .08em; width: .3em; height: .58em; border: solid #1A1A1A; border-width: 0 .14em .14em 0; transform: rotate(45deg); }

.mv { font-weight: 600; font-size: .9em; }
.mv.up::before { content: "▲ "; font-size: .75em; }
.mv.same { color: #9A9EA2; }

.panel { border: 1px solid #ECEDEE; border-radius: .6em; padding: 1.1em 1.2em; background: #fff; }
.panel-title { font-weight: 600; font-size: 1em; }
.panel-sub { color: #5F6468; font-size: .86em; margin-top: .2em; }
.rows { display: grid; gap: .7em; }
.stack-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }

.file { display: flex; align-items: center; gap: .8em; padding: .7em .8em; border: 1px solid #ECEDEE; border-radius: .45em; background: #fff; }
.file + .file { margin-top: .5em; }
.ficon { width: 2em; height: 2.5em; flex: none; position: relative; background: #fff; border: .12em solid #9A9EA2; border-radius: .15em; }
.ficon::before { content: ""; position: absolute; right: -.12em; top: -.12em; width: .6em; height: .6em; background: #F4F5F6; border-left: .12em solid #9A9EA2; border-bottom: .12em solid #9A9EA2; }
.ficon::after { content: attr(data-t); position: absolute; left: -.45em; bottom: .3em; font-size: .55em; font-weight: 700; letter-spacing: .03em; background: #1A1A1A; color: #fff; padding: .15em .35em; border-radius: .2em; }
.ficon.x::after { background: #FF4F00; color: #1A1A1A; }
.fname { display: block; font-weight: 600; font-size: .9em; line-height: 1.3; }
.fmeta { display: block; font-size: .8em; color: #7A7F83; }
.file > span:nth-child(2) { min-width: 0; flex: 1; }
.file .chip { margin-left: auto; }
.panel { min-width: 0; }
.file .ui-btn { margin-left: auto; padding: .45em .8em; font-size: .82em; }

.prog { height: .45em; background: #F1F2F3; border-radius: 99em; overflow: hidden; margin: .7em 0 .4em; }
.prog b { display: block; height: 100%; width: var(--p, 100%); background: #FF4F00; }

.note-ui { display: flex; gap: .7em; align-items: flex-start; padding: .8em 1em; background: #F7F8F9; border-radius: .45em; font-size: .86em; color: #42474B; margin-top: 1em; }
.note-ui::before { content: ""; width: .25em; align-self: stretch; background: #FF4F00; border-radius: 99em; flex: none; }

@container (max-width: 560px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
  .browser > .bz { font-size: clamp(8px, 2.75cqw, 12px); }
  .hide-sm { display: none; }
  .app-main { padding: 1.2em 1.2em 1.4em; }
  .stack-2 { grid-template-columns: 1fr; }
}

/* phone */
.phone {
  container-type: inline-size;
  position: relative; width: 100%; aspect-ratio: 9 / 19;
  background: #0B0C0D; border-radius: 13% / 6.2%; padding: 3.2%;
  box-shadow: 0 0 0 1px #2A2D2F, 0 40px 70px -34px rgba(10,12,14,.5), 0 12px 24px -16px rgba(10,12,14,.3);
}
.phone .screen {
  position: relative; height: 100%; border-radius: 10.5% / 4.9%; overflow: hidden;
  background: #121415; color: #F2F1EF; font-family: var(--sans); line-height: 1.35;
  font-size: 5.7cqw; display: flex; flex-direction: column;
}
.phone .notch { position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.4%; background: #0B0C0D; border-radius: 99em; z-index: 2; }
.ps-status { display: flex; justify-content: space-between; padding: 1.1em 1.6em .4em; font-size: .72em; font-weight: 600; color: #F2F1EF; }
.ps-status i { display: inline-block; width: 1.6em; height: .8em; border: .12em solid #F2F1EF; border-radius: .2em; vertical-align: middle; position: relative; }
.ps-status i::after { content: ""; position: absolute; inset: .1em .4em .1em .1em; background: #F2F1EF; border-radius: .05em; }
.ps-head { padding: 1.1em .9em .6em; display: flex; align-items: center; justify-content: space-between; }
.ps-head img { width: 1.15em; }
.ps-title { font-size: 1.45em; font-weight: 600; letter-spacing: -.01em; padding: 0 .62em; }
.ps-sub { font-size: .76em; color: #A7ABAE; padding: .2em 1.18em .9em; }
.ps-list { padding: 0 .9em; display: grid; gap: .55em; }
.ps-card { background: #1B1E1F; border: 1px solid #2A2E30; border-radius: .7em; padding: .8em .9em; }
.ps-card .c-t { font-weight: 600; font-size: .86em; line-height: 1.3; }
.ps-card .c-m { font-size: .7em; color: #A7ABAE; margin-top: .3em; display: flex; justify-content: space-between; gap: .5em; }
.ps-card .c-chip { font-size: .66em; font-weight: 600; padding: .15em .55em; border-radius: 99em; background: #2A2E30; color: #F2F1EF; white-space: nowrap; }
.ps-card .c-chip.o { background: #FF4F00; color: #121415; }
.ps-field { margin: 0 .9em .6em; }
.ps-field label { display: block; font-size: .66em; color: #A7ABAE; margin-bottom: .3em; }
.ps-field div { background: #1B1E1F; border: 1px solid #2A2E30; border-radius: .5em; padding: .55em .7em; font-size: .78em; }
.ps-field div.focus { border-color: #FF4F00; box-shadow: 0 0 0 .18em rgba(255,79,0,.18); }
.ps-field .lines { display: grid; gap: .45em; padding: .7em; }
.ps-field .lines b { display: block; height: .42em; background: #33383A; border-radius: 99em; }
.ps-cta { margin: auto .9em 0; background: #FF4F00; color: #121415; font-weight: 700; font-size: .82em; text-align: center; padding: .8em; border-radius: .6em; }
.ps-tabs { margin-top: .9em; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2A2E30; padding: .7em 0 1.4em; font-size: .62em; color: #A7ABAE; text-align: center; }
.ps-tabs span::before { content: ""; display: block; width: 1.6em; height: 1.6em; margin: 0 auto .35em; border: .16em solid currentColor; border-radius: .35em; }
.ps-tabs .on { color: #FF4F00; }

/* documents (generated output) */
.doc {
  container-type: inline-size; position: relative;
  background: #fff; border: 1px solid #D6D8DA; border-radius: 4px;
  box-shadow: 0 24px 44px -28px rgba(18,22,26,.35);
  font-family: var(--sans); color: #1A1A1A; overflow: hidden;
}
.doc .dz { font-size: 4.2cqw; padding: 1.6em 1.6em 1.4em; height: 100%; }
.doc-top { height: .4em; background: #FF4F00; position: absolute; left: 0; right: 0; top: 0; }
.doc-kind { font-size: .7em; font-weight: 600; color: #5F6468; display: flex; justify-content: space-between; }
.doc-h { font-family: var(--serif); font-size: 1.35em; line-height: 1.15; margin: .5em 0 .7em; }
.doc-l { display: grid; gap: .5em; }
.doc-l b { display: block; height: .38em; background: #E3E5E7; border-radius: 99em; }
.doc-l b.s { width: 62%; }
.doc-l b.m { width: 84%; }
.doc-l b.k { background: #1A1A1A; width: 44%; height: .45em; margin-top: .5em; }
.sheet { width: 100%; border-collapse: collapse; font-size: .62em; margin-top: .4em; }
.sheet th, .sheet td { border: 1px solid #E3E5E7; padding: .5em .45em; text-align: left; white-space: nowrap; overflow: hidden; }
.sheet th { background: #F4F5F6; font-weight: 600; }
.sheet td b { display: block; height: .55em; background: #E3E5E7; border-radius: 99em; }
.sheet td b.s { width: 60%; }

/* ---------- hero composition ---------- */
.hv { position: relative; container-type: inline-size; }
.hv-inner { position: relative; aspect-ratio: 640 / 560; }
.hv .phone { position: absolute; left: 0; top: 2%; width: 37%; }
.hv .doc-a { position: absolute; left: 58%; top: 3%; width: 42%; height: 43%; }
.hv .doc-b { position: absolute; left: 58%; top: 54%; width: 42%; height: 40%; }
.hv .seg { position: absolute; background: var(--orange); }
.hv .s1 { left: 37%; top: 49%; width: 12%; height: var(--line); }
.hv .s2 { left: 49%; top: 24%; width: var(--line); height: 50.5%; }
.hv .s3 { left: 49%; top: 24%; width: 9%; height: var(--line); }
.hv .s4 { left: 49%; top: 74.2%; width: 9%; height: var(--line); }
.hv .jn { position: absolute; left: calc(49% - 6px); top: calc(49% - 5px); width: 13px; height: 13px; background: var(--surface); border: var(--line) solid var(--orange); }
.hv .lab { position: absolute; font-size: clamp(10px, 1.85cqw, 12.5px); font-weight: 600; color: var(--ink); line-height: 1.3; }
.hv .lab span { display: block; font-weight: 400; color: var(--muted); }
.hv .l1 { left: 38.2%; top: 52%; width: 10.5%; }
.hv .l2 { left: 58%; top: 47.4%; }
.hv .l3 { left: 58%; top: 95.2%; }
@container (max-width: 520px) {
  .hv .lab span { display: none; }
  .hv .l1 { top: 52.5%; }
}

/* ---------- inner-page bits ---------- */
.roles { width: 100%; border-collapse: collapse; font-size: 1rem; }
.roles caption { text-align: left; font-size: .8125rem; color: var(--muted); padding-bottom: 14px; }
.roles th, .roles td { padding: 18px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.roles thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink); }
.roles tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); width: 24%; }
.roles td { color: #2A2D2F; }
.roles .y::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--orange); margin-right: 10px; transform: translateY(-1px); }
.roles .n { color: var(--muted); }
.table-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .roles thead { display: none; }
  .roles, .roles tbody, .roles tr, .roles th, .roles td { display: block; width: 100%; }
  .roles tr { border-bottom: 1px solid var(--border); padding: 18px 0; }
  .roles tbody th { border: 0; padding: 0 0 8px; width: 100%; }
  .roles td { border: 0; padding: 4px 0; }
  .roles td::before { content: attr(data-h) ": "; font-weight: 600; color: var(--ink); }
}

.time-quote { max-width: 760px; }
.time-quote > p { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.45; color: var(--ink); }

.monogram {
  width: 92px; height: 92px; flex: none; position: relative;
  border: var(--line) solid var(--ink); display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.1rem; color: var(--ink); letter-spacing: .02em;
}
.monogram::after { content: ""; position: absolute; left: -2px; bottom: -2px; width: 34px; height: var(--line); background: var(--orange); }
.monogram.sm { width: 56px; height: 56px; font-size: 1.35rem; }
.monogram.sm::after { width: 20px; }

.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border); }
.person { padding: 44px 56px 8px 0; }
.person + .person { padding-left: 56px; padding-right: 0; border-left: 1px solid var(--border); }
.person-head { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.person-head h3 { font-size: 1.75rem; }
.person-head p { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.person .bio p { color: #2A2D2F; font-size: 1rem; }
@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; }
  .person { padding: 36px 0; }
  .person + .person { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

.clients { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; }
.clients h3 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.clients ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.clients li { font-family: var(--serif); font-size: 1.125rem; line-height: 1.35; padding: 10px 0; border-bottom: 1px solid var(--hair); break-inside: avoid; }
@media (max-width: 900px) { .clients { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .clients ul { columns: 1; } }

.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--dark-rule); margin-top: 8px; }
.awards div { padding: 28px 28px 4px 0; }
.awards div + div { padding-left: 28px; border-left: 1px solid var(--dark-rule); }
.awards strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; color: var(--dark-text); margin-bottom: 8px; }
.awards span { color: var(--dark-muted); font-size: .9375rem; }
@media (max-width: 900px) {
  .awards { grid-template-columns: 1fr; }
  .awards div { padding: 24px 0; }
  .awards div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--dark-rule); }
}

.kind-words { columns: 3; column-gap: 48px; }
.kind-words figure { break-inside: avoid; margin: 0 0 40px; padding-top: 22px; border-top: 1px solid var(--border); }
.kind-words blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.42; color: var(--ink); }
.kind-words figcaption { font-size: .875rem; line-height: 1.5; }
.kind-words figcaption span { display: block; }
@media (max-width: 1000px) { .kind-words { columns: 2; } }
@media (max-width: 640px) { .kind-words { columns: 1; } }

.pillars { list-style: none; margin: 0; padding: 0; counter-reset: p; border-top: 1px solid var(--border); }
.pillars li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.pillars li::before { counter-increment: p; content: counter(p, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.pillars strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.25; color: var(--ink); margin-bottom: 6px; }
.pillars span { color: var(--muted); }

.years { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); margin-top: 40px; }
.years div { padding: 24px 24px 0 0; }
.years div + div { padding-left: 28px; border-left: 1px solid var(--border); }
.years strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.years span { display: block; margin-top: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.45; }

/* ---------- blog index ---------- */
.feature-post { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; border: 1px solid var(--border); text-decoration: none; color: inherit; background: #fff; transition: border-color .2s ease; }
.feature-post:hover { border-color: var(--ink); }
.feature-art { background: var(--dark); color: var(--dark-text); padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.then-now { display: flex; align-items: flex-end; gap: 22px; }
.then-now .tn { font-family: var(--serif); line-height: .85; letter-spacing: -.04em; }
.then-now .tn small { display: block; font-family: var(--sans); font-size: .8125rem; letter-spacing: 0; color: var(--dark-muted); margin-top: 14px; line-height: 1.3; }
.then-now .a { font-size: clamp(3.5rem, 6vw, 5rem); color: var(--dark-muted); }
.then-now .b { font-size: clamp(6rem, 11vw, 9.5rem); color: var(--dark-text); }
.then-now .arrow { flex: 1; max-width: 120px; height: var(--line); background: var(--orange); margin-bottom: 2.4rem; position: relative; }
.then-now .arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: var(--line) solid var(--orange); border-right: var(--line) solid var(--orange); transform: rotate(45deg); }
.feature-art .cap { font-size: .875rem; color: var(--dark-muted); max-width: 22em; }
.feature-body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .8125rem; color: var(--muted); margin-bottom: 20px; }
.post-meta .tag { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.post-meta .tag::before { content: ""; width: 7px; height: 7px; background: var(--orange); }
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #A7ABAE; }
.feature-body h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 18px; }
.feature-body p { color: var(--muted); }
.feature-body .text-link { margin-top: auto; align-self: flex-start; }
.feature-body blockquote { margin: 8px 0 32px; padding-left: 20px; border-left: var(--line) solid var(--orange); font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 900px) { .feature-post { grid-template-columns: 1fr; } }

.log { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; }
.log::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 30px; width: var(--line); background: var(--orange); }
.log > li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 48px; padding: 0 0 56px; }
.log > li::before { content: ""; position: absolute; left: -64px; top: 6px; width: 12px; height: 12px; background: var(--surface); border: var(--line) solid var(--orange); }
.log time { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); line-height: 1.3; padding-top: 2px; }
.log time span { display: block; font-family: var(--sans); font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.log h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: 14px; }
.log h2 a { text-decoration: none; }
.log h2 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.log .entry > p { color: #2A2D2F; max-width: 40em; }
.log .entry blockquote { margin: 20px 0 0; padding-left: 20px; border-left: var(--line) solid var(--border); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink); max-width: 38em; }
.log .entry blockquote footer { font-family: var(--sans); font-style: normal; font-size: .8125rem; color: var(--muted); margin-top: 10px; }
.log details { margin-top: 18px; max-width: 40em; }
.log summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; color: var(--ink); border-bottom: var(--line) solid var(--orange); padding-bottom: 2px; }
.log summary::-webkit-details-marker { display: none; }
.log summary::after { content: "+"; font-weight: 400; font-size: 1.15rem; line-height: 1; }
.log details[open] summary::after { content: "–"; }
.log details[open] summary { margin-bottom: 18px; }
.log details p { color: #2A2D2F; }
.log .read { display: inline-block; margin-top: 18px; }
@media (max-width: 760px) {
  .log { padding-left: 40px; }
  .log::before { left: 5px; }
  .log > li::before { left: -40px; }
  .log > li { grid-template-columns: 1fr; gap: 10px; padding-bottom: 48px; }
}

.blog-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.2fr); gap: 56px 80px; align-items: start; }
.aside-card { border-top: var(--line) solid var(--ink); padding-top: 24px; margin-bottom: 48px; }
.aside-card h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.aside-card p { font-size: .9375rem; color: #2A2D2F; }
.aside-card .person-mini { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.aside-card .person-mini strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.aside-card .person-mini div span { font-size: .8125rem; color: var(--muted); }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: .9375rem; }
.aside-card li span { color: var(--muted); }
@media (max-width: 1000px) { .blog-layout { grid-template-columns: 1fr; } .blog-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; } }
@media (max-width: 640px) { .blog-aside { grid-template-columns: 1fr; } }

/* ---------- blog post ---------- */
.post-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.crumb { font-size: .875rem; color: var(--muted); margin-bottom: 36px; }
.crumb a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.crumb a:hover { border-color: var(--orange); }
.post-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.5rem); max-width: 11em; }
.standfirst { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.35; color: #2A2D2F; max-width: 30em; margin-top: 26px; }
.byline { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: .9375rem; }
.byline strong { display: block; font-weight: 600; }
.byline div span { color: var(--muted); font-size: .875rem; }

.scorecard { background: var(--dark); color: var(--dark-text); }
.scorecard-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 80px; align-items: end; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.scorecard .then-now .b { font-size: clamp(7rem, 15vw, 13rem); }
.scorecard .then-now .a { font-size: clamp(4rem, 7vw, 6rem); }
.scorecard .then-now .arrow { max-width: 200px; margin-bottom: 3.6rem; }
.scorecard dl { margin: 0; border-top: 1px solid var(--dark-rule); }
.scorecard dl div { padding: 18px 0; border-bottom: 1px solid var(--dark-rule); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
.scorecard dt { font-size: .8125rem; color: var(--dark-muted); padding-top: 4px; }
.scorecard dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; }
.scorecard .src { font-size: .8125rem; color: var(--dark-muted); margin-top: 18px; }
@media (max-width: 900px) { .scorecard-grid { grid-template-columns: 1fr; } }

.article { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 2fr); gap: 0 48px; }
.article .body { grid-column: 2; max-width: 680px; }
.article .body > p { font-size: 1.1875rem; line-height: 1.72; color: #1E2123; }
.article .body > p:first-of-type { font-size: 1.375rem; line-height: 1.6; color: var(--ink); }
.article .side { grid-column: 1; grid-row: 1; font-size: .8125rem; color: var(--muted); padding-top: 8px; }
.article .side strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.article .side div { padding: 14px 0; border-top: 1px solid var(--hair); }
@media (max-width: 1000px) {
  .article { grid-template-columns: minmax(0, 1fr); }
  .article .body { grid-column: 1; }
  .article .side { grid-row: auto; display: flex; flex-wrap: wrap; gap: 0 32px; padding: 24px 0 0; margin-top: 48px; border-top: 1px solid var(--hair); }
  .article .side div { border-top: 0; padding: 0 0 8px; }
}

.pull { margin: 56px 0; padding: 40px 0 0; border-top: var(--line) solid var(--orange); }
.pull blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.22; letter-spacing: -.01em; color: var(--ink); text-indent: -.4em; }
.pull figcaption { margin-top: 20px; font-size: .9375rem; }
.pull figcaption span { display: block; color: var(--muted); font-size: .875rem; }
.voices { margin: 56px 0 0; }
.voices h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.voice { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
.voice blockquote { margin: 0 0 12px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.voice figcaption { font-size: .875rem; }
.voice figcaption span { color: var(--muted); }
.post-end { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: .9375rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4.4fr); gap: 56px 96px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 0; border-bottom: 1px solid #8A8F93; border-radius: 0;
  padding: 10px 0 12px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; border: 1px solid #8A8F93; padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 var(--line) 0 0 var(--orange); }
.field textarea:focus { box-shadow: inset 0 0 0 1px var(--ink); border-color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-top: 6px; }
.form-foot p { font-size: .8125rem; color: var(--muted); max-width: 30em; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.contact-card { border-top: var(--line) solid var(--ink); padding-top: 28px; }
.contact-card .who { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.contact-card .who strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.contact-card .who div span { color: var(--muted); font-size: .9375rem; }
.contact-lines { margin: 0; }
.contact-lines div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-lines dt { font-size: .8125rem; color: var(--muted); margin-bottom: 4px; }
.contact-lines dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
.contact-lines dd a { text-decoration: none; }
.contact-lines dd a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.contact-lines address { font-style: normal; font-family: var(--sans); font-size: 1rem; line-height: 1.6; }

.steps-2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.steps-2 li { padding: 32px 36px 8px 0; }
.steps-2 li + li { padding-left: 36px; border-left: 1px solid var(--border); }
.steps-2 .n { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--muted); margin-bottom: 16px; }
.steps-2 h3 { margin-bottom: 10px; }
.steps-2 p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .steps-2 { grid-template-columns: 1fr; }
  .steps-2 li { padding: 28px 0; }
  .steps-2 li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* utility */
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 80px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- how it works: contents + frame pairing ---------- */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--border); }
.toc a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 14px 0; text-decoration: none; }
.toc .n { font-family: var(--serif); color: var(--muted); }
.toc .t { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.toc .w { font-size: .8125rem; color: var(--muted); }
.toc a:hover .t { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.frame-pair { display: flex; align-items: flex-end; gap: 4%; }
.frame-pair .browser { flex: 1; min-width: 0; }
.frame-pair .phone-wrap { width: 31%; flex: none; margin-bottom: -28px; }
@media (max-width: 640px) {
  .frame-pair { display: block; }
  .frame-pair .phone-wrap { position: relative; width: 52%; margin: -16% 4% 0 auto; }
}

.chapter .frame-fig { margin-top: 4px; }
.frame-pair + .frame-cap { margin-top: 44px; }
.spine-intro { max-width: 760px; margin-bottom: clamp(56px, 7vw, 96px); }
@media (max-width: 640px) {
  .chapter .frame-fig { margin-left: -56px; }
  .chapter .frame-cap { padding-left: 56px; }
  .frame-cap { flex-direction: column; gap: 4px; }
}
.on-dark .clients h3 { color: var(--dark-muted); border-bottom-color: var(--dark-text); }
.on-dark .clients li { border-bottom-color: var(--dark-rule); color: var(--dark-text); }
.on-dark .section-head p { color: var(--dark-muted); }
.art-label { font-size: .8125rem; font-weight: 600; color: var(--dark-text); display: flex; align-items: center; gap: 12px; }
.art-label::before { content: ""; width: 28px; height: var(--line); background: var(--orange); }
.feature-art .cap { margin-top: 28px; }

.post-end a:not(.text-link) { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* vertical throughline (contact) */
.line-v { grid-template-columns: 1fr; gap: 0; padding-left: 60px; }
.line-v::before { display: none; }
.line-v li:not(:last-child)::after { content: ""; position: absolute; left: -43px; top: 34px; bottom: 0; width: var(--line); background: var(--orange); }
.line-v li { padding: 0 0 36px; }
.line-v li:last-child { padding-bottom: 0; }
.line-v .node { left: -60px; }
.line-v h3 { font-size: 1.3rem; margin-bottom: 6px; }
.line-v .who { margin-bottom: 6px; }
.expect h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 36px; }
.contact-grid .expect { padding-top: 4px; }
.hero-card { align-self: end; }
.band-muted .field input, .band-muted .field textarea { background: transparent; }
.band-muted .field textarea { background: #fff; }
