/* Power Commerce Glow-Ups — components
   Before/after slider, device frames, scorecards, stat callouts, findings,
   Lighthouse bars, project cards, tabs, lightbox. */

/* ---------- Hero ---------- */
.hero { padding: 88px 0 var(--space-9); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: center; }
.hero .display { margin-top: var(--space-4); }
.hero .lede { margin-top: var(--space-5); }
.hero .cta-row { display: flex; gap: 12px; margin-top: var(--space-6); flex-wrap: wrap; }
.hero__note { margin-top: var(--space-4); font-size: 13px; color: var(--text-muted); }

/* ---------- Before / After compare slider ---------- */
.compare {
  position: relative; overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--border);
  background: var(--ink-100); box-shadow: var(--shadow-card); user-select: none; -webkit-user-select: none; touch-action: pan-y;
  aspect-ratio: 16 / 10;
}
.compare--mobile { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; pointer-events: none; }
.compare__after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(9,9,11,0.15); pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: var(--split, 50%); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-pop);
  display: flex; align-items: center; justify-content: center; color: var(--ink-900); pointer-events: none;
}
.compare__knob::before, .compare__knob::after { content: ""; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-left: 1.6px solid currentColor; }
.compare__knob::before { transform: rotate(-45deg); margin-right: 5px; }
.compare__knob::after { transform: rotate(135deg); margin-left: 5px; }
.compare__label {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; z-index: 2; pointer-events: none;
}
.compare__label--before { left: 14px; background: rgba(9,9,11,0.78); color: #fff; }
.compare__label--after { right: 14px; background: var(--coral-500); color: #fff; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.compare-caption { display: flex; justify-content: space-between; gap: var(--space-5); margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.compare-caption > span { flex: 1; min-width: 0; }
.compare-caption > span + span { text-align: right; }
.compare-caption strong { color: var(--ink-900); font-weight: 600; }
.compare-wrap { position: relative; }
.compare-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- Segmented control / tabs ---------- */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; background: #fff; }
.seg button { padding: 7px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color: var(--text-secondary); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.seg button[aria-selected="true"] { background: var(--ink-900); color: #fff; }
.seg button:hover:not([aria-selected="true"]) { color: var(--ink-900); }
.section--dark .seg { background: var(--ink-900); border-color: var(--border-dark); }
.section--dark .seg button[aria-selected="true"] { background: #fff; color: var(--ink-900); }

/* ---------- Stat callouts ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.stat { padding: var(--space-6) 0 0; border-top: 1px solid var(--border); }
.stat__value { font-family: var(--font-display); font-size: clamp(48px, 5.4vw, 80px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink-900); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat__value .from { color: var(--ink-400); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--coral-500); font-size: 0.6em; font-weight: 700; }
.stat__value .arrow { color: var(--coral-500); font-size: 0.5em; font-weight: 500; }
.stat__caption { margin-top: 12px; font-size: 14px; color: var(--text-secondary); max-width: 26ch; line-height: 1.45; }
.section--dark .stat { border-color: var(--border-dark); }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__value .from { color: var(--ink-500); }
.section--dark .stat__caption { color: var(--text-inverse-secondary); }

/* ---------- Scorecard ---------- */
.scorecard { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: #fff; }
.scorecard__head, .scorecard__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.6fr; gap: var(--space-5); align-items: center; padding: 18px 28px; }
.scorecard__head { background: var(--ink-50); border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 600; color: var(--text-secondary); }
.scorecard__row + .scorecard__row { border-top: 1px solid var(--border); }
.scorecard__dim { font-weight: 600; }
.scorecard__dim small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.score { display: flex; align-items: center; gap: 12px; }
.score__num { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; min-width: 2.2ch; font-variant-numeric: tabular-nums; }
.score__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.score__bar i { display: block; height: 100%; width: calc(var(--v) * 10%); border-radius: 999px; background: var(--ink-400); }
.score--after .score__bar i { background: var(--coral-500); }
.score--after .score__num { color: var(--ink-900); }
.score--before .score__num { color: var(--ink-500); }
.scorecard__why { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.scorecard__total { background: var(--ink-950); color: #fff; }
.scorecard__total .scorecard__why { color: var(--text-inverse-secondary); }
.scorecard__total .score__bar { background: var(--ink-800); }
.scorecard__total .score--before .score__num { color: var(--ink-400); }
.scorecard__total .score--after .score__num { color: #fff; }

/* ---------- Page-by-page comparison blocks ---------- */
.compare-block { padding: var(--space-9) 0; border-top: 1px solid var(--border); }
.compare-block__head { margin-bottom: var(--space-7); }
.compare-block__intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-6) var(--space-9); align-items: end; }
.compare-block__intro .h2 { margin-top: var(--space-3); }
.compare-block__intro .lede { margin: 0; font-size: 16px; max-width: 68ch; }
.findings-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-6); }
.findings { border-radius: var(--radius-card); padding: var(--space-6) var(--space-7); border: 1px solid var(--border); }
.findings--before { background: var(--bg-paper); border-color: transparent; }
.findings--after { background: #fff; }
.findings h4 { font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-secondary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.findings h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-400); }
.findings--after h4 .dot { background: var(--coral-500); }
.findings li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; max-width: 62ch; }
.findings li + li { margin-top: 10px; }
.findings li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: currentColor; opacity: 0.4; }
.findings--after li::before { background: var(--coral-500); opacity: 1; }
.findings li strong { font-weight: 600; }

/* Screenshot frames */
.frames { display: grid; gap: var(--space-5); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.frame { display: flex; flex-direction: column; min-width: 0; }
.frame__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.frame__label .tag { font-size: 11px; padding: 4px 9px; white-space: nowrap; flex: none; }
.frame__label .src { font-weight: 400; color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; text-align: right; }
.frame__screen {
  position: relative; border-radius: 14px; border: 1px solid var(--border); background: var(--ink-100); overflow: hidden;
  box-shadow: var(--shadow-card); height: var(--frame-h, 560px);
}
.frame__chrome { height: 28px; background: var(--ink-50); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.frame__chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-200); }
.frame__chrome span { margin-left: 8px; font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__scroll { position: absolute; top: 28px; left: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
.frame__scroll img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.frame--mobile .frame__screen { max-width: 300px; margin: 0 auto; width: 100%; height: var(--frame-h-m, 600px); border-radius: 28px; }
.frame--mobile .frame__chrome { display: none; }
.frame--mobile .frame__scroll { top: 0; }
.frame__hint { position: absolute; right: 10px; bottom: 10px; font-size: 11px; padding: 4px 9px; border-radius: 999px; background: rgba(9,9,11,0.7); color: #fff; pointer-events: none; opacity: 0.9; }
.frame__note { margin-top: 10px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }
.frame__note strong { color: var(--ink-900); font-weight: 600; }
.frames[data-view="mobile"] .frame { }

/* ---------- Metrics table ---------- */
.metrics { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.metrics table { font-size: 14px; }
.metrics th, .metrics td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.metrics thead th { background: var(--ink-50); font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.metrics tbody tr:last-child td { border-bottom: 0; }
.metrics td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.metrics td.num.good { color: #157347; }
.metrics td.num.bad { color: var(--coral-600); }
.metrics td.num.neutral { color: var(--ink-500); }
.metrics td small { display: block; color: var(--text-muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.metrics-scroll { overflow-x: auto; }

/* ---------- Lighthouse ---------- */
.lh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.lh-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); background: #fff; }
.lh-card h4 { font-size: 13px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.lh-card h4 small { color: var(--text-muted); font-weight: 400; font-size: 11px; }
.lh-row { display: grid; grid-template-columns: 78px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-secondary); }
.lh-row + .lh-row { margin-top: 9px; }
.lh-row .bar { height: 8px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.lh-row .bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 999px; background: var(--ink-400); }
.lh-row.is-after .bar i { background: var(--coral-500); }
.lh-row .n { font-weight: 700; color: var(--ink-900); text-align: right; font-variant-numeric: tabular-nums; }
.lh-row.is-before .n { color: var(--ink-500); }
.lh-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-secondary); margin-top: 14px; flex-wrap: wrap; }
.lh-legend i { display: inline-block; width: 18px; height: 6px; border-radius: 999px; vertical-align: middle; margin-right: 6px; background: var(--ink-400); }
.lh-legend i.after { background: var(--coral-500); }
.lh-legend i.proto { background: var(--ink-900); }
.lh-row.is-proto .bar i { background: var(--ink-900); }

/* ---------- Findings register ---------- */
.register { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.register table { font-size: 14px; }
.register th, .register td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.register thead th { background: var(--ink-50); font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.register tbody tr:last-child td { border-bottom: 0; }
.register td.sev { white-space: nowrap; }
.sev-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sev-high { background: var(--coral-100); color: var(--coral-600); }
.sev-med { background: #FFF7E6; color: #B54708; }
.sev-low { background: var(--ink-100); color: var(--ink-600); }
.register td .ev { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.register td.status { white-space: nowrap; }
.register-filter { display: flex; gap: 8px; margin-bottom: var(--space-4); flex-wrap: wrap; }
.register-filter button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-secondary); background: #fff; }
.register-filter button[aria-pressed="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* ---------- Project cards (gallery) ---------- */
.project-card { display: grid; grid-template-columns: 1.25fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: #fff; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.project-card__visual { position: relative; background: var(--ink-100); min-height: 380px; }
.project-card__visual .compare { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; position: absolute; inset: 0; }
.project-card__body { padding: var(--space-7); display: flex; flex-direction: column; }
.project-card__logo { height: 44px; width: auto; max-width: 160px; object-fit: contain; object-position: left; margin-bottom: var(--space-5); }
.project-card__body .h3 { font-size: 28px; }
.project-card__tagline { font-size: 15px; }
.project-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-4); }
.project-card__path { margin-top: var(--space-4); font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-card__path b { color: var(--ink-900); font-weight: 600; }
.project-card__path .arr { color: var(--coral-500); }
.project-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.project-card__stats .v { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.project-card__stats .v .from { color: var(--ink-400); text-decoration: line-through; text-decoration-color: var(--coral-500); font-size: 0.55em; font-weight: 700; margin-right: 6px; }
.project-card__stats .c { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.35; }
.project-card__cta { margin-top: auto; padding-top: var(--space-6); display: flex; gap: 12px; align-items: center; }
.project-card__method { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: var(--space-4); font-size: 12.5px; color: var(--text-secondary); text-decoration: none; }
.project-card__method::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--coral-100); color: var(--coral-600); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.project-card__method b { color: var(--ink-900); font-weight: 600; }
.project-card__method .arrow-icon { width: 10px; height: 10px; color: var(--ink-900); }
.project-card__method:hover b { text-decoration: underline; text-underline-offset: 3px; }
.projects-grid { display: grid; gap: var(--space-6); }
.projects-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }

/* compact (vertical) card — 2-col featured grid on the home page */
.project-card--compact { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.project-card--compact .project-card__visual { min-height: 0; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--border); }
.project-card--compact .project-card__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.project-card--compact .project-card__logo { height: 28px; max-width: 130px; margin-bottom: var(--space-3); }
.project-card--compact .project-card__body .h3 { font-size: 23px; }
.project-card--compact .project-card__tagline { font-size: 14px; }
.project-card--compact .project-card__path { font-size: 13px; margin-top: var(--space-3); }
.project-card--compact .project-card__meta { margin-top: var(--space-3); gap: 6px; }
.project-card--compact .project-card__meta .tag { font-size: 11px; padding: 4px 9px; }
.project-card--compact .project-card__stats { margin-top: var(--space-4); padding-top: var(--space-4); gap: var(--space-3); }
.project-card--compact .project-card__stats .v { font-size: 26px; }
.project-card--compact .project-card__stats .c { font-size: 11.5px; }
.project-card--compact .project-card__cta { padding-top: var(--space-5); }
.project-card--compact .project-card__method { margin-top: 14px; font-size: 12px; }

/* "more coming soon" placeholder card — same skeleton as a compact card, ghosted */
.project-card--placeholder { border-style: dashed; border-color: var(--ink-300); background: transparent; color: var(--text-secondary); }
.project-card--placeholder:hover { transform: none; box-shadow: none; }
.project-card__visual--ghost {
  display: flex; align-items: center; justify-content: center; border-bottom: 1px dashed var(--ink-300) !important;
  background-color: transparent; background-image: radial-gradient(var(--ink-300) 1px, transparent 1.3px); background-size: 18px 18px;
}
.project-card__visual--ghost .compare__label { opacity: 0.35; }
.ghost-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: #fff; border: 1px dashed var(--ink-300); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-secondary); }
.ghost-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral-500); animation: ghost-pulse 1.8s ease-in-out infinite; }
@keyframes ghost-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.project-card--placeholder .h3 { color: var(--ink-900); }
.project-card--placeholder .project-card__tagline { max-width: 44ch; line-height: 1.55; }
.project-card--placeholder .project-card__cta { flex-wrap: wrap; }

/* "more coming soon" band — under an even 2-col grid */
.coming-soon-band { margin-top: var(--space-5); border: 1px dashed var(--ink-300); border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; background-image: radial-gradient(var(--ink-300) 1px, transparent 1.3px); background-size: 18px 18px; }
.coming-soon-band__text { display: flex; align-items: center; gap: var(--space-5); min-width: 0; flex: 1 1 420px; }
.coming-soon-band__text .ghost-pill { flex: none; }
.coming-soon-band__text .h4 { margin-top: 2px; color: var(--ink-900); }
.coming-soon-band__text p { margin-top: 4px; font-size: 14px; max-width: 56ch; }
.coming-soon-band__cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: none; }

/* ---------- Method cards ---------- */
.method-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-6); background: #fff; }
.method-card__n { font-family: var(--font-display); font-size: 12px; letter-spacing: var(--tracking-label); color: var(--coral-600); font-weight: 700; }
.method-card h3 { font-size: 18px; margin-top: 12px; }
.method-card p { margin-top: 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ---------- Case header ---------- */
.case-head { padding: 56px 0 var(--space-8); }
.crumbs { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--coral-600); }
.case-head__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: end; margin-top: var(--space-6); }
.case-head .display { margin-top: var(--space-3); }
.case-head .lede { margin-top: var(--space-5); }
.case-meta { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); background: #fff; }
.case-meta dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; font-size: 14px; }
.case-meta dt { color: var(--text-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.case-meta dd { margin: 0; }
.case-meta dd a { font-weight: 600; }
.case-meta dd .tag { margin-right: 6px; margin-bottom: 6px; }
.case-links { display: flex; gap: 8px; flex-wrap: wrap; }
.case-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; }
.case-links a:hover { border-color: var(--ink-900); color: var(--ink-900); }
.case-links a svg { width: 10px; height: 10px; }
.status-note { margin-top: var(--space-5); padding: 14px 18px; border-radius: var(--radius-input); background: var(--bg-paper); font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.status-note strong { color: var(--ink-900); font-weight: 600; }

/* ---------- Timeline / next up ---------- */
.next-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.next-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: var(--space-5); border: 1px solid var(--border-dark); border-radius: var(--radius-card); background: var(--ink-900); }
.next-item .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink-600); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-inverse-secondary); }
.next-item h4 { font-size: 15px; color: #fff; }
.next-item p { margin-top: 6px; font-size: 13.5px; color: var(--text-inverse-secondary); line-height: 1.5; }
.next-item .tag { margin-top: 10px; }

/* ---------- Sticky sub-nav for case study ---------- */
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.subnav .container { display: flex; gap: 6px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav a { font-size: 13px; font-weight: 600; color: var(--text-secondary); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { color: var(--ink-900); background: var(--ink-100); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(9,9,11,0.92); display: none; overflow: auto; padding: 40px 24px 24px; }
.lightbox.is-open { display: flex; flex-direction: column; align-items: center; }   /* image centred; short images sit mid-screen, tall ones scroll */
.lightbox img { display: block; flex: none; margin: auto auto 0; max-width: min(1200px, 100%); width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-pop); }
.lightbox__close { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink-900); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-pop); }
.lightbox__cap { position: sticky; bottom: 12px; flex: none; margin: 14px auto auto; max-width: min(1200px, 100%); text-align: center; color: #fff; font-size: 13px; background: rgba(9,9,11,0.7); padding: 6px 14px; border-radius: 999px; }
.lightbox__cap:empty { display: none; }

/* ---------- Callout ---------- */
.callout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.callout__quote { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.callout__quote em { font-style: normal; color: var(--coral-500); }
.callout p { margin-top: var(--space-4); color: var(--text-secondary); }

/* ---------- Dark CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: center; }
.cta-band .h2 { color: #fff; }
.cta-band .lede { color: var(--text-inverse-secondary); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .case-head__grid, .compare-block__intro, .callout, .cta-band { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frames { --cols: 1 !important; }
  .frames .frame + .frame { margin-top: var(--space-2); }
  .scorecard__head { display: none; }
  .scorecard__row { grid-template-columns: 1fr 1fr; }
  .scorecard__dim, .scorecard__why { grid-column: 1 / -1; }
  .project-card { grid-template-columns: 1fr; }
  .project-card__visual { min-height: 300px; }
  .cta-band .actions { justify-content: flex-start; }
  .next-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .stat__value { font-size: 44px; }
  .findings-cols { grid-template-columns: 1fr; }
  .lh-grid { grid-template-columns: 1fr; }
  .case-meta dl { grid-template-columns: 1fr; gap: 6px; }
  .case-meta dt { margin-top: 10px; }
  .projects-grid--2 { grid-template-columns: 1fr; }
  .coming-soon-band__text { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .project-card__stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .project-card__stats .v { font-size: 24px; }
  .project-card__visual--ghost { aspect-ratio: 16 / 7 !important; }
  .frame__screen { height: 440px; }
  .register th:nth-child(4), .register td:nth-child(4) { display: none; }
}

/* ---------- Hero v2: three pillars ---------- */
.hero2 { padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero2::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 0%, var(--coral-100) 0%, rgba(255,236,235,0) 70%); pointer-events: none; }
.hero2 .container { position: relative; }
.hero2__top { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: var(--space-8); align-items: end; }
.hero2 .display { margin-top: var(--space-4); font-size: clamp(40px, 4.5vw, 60px); letter-spacing: -0.035em; }
.hero2 .lede { font-size: 17px; }
.hero2 .cta-row { display: flex; gap: 12px; margin-top: var(--space-5); flex-wrap: wrap; }
.proof { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.proof span { display: inline-flex; align-items: baseline; gap: 6px; }
.proof b { color: var(--ink-900); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.proof img { height: 12px; width: auto; align-self: center; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: var(--space-8); counter-reset: pillar; }
.pillar {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: var(--space-6) var(--space-6) var(--space-5); min-height: 400px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); color: inherit;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--ink-300); color: inherit; }
.pillar__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pillar__n { font-family: var(--font-display); font-size: 12px; letter-spacing: var(--tracking-label); font-weight: 700; color: var(--coral-600); }
.pillar__icon { width: 36px; height: 36px; opacity: 0.9; }
.pillar__icon img { width: 100%; height: 100%; }
.pillar h3 { font-size: 26px; margin-top: 18px; letter-spacing: -0.02em; }
.pillar__tag { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink-600); }
.pillar p { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.pillar__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pillar__chips .tag { font-size: 11px; padding: 4px 9px; }
.pillar__foot { margin-top: auto; padding-top: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.pillar__foot .btn--link { font-size: 14px; }
.pillar:hover .btn--link { color: var(--coral-600); }
.pillar--accent { background: var(--ink-950); color: #fff; border-color: var(--ink-950); }
.pillar--accent h3, .pillar--accent .pillar__tag { color: #fff; }
.pillar--accent p, .pillar--accent .pillar__foot { color: var(--text-inverse-secondary); }
.pillar--accent .pillar__foot { border-color: var(--border-dark); }
.pillar--accent .tag { background: var(--ink-900); border-color: var(--ink-800); color: var(--text-inverse-secondary); }
.pillar--accent .btn--link { color: #fff; }
.pillar--accent .pillar__icon img { filter: brightness(0) invert(1); }
.pillar--accent:hover { border-color: var(--ink-700); }
.pillar--accent:hover .btn--link { color: var(--coral-300); }

/* Track filter chips + card track tag */
.track-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.track-filter button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-secondary); background: #fff; }
.track-filter button[aria-pressed="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.track-filter button span { opacity: 0.6; margin-left: 4px; font-weight: 500; }
.projects-grid .project-card[hidden] { display: none; }
.projects-empty { border: 1px dashed var(--ink-300); border-radius: var(--radius-card); padding: var(--space-8); text-align: center; color: var(--text-secondary); }
.projects-empty[hidden] { display: none; }

@media (max-width: 1024px) {
  .hero2__top { grid-template-columns: 1fr; }
  .hero2 .display { max-width: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
}
@media (max-width: 720px) {
  .hero2 { padding: 48px 0 56px; }
}

/* ---------- Hero v3: dark showcase ---------- */
.hero3 { background: var(--ink-950); color: #fff; padding: 72px 0 0; overflow: hidden; position: relative; }
.hero3__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-9); align-items: center; }
.hero3 .display { color: #fff; margin-top: var(--space-4); font-size: clamp(42px, 4.8vw, 66px); letter-spacing: -0.035em; }
.hero3 .display em { font-style: normal; color: var(--coral-500); }
.hero3 .lede { color: var(--text-inverse-secondary); margin-top: var(--space-5); font-size: 17px; max-width: 48ch; }
.hero3 .cta-row { display: flex; gap: 12px; margin-top: var(--space-6); flex-wrap: wrap; }
.proof--dark { border-color: var(--border-dark); color: var(--ink-400); }
.proof--dark b { color: #fff; }

/* showcase: browser + phone + floating chips — rotating flip version (markup: build.mjs showcase(), logic: main.js initShowcase) */
.showcase { --sc-pr: 56px; --sc-pb: 84px; position: relative; padding: 0 var(--sc-pr) var(--sc-pb) 0; outline: none; }   /* phone hangs past the browser by the padding */
.showcase:focus-visible .showcase__scene { outline: 2px solid var(--coral-500); outline-offset: 10px; border-radius: 20px; }
.display--sm { font-size: clamp(34px, 3.8vw, 52px); }
.showcase__scene { position: relative; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
.showcase__slide { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.showcase__slide.is-active { position: relative; visibility: visible; pointer-events: auto; }

/* flip cards: front = current store, back = new storefront */
.flip { perspective: 1600px; cursor: pointer; }
.flip--browser { position: relative; }
.flip--phone { position: absolute; right: calc(-1 * var(--sc-pr)); bottom: calc(-1 * var(--sc-pb)); width: 152px; aspect-ratio: 9 / 18.5; }
.flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.35s cubic-bezier(0.3, 0.75, 0.2, 1); transition-delay: calc(var(--i, 0) * 150ms); }
.flip__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip--browser .flip__front { position: relative; transform: rotateY(0deg); }
.flip--browser .flip__back { position: absolute; inset: 0; transform: rotateY(180deg); }
.flip--phone .flip__face { position: absolute; inset: 0; }
.flip--phone .flip__front { transform: rotateY(0deg); }
.flip--phone .flip__back { transform: rotateY(180deg); }
.is-after .flip__inner { transform: rotateY(180deg); }

.showcase__browser { min-width: 0; border-radius: 16px; overflow: hidden; background: var(--ink-900); border: 1px solid var(--ink-800); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.showcase__chrome { height: 32px; background: var(--ink-900); border-bottom: 1px solid var(--ink-800); display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.showcase__chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-700); }
.showcase__chrome span { margin-left: 10px; font-size: 11px; color: var(--ink-500); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; width: 0; min-width: 0; }
.showcase__shot { position: relative; aspect-ratio: 16 / 10; background: var(--ink-100); overflow: hidden; }
.showcase__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.showcase__browser .compare__label { top: 46px; }
.showcase__phone {
  border-radius: 24px; overflow: hidden; background: var(--ink-900); border: 6px solid var(--ink-900);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--ink-800);
}
.showcase__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.showcase__phone::after { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 56px; height: 6px; border-radius: 999px; background: var(--ink-900); }
.showcase__chip {
  position: absolute; background: #fff; color: var(--ink-900); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-pop);
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap; z-index: 3; pointer-events: none;
  opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.showcase__chip .v { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.showcase__chip .v .from { color: var(--ink-400); text-decoration: line-through; text-decoration-color: var(--coral-500); text-decoration-thickness: 2px; font-size: 0.6em; margin-right: 6px; }
.showcase__chip .c { font-size: 12px; color: var(--text-secondary); line-height: 1.2; max-width: 14ch; white-space: normal; }
.showcase__chip--tl { top: -18px; left: -22px; }
.showcase__chip--bl { bottom: 28px; left: -22px; }
.is-after .showcase__chip { opacity: 1; transform: none; transition-delay: calc(1.05s + (var(--i, 2) - 2) * 140ms); }

/* elements leave one by one (chips first, then phone, then browser) … */
.is-out .flip, .is-out .showcase__chip { opacity: 0; transform: translateY(18px) scale(0.96); transition: opacity 0.38s ease, transform 0.38s ease; transition-delay: calc(var(--o, 0) * 90ms); }
/* … and the next project pops in element by element */
@keyframes showcase-pop { from { opacity: 0; transform: translateY(26px) scale(0.94); } to { opacity: 1; transform: none; } }
.is-in .flip { animation: showcase-pop 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 130ms); }
.is-reset .flip__inner, .is-reset .showcase__chip { transition: none !important; }

/* caption + navigation */
.showcase__caption { margin-top: 14px; font-size: 12.5px; color: var(--ink-500); display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.showcase__caption-text { display: flex; gap: 4px 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.showcase__caption b { color: var(--ink-300); font-weight: 600; }
.showcase__caption .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-600); flex: none; }
.showcase__hint { transition: opacity 0.3s; }
.showcase__nav { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.showcase__arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink-700); background: transparent; color: var(--ink-300); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.showcase__arrow svg { width: 10px; height: 10px; }
.showcase__arrow:hover { background: #fff; color: var(--ink-900); border-color: #fff; }
.showcase__dots { display: inline-flex; align-items: center; gap: 6px; }
.showcase__dot { width: 18px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.showcase__dot span { display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--ink-600); transition: width var(--dur) var(--ease), background var(--dur) var(--ease); }
.showcase__dot:hover span { background: var(--ink-400); }
.showcase__dot.is-active span { width: 18px; background: var(--coral-500); }

/* three tracks strip */
.tracks-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--border-dark); }
.track { display: flex; flex-direction: column; padding: 28px 28px 32px 0; color: inherit; position: relative; }
.track + .track { border-left: 1px solid var(--border-dark); padding-left: 28px; }
.track__n { font-family: var(--font-display); font-size: 12px; letter-spacing: var(--tracking-label); font-weight: 700; color: var(--coral-500); }
.track h3 { color: #fff; font-size: 22px; margin-top: 14px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.track h3 img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: 0.8; }
.track p { margin-top: 8px; font-size: 14px; color: var(--text-inverse-secondary); line-height: 1.5; }
.track__link { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-fast) var(--ease); }
.track__link svg { width: 10px; height: 10px; }
.track:hover .track__link { color: var(--coral-300); }
.track__count { position: absolute; top: 28px; right: 28px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); }
.track:last-child .track__count { right: 0; }

/* marquee */
.marquee { border-top: 1px solid var(--border-dark); margin-top: 8px; padding: 18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 44s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee span { font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-400); white-space: nowrap; font-weight: 600; }
.marquee span i { color: var(--coral-500); font-style: normal; margin: 0 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* What We Do (pillars moved down) */
.section--what .pillars { margin-top: 0; }

@media (max-width: 1100px) {
  .hero3__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .hero3__copy, .hero3__visual { min-width: 0; }
  .showcase { --sc-pr: 40px; margin-top: 12px; }
  .showcase__chip--tl { left: 0; }
  .showcase__chip--bl { left: 0; }
}
@media (max-width: 720px) {
  .hero3 { padding-top: 48px; }
  .tracks-strip { grid-template-columns: 1fr; margin-top: 48px; }
  .track { padding: 22px 0; }
  .track + .track { border-left: 0; border-top: 1px solid var(--border-dark); padding-left: 0; }
  .track__count { right: 0; top: 22px; }
  .showcase { --sc-pr: 28px; --sc-pb: 64px; }
  .flip--phone { width: 112px; }
  .showcase__phone { border-radius: 20px; }
  .showcase__caption { font-size: 12px; }
  .showcase__chip { padding: 10px 12px; }
  .showcase__chip .v { font-size: 20px; }
  .showcase__chip--tl { top: -14px; }
}

/* ---------- Hero v3 — light theme (site.json hero.theme = "light") ---------- */
.hero3--light { background: #fff; color: var(--ink-900); }
.hero3--light::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 88% 8%, var(--coral-100) 0%, rgba(255,236,235,0) 70%); pointer-events: none; }
.hero3--light .container { position: relative; }
.hero3--light .display { color: var(--ink-900); }
.hero3--light .lede { color: var(--text-secondary); }
.hero3--light .showcase__browser { background: #fff; border-color: var(--border); box-shadow: 0 1px 2px rgba(24,24,27,0.06), 0 30px 70px rgba(24,24,27,0.16); }
.hero3--light .showcase__chrome { background: var(--ink-50); border-color: var(--border); }
.hero3--light .showcase__chrome i { background: var(--ink-200); }
.hero3--light .showcase__chrome span { color: var(--text-muted); }
.hero3--light .showcase__phone { box-shadow: 0 24px 60px rgba(24,24,27,0.28), 0 0 0 1px var(--ink-800); }
.hero3--light .showcase__chip { border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(24,24,27,0.05), 0 16px 40px rgba(24,24,27,0.14); }
.hero3--light .showcase__caption { color: var(--text-muted); }
.hero3--light .showcase__caption b { color: var(--ink-900); }
.hero3--light .showcase__caption .dot { background: var(--ink-300); }
.hero3--light .showcase__caption a { color: var(--ink-600) !important; }
.hero3--light .showcase__caption a:hover { color: var(--coral-600) !important; }
.hero3--light .showcase__arrow { border-color: var(--ink-300); color: var(--ink-700); background: #fff; }
.hero3--light .showcase__arrow:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.hero3--light .showcase__dot span { background: var(--ink-300); }
.hero3--light .showcase__dot:hover span { background: var(--ink-500); }
.hero3--light .showcase__dot.is-active span { background: var(--coral-500); }
.hero3--light .showcase__shot { background: var(--ink-50); }
.hero3--light .tracks-strip { border-color: var(--border); }
.hero3--light .track + .track { border-color: var(--border); }
.hero3--light .track h3 { color: var(--ink-900); }
.hero3--light .track h3 img { filter: none; opacity: 1; }
.hero3--light .track p { color: var(--text-secondary); }
.hero3--light .track__link { color: var(--ink-900); }
.hero3--light .track:hover .track__link { color: var(--coral-600); }
.hero3--light .track:hover h3 { color: var(--ink-900); }
.hero3--light .track__count { color: var(--text-muted); }
.hero3--light .marquee { border-color: var(--border); background: var(--ink-50); }
.hero3--light .marquee span { color: var(--ink-500); }
@media (max-width: 720px) { .hero3--light .track + .track { border-color: var(--border); } }

/* ---------- Internal UX review report ---------- */
.internal-bar { background: var(--ink-950); color: var(--text-inverse-secondary); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.internal-bar .container { height: 34px; display: flex; align-items: center; gap: 12px; }
.internal-bar b { color: var(--coral-300); font-weight: 700; }
.review-head { padding: 48px 0 var(--space-7); }
.review-head .display { font-size: clamp(34px, 4vw, 52px); }
.review-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.review-meta > div { border: 1px solid var(--border); border-radius: var(--radius-input); padding: 14px 16px; font-size: 13.5px; }
.review-meta dt { font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.review-meta dd { margin: 4px 0 0; color: var(--ink-900); font-weight: 500; }
.verdict { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-6); }
.verdict__box { border-radius: var(--radius-card); padding: var(--space-6); background: var(--bg-paper); }
.verdict__box h3 { font-size: 22px; letter-spacing: -0.02em; }
.verdict__box p { margin-top: 12px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.verdict__box .scoreline { margin-top: 16px; font-weight: 600; color: var(--ink-900); font-size: 14px; }
.keep-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; }
.keep-list li + li { margin-top: 10px; }
.keep-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #ECFDF3; color: #157347; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.surface-scores { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.surface-score { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; }
.surface-score .n { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.surface-score .n small { font-size: 14px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }
.surface-score .t { font-size: 13px; font-weight: 600; margin-top: 8px; }
.surface-score .d { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.surface-score .bar { height: 6px; border-radius: 999px; background: var(--ink-100); margin-top: 12px; overflow: hidden; }
.surface-score .bar i { display: block; height: 100%; width: calc(var(--v) * 25%); background: var(--coral-500); border-radius: 999px; }
.score-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-0 { background: #FEE4E2; color: #B42318; } .score-1 { background: #FFECEB; color: var(--coral-600); } .score-2 { background: #FFF7E6; color: #B54708; } .score-3 { background: #ECFDF3; color: #157347; } .score-4 { background: #D1FADF; color: #0F5132; } .score-na { background: var(--ink-100); color: var(--ink-500); }
.review-table { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.review-table table { font-size: 13.5px; }
.review-table th, .review-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.review-table thead th { background: var(--ink-50); font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.review-table tbody tr:last-child td { border-bottom: 0; }
.review-table td.id { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-muted); }
.review-table td .t { font-weight: 600; color: var(--ink-900); }
.review-table td .ev { color: var(--text-secondary); margin-top: 3px; font-size: 13px; }
.review-table td .lens { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.review-table .tag { font-size: 10.5px; padding: 3px 8px; }
.review-table td.pri { white-space: nowrap; }
.pri-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.pri-P1 { background: var(--ink-900); color: #fff; } .pri-P2 { background: var(--coral-100); color: var(--coral-600); } .pri-P3 { background: #FFF7E6; color: #B54708; } .pri-P4 { background: var(--ink-100); color: var(--ink-600); } .pri-keep { background: #ECFDF3; color: #157347; }
.surface-block { padding-top: var(--space-8); }
.surface-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-4); }
.surface-block__head h3 { font-size: 24px; letter-spacing: -0.02em; }
.surface-block__head .meta { font-size: 13px; color: var(--text-secondary); }
.surface-shots { display: flex; gap: 12px; margin-bottom: var(--space-4); }
.surface-shots img { height: 150px; width: 220px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; background: var(--ink-100); }
.actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.action { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); background: #fff; display: flex; flex-direction: column; }
.action--P1 { border-color: var(--ink-900); box-shadow: var(--shadow-card); }
.action__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.action h4 { font-size: 17px; margin-top: 12px; letter-spacing: -0.015em; }
.action p { font-size: 13.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
.action .where { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.action .ids { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.action .ids span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); }
.action .accept { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--ink-900); }
.action .accept b { font-size: 10.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 4px; }
.na-list { columns: 2; gap: var(--space-6); font-size: 13.5px; }
.na-list li { break-inside: avoid; margin-bottom: 8px; color: var(--text-secondary); }
.na-list b { color: var(--ink-900); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600; }
.method-box { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.method-box b { color: var(--ink-900); }

/* ---------- Stage + design decisions (public case study) ---------- */
.tag--stage-design { background: #EEF2FF; color: #3730A3; border-color: #E0E7FF; }
.tag--stage-build { background: #FFF7E6; color: #B54708; border-color: #FEE9C2; }
.tag--stage-live { background: #ECFDF3; color: #157347; border-color: #D1FADF; }
.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.decision { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.decision__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.decision__shots figure { margin: 0; background: var(--ink-100); position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.decision__shots img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, top left); cursor: zoom-in; }
.decision__shots figcaption { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(9,9,11,0.75); color: #fff; }
.decision__shots figure + figure figcaption { background: var(--coral-500); }
.decision__body { padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; flex: 1; }
.decision__body .eyebrow { font-size: 11px; }
.decision__body h3 { font-size: 19px; margin-top: 8px; letter-spacing: -0.015em; }
.decision__body p { font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.55; }
.decision__why { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-input); background: var(--bg-paper); font-size: 13.5px; line-height: 1.5; }
.decision__why b { color: var(--coral-600); font-weight: 700; }
.decision__foot { margin-top: auto; padding-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.decision__foot .tag { font-size: 10.5px; padding: 3px 8px; }
.decision__foot .ids { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: var(--text-muted); margin-left: auto; }
@media (max-width: 1024px) {
  .review-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict { grid-template-columns: 1fr; }
  .surface-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actions-grid { grid-template-columns: 1fr; }
  .decisions { grid-template-columns: 1fr; }
  .na-list { columns: 1; }
}
@media (max-width: 720px) {
  .review-meta, .surface-scores { grid-template-columns: 1fr 1fr; }
  .review-table th:nth-child(4), .review-table td:nth-child(4) { display: none; }
}
