@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ol, ul, figure { margin: 0; }
  button, input, select, textarea { font: inherit; }
  img, svg, video { max-width: 100%; display: block; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

@layer base {
  :root {
    --paper: #f6f2e8;
    --paper-2: #efe9dc;
    --cream: #fffaf0;
    --ink: #17150f;
    --ink-soft: #5f5a4f;
    --line: #d9d1c1;
    --coral: #ff5c35;
    --coral-soft: #ffd5c9;
    --yellow: #ffd23f;
    --yellow-soft: #ffec9b;
    --blue: #4a7cf0;
    --blue-soft: #dce8ff;
    --green: #2e8b67;
    --green-soft: #d9f2e7;
    --purple: #7958c8;
    --shadow: 0 18px 55px rgba(49, 40, 25, .10);
    --display: Georgia, 'Times New Roman', serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color-scheme: light;
  }
  body { background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; min-width: 320px; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  button { color: inherit; }
  ::selection { background: var(--yellow); color: var(--ink); }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
  .skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; background: var(--ink); color: white; padding: 10px 16px; border-radius: 0 0 8px 8px; }
  .skip-link:focus { top: 0; }
  .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
  .eyebrow { font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
  h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: .98; }
  h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
  h3 { line-height: 1.18; }
  code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
}

@layer layout {
  .site-header { height: 72px; border-bottom: 1px solid var(--line); background: rgba(246,242,232,.96); backdrop-filter: blur(16px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 4vw, 64px); position: sticky; top: 0; z-index: 50; }
  .brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; width: max-content; }
  .brand > span:last-child { display: flex; flex-direction: column; line-height: .95; font-size: .92rem; }
  .brand small { text-transform: uppercase; letter-spacing: .2em; font-size: .55rem; margin-top: 4px; }
  .brand-mark { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 9px; position: relative; background: var(--yellow); display: block; transform: rotate(-2deg); }
  .brand-mark::before, .brand-mark::after { content: ''; position: absolute; width: 15px; height: 2px; background: var(--ink); top: 10px; }
  .brand-mark::before { left: 2px; transform: rotate(34deg); }
  .brand-mark::after { right: 2px; transform: rotate(-34deg); }
  .brand-mark span { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 2px; background: var(--coral); }
  .primary-tabs { justify-self: center; display: flex; background: var(--paper-2); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
  .primary-tab { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: .84rem; font-weight: 750; display: inline-flex; gap: 7px; align-items: center; }
  .primary-tab.is-active { color: white; background: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.16); }
  .header-source-link { justify-self: end; font-size: .78rem; font-weight: 700; }
  .app-view { display: none; }
  .app-view.is-active { display: block; }
  #research-view { padding-bottom: 76px; }
  .section-shell { width: min(1400px, calc(100% - 48px)); margin-inline: auto; padding: 100px 0; }
  .section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr); gap: 40px; align-items: end; margin-bottom: 36px; }
  .section-heading .eyebrow { color: var(--coral); margin-bottom: 12px; }
  .section-heading > p { color: var(--ink-soft); max-width: 520px; justify-self: end; }
}

