/* ==========================================================
   berna7224.com
   Type: Archivo (variable width + weight)
   ========================================================== */

:root {
  --paper: #F3F3F1;
  --card: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #3A3A40;
  --muted: #6F6F76;
  --line: rgba(10, 10, 10, 0.1);
  --line-strong: rgba(10, 10, 10, 0.18);
  --accent: #2E3BFF;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6E8FF;

  --stage: #000000;
  --stage-2: #0C0C0E;
  --stage-line: #232327;
  --stage-text: #F4F4F5;
  --stage-muted: #8D8D96;
  --stage-accent: #8E96FF;

  --font: "Archivo", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wide: 125%;
  --semi: 112%;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 650; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  font-stretch: var(--wide);
}
.h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  font-stretch: var(--semi);
}
.lead {
  font-size: clamp(1.075rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  font-size: 15.5px; font-weight: 600; font-stretch: var(--semi); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .5s var(--ease-out);
  will-change: transform;
}
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--big { min-height: 64px; padding: 0 34px; font-size: 17px; }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink:hover { --bg: var(--accent); }
.btn--accent { --bg: var(--accent); --fg: #fff; }
.btn--accent:hover { --bg: var(--ink); }
.btn--ghost { --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); --bg: var(--ink); --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { --bg: var(--ink); --fg: #fff; }
.btn--outline-light { --bd: rgba(255,255,255,.4); --fg: #fff; }
.btn--outline-light:hover { --bd: #fff; --bg: #fff; --fg: var(--accent); }

/* ---------- Progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: transform .6s var(--ease-out), background-color .4s ease, color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(243, 243, 241, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-dark { color: var(--stage-text); }
.nav.is-dark.is-scrolled { background: rgba(0, 0, 0, 0.7); border-bottom-color: rgba(255,255,255,.08); }
.nav.is-dark .btn--ink { --bg: #fff; --fg: var(--ink); }
.nav.is-dark .btn--ink:hover { --bg: var(--accent); --fg: #fff; }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.02em; font-size: 18px; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; transform: scale(1.04); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 14.5px; font-weight: 500; font-stretch: var(--semi); color: inherit; opacity: .72;
  transition: opacity .3s ease, background-color .3s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active { opacity: 1; background: rgba(10,10,10,.06); }
.nav.is-dark .nav__links a.is-active { background: rgba(255,255,255,.1); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px));
  padding-bottom: clamp(36px, 6vh, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__intro { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 4vh, 44px); }
.hero__intro img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hero__intro > span { display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; }
.hero__intro strong { font-stretch: var(--wide); font-weight: 700; font-size: 16px; }

.hero__title {
  --hs: 125%;
  font-size: clamp(2.5rem, 7vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-stretch: var(--hs);
  margin-bottom: clamp(36px, 6vh, 72px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
.hero__title .line--soft { color: #A2A2A8; }
@media (max-width: 640px) {
  .hero__title { font-size: 8.2vw; --hs: 115%; letter-spacing: -0.04em; }
  .hero__title .line > span { white-space: normal; }
}

/* Load sequence: each line rises out of its mask while the width axis opens up */
.js .hero__title .line > span {
  transform: translate3d(0, 108%, 0);
  font-stretch: 82%;
  transition: transform 1.25s var(--ease-out), font-stretch 1.6s var(--ease-out);
}
.js .hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .18s; }
.js .hero__title .line:nth-child(4) > span { transition-delay: .27s; }
.js.is-loaded .hero__title .line > span { transform: none; font-stretch: var(--hs); }
.js [data-hero-fade] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js.is-loaded [data-hero-fade] { opacity: 1; transform: none; }
.js.is-loaded .hero__intro { transition-delay: .05s; }
.js.is-loaded .hero__copy { transition-delay: .55s; }
.js.is-loaded .proof { transition-delay: .7s; }

.hero__foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero__copy p { font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--ink-2); max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.proof li { padding: 18px 18px 0 0; }
.proof li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.proof b { display: block; font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1; font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1000px) {
  .hero__foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { padding: 16px 12px 16px 0; }
  .proof li + li { padding-left: 0; border-left: 0; }
  .proof li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Ticker ---------- */
.ticker { padding: clamp(24px, 4vw, 40px) 0; border-block: 1px solid var(--line); overflow: hidden; }
.ticker__label { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.ticker__track {
  display: flex; width: max-content;
  animation: ticker 48s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex-shrink: 0; }
.ticker__list li {
  display: flex; align-items: center;
  font-size: clamp(1.6rem, 3.2vw, 2.75rem); font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.03em;
  line-height: 1.1; color: var(--ink); white-space: nowrap; padding-right: clamp(28px, 4vw, 56px);
}
.ticker__list li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-left: clamp(28px, 4vw, 56px); opacity: .9; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 13vw, 176px); }

/* Track record */
.work { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.work__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.work__head .lead { margin-top: 24px; }
.roles { border-top: 1px solid var(--line-strong); }
.role {
  display: grid; grid-template-columns: 120px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: background-color .4s ease;
}
.role__when { font-size: 14px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.role__what h3 { font-size: 1.3rem; font-stretch: var(--wide); letter-spacing: -0.02em; line-height: 1.2; }
.role__org { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.role__org a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.role__org a:hover { color: var(--accent); }
.role__result p { color: var(--ink-2); }
.role__result strong { color: var(--ink); }
.role__note { margin-top: 10px; font-size: 14px; color: var(--muted) !important; line-height: 1.5; }
@media (max-width: 1000px) {
  .work { grid-template-columns: 1fr; }
  .work__head { position: static; }
}
@media (max-width: 640px) {
  .role { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
}

/* ---------- Stage (AI) ---------- */
.stage {
  background: var(--stage); color: var(--stage-text);
  padding-block: clamp(88px, 12vw, 168px);
  border-radius: var(--r-xl);
  margin-inline: clamp(8px, 1.2vw, 16px);
}
.stage .lead { color: #C9C9CF; margin-top: 24px; }
.stage .muted { color: var(--stage-muted); }
.stage__head { max-width: 760px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--stage-line); }
.kpis li { padding: 24px 24px 0 0; }
.kpis li + li { padding-left: 24px; border-left: 1px solid var(--stage-line); }
.kpis b { display: block; font-size: clamp(2.2rem, 3.6vw, 3.6rem); font-weight: 700; line-height: 1; font-stretch: var(--wide); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpis li:first-child b { color: var(--stage-accent); }
.kpis span { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--stage-muted); max-width: 18em; }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis li { padding: 22px 16px 22px 0; }
  .kpis li + li { padding-left: 0; border-left: 0; }
  .kpis li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--stage-line); }
  .kpis li:nth-child(n+3) { border-top: 1px solid var(--stage-line); }
}

.chart { margin: clamp(48px, 6vw, 80px) 0 0; background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline; margin-bottom: 20px; }
.chart__title { font-weight: 650; font-stretch: var(--semi); font-size: 16px; }
.chart__legend { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--stage-muted); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw--base { background: #3A3A42; }
.sw--hot { background: var(--accent); margin-left: 12px; }
.chart__body { position: relative; height: clamp(220px, 28vw, 340px); }
.chart__body svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart__body .grid line { stroke: #1E1E22; stroke-width: 1; }
.chart__body .grid text, .chart__body .axis text { fill: #6E6E77; font-size: 12px; font-family: var(--font); }
.chart__body .bar { fill: #34343C; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--ease-out), fill .2s ease; }
.chart__body .bar--hot { fill: var(--accent); }
.chart__body .bar.is-hover { fill: #6B6B76; }
.chart__body .bar--hot.is-hover { fill: var(--stage-accent); }
.chart.is-in .bar { transform: scaleY(1); }
.chart__body .marker line { stroke: var(--stage-accent); stroke-dasharray: 3 4; }
.chart__body .marker text { fill: var(--stage-text); font-size: 12.5px; font-weight: 600; font-family: var(--font); }
.chart__body .marker { opacity: 0; transition: opacity .8s ease 1.1s; }
.chart.is-in .marker { opacity: 1; }
.chart__tip {
  position: absolute; top: 0; left: 0; pointer-events: none; z-index: 2;
  background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.35; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -110%); transition: opacity .2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.chart__tip b { display: block; font-size: 15px; font-stretch: var(--semi); }
.chart__tip.is-on { opacity: 1; }
.chart__src { margin-top: 16px; font-size: 13px; color: var(--stage-muted); }

.posts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin: clamp(72px, 9vw, 120px) 0 28px; }
.posts { columns: 3 300px; column-gap: 20px; }
.post { break-inside: avoid; margin: 0 0 20px; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--stage-line); background: #000;
  border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in;
  transition: border-color .4s ease, transform .6s var(--ease-out);
}
.shot img { width: 100%; height: auto; transition: transform .9s var(--ease-out), opacity .4s ease; }
.shot:hover { border-color: #3A3A42; }
.shot:hover img { transform: scale(1.015); }
.post__meta { display: flex; align-items: center; gap: 16px; padding: 14px 6px 0; font-size: 13.5px; color: var(--stage-muted); white-space: nowrap; }
.post__meta b { color: var(--stage-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.post__meta a { margin-left: auto; color: var(--stage-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; opacity: .8; transition: opacity .3s; }
.post__meta a:hover { opacity: 1; }
.post__meta svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .posts { columns: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .posts::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 82%; scroll-snap-align: center; margin: 0; }
}

.receipts { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--stage-line); }
.receipts__copy .muted { margin-top: 10px; max-width: 26em; }
.receipts__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .receipts { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .receipts__shots { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
@media (max-width: 900px) { .reviews__head { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.facts b { display: block; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.process { margin-top: clamp(72px, 9vw, 120px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 32px; counter-reset: step; }
.steps li { position: relative; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-out) .2s; }
.steps li.is-in::before { transform: scaleX(1); }
.steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.steps h4 { font-size: 1.15rem; font-stretch: var(--semi); letter-spacing: -0.015em; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.testimonials { margin-top: clamp(72px, 9vw, 120px); display: grid; gap: 20px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.quote blockquote { margin: 0; }
.quote__pull { font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.1; font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.03em; max-width: 22em; text-wrap: balance; }
.quote__full { margin-top: 24px; color: var(--ink-2); max-width: 46em; }
.quote__by { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.quote__by img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote__by > span { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; font-size: 15px; }
.quote__by strong { font-stretch: var(--semi); font-size: 16px; }
.quote__by a { color: var(--accent); text-decoration: none; }
.quote__by a:hover { text-decoration: underline; text-underline-offset: 3px; }

.log { margin-top: clamp(72px, 9vw, 120px); }
.log__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 32px; margin-bottom: 24px; }
.log__head .muted { margin-top: 8px; }
.log__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.chip { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 550; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.chip:hover { background: rgba(10,10,10,.05); }
.chip.is-on { background: var(--ink); color: #fff; }
.sort select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 550;
  padding: 11px 38px 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230A0A0A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer; color: var(--ink);
}
.log__table { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; transition: height .7s var(--ease-out); }
.log__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.log__table th { text-align: left; font-weight: 550; font-size: 13px; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: #FAFAF9; white-space: nowrap; }
.log__table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.log__table tr:last-child td { border-bottom: 0; }
.log__table tbody tr { transition: background-color .25s ease; }
.log__table tbody tr:hover { background: #F7F7F5; }
.log__table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; }
.log__table td.num:has(.score--txt) { white-space: normal; }
.log__table .game { width: 40%; }
.log__table .day { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.log__table .day small { display: block; font-size: 12px; }
.log__table .game { font-weight: 600; font-stretch: var(--semi); }
.log__table .game span { display: block; font-weight: 400; font-stretch: 100%; color: var(--muted); font-size: 12.5px; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 9px; border-radius: 999px; font-weight: 650; font-size: 14px; background: #F0F0EE; }
.score--hi { background: var(--accent); color: #fff; }
.score--lo { background: #1A1A1A; color: #fff; }
.score--txt { display: inline-block; min-width: 8.5em; height: auto; max-width: 12em; background: transparent; font-weight: 450; font-style: italic; color: var(--muted); font-size: 13px; line-height: 1.35; padding: 0; white-space: normal; text-align: right; }
.log__table .go { width: 44px; text-align: right; }
.log__table .go a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); transition: background-color .25s ease, color .25s ease; }
.log__table .go a:hover { background: var(--ink); color: #fff; }
.log__table .go svg { width: 14px; height: 14px; }
.log__more { margin-top: 20px; }
.log__table tbody tr.is-new { animation: rowIn .6s var(--ease-out) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 720px) {
  .log__table th.hide-sm, .log__table td.hide-sm { display: none; }
  .log__table td, .log__table th { padding: 12px 8px; }
  .log__table td:first-child, .log__table th:first-child { padding-left: 14px; }
  .log__table table { font-size: 14px; }
  .log__table .game { width: auto; overflow-wrap: anywhere; font-size: 13.5px; }
  .log__table .day { font-size: 13px; }
  .log__table .day .y { display: none; }
  .score--txt { min-width: 0; max-width: 6.5em; font-size: 12px; }
  .log__table .go { width: 36px; padding-right: 10px; }
}
@media (max-width: 520px) {
  .contact__row .btn { width: 100%; white-space: normal; text-align: center; padding-block: 14px; }
}

/* ---------- Pricing ---------- */
.pricing { padding-top: 0; }
.pricing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.toggle button { position: relative; z-index: 1; border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; font-stretch: var(--semi); cursor: pointer; transition: color .45s var(--ease-out); }
.toggle button[aria-selected="true"] { color: #fff; }
.toggle__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 999px; background: var(--ink); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }

.panels { position: relative; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plans[hidden] { display: none; }
.plans.is-entering .plan { animation: planIn .7s var(--ease-out) both; }
.plans.is-entering .plan:nth-child(2) { animation-delay: .06s; }
.plans.is-entering .plan:nth-child(3) { animation-delay: .12s; }
@keyframes planIn { from { opacity: 0; transform: translateY(16px); } }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 36px); }
.plan--feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan__kind { display: flex; align-items: center; gap: 10px; min-height: 26px; font-size: 14px; color: var(--muted); }
.plan--feature .plan__kind { color: #A1A1AA; }
.plan__tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; }
.plan__name { margin-top: 18px; font-size: 1.4rem; font-stretch: var(--wide); letter-spacing: -0.02em; line-height: 1.15; }
.plan__price { margin-top: 18px; font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 1; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: .45em; vertical-align: .9em; margin-right: .06em; font-weight: 700; letter-spacing: 0; }
.plan__desc { margin-top: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; flex: 1; }
.plan--feature .plan__desc { color: #C9C9CF; }
.plan__cta { margin-top: 28px; width: 100%; }
.plan--feature .btn--accent:hover { --bg: #fff; --fg: var(--ink); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plan__desc { flex: none; } }

.extra { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: 16px; }
.advisory { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 36px); }
.advisory > div { max-width: 30em; }
.advisory p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.terms { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 36px); }
.terms__title { font-size: 15px; font-stretch: var(--semi); }
.terms ul { margin-top: 10px; display: grid; gap: 8px; }
.terms li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) { .extra { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: #fff; border-radius: var(--r-xl); margin: 0 clamp(8px, 1.2vw, 16px); padding-block: clamp(96px, 14vw, 200px); overflow: hidden; }
.contact__title { font-size: clamp(2.6rem, 7.4vw, 7.8rem); line-height: 0.94; letter-spacing: -0.045em; font-weight: 800; font-stretch: var(--wide); max-width: 12em; text-wrap: balance; }
.contact__row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.contact__note { margin-top: 28px; color: rgba(255,255,255,.75); font-size: 15px; }
.contact__note a { color: #fff; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.foot { padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .h2[data-reveal], .js .contact__title[data-reveal] { transform: translate3d(0, 36px, 0); font-stretch: 96%; transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out), font-stretch 1.5s var(--ease-out); }
.js .h2[data-reveal].is-in, .js .contact__title[data-reveal].is-in { opacity: 1; transform: none; font-stretch: var(--wide); }
.js [data-reveal-group] > li { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal-group].is-in > li { opacity: 1; transform: none; }
.js [data-reveal-group].is-in > li:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-group].is-in > li:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-group].is-in > li:nth-child(4) { transition-delay: .24s; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgba(0,0,0,0); transition: background-color .5s var(--ease-out); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(100%, 900px); max-height: 100%; width: auto; height: auto; border-radius: 18px; border: 1px solid #26262b; transform-origin: 0 0; will-change: transform; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .4s ease .2s, background-color .3s; }
.lightbox.is-open .lightbox__close { opacity: 1; }
.lightbox__close:hover { background: #fff; color: #000; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker__track { animation: none; }
  .js [data-reveal], .js [data-reveal-group] > li, .js [data-hero-fade], .js .hero__title .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .chart__body .bar { transform: none; }
}
