/* baski.pro v2: sections below the splash. Splash styles stay inline in index.html unchanged. */
html, body { height: auto; overflow-x: hidden; overflow-y: auto; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --card: rgba(26, 11, 46, 0.66);
  --card-strong: rgba(32, 14, 58, 0.9);
  --border: rgba(196, 181, 253, 0.14);
  --border-strong: rgba(196, 181, 253, 0.28);
  --muted: #a99cc6;
  --radius: 18px;
}

.page {
  position: relative;
  background:
    radial-gradient(ellipse 70% 40% at 85% 0%, rgba(91, 33, 182, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 35% at 0% 45%, rgba(212, 175, 55, 0.07), transparent 60%),
    radial-gradient(ellipse 70% 40% at 100% 80%, rgba(139, 92, 246, 0.14), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, #10071d 50%, var(--void) 100%);
  line-height: 1.6;
}
.page::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(196, 181, 253, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 181, 253, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }

.eyebrow {
  font-family: Orbitron, sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.h2 {
  font-family: Orbitron, sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.h3 { font-family: Orbitron, sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; }
.h4 { font-family: Orbitron, sans-serif; font-weight: 600; font-size: 1rem; color: var(--gold-bright); margin-bottom: 16px; }
.gold {
  background: linear-gradient(120deg, #ffe9a0, var(--gold-bright) 35%, var(--gold) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 52rem; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #d9d0ee; }

/* ---------- About ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; backdrop-filter: blur(6px);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  color: var(--gold-bright); background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; color: var(--fog); }
.card p { color: var(--muted); font-size: 0.97rem; }

.note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 18px; padding: 18px 22px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(212, 175, 55, 0.1), rgba(91, 33, 182, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.note-icon { color: var(--gold-bright); flex: none; margin-top: 2px; }
.note p { color: #e6def5; }
.note strong { color: var(--gold-bright); font-weight: 600; }

.steps-title { margin: 56px 0 22px; }
.process { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.steps { list-style: none; display: grid; gap: 10px; counter-reset: s; }
.step {
  display: flex; gap: 16px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(20, 9, 36, 0.55);
}
.step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 0.93rem; }
.step-num { font-family: Orbitron, sans-serif; font-weight: 600; color: var(--purple-bright); font-size: 0.9rem; min-width: 26px; padding-top: 2px; }
.step-accent { border-color: rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.06); }
.step-accent .step-num { color: var(--gold-bright); }

.spec-mock {
  position: sticky; top: 24px;
  background: #f6f3fb; color: #1b1030; border-radius: var(--radius);
  padding: 18px 18px 14px; box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.55), 0 0 0 1px rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.spec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e3dcef; }
.spec-title { font-weight: 600; }
.spec-progress { display: flex; align-items: center; gap: 8px; color: #6b5a8a; font-size: 0.8rem; white-space: nowrap; }
.spec-bar { width: 70px; height: 6px; border-radius: 4px; background: #e4dcf2; overflow: hidden; display: inline-block; }
.spec-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #d4af37); }
.spec-list { list-style: none; }
.spec-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #ece6f5; }
.spec-id { color: #8a7aa8; font-variant-numeric: tabular-nums; font-size: 0.82rem; }
.spec-comment { grid-column: 2 / 4; font-size: 0.8rem; color: #7a5b0b; background: #fbf3d9; border-radius: 8px; padding: 6px 9px; }
.spec-active { background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), transparent); border-radius: 8px; }
.badge { font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.ok { color: #116b3a; background: #dcf5e6; }
.badge.edit { color: #8a5a00; background: #fbecc4; }
.spec-actions { display: flex; gap: 6px; }
.mini-btn { font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; border: 1px solid #d5cbe6; color: #4b3a6b; }
.mini-btn.ok { background: #5b21b6; border-color: #5b21b6; color: #fff; }
.spec-mock figcaption { margin-top: 10px; font-size: 0.72rem; color: #8a7aa8; text-align: right; }

/* CTA */
.cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font: 700 1rem/1 Manrope, sans-serif; color: #1a0b2e; text-decoration: none;
  padding: 15px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, #ffe9a0, var(--gold-bright) 40%, var(--gold));
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.7);
  transition: transform .2s, box-shadow .2s;
}
.cta::after { content: "→"; transition: transform .2s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(212, 175, 55, 0.85); }
.cta:hover::after { transform: translateX(3px); }
.cta.ghost { background: transparent; color: var(--fog); border: 1px solid var(--border-strong); box-shadow: none; }

/* Contact */
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .lead { margin: 0 auto; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.contact.flash .contact-inner { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { filter: drop-shadow(0 0 0 rgba(245,215,110,0)); } 30% { filter: drop-shadow(0 0 24px rgba(245,215,110,0.45)); } 100% { filter: none; } }

.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.85rem; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-brand { font-family: Orbitron, sans-serif; font-weight: 800; color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .spec-mock { position: static; }
}
@media (max-width: 560px) {
  .spec-list li { grid-template-columns: 30px 1fr; }
  .spec-list li > .badge, .spec-actions { grid-column: 2; justify-self: start; }
  .cta { width: 100%; justify-content: center; }
}

/* ================= Cases v3: one screen per case ================= */
.cases { position: relative; height: 100vh; height: 100svh; min-height: 540px; padding: clamp(10px, 2.4vh, 28px) 0; }
.cases-inner { max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 clamp(14px, 3vw, 40px); display: flex; flex-direction: column; gap: clamp(8px, 1.8vh, 18px); }
.cases-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cases-h2 { font-family: Orbitron, sans-serif; font-weight: 800; font-size: clamp(1.1rem, 1.2vw + 1.6vh, 2rem); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.cases-h2 .eyebrow { display: block; margin-bottom: 6px; font-size: 0.7rem; }
.tabs-scroller { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs-scroller::-webkit-scrollbar { display: none; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20, 9, 36, 0.7); border: 1px solid var(--border); }
.tab { font: 600 0.9rem/1 Manrope, sans-serif; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.tab:hover { color: var(--fog); }
.tab[aria-selected="true"] { color: #1a0b2e; background: linear-gradient(120deg, #ffe9a0, var(--gold-bright) 40%, var(--gold)); box-shadow: 0 6px 24px -8px rgba(212, 175, 55, 0.6); }

.stage-cases { position: relative; flex: 1; min-height: 0; }
.panel { position: absolute; inset: 0; transition: opacity .28s ease; }
.panel[hidden] { display: none; }
.panel.is-pending { opacity: 0; }
.panel.is-fading { opacity: 0; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .2s; }
.fx.on { opacity: 1; }

.case {
  height: 100%; display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px);
  background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(12px, 2vh, 26px);
}
.case-media { min-width: 0; min-height: 0; display: flex; }
.media-box { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: #07040f; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px -30px rgba(91, 33, 182, 0.7); }
.media-box.light, .media-box .slide.light { background: #fff; }
.media-box > video, .slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.slide.is-active { opacity: 1; visibility: visible; }
.media-badge { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 0.72rem; font-weight: 600; color: var(--fog); background: rgba(10, 6, 20, 0.72); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); background: rgba(10, 6, 20, 0.62); color: #fff; font-size: 1.35rem; line-height: 1; display: grid; place-items: center; }
.slider-btn.prev { left: 8px; } .slider-btn.next { right: 8px; }
.slider-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(10, 6, 20, 0.55); }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--gold-bright); width: 20px; border-radius: 5px; }
.video-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(10, 6, 20, 0.6); color: #fff; font-size: 0.7rem; cursor: pointer; opacity: 0.8; }

.case-text { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.4vh, 14px); overflow: hidden; }
.case-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.case-title { font-family: Orbitron, sans-serif; font-weight: 800; font-size: clamp(1.35rem, 1.2vw + 2vh, 2.4rem); line-height: 1.08; letter-spacing: -0.01em; }
.case-sub { font-size: clamp(0.9rem, 0.4vw + 1.2vh, 1.06rem); color: #ddd3ef; line-height: 1.5; }
.case-ai { font-size: clamp(0.8rem, 0.3vw + 1vh, 0.92rem); color: #ece5fa; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(196, 181, 253, 0.3); background: linear-gradient(110deg, rgba(139, 92, 246, 0.22), rgba(212, 175, 55, 0.08)); line-height: 1.4; }
.case-ai span { color: var(--gold-bright); }
.case-text .numbers { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0; }
.case-text .numbers li { padding: clamp(8px, 1.4vh, 14px) 10px; border-radius: 12px; background: rgba(10, 6, 20, 0.5); border: 1px solid var(--border); min-width: 0; }
.case-text .numbers b { display: block; font-family: Orbitron, sans-serif; font-weight: 800; font-size: clamp(1.05rem, 0.8vw + 1.8vh, 1.9rem); color: var(--gold-bright); line-height: 1.1; white-space: nowrap; }
.case-text .numbers span { display: block; margin-top: 4px; font-size: clamp(0.68rem, 0.2vw + 0.9vh, 0.8rem); color: var(--muted); line-height: 1.3; }
.case-cmp { font-size: clamp(0.76rem, 0.2vw + 1vh, 0.86rem); color: #cfc4e6; line-height: 1.45; }
.cmp-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-right: 4px; }
.src { white-space: nowrap; }
.src a { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; padding: 0 3px; border-radius: 5px; font-size: 0.62rem; font-weight: 700; color: var(--violet); text-decoration: none; border: 1px solid rgba(196, 181, 253, 0.35); vertical-align: 2px; }
.src a:hover, .src a:focus-visible { color: #1a0b2e; background: var(--gold-bright); border-color: var(--gold-bright); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.72rem; font-weight: 600; color: var(--violet); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(91, 33, 182, 0.14); }
.case-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.case-actions .cta { margin-top: 0; padding: clamp(11px, 1.6vh, 15px) 22px; }
.more { font: 600 0.92rem/1 Manrope, sans-serif; color: var(--fog); background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; padding: clamp(11px, 1.6vh, 15px) 18px; cursor: pointer; }
.more:hover { border-color: var(--gold); color: var(--gold-bright); }
.case-dots { display: none; }

.tab:focus-visible, .cta:focus-visible, .more:focus-visible, .slider-btn:focus-visible, .video-toggle:focus-visible, .dots button:focus-visible, .panel:focus-visible, .details-close:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* compact desktop heights */
@media (min-width: 761px) and (max-height: 760px) {
  .case-ai { padding: 6px 10px; }
  .case-sub { line-height: 1.4; }
}

/* ---------- Details dialog ---------- */
.details { margin: auto; width: min(860px, calc(100% - 32px)); max-height: 86vh; padding: 0; border: 1px solid var(--border-strong); border-radius: 22px; color: var(--fog); background: linear-gradient(180deg, #1a0d2e, #120820); box-shadow: 0 40px 120px -20px rgba(0,0,0,0.8); overflow: hidden; display: none; flex-direction: column; font-family: Manrope, sans-serif; line-height: 1.6; }
.details[open] { display: flex; animation: dlg-in .3s cubic-bezier(0.22, 1, 0.36, 1); }
.details::backdrop { background: rgba(5, 2, 12, 0.72); backdrop-filter: blur(4px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.details-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.details-head h3 { font-family: Orbitron, sans-serif; font-weight: 800; font-size: 1.2rem; }
.details-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--fog); cursor: pointer; font-size: 0.95rem; }
.details-body { padding: 20px 22px 26px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 16px; }
.details-body .facts { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 0.95rem; }
.details-body .facts dt { color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 4px; }
.details-body .facts dd { color: #e2d9f3; }
.details-body .feature-list { list-style: none; display: grid; gap: 6px; }
.details-body .feature-list li { position: relative; padding-left: 14px; }
.details-body .feature-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.details-body .feature-list b, .details-body .how-grid b { color: var(--fog); font-weight: 600; }
.details-body .ai-block { padding: 14px 16px; border-radius: 14px; background: linear-gradient(110deg, rgba(139, 92, 246, 0.22), rgba(212, 175, 55, 0.1)); border: 1px solid rgba(196, 181, 253, 0.3); font-size: 0.94rem; }
.details-body .ai-label, .details-body .compare-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 4px; }
.details-body .numbers { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.details-body .numbers li { padding: 12px; border-radius: 12px; background: rgba(10, 6, 20, 0.5); border: 1px solid var(--border); }
.details-body .numbers b { display: block; font-family: Orbitron, sans-serif; font-size: 1.25rem; color: var(--gold-bright); }
.details-body .numbers span { font-size: 0.8rem; color: var(--muted); }
.details-body .stack { font-size: 0.9rem; color: #cfc4e6; }
.details-body .stack span { color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 8px; }
.details-body .compare { padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(212, 175, 55, 0.05); border-radius: 0 12px 12px 0; font-size: 0.92rem; color: #ddd3ef; }
.details-body .sources { margin-top: 6px; font-size: 0.76rem; color: var(--muted); }
.details-body .sources a { color: var(--violet); }
.details-body .snow-how { padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(10, 6, 20, 0.4); }
.details-body .h4 { font-family: Orbitron, sans-serif; font-size: 0.95rem; color: var(--gold-bright); margin-bottom: 12px; }
.details-body .how-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: h; }
.details-body .how-grid li { padding: 12px 14px; border-radius: 12px; background: rgba(10, 6, 20, 0.5); border: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); counter-increment: h; }
.details-body .how-grid li::before { content: "0" counter(h); display: block; font-family: Orbitron, sans-serif; font-size: 0.75rem; color: var(--purple-bright); margin-bottom: 4px; }
.details-body .how-grid b { display: block; margin-bottom: 2px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .cases { height: 100svh; min-height: 0; padding: 10px 0 8px; }
  .cases-inner { padding: 0 12px; gap: 8px; }
  .cases-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .cases-h2 { font-size: 1.05rem; display: flex; align-items: baseline; gap: 10px; }
  .cases-h2 .eyebrow { display: inline; margin: 0; font-size: 0.62rem; }
  .tabs-scroller { mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .tab { padding: 9px 13px; font-size: 0.84rem; }
  .case { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 18px; }
  .case-media { height: min(56vw, 32svh); }
  .case-text { justify-content: flex-start; gap: 8px; }
  .case-kicker { font-size: 0.62rem; }
  .case-title { font-size: 1.3rem; }
  .case-sub { font-size: 0.86rem; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .case-ai { font-size: 0.76rem; padding: 6px 10px; }
  .case-text .numbers { gap: 6px; }
  .case-text .numbers li { padding: 8px 7px; }
  .case-text .numbers b { font-size: 1.02rem; }
  .case-text .numbers span { font-size: 0.64rem; }
  .case-cmp { font-size: 0.74rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .chips { flex-wrap: nowrap; overflow: hidden; }
  .chips li { font-size: 0.66rem; padding: 3px 8px; white-space: nowrap; }
  .case-actions { flex-wrap: nowrap; margin-top: auto; }
  .case-actions .cta { flex: 1; width: auto; justify-content: center; padding: 12px 14px; font-size: 0.92rem; }
  .more { padding: 12px 14px; font-size: 0.88rem; }
  .slider-btn { width: 32px; height: 32px; font-size: 1.1rem; }
  .media-badge { font-size: 0.64rem; padding: 3px 8px; }
  .case-dots { display: flex; justify-content: center; gap: 6px; }
  .case-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(196, 181, 253, 0.3); transition: width .2s, background .2s; }
  .case-dots span.on { width: 18px; border-radius: 4px; background: var(--gold-bright); }
  .details { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88svh; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .details[open] { animation: sheet-in .32s cubic-bezier(0.22, 1, 0.36, 1); }
  .details-head { padding: 14px 16px; }
  .details-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 2px; background: rgba(196, 181, 253, 0.35); transform: translateX(-50%); }
  .details-body { padding: 16px 16px 28px; }
  .details-body .facts { grid-template-columns: 1fr; gap: 2px; }
  .details-body .facts dd { margin-bottom: 10px; }
  .details-body .how-grid { grid-template-columns: 1fr; }
  .details-body .numbers { grid-template-columns: repeat(2, 1fr); }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 760px) and (max-height: 700px) {
  .case-media { height: min(50vw, 28svh); }
  .case-sub { -webkit-line-clamp: 3; }
  .case-ai { display: none; }
}

/* media box sizing by content aspect (desktop) */
@media (min-width: 761px) {
  .case-media { align-items: center; }
  .media-box { flex: none; width: 100%; max-height: 100%; aspect-ratio: var(--ar, 16 / 10); }
}
@media (max-width: 760px) {
  .case-text { justify-content: space-between; }
  .case-actions { margin-top: 0; }
}
