/* Analysis page: builds on ../styles.css (tokens, type, buttons, header, contact, footer). */
:root { --red: #c00000; --green: #2e7d32; --dark: #111; --line-dark: #3d3d3d; }

.kicker { font-weight: 800; font-stretch: 110%; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.kicker-y { color: var(--yellow); }
.y { color: var(--yellow); }
.rule-head { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-top: 3px solid currentColor; padding-top: 12px; margin-bottom: 20px; }

/* Hero */
.a-hero { min-height: 0; }
.a-hero-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; padding-block: 40px 56px; }
.a-hero h1 { font-size: clamp(40px, 5.2vw, 84px); }
.fan { position: relative; height: min(560px, 44vw); }
.fan img { position: absolute; top: 50%; left: 50%; width: 56%; border: 3px solid var(--black); background: var(--white);
  box-shadow: 14px 14px 0 var(--black); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.fan-1 { transform: translate(-50%, -50%) rotate(-3deg); z-index: 3; }
.fan-2 { transform: translate(-12%, -54%) rotate(6deg); z-index: 2; }
.fan-3 { transform: translate(-88%, -46%) rotate(-11deg); z-index: 1; }
.fan:hover .fan-2 { transform: translate(0%, -56%) rotate(9deg); }
.fan:hover .fan-3 { transform: translate(-100%, -44%) rotate(-14deg); }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--black); margin-bottom: 56px; }
.proof div { padding: 20px 24px 4px 0; }
.proof div + div { padding-left: 24px; border-left: 1px solid rgba(0, 0, 0, .3); }
.proof b { display: block; font-weight: 900; font-stretch: 125%; letter-spacing: -.035em; font-size: clamp(36px, 4vw, 60px); line-height: 1; }
.proof > div > span { display: block; font-weight: 600; font-size: 16px; margin-top: 8px; }
.proof i { font-style: normal; }

/* Speed */
.speed { background: var(--black); color: var(--white); padding-block: 120px; }
.speed h2 { max-width: 12em; }
.speed-lede { font-size: 22px; line-height: 1.5; color: #cfcfcf; max-width: 36em; margin-top: 28px; }
.race { margin-top: 64px; display: grid; gap: 18px; }
.lane { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px; }
.lane-name { font-weight: 800; font-stretch: 112%; font-size: 20px; }
.lane-track { display: flex; align-items: center; gap: 18px; height: 64px; }
.lane-bar { height: 100%; display: flex; align-items: center; padding: 0 20px; font-weight: 700; white-space: nowrap; overflow: hidden;
  transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.3, .7, .2, 1); }