@layer components {
  .button { border: 1px solid var(--ink); padding: 12px 18px; min-height: 46px; border-radius: 999px; font-weight: 800; font-size: .86rem; display: inline-flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
  .button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,21,15,.14); }
  .button-dark { background: var(--ink); color: white; }
  .button-ghost { background: transparent; }
  .button-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }

  .research-hero { min-height: 650px; padding: clamp(70px, 8vw, 130px) max(24px, calc((100vw - 1400px)/2)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); gap: clamp(48px, 8vw, 120px); align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
  .research-hero::before { content: ''; width: 540px; height: 540px; border: 1px solid var(--line); border-radius: 50%; position: absolute; right: -180px; top: -140px; }
  .research-hero::after { content: ''; width: 260px; height: 260px; background: var(--yellow-soft); opacity: .35; filter: blur(2px); border-radius: 50%; position: absolute; left: -170px; bottom: -100px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
  .live-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px var(--green-soft); }
  .hero-copy h1 { font-size: clamp(3.4rem, 7.2vw, 7.9rem); max-width: 900px; }
  .hero-dek { font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 720px; margin: 28px 0 32px; line-height: 1.65; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-board { height: 470px; border: 2px solid var(--ink); background: #e7dfce; box-shadow: 14px 14px 0 var(--ink); border-radius: 3px; position: relative; z-index: 3; transform: rotate(1.5deg); }
  .hero-board::before { content: ''; position: absolute; inset: 12px; border: 1px dashed rgba(23,21,15,.25); pointer-events: none; }
  .hero-note { position: absolute; padding: 16px; width: 190px; min-height: 135px; box-shadow: 0 9px 18px rgba(23,21,15,.18); display: flex; flex-direction: column; justify-content: space-between; font-family: var(--display); }
  .hero-note p { font-size: 1.07rem; line-height: 1.25; }
  .hero-note small { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: .58rem; font-weight: 800; }
  .note-coral { background: var(--coral-soft); left: 36px; top: 40px; transform: rotate(-6deg); }
  .note-yellow { background: var(--yellow); right: 24px; top: 70px; transform: rotate(5deg); }
  .note-blue { background: var(--blue-soft); left: 78px; bottom: 35px; transform: rotate(3deg); }
  .note-cream { background: var(--cream); right: 36px; bottom: 48px; transform: rotate(-5deg); }
  .avatar, .play-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-family: var(--sans); font-size: .72rem; font-weight: 900; }
  .play-dot { background: white; color: var(--ink); }
  .gif-sparkles, .waveform { font-family: var(--sans); font-weight: 900; color: var(--purple); letter-spacing: .15em; }
  .waveform { color: var(--coral); letter-spacing: 0; }
  .board-sticker { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-content: center; text-align: center; line-height: .85; font-size: 1.7rem; font-family: var(--display); position: absolute; left: calc(50% - 42px); top: calc(50% - 42px); transform: rotate(-8deg); border: 4px solid var(--paper); z-index: 4; }
  .board-sticker small { font-family: var(--sans); font-size: .55rem; text-transform: uppercase; letter-spacing: .1em; }
  .hero-confetti i { position: absolute; width: 9px; height: 28px; background: var(--coral); transform: rotate(34deg); }
  .hero-confetti i:nth-child(1) { top: 65px; left: 44%; }
  .hero-confetti i:nth-child(2) { top: 130px; right: 7%; background: var(--blue); transform: rotate(-18deg); }
  .hero-confetti i:nth-child(3) { bottom: 80px; right: 45%; background: var(--yellow); transform: rotate(70deg); }
  .hero-confetti i:nth-child(4) { top: 35%; left: 25px; background: var(--green); transform: rotate(-36deg); }
  .hero-confetti i:nth-child(5) { bottom: 40px; right: 70px; width: 16px; height: 16px; border-radius: 50%; background: var(--purple); }

  .stat-ribbon { min-height: 102px; background: var(--ink); color: white; padding: 22px max(24px, calc((100vw - 1400px)/2)); display: grid; grid-template-columns: repeat(4, minmax(120px, .5fr)) minmax(280px, 1.5fr); gap: 24px; align-items: center; }
  .stat-ribbon div { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.2); }
  .stat-ribbon strong { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--yellow); }
  .stat-ribbon span { text-transform: uppercase; font-size: .58rem; letter-spacing: .13em; margin-top: 5px; }
  .stat-ribbon p { color: #bcb8ad; font-size: .78rem; justify-self: end; max-width: 310px; }

  .editor-picks { border-bottom: 1px solid var(--line); }
  .pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pick-card { min-height: 280px; border: 1px solid var(--ink); border-radius: 18px; padding: 20px; background: var(--cream); position: relative; overflow: hidden; display: flex; flex-direction: column; }
  .pick-card::after { content: attr(data-number); position: absolute; font-family: var(--display); font-size: 8rem; color: rgba(23,21,15,.06); line-height: 1; right: -8px; bottom: -16px; }
  .pick-card:nth-child(2) { background: var(--yellow-soft); }
  .pick-card:nth-child(3) { background: var(--blue-soft); }
  .pick-card:nth-child(4) { background: var(--green-soft); }
  .pick-kicker { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; display: flex; justify-content: space-between; }
  .pick-logo { width: 72px; height: 72px; border: 1px solid rgba(23,21,15,.15); border-radius: 16px; background: white; padding: 10px; display: grid; place-items: center; margin: 28px 0 18px; overflow: hidden; }
  .pick-logo img { width: 100%; height: 100%; object-fit: contain; }
  .pick-card h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
  .pick-card p { color: var(--ink-soft); font-size: .82rem; margin: 8px 0 18px; max-width: 90%; }
  .pick-card a { margin-top: auto; font-size: .75rem; font-weight: 850; position: relative; z-index: 2; }

  .directory { padding-top: 110px; }
  .directory-heading { margin-bottom: 24px; }
  .view-tools { justify-self: end; display: flex; gap: 6px; }
  .icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; font-size: 1.2rem; }
  .icon-button.is-active { background: var(--ink); color: white; border-color: var(--ink); }
  .filter-bar { position: sticky; top: 72px; z-index: 20; background: rgba(255,250,240,.98); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 0 0 16px 16px; padding: 12px; display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(160px, .65fr)) auto auto auto; gap: 10px; align-items: stretch; box-shadow: 0 10px 30px rgba(23,21,15,.06); }
  .search-box { min-height: 52px; background: white; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 12px; }
  .search-box input { min-width: 0; border: 0; outline: 0; background: transparent; width: 100%; }
  .search-box kbd { color: var(--ink-soft); border: 1px solid var(--line); background: var(--paper); border-radius: 5px; padding: 1px 6px; font-size: .7rem; }
  .filter-select-wrap { min-height: 52px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; display: flex; flex-direction: column; justify-content: center; }
  .filter-select-wrap label { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; color: var(--ink-soft); }
  .filter-select-wrap select, .results-meta select { background: transparent; border: 0; outline: 0; font-size: .84rem; font-weight: 750; min-width: 0; }
  .toggle-filter { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .76rem; font-weight: 800; cursor: pointer; min-height: 52px; }
  .toggle-filter input { position: absolute; opacity: 0; pointer-events: none; }
  .toggle-filter span { width: 30px; height: 18px; border-radius: 999px; background: #d4cec2; position: relative; flex: 0 0 auto; transition: background .2s; }
  .toggle-filter span::after { content: ''; width: 12px; height: 12px; background: white; border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
  .toggle-filter input:checked + span { background: var(--green); }
  .toggle-filter input:checked + span::after { transform: translateX(12px); }
  .toggle-filter:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
  .reset-button { border: 0; background: transparent; font-size: .68rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 8px; }
  .results-meta { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 18px; color: var(--ink-soft); font-size: .78rem; }
  .results-meta strong { color: var(--ink); }
  .results-meta label { display: flex; align-items: center; gap: 6px; }

  .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .service-card { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; min-height: 490px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; position: relative; }
  .service-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
  .card-image { height: 158px; background: linear-gradient(145deg, #e8e2d7, #fff); border-bottom: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
  .card-image img { width: 100%; height: 100%; object-fit: cover; }
  .card-image img.logo-only { object-fit: contain; padding: 34px; }
  .image-fallback { width: 82px; height: 82px; border-radius: 20px; display: grid; place-items: center; font-family: var(--display); font-size: 2.3rem; color: white; background: var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
  .evidence-badge { position: absolute; left: 12px; bottom: 12px; border-radius: 999px; padding: 5px 8px; background: rgba(23,21,15,.88); color: white; font-size: .52rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
  .card-compare { position: absolute; top: 12px; right: 12px; z-index: 2; }
  .card-compare input { position: absolute; opacity: 0; }
  .card-compare span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(23,21,15,.25); border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; font-size: 1rem; font-weight: 900; }
  .card-compare input:checked + span { color: white; background: var(--ink); }
  .card-compare input:checked + span::before { content: '✓'; }
  .card-compare input:not(:checked) + span::before { content: '+'; }
  .card-compare:has(input:focus-visible) span { outline: 3px solid var(--blue); outline-offset: 2px; }
  .card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
  .card-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
  .category-label { font-size: .62rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--coral); }
  .fit-score { font-size: .64rem; font-weight: 850; white-space: nowrap; }
  .fit-score strong { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: white; margin-left: 4px; }
  .service-card h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 500; margin: 8px 0 7px; }
  .card-summary { color: var(--ink-soft); font-size: .84rem; line-height: 1.5; min-height: 2.4em; }
  .media-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
  .media-chip { border: 1px solid var(--line); padding: 4px 7px; border-radius: 999px; font-size: .54rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; background: white; }
  .media-chip.is-video { background: var(--coral-soft); border-color: #f3ad9b; }
  .media-chip.is-gif { background: var(--yellow-soft); border-color: #e1c65f; }
  .media-chip.is-audio { background: var(--blue-soft); border-color: #aac4f6; }
  .card-facts { display: grid; grid-template-columns: 1fr 1fr; border: solid var(--line); border-width: 1px 0; margin-bottom: 14px; }
  .card-facts div { padding: 8px 6px 8px 0; min-width: 0; }
  .card-facts div + div { border-left: 1px solid var(--line); padding-left: 10px; }
  .card-facts span { display: block; font-size: .55rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); font-weight: 850; }
  .card-facts strong { display: block; font-size: .72rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .review-quote { background: var(--paper); border-radius: 10px; padding: 12px 13px; margin-top: auto; font-family: var(--display); font-size: .82rem; line-height: 1.42; min-height: 74px; }
  .review-quote p::before { content: '“'; color: var(--coral); font-size: 1.2em; }
  .review-quote p::after { content: '”'; color: var(--coral); }
  .review-quote footer { display: flex; justify-content: space-between; gap: 6px; font-family: var(--sans); font-size: .54rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-top: 6px; }
  .review-quote.no-quote p::before, .review-quote.no-quote p::after { content: ''; }
  .review-quote.no-quote { font-family: var(--sans); color: var(--ink-soft); font-size: .74rem; }
  .card-caveat { display: flex; gap: 6px; color: #704614; background: #fff0d6; padding: 9px 10px; border-radius: 8px; font-size: .68rem; line-height: 1.4; margin-top: 10px; }
  .card-links { display: grid; grid-template-columns: 1fr repeat(3, auto); align-items: center; gap: 8px; margin-top: 14px; }
  .card-links a { font-size: .68rem; font-weight: 850; min-height: 34px; display: inline-flex; align-items: center; }
  .card-links .visit-link { display: inline-flex; align-items: center; justify-content: space-between; border-radius: 999px; padding: 9px 12px; background: var(--ink); color: white; text-decoration: none; }
  .card-links .source-link { color: var(--ink-soft); }
  .service-grid.is-list { grid-template-columns: 1fr; }
  .service-grid.is-list .service-card { min-height: 0; display: grid; grid-template-columns: 180px 1fr; }
  .service-grid.is-list .card-image { height: 100%; min-height: 230px; border: 0; border-right: 1px solid var(--line); }
  .service-grid.is-list .card-body { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(220px, 1fr) minmax(220px, 1.1fr); column-gap: 18px; }
  .service-grid.is-list .card-topline, .service-grid.is-list h3, .service-grid.is-list .card-summary, .service-grid.is-list .media-chips { grid-column: 1; }
  .service-grid.is-list .card-facts { grid-column: 2; grid-row: 1 / span 4; align-self: center; border-width: 0 1px; padding: 0 18px; }
  .service-grid.is-list .review-quote { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .service-grid.is-list .card-caveat { grid-column: 3; }
  .service-grid.is-list .card-links { grid-column: 3; }
  .empty-state { border: 1px dashed var(--line); border-radius: 16px; padding: 70px 24px; text-align: center; background: var(--cream); }
  .empty-state > span { font-size: 2.5rem; }
  .empty-state h3 { font-family: var(--display); font-size: 2rem; margin: 8px; }
  .empty-state p { color: var(--ink-soft); margin-bottom: 18px; }

  .market-map { border-top: 1px solid var(--line); }
  .insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: solid var(--ink); border-width: 1px 0 1px 1px; }
  .insight-grid article { min-height: 330px; padding: 26px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; }
  .insight-number { font-family: var(--display); font-size: 2.2rem; color: var(--coral); }
  .insight-grid h3 { font-family: var(--display); font-size: 1.75rem; font-weight: 500; margin: auto 0 10px; }
  .insight-grid p { color: var(--ink-soft); font-size: .82rem; }
  .insight-grid .insight-accent { background: var(--ink); color: white; }
  .insight-accent p { color: #c9c5bb; }
  .insight-accent button { margin-top: 20px; border: 0; background: transparent; color: var(--yellow); padding: 0; text-align: left; font-weight: 850; cursor: pointer; }

  .methodology { padding-top: 30px; }
  .method-card { background: var(--yellow); border: 1px solid var(--ink); border-radius: 18px; padding: clamp(26px, 5vw, 60px); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 100px); position: relative; overflow: hidden; }
  .method-card::after { content: 'SOURCED'; font-size: 10rem; font-weight: 950; color: rgba(23,21,15,.055); position: absolute; bottom: -54px; left: -10px; letter-spacing: -.08em; }
  .method-card .eyebrow { margin-bottom: 18px; }
  .method-card p { margin-top: 22px; max-width: 520px; }
  .method-card ol { list-style: none; padding: 0; counter-reset: method; position: relative; z-index: 2; }
  .method-card li { counter-increment: method; display: grid; grid-template-columns: 34px .7fr 1.3fr; gap: 12px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid rgba(23,21,15,.3); }
  .method-card li::before { content: '0' counter(method); font-family: var(--display); font-size: 1.4rem; }
  .method-card li strong { font-size: .78rem; }
  .method-card li span { font-size: .7rem; color: #554b26; }
  .method-links { grid-column: 1 / -1; border-top: 1px solid rgba(23,21,15,.3); padding-top: 16px; display: flex; justify-content: space-between; font-size: .67rem; font-weight: 850; position: relative; z-index: 2; }
  .legal-note { margin: 15px auto 0; max-width: 900px; text-align: center; color: var(--ink-soft); font-size: .62rem; }

  .compare-bar { position: fixed; z-index: 60; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(820px, calc(100% - 32px)); background: var(--ink); color: white; border: 1px solid #333; border-radius: 999px; padding: 9px 10px 9px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
  .compare-bar[hidden] { display: none; }
  .compare-bar > div { min-width: 0; display: flex; flex-direction: column; }
  .compare-bar strong { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
  .compare-bar span { font-size: .7rem; color: #d0ccc2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .compare-bar > button:not(.button) { border: 0; background: transparent; color: #aaa59c; font-size: .68rem; cursor: pointer; }
  .compare-bar .button { min-height: 38px; padding: 8px 14px; }
  .compare-dialog { width: min(1100px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 40px)); border: 1px solid var(--ink); border-radius: 18px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
  .compare-dialog::backdrop { background: rgba(23,21,15,.72); backdrop-filter: blur(5px); }
  .dialog-header { padding: 22px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--paper); z-index: 2; }
  .dialog-header .eyebrow { color: var(--coral); }
  .dialog-header h2 { font-size: 2.3rem; }
  .dialog-header button { width: 40px; height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
  .compare-table { padding: 22px 28px 32px; overflow: auto; }
  .comparison-matrix { display: grid; grid-template-columns: 150px repeat(var(--compare-columns), minmax(180px, 1fr)); min-width: 680px; border: solid var(--line); border-width: 1px 0 0 1px; }
  .comparison-matrix.columns-1 { --compare-columns: 1; }
  .comparison-matrix.columns-2 { --compare-columns: 2; }
  .comparison-matrix.columns-3 { --compare-columns: 3; }
  .comparison-matrix.columns-4 { --compare-columns: 4; }
  .comparison-matrix > div { border: solid var(--line); border-width: 0 1px 1px 0; padding: 13px; font-size: .72rem; }
  .comparison-matrix .matrix-label { font-size: .55rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; color: var(--ink-soft); background: var(--paper-2); }
  .comparison-matrix .matrix-head { background: var(--cream); }
  .comparison-matrix .matrix-head strong { font-family: var(--display); font-size: 1.4rem; font-weight: 500; display: block; }
  .comparison-matrix a { font-weight: 850; }

  /* Product spec */
  .spec-view { background: #f8f5ed; }
  .spec-hero { min-height: 670px; background: var(--ink); color: white; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .7fr); align-items: center; gap: clamp(60px, 10vw, 160px); padding: clamp(70px, 8vw, 120px) max(24px, calc((100vw - 1300px)/2)); overflow: hidden; position: relative; }
  .spec-hero::before { content: ''; position: absolute; width: 660px; height: 660px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -160px; top: -160px; }
  .spec-hero::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--coral); filter: blur(120px); opacity: .18; left: -200px; bottom: -250px; }
  .spec-hero-copy { position: relative; z-index: 2; }
  .spec-hero .eyebrow { color: #bab5aa; margin-bottom: 22px; }
  .spec-status { color: var(--ink); background: var(--yellow); padding: 5px 8px; border-radius: 999px; margin-right: 10px; letter-spacing: .08em; }
  .spec-hero h1 { font-size: clamp(3.8rem, 7.2vw, 7.8rem); }
  .spec-hero h1 em { color: var(--yellow); font-weight: 500; }
  .spec-hero-copy > p:not(.eyebrow) { color: #c7c3ba; font-size: clamp(1rem, 1.5vw, 1.25rem); max-width: 690px; margin: 26px 0 34px; line-height: 1.6; }
  .spec-promise { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .spec-promise span { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 9px 13px; font-size: .7rem; font-weight: 800; }
  .spec-promise i { color: var(--coral); font-style: normal; }
  .spec-phone { width: min(380px, 100%); aspect-ratio: .62; border: 10px solid #302f2b; border-radius: 48px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px #54514b; justify-self: center; transform: rotate(4deg); position: relative; z-index: 2; overflow: hidden; }
  .spec-phone::before { content: ''; width: 90px; height: 22px; border-radius: 999px; background: #302f2b; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; }
  .phone-top { height: 82px; background: var(--yellow); display: flex; align-items: end; justify-content: space-between; padding: 0 20px 16px; font-size: .7rem; font-weight: 850; }
  .phone-top span { width: 20px; height: 14px; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
  .phone-body { padding: 28px 22px; }
  .phone-kicker { font-size: .55rem; letter-spacing: .16em; font-weight: 900; color: var(--coral); margin-bottom: 18px; }
  .phone-body label { display: block; text-transform: uppercase; font-size: .52rem; letter-spacing: .1em; font-weight: 850; margin-bottom: 16px; }
  .phone-body label span { display: block; text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 11px; margin-top: 5px; }
  .phone-body label .phone-message { min-height: 105px; line-height: 1.45; }
  .phone-body button { width: 100%; border: 1px dashed var(--line); background: var(--paper); border-radius: 10px; padding: 12px; text-align: left; font-size: .65rem; font-weight: 750; }
  .phone-submit { background: var(--ink); color: white; border-radius: 999px; margin-top: 18px; padding: 13px 15px; display: flex; justify-content: space-between; font-size: .7rem; font-weight: 850; }
  .phone-body > small { display: block; text-align: center; color: var(--ink-soft); font-size: .53rem; margin-top: 10px; }

  .spec-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr) 320px; gap: clamp(30px, 5vw, 70px); align-items: start; padding-top: 90px; }
  .spec-toc { position: sticky; top: 104px; display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line); }
  .spec-toc p { font-size: .55rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; margin-bottom: 10px; }
  .spec-toc a { text-decoration: none; color: var(--ink-soft); font-size: .68rem; padding: 6px 0; }
  .spec-toc a.is-current { color: var(--coral); font-weight: 850; }
  .spec-document { min-width: 0; }
  .spec-section { scroll-margin-top: 100px; padding: 10px 0 95px; border-bottom: 1px solid var(--line); }
  .spec-section + .spec-section { padding-top: 85px; }
  .spec-index { font-size: .59rem; font-weight: 900; letter-spacing: .16em; color: var(--coral); margin-bottom: 18px; }
  .spec-section h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); max-width: 820px; }
  .spec-lead { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.45; margin: 24px 0 34px; max-width: 800px; color: #4f4a41; }
  .principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-top: 35px; }
  .principles-grid article { background: var(--cream); padding: 24px; min-height: 180px; }
  .principles-grid strong { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); font-family: var(--display); }
  .principles-grid h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 500; margin: 34px 0 7px; }
  .principles-grid p { color: var(--ink-soft); font-size: .75rem; }
  .success-strip { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; background: var(--green-soft); border: 1px solid var(--green); margin-top: 16px; padding: 14px 18px; }
  .success-strip span { font-size: .52rem; font-weight: 900; letter-spacing: .1em; }
  .success-strip strong { font-family: var(--display); font-size: 2.6rem; color: var(--green); }
  .success-strip p { font-size: .75rem; }
  .flow-columns { display: grid; grid-template-columns: repeat(3, 1fr); border: solid var(--ink); border-width: 1px 0 1px 1px; margin-top: 38px; }
  .flow-columns article { padding: 22px; border-right: 1px solid var(--ink); min-height: 360px; display: flex; flex-direction: column; }
  .role { width: max-content; padding: 5px 8px; border-radius: 999px; font-size: .5rem; letter-spacing: .1em; font-weight: 900; }
  .role-host { background: var(--yellow); }
  .role-guest { background: var(--coral-soft); }
  .role-recipient { background: var(--blue-soft); }
  .flow-columns h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 500; margin: auto 0 18px; }
  .flow-columns ol { list-style: none; padding: 0; counter-reset: flow; }
  .flow-columns li { counter-increment: flow; font-size: .7rem; border-top: 1px solid var(--line); padding: 8px 0; display: grid; grid-template-columns: 22px 1fr; }
  .flow-columns li::before { content: counter(flow); color: var(--coral); font-family: var(--display); }
  .token-section { background: var(--ink); color: white; margin-inline: clamp(-30px, -3vw, -50px); padding-inline: clamp(30px, 3vw, 50px); border: 0; }
  .token-section .spec-lead { color: #c6c2b8; }
  .token-diagram { display: grid; grid-template-columns: repeat(4, 1fr auto); align-items: center; gap: 8px; margin: 38px 0 24px; }
  .token-diagram > div { border: 1px solid #4a4843; border-radius: 12px; padding: 14px; min-height: 112px; display: flex; flex-direction: column; }
  .token-diagram > div span { color: var(--coral); font-family: var(--display); font-size: 1.4rem; }
  .token-diagram > div strong { font-size: .7rem; margin-top: auto; }
  .token-diagram > div small { color: #aaa69c; font-size: .54rem; }
  .token-diagram > b:last-of-type { display: none; }
  .token-node { background: #272520; }
  .code-card { border: 1px solid #4a4843; border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
  .code-card > div { padding: 9px 13px; background: #2e2b26; display: flex; justify-content: space-between; font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; }
  .code-card button { border: 0; background: transparent; color: var(--yellow); cursor: pointer; }
  .code-card code { display: block; padding: 16px; color: #d8d3c8; font-size: .65rem; overflow-x: auto; }
  .callout { border: 1px solid; padding: 18px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
  .callout-coral { border-color: var(--coral); background: rgba(255,92,53,.1); }
  .callout strong { font-family: var(--display); font-size: 1.2rem; font-weight: 500; }
  .callout p { color: #c8c4ba; font-size: .7rem; }
  .check-list { list-style: none; padding: 0; margin-top: 20px; columns: 2; column-gap: 30px; }
  .check-list li { break-inside: avoid; font-size: .68rem; color: #c8c4ba; padding: 7px 0 7px 19px; position: relative; }
  .check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 900; }
  .check-list code { color: white; }
  .scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; }
  .scope-grid > div { border: 1px solid var(--ink); padding: 24px; }
  .scope-yes { background: var(--green-soft); }
  .scope-no { background: var(--paper-2); }
  .scope-grid h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 500; padding-bottom: 16px; border-bottom: 1px solid rgba(23,21,15,.25); }
  .scope-grid h3 span { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--ink); color: white; font-family: var(--sans); font-size: .7rem; margin-right: 6px; }
  .scope-grid ul { list-style: none; padding: 14px 0 0; columns: 2; }
  .scope-grid li { break-inside: avoid; font-size: .67rem; padding: 5px 0; }
  .media-contract { display: grid; grid-template-columns: repeat(4, 1fr); border: solid var(--line); border-width: 1px 0 1px 1px; margin-top: 16px; }
  .media-contract article { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
  .media-contract span { font-size: .52rem; font-weight: 900; color: var(--coral); }
  .media-contract strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; margin: 12px 0 3px; }
  .media-contract small { color: var(--ink-soft); font-size: .55rem; }
  .data-model { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 38px; }
  .data-model article { border: 1px solid var(--ink); border-radius: 10px; padding: 18px; background: var(--cream); }
  .data-model h3 { font-family: ui-monospace, monospace; color: var(--coral); font-size: .85rem; }
  .data-model p { font-family: ui-monospace, monospace; font-size: .58rem; color: var(--ink-soft); margin-top: 10px; }
  .permission-table-wrap { margin-top: 16px; overflow-x: auto; }
  .permission-table-wrap table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .65rem; }
  .permission-table-wrap th, .permission-table-wrap td { border: 1px solid var(--line); padding: 11px; text-align: center; }
  .permission-table-wrap th:first-child, .permission-table-wrap td:first-child { text-align: left; font-weight: 800; }
  .permission-table-wrap th { font-size: .52rem; text-transform: uppercase; letter-spacing: .07em; background: var(--paper-2); }
  .safety-list { margin-top: 38px; }
  .safety-list article { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
  .safety-list > article:last-child { border-bottom: 1px solid var(--line); }
  .safety-list > article > span { font-family: var(--display); color: var(--coral); font-size: 2rem; }
  .safety-list h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
  .safety-list p { color: var(--ink-soft); font-size: .72rem; margin-top: 5px; max-width: 670px; }
  .build-steps { list-style: none; padding: 0; margin-top: 38px; position: relative; }
  .build-steps::before { content: ''; position: absolute; left: 23px; top: 30px; bottom: 30px; width: 1px; background: var(--ink); }
  .build-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 0 0 24px; position: relative; }
  .build-steps li > span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); border: 1px solid var(--ink); font-family: var(--display); z-index: 1; }
  .build-steps li > div { border: 1px solid var(--line); background: var(--cream); padding: 15px 18px; }
  .build-steps strong { font-size: .77rem; }
  .build-steps p { color: var(--ink-soft); font-size: .65rem; margin-top: 3px; }
  .decision-list { margin-top: 38px; }
  .decision-list article { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
  .decision-list article:last-child { border-bottom: 1px solid var(--line); }
  .decision-list article > div { display: grid; grid-template-columns: 45px 1fr; gap: 12px; }
  .decision-list article > div > span { grid-row: 1 / span 2; font-family: var(--display); font-size: 1.4rem; color: var(--coral); }
  .decision-list h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
  .decision-list p { color: var(--ink-soft); font-size: .64rem; margin-top: 4px; }
  .decision-state { min-width: 112px; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 11px; background: transparent; font-size: .58rem; font-weight: 850; cursor: pointer; }
  .decision-state[data-state="lean-yes"] { background: var(--green-soft); border-color: var(--green); color: #145f44; }
  .decision-state[data-state="lean-no"] { background: var(--coral-soft); border-color: var(--coral); color: #8d2e18; }
  .jam-panel { position: sticky; top: 96px; background: var(--yellow); border: 1px solid var(--ink); border-radius: 14px; padding: 20px; box-shadow: 9px 9px 0 var(--ink); transform: rotate(1deg); }
  .jam-heading { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
  .jam-heading span { font-size: .48rem; letter-spacing: .1em; font-weight: 900; }
  .jam-heading h2 { font-size: 1.7rem; margin-top: 3px; }
  .save-status { color: #4d461f; white-space: nowrap; }
  .save-status.is-saving { color: var(--coral); }
  .jam-panel > p { font-size: .65rem; margin: 15px 0 10px; }
  .jam-panel textarea { width: 100%; height: 250px; resize: vertical; border: 1px solid var(--ink); background: #fff8d8; border-radius: 9px; padding: 12px; font-family: var(--display); font-size: .9rem; line-height: 1.45; }
  .jam-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
  .jam-actions button { border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; min-height: 36px; padding: 7px; font-size: .55rem; font-weight: 850; cursor: pointer; }
  .jam-actions .danger-quiet { grid-column: 1 / -1; background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; }
  .jam-local { border-top: 1px solid rgba(23,21,15,.35); margin-top: 12px; padding-top: 12px; display: flex; gap: 8px; }
  .jam-local > span { color: var(--green); }
  .jam-local strong { display: block; font-size: .6rem; }
  .jam-local small { display: block; font-size: .52rem; color: #61592b; margin-top: 2px; }
  .spec-section p:not(.spec-lead) { font-size: .8rem; line-height: 1.55; }
  .spec-section li { font-size: .76rem; line-height: 1.45; }
  .spec-section small { font-size: .64rem; }
  .spec-toc p { font-size: .62rem; }
  .spec-toc a { font-size: .74rem; min-height: 32px; display: flex; align-items: center; }
  .decision-state { min-height: 40px; font-size: .68rem; }
  .jam-panel > p { font-size: .74rem; line-height: 1.5; }
  .jam-actions button { min-height: 44px; font-size: .65rem; }
  .jam-local strong { font-size: .68rem; }
  .jam-local small { font-size: .6rem; }
  .spec-footer-cta { background: var(--coral); min-height: 430px; color: var(--ink); padding: 100px 24px; display: grid; place-items: center; text-align: center; }
  .spec-footer-cta h2 { max-width: 950px; font-size: clamp(3rem, 6vw, 6rem); margin: 18px 0; }
  .spec-footer-cta > p:not(.eyebrow) { margin-bottom: 24px; }
  .spec-footer-cta .button-light { border-color: var(--ink); background: var(--ink); color: white; }
  .noscript { padding: 16px; background: var(--coral-soft); text-align: center; }
}

@layer utilities {
  [hidden] { display: none !important; }
  html.scroll-reset { scroll-behavior: auto !important; }
  body.dialog-open { overflow: hidden; }
}

@media (max-width: 1180px) {
  .research-hero { grid-template-columns: 1fr .72fr; gap: 50px; }
  .hero-board { height: 420px; }
  .hero-note { width: 160px; min-height: 120px; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .search-box { grid-column: span 2; }
  .reset-button { min-height: 52px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .spec-layout { grid-template-columns: 130px minmax(0, 1fr); }
  .jam-panel { grid-column: 2; position: relative; top: auto; transform: none; margin-top: -45px; }
  .jam-panel textarea { height: 160px; }
  .jam-actions { grid-template-columns: auto auto auto; }
  .jam-actions .danger-quiet { grid-column: auto; }
  .service-grid.is-list .service-card { grid-template-columns: 140px 1fr; }
  .service-grid.is-list .card-body { grid-template-columns: 1fr 1fr; }
  .service-grid.is-list .review-quote, .service-grid.is-list .card-caveat, .service-grid.is-list .card-links { grid-column: 2; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 66px; }
  .header-source-link { display: none; }
  .primary-tabs { justify-self: end; }
  .primary-tab { padding: 8px 11px; font-size: .72rem; }
  .primary-tab span { display: none; }
  .section-shell { width: min(100% - 32px, 720px); padding: 70px 0; }
  .research-hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy h1 { max-width: 760px; }
  .hero-board { width: min(540px, calc(100% - 18px)); justify-self: center; }
  .stat-ribbon { grid-template-columns: repeat(4, 1fr); }
  .stat-ribbon p { grid-column: 1 / -1; justify-self: start; max-width: none; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .section-heading > p { justify-self: start; }
  .filter-bar { position: relative; top: 0; grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .search-box { grid-column: 1 / -1; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid article { min-height: 280px; }
  .method-card { grid-template-columns: 1fr; }
  .method-card ol { grid-column: 1; }
  .spec-hero { grid-template-columns: 1fr; padding-top: 80px; }
  .spec-phone { width: 340px; transform: rotate(2deg); }
  .spec-layout { grid-template-columns: 1fr; }
  .spec-toc { display: none; }
  .jam-panel { grid-column: 1; margin: -30px 0 40px; }
  .token-section { margin-inline: -16px; padding-inline: 16px; }
  .token-diagram { grid-template-columns: 1fr 20px 1fr; }
  .token-diagram > div:nth-of-type(n+3) { margin-top: 5px; }
  .token-diagram > b:nth-of-type(2) { display: none; }
  .token-diagram > div:nth-of-type(3) { grid-column: 1; }
  .token-diagram > div:nth-of-type(4) { grid-column: 3; }
  .flow-columns { grid-template-columns: 1fr; border-bottom: 0; }
  .flow-columns article { min-height: 260px; border-bottom: 1px solid var(--ink); }
  .service-grid.is-list .service-card { display: flex; }
  .service-grid.is-list .card-image { min-height: 150px; height: 150px; border: 0; border-bottom: 1px solid var(--line); }
  .service-grid.is-list .card-body { display: flex; }
}

@media (max-width: 660px) {
  .site-header { padding: 0 12px; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .primary-tab { font-size: .67rem; padding-inline: 9px; }
  .research-hero { padding: 55px 18px 80px; gap: 60px; }
  .research-hero::after { display: none; }
  .hero-confetti { display: none; }
  .hero-copy .eyebrow { font-size: .58rem; letter-spacing: .09em; white-space: nowrap; }
  .hero-copy h1 { font-size: clamp(3.25rem, 16vw, 5.2rem); }
  .hero-dek { font-size: .95rem; }
  .hero-actions { display: grid; }
  .hero-board { height: 370px; box-shadow: 9px 9px 0 var(--ink); }
  .hero-note { width: 142px; min-height: 105px; padding: 12px; }
  .hero-note p { font-size: .88rem; }
  .note-coral { left: 20px; top: 34px; }
  .note-yellow { right: 15px; top: 55px; }
  .note-blue { left: 35px; bottom: 32px; }
  .note-cream { right: 20px; bottom: 34px; }
  .board-sticker { width: 68px; height: 68px; left: calc(50% - 34px); top: calc(50% - 34px); font-size: 1.35rem; }
  .stat-ribbon { padding: 24px 18px; grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat-ribbon div:nth-child(2) { border-right: 0; }
  .stat-ribbon strong { font-size: 1.65rem; }
  .pick-grid, .service-grid { grid-template-columns: 1fr; }
  .pick-card { min-height: 250px; }
  .directory { padding-top: 80px; }
  .directory-heading { grid-template-columns: 1fr auto; }
  .directory-heading .view-tools { display: none; }
  .filter-bar { grid-template-columns: 1fr; padding: 9px; }
  .search-box, .filter-select-wrap, .toggle-filter, .reset-button { grid-column: 1; }
  .filter-bar .filter-select-wrap { display: grid; grid-template-columns: 90px 1fr; align-items: center; }
  .results-meta { align-items: flex-start; gap: 10px; }
  .results-meta label { flex-direction: column; align-items: flex-end; }
  .service-card { min-height: 480px; }
  .card-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-links .visit-link { grid-column: 1 / -1; min-height: 44px; }
  .card-links .source-link { justify-content: center; min-height: 44px; }
  .insight-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .insight-grid article { min-height: 240px; border-bottom: 1px solid var(--ink); }
  .method-card li { grid-template-columns: 30px 1fr; }
  .method-card li span { grid-column: 2; }
  .method-links { flex-direction: column; gap: 8px; }
  .compare-bar { border-radius: 18px; grid-template-columns: 1fr auto; }
  .compare-bar > button:not(.button) { display: none; }
  .compare-bar .button { grid-row: 1; grid-column: 2; }
  .spec-hero { padding: 65px 18px 80px; gap: 55px; }
  .spec-hero .eyebrow { display: flex; align-items: center; gap: 8px; font-size: .58rem; letter-spacing: .09em; white-space: nowrap; }
  .spec-status { margin-right: 0; }
  .spec-hero h1 { font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .spec-promise { display: grid; grid-template-columns: 1fr; align-items: stretch; text-align: center; }
  .spec-promise i { transform: rotate(90deg); }
  .spec-phone { width: min(330px, calc(100% - 20px)); }
  .principles-grid, .scope-grid, .data-model { grid-template-columns: 1fr; }
  .principles-grid article { min-height: 150px; }
  .success-strip { grid-template-columns: auto 1fr; }
  .success-strip p { grid-column: 1 / -1; }
  .token-diagram { display: flex; flex-direction: column; align-items: stretch; }
  .token-diagram > b { transform: rotate(90deg); align-self: center; }
  .token-diagram > b:last-of-type { display: block; }
  .callout { grid-template-columns: 1fr; }
  .check-list { columns: 1; }
  .scope-grid ul { columns: 1; }
  .media-contract { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .media-contract article { border-bottom: 1px solid var(--line); }
  .decision-list article { grid-template-columns: 1fr; }
  .decision-state { justify-self: start; margin-left: 57px; }
  .jam-actions { grid-template-columns: 1fr 1fr; }
  .jam-actions .danger-quiet { grid-column: 1 / -1; }
  .spec-footer-cta { min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