.lane-slow { width: 100%; background: repeating-linear-gradient(135deg, #2a2a2a 0 14px, #333 14px 28px); border: 2px solid #555; color: #bdbdbd; transition-duration: 2.8s; }
.lane-fast { width: 9%; min-width: 88px; background: var(--yellow); color: var(--black); font-weight: 900; font-stretch: 125%; font-size: 24px; justify-content: center; }
.lane-track em { font-style: normal; color: var(--yellow); font-weight: 600; opacity: 0; transition: opacity .4s 1.4s; }
.race.go .lane-bar { transform: scaleX(1); }
.race.go em { opacity: 1; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
.split article { border-top: 3px solid var(--white); padding-top: 22px; }
.split article:last-child { border-top-color: var(--yellow); }
.split h3 { font-size: 28px; }
.ticks { margin-top: 18px; }
.ticks li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line-dark); position: relative; color: #dcdcdc; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 19px; width: 14px; height: 8px; border-left: 3px solid #8c8c8c; border-bottom: 3px solid #8c8c8c; transform: rotate(-45deg); }
.ticks-y li::before { border-color: var(--yellow); }

/* Case study */
.case { background: var(--dark); color: var(--white); padding-block: 120px; border-top: 1px solid #2a2a2a; }
.case h2 { max-width: 16em; }
.case h2 .y { display: block; }
.case-lede { font-size: 20px; color: #cfcfcf; max-width: 42em; margin-top: 28px; }
.case-lede a { color: var(--white); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 3px solid var(--yellow); }
.case-stats div { padding: 22px 28px 6px 0; }
.case-stats div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.case-stats b { display: block; font-weight: 900; font-stretch: 125%; letter-spacing: -.035em; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; color: var(--yellow); white-space: nowrap; }
.case-stats > div > span { display: block; color: #bdbdbd; font-size: 16px; margin-top: 10px; }

.explorer { margin-top: 64px; background: var(--white); color: var(--black); border: 3px solid var(--yellow); }
.explorer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 3px solid var(--black); }
.seg { display: inline-flex; border: 3px solid var(--black); }
.seg button { font: inherit; font-weight: 700; font-size: 16px; padding: 11px 18px; border: 0; background: var(--white); cursor: pointer; }
.seg button + button { border-left: 3px solid var(--black); }
.seg button[aria-checked="true"] { background: var(--black); color: var(--yellow); }
.explorer-count { font-weight: 600; font-size: 17px; }
.explorer-count b { font-weight: 900; font-stretch: 125%; font-size: 30px; vertical-align: -3px; margin-right: 4px; }
.explorer-body { display: grid; grid-template-columns: 1fr; }
.board { padding: 22px 22px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-content: center; min-height: 300px; }
.board-fallback { grid-column: 1 / -1; width: 100%; }
.board.live .board-fallback { display: none; }
.side-label { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.board svg { width: 100%; height: auto; display: block; overflow: visible; }
.board .outline { fill: none; stroke: var(--black); stroke-width: .5; }
.board .p { fill: #dadada; stroke: none; cursor: pointer; transition: fill .6s, stroke-width .15s; }
.board .p.spf { fill: var(--black); stroke: var(--black); stroke-width: .15; }
.board .p.residual { fill: var(--yellow); stroke: var(--black); stroke-width: .2; }
.board .p.latent { fill: url(#hatch); stroke: #595959; stroke-width: .15; }
.board .p:hover { stroke: var(--red); stroke-width: .7; }
.board .p.sel { stroke: var(--red); stroke-width: 1; }
.board .lbl { font: 700 3.4px var(--font); fill: var(--black); stroke: var(--white); stroke-width: .8px; paint-order: stroke; pointer-events: none; text-anchor: middle; }
.board .ping { fill: none; stroke: var(--red); stroke-width: .8; pointer-events: none; animation: ping 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(3); } }

.detail { border-top: 3px solid var(--black); padding: 22px; font-size: 15px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px 32px; min-height: 220px; }
.detail > :not(.modes) { grid-column: 1; }
.detail .modes { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; }
.detail-hint { color: var(--grey); }
.detail h3 { font-size: 34px; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.detail .mpn { color: var(--grey); font-size: 14px; margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge { font-weight: 700; font-size: 13px; padding: 4px 8px; border: 2px solid var(--black); }
.badge.spf { background: var(--black); color: var(--yellow); }
.badge.residual { background: var(--yellow); }
.badge.latent { background: repeating-linear-gradient(135deg, #fff 0 4px, #ddd 4px 8px); }
.fitline { margin-top: 12px; font-size: 14px; }
.fitline b { font-weight: 900; font-stretch: 125%; font-size: 22px; }
.modes { margin-top: 16px; border-top: 2px solid var(--black); }
.detail-hint { grid-column: 1 / -1 !important; }
.modes li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.modes .mhead { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 12px; font-weight: 700; color: var(--grey); }
.modes .goal { background: var(--black); color: var(--white); padding: 1px 6px; white-space: nowrap; }
.modes .mode { font-weight: 700; margin-top: 4px; line-height: 1.35; }
.modes .eff { color: #333; margin-top: 3px; line-height: 1.4; font-size: 14px; }
.modes .fix { margin-top: 6px; font-size: 13px; line-height: 1.4; padding-left: 10px; border-left: 3px solid var(--yellow); }
.modes .fix.none { border-left-color: var(--black); }
.modes .fix.gain { border-left-color: var(--green); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 14px 22px; border-top: 1px solid var(--rule); font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border: 1.5px solid var(--black); display: inline-block; }
.sw-spf { background: var(--black); }
.sw-res { background: var(--yellow); }
.sw-lat { background: repeating-linear-gradient(135deg, #fff 0 3px, #595959 3px 4px); }
.sw-ok { background: #dadada; border-color: #dadada; }

.case-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; margin-top: 80px; }
.findings { list-style: none; counter-reset: f; }
.findings li { counter-increment: f; }
.findings button { font: inherit; color: #dcdcdc; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-dark);
  padding: 16px 0 16px 56px; position: relative; width: 100%; cursor: pointer; line-height: 1.5; }
.findings button::before { content: counter(f); position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); color: var(--black); font-weight: 900; display: grid; place-items: center; font-size: 17px; }
.findings button b { color: var(--white); }
.findings button:hover b { color: var(--yellow); }
.goals { display: grid; gap: 12px; }
.g { display: grid; grid-template-columns: 250px 1fr 120px; gap: 14px; align-items: center; font-size: 15px; }
.g .gname b { color: var(--yellow); margin-right: 6px; }
.g .asil { white-space: nowrap; font-size: 12px; border: 1px solid #777; padding: 0 5px; margin-left: 6px; color: #bdbdbd; }
.g .track { height: 22px; background: #262626; position: relative; }
.g .ba { position: absolute; inset: 0 auto 0 0; border: 2px solid #bdbdbd; }
.g .bb { position: absolute; left: 0; top: 6px; height: 10px; background: var(--yellow); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.3, .7, .2, 1); }
.goals.go .bb { transform: scaleX(1); }
.g .tick { position: absolute; top: -5px; width: 3px; height: 32px; background: #ff3b30; }
.g .gv { font-size: 14px; white-space: nowrap; color: #cfcfcf; }
.g .gv b { color: var(--white); }
.g .gv .ok { color: #7bd88f; font-weight: 700; display: block; font-size: 13px; }
.g .gv .no { color: #ff6b61; font-weight: 700; display: block; font-size: 13px; }
.g.na .track { background: none; color: #8c8c8c; font-size: 14px; height: auto; }
.goals-note { color: #8c8c8c; font-size: 14px; margin-top: 20px; line-height: 1.5; }

/* Honest */
.honest { padding-block: 120px; }
.honest-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.honest-fig { margin: 0 20px 0 0; }
.shot { position: relative; margin-bottom: 20px; }
.shot::before { content: ''; position: absolute; inset: 20px -20px -20px 20px; background: #fbd5a8; }
.shot img { position: relative; border: 3px solid var(--black); background: var(--white); }
.honest-fig figcaption { margin-top: 40px; font-size: 15px; color: var(--grey); max-width: 36em; }
.honest h2 { font-size: clamp(34px, 3.6vw, 56px); }
.honest-grid > div > p { font-size: 19px; color: #262626; margin-top: 24px; }
.facts { margin-top: 32px; border-top: 3px solid var(--black); }
.facts li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts b { font-weight: 900; font-stretch: 125%; font-size: 30px; letter-spacing: -.03em; }
.facts span { font-weight: 500; }

/* Deliverables */
.deliverables { background: #f4f4f4; padding-block: 120px; }
.del-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.del { background: var(--white); border: 3px solid var(--black); display: flex; flex-direction: column; padding: 0 0 24px; transition: transform .2s, box-shadow .2s; }
.del:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--yellow); }
.del img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-bottom: 3px solid var(--black); }
.del-std { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin: 18px 22px 0; }
.del h3 { font-size: 30px; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; margin: 6px 22px 0; }
.del p:not(.del-std):not(.del-size) { margin: 12px 22px 0; font-size: 16px; color: #262626; }
.del-size { margin: auto 22px 0; padding-top: 16px; font-weight: 700; font-size: 15px; }

/* Process */
.process { background: var(--yellow); padding-block: 120px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 3px solid var(--black); }
.steps li { padding: 26px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(0, 0, 0, .3); }
.step-n { font-weight: 900; font-stretch: 125%; font-size: 56px; letter-spacing: -.04em; line-height: 1; }
.steps h3 { font-size: 28px; margin-top: 14px; }
.steps p { margin-top: 12px; font-size: 17px; }

/* FAQ */
.faq { padding-block: 120px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.faq-list { border-top: 3px solid var(--black); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-stretch: 110%; font-size: 21px; padding: 20px 44px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 32px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: #262626; max-width: 40em; }

/* Download */
.download { background: var(--black); color: var(--white); padding-block: 120px; overflow: hidden; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.download h2 { font-size: clamp(40px, 5vw, 80px); }
.download p { font-size: 20px; color: #cfcfcf; margin: 26px 0 36px; max-width: 30em; }
.dl-size { font-weight: 500; font-size: 16px; }
.dl-files { margin-top: 36px; border-top: 1px solid var(--line-dark); max-width: 30em; }
.dl-files li { padding: 10px 0; border-bottom: 1px solid var(--line-dark); color: #dcdcdc; }
.dl-files b { color: var(--yellow); margin-right: 12px; font-stretch: 125%; }
.dl-fig img { border: 3px solid var(--yellow); transform: rotate(2.5deg); box-shadow: -16px 16px 0 var(--yellow); }

.site-footer { gap: 24px; }
.foot-note { color: var(--grey); font-size: 13px; max-width: 60em; }

/* Tablet */
@media (max-width: 1080px) {
  .a-hero-body, .honest-grid, .dl-grid, .case-grid, .faq-grid, .split { grid-template-columns: 1fr; }
  .fan { height: 70vw; max-height: 560px; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(3) { padding-left: 0; border-left: 0; }
  .explorer-body { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail .modes { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; margin-top: 16px; }
  .del-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .dl-fig { max-width: 520px; }
}

/* Phone */
@media (max-width: 720px) {
  .speed, .case, .honest, .deliverables, .process, .faq, .download { padding-block: 72px; }
  .kicker { font-size: 13px; }
  .proof { grid-template-columns: 1fr 1fr; margin-bottom: 36px; }
  .proof div, .proof div + div { padding: 16px 12px 4px 0; border-left: 0; }
  .proof > div > span { font-size: 14px; }
  .speed-lede, .case-lede { font-size: 18px; }
  .lane { grid-template-columns: 1fr; gap: 6px; }
  .lane-track { height: 52px; }
  .lane-slow span { font-size: 14px; white-space: normal; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stats div, .case-stats div + div { padding: 18px 0 4px; border-left: 0; }
  .board { grid-template-columns: 1fr; padding: 14px; }
  .explorer-bar { padding: 14px; }
  .seg button { font-size: 14px; padding: 10px 12px; }
  .g { grid-template-columns: 1fr 104px; gap: 6px 12px; }
  .g .gname { grid-column: 1 / -1; }
  .del-grid, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 4px; border-left: 0; }
  .facts li { grid-template-columns: 72px 1fr; }
  .site-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .lane-bar, .g .bb { transform: none !important; transition: none; }
  .lane-track em { opacity: 1; }
  .board .ping { animation: none; }
}
.explorer { scroll-margin-top: 72px; }
