/* ============================================================
   Designing Dark Mode with Figma Variables — case study
   LIGHT editorial theme on Sedona light tokens.
   (html has no data-theme, so var(--sd-*) resolve to light.)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--sd-grey-900);
  font-family: var(--sd-font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--sd-blue-50); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--sd-grey-200); border-radius: 7px; border: 3px solid #fff; }

:root {
  --ink:        #0B1029;     /* hero / dark bands */
  --panel:      #FFFFFF;     /* card */
  --hair:       var(--sd-border);          /* #DEDFE4 */
  --hair-soft:  rgba(255,255,255,.14);
  --accent:     var(--sd-blue-800);        /* #005FEC */
  --accent-dk:  #49B6FF;                   /* brand on dark (blue 300) */
  --accent-2:   var(--sd-teal-500);        /* #00A680 */
  --ink-2:      #222648;
  --muted:      var(--sd-grey-500);        /* #7A7D8C */
  --sec:        var(--sd-grey-600);        /* #616576 */
}

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 56px; }
.wrap-n { max-width: 960px; margin: 0 auto; padding: 0 56px; }
.band { padding: 120px 0; }
.band-s { padding: 84px 0; }
.deep { background: var(--ink); color: #fff; }
.grey { background: var(--sd-grey-50); }
.tint { background: linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 100%); }
@media (max-width: 720px){ .wrap, .wrap-n { padding: 0 24px; } .band { padding: 80px 0; } .band-s { padding: 60px 0; } }
@media (min-width: 1600px){ .band { padding: 140px 0; } }
@media (min-width: 1920px){ .band { padding: 160px 0; } .wrap { padding: 0 80px; } }

/* ── Sticky nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 80; height: 62px;
  background: rgba(255,255,255,.84); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center;
}
.nav .wrap { display: flex; align-items: center; width: 100%; gap: 18px; }
.navback { font-size: 13px; font-weight: 800; color: var(--accent); text-decoration: none; white-space: nowrap; }
.navback:hover { color: var(--sd-grey-900); }
.nav .brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 14.5px; letter-spacing: -0.2px; color: var(--sd-grey-900); }
.nav .brand .mk {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #1f4fe0); color: #fff; font-size: 12px; font-weight: 900;
  box-shadow: 0 4px 14px rgba(0,95,236,.3);
}
.nav .links { margin-left: auto; display: flex; gap: 26px; }
.nav .links a { font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.nav .links a:hover { color: var(--sd-grey-900); }
.nav .prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #49B6FF); transition: width .1s linear; }
@media (max-width: 900px){ .nav .links { display: none; } }

/* ── Type ───────────────────────────────────────────────── */
.kick { font-size: clamp(11px, 0.85vw, 13px); font-weight: 900; letter-spacing: 2.6px; text-transform: uppercase; color: var(--accent); }
.kick.mut { color: var(--muted); }
.sectno { font-family: var(--sd-font-mono); font-size: clamp(12px, 0.9vw, 14px); font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.dsp { font-weight: 900; letter-spacing: -2.4px; line-height: 1.0; font-size: clamp(46px, 7.4vw, 112px); }
.h2 { font-weight: 900; letter-spacing: -1px; line-height: 1.08; font-size: clamp(30px, 3.8vw, 58px); margin: 0; }
.h3 { font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; font-size: clamp(20px, 1.8vw, 30px); margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 26px); line-height: 1.54; color: var(--sec); font-weight: 400; }
.lede strong { color: var(--sd-grey-900); font-weight: 700; }
.p { font-size: clamp(15px, 1.1vw, 19px); line-height: 1.68; color: var(--sec); }
.p strong { color: var(--sd-grey-900); font-weight: 700; }
.p-sm { font-size: clamp(13px, 0.9vw, 15px); line-height: 1.55; color: var(--muted); }
.mono { font-family: var(--sd-font-mono); }
.grad { background: linear-gradient(92deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sec-head { max-width: 800px; }
.sec-head .row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sec-head .lede { margin: 22px 0 0; }
.deep .sectno, .deep .kick.mut { color: #8893b6; }
.deep .h2 { color: #fff; }
.deep .lede { color: #C2C8DD; }
.deep .lede strong, .deep .p strong { color: #fff; }
.deep .p { color: #AEB6D0; }

/* ── Hero (dark band) ───────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content:""; position:absolute; right:-260px; top:-180px; width:780px; height:780px; border-radius:50%;
  background: radial-gradient(circle, rgba(0,120,255,.30), transparent 62%); pointer-events:none; }
.hero::after { content:""; position:absolute; left:-200px; bottom:-240px; width:620px; height:620px; border-radius:50%;
  background: radial-gradient(circle, rgba(46,210,140,.14), transparent 64%); pointer-events:none; }
.hero-grid { position:absolute; inset:0; opacity:.6; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 0%, #000 0%, transparent 70%); }
.hero-in { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 84px; }
.hero .kick { color: #6ea4ff; }
.hero .dsp { margin: 26px 0 0; }
.hero .dsp .accent { background: linear-gradient(90deg, #6ea4ff, #61E8C9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #C2C8DD; max-width: 730px; margin-top: 28px; }
.hero .lede strong { color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 50px; border-top: 1px solid var(--hair-soft); }
.hero-meta .cell { flex: 1; min-width: 150px; padding: 24px 26px 0 0; }
.hero-meta .k { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #6B7596; font-weight: 800; }
.hero-meta .v { font-size: 15px; color: #EAEDF7; font-weight: 600; margin-top: 8px; line-height: 1.4; }

.hero-stats { display:flex; flex-wrap:wrap; gap:0; margin-top:40px; }
.hero-stats .st { padding-right:42px; margin-right:42px; border-right:1px solid var(--hair-soft); }
.hero-stats .st:last-child { border-right:0; margin-right:0; padding-right:0; }
.hero-stats .n { font-weight:900; font-size:clamp(32px,4vw,44px); letter-spacing:-1.5px; line-height:1;
  background:linear-gradient(90deg,#6ea4ff,#61E8C9); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-stats .l { font-size:12.5px; color:#9BA3BE; margin-top:9px; max-width:165px; line-height:1.45; font-weight:500; }
@media (max-width:680px){ .hero-stats .st { border-right:0; margin:0 0 22px; padding:0; } }

/* device frame (browser chrome) */
.frame { border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--hair); box-shadow: var(--sd-shadow-lg); }
.frame .bar { height: 38px; background: #fff; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.frame .bar .d { width: 11px; height: 11px; border-radius: 50%; }
.frame .bar .d.r { background: #FF5F57; } .frame .bar .d.y { background: #FEBC2E; } .frame .bar .d.g { background: #28C840; }
.frame .bar .u { margin-left: 14px; height: 20px; flex: 1; max-width: 320px; border-radius: 6px; background: var(--sd-grey-100); }
.frame .bar .u-tag { margin-left:auto; font-family:var(--sd-font-mono); font-size:11px; font-weight:700; color:var(--muted); }
.frame img { display: block; width: 100%; }
.hero-shot { margin-top: 60px; position: relative; z-index: 2; }
.hero-shot .frame { box-shadow: 0 40px 90px rgba(11,16,41,.18); }
.deep .hero-shot .frame { box-shadow: 0 50px 120px rgba(0,0,0,.5); border-color: rgba(255,255,255,.08); }
.shot-cap { font-size:12.5px; color:var(--muted); margin-top:16px; text-align:center; letter-spacing:.2px; }
.deep .shot-cap { color:#8893b6; }

/* ── Snapshot / stat grid ───────────────────────────────── */
.snap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair);
  border: 1px solid var(--hair); border-radius: var(--sd-radius-lg); overflow: hidden; }
.snap .cell { background: #fff; padding: 28px 26px; }
.snap .k { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.snap .v { font-size: clamp(17px, 1.4vw, 23px); font-weight: 800; letter-spacing: -0.3px; margin-top: 12px; line-height: 1.3; }
.snap .s { font-size: clamp(12px, 0.9vw, 15px); color: var(--sec); margin-top: 7px; line-height: 1.45; }
@media (max-width: 800px){ .snap { grid-template-columns: 1fr; } }

/* insight callout */
.insight { margin-top: 26px; padding: 24px 28px; border-radius: 16px;
  background: var(--sd-blue-50); border: 1px solid var(--sd-blue-200);
  display: flex; gap: 18px; align-items: flex-start; }
.insight .ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,95,236,.3); }
.insight .lab { font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.insight .tx { font-size: clamp(16px, 1.3vw, 20px); font-weight: 700; line-height: 1.45; letter-spacing: -0.2px; margin-top: 6px; color: var(--sd-grey-900); }
.insight .tx em { font-style: normal; color: var(--accent); }
.deep .insight { background: rgba(110,164,255,.08); border-color: rgba(110,164,255,.22); }
.deep .insight .lab { color: #6ea4ff; }
.deep .insight .tx { color: #fff; }
.deep .insight .tx em { color: #61E8C9; }

/* ── Sub-heads ──────────────────────────────────────────── */
.subhead { display:flex; align-items:center; gap:13px; margin:0 0 18px; }
.subhead .sn { width:30px; height:30px; flex:0 0 30px; border-radius:9px; background: var(--sd-blue-50); color:var(--accent); font-family:var(--sd-font-mono); font-size:13px; font-weight:700; display:grid; place-items:center; }
.subhead .st { font-size:12px; font-weight:900; letter-spacing:1.6px; text-transform:uppercase; color:var(--muted); }
.deep .subhead .sn { background: rgba(110,164,255,.16); color:#6ea4ff; }
.subband { margin-top: 72px; }

/* ── Research cards ─────────────────────────────────────── */
.rcards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.rcard { background: #fff; border: 1px solid var(--hair); border-radius: 16px; padding: 30px; box-shadow: var(--sd-shadow-sm); position: relative; overflow: hidden; }
.rcard .badge { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:900; letter-spacing:1px; text-transform:uppercase; color:var(--accent); background: var(--sd-blue-50); border:1px solid var(--sd-blue-200); padding:6px 11px; border-radius:999px; }
.rcard .ico { width:46px; height:46px; border-radius:13px; background: var(--sd-blue-50); border:1px solid var(--sd-blue-200); display:grid; place-items:center; color:var(--accent); margin-bottom: 18px; }
.rcard h4 { font-size: clamp(18px, 1.5vw, 24px); font-weight: 800; letter-spacing:-0.4px; margin: 16px 0 10px; }
.rcard p { font-size: clamp(13.5px, 1vw, 16px); line-height: 1.6; color: var(--sec); margin: 0; }
.rcard .stat { display:flex; align-items:baseline; gap:10px; margin-top:18px; padding-top:18px; border-top:1px solid var(--hair); }
.rcard .stat .big { font-size:clamp(28px, 2.4vw, 40px); font-weight:900; letter-spacing:-1.5px; color: var(--accent); line-height:1; }
.rcard .stat .lbl { font-size:clamp(12px, 0.9vw, 14px); color:var(--muted); line-height:1.4; }
@media (max-width: 800px){ .rcards { grid-template-columns: 1fr; } }

/* generic 3-up note cards */
.notes { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:26px; }
.note { background: #fff; border:1px solid var(--hair); border-radius:14px; padding:24px; box-shadow: var(--sd-shadow-sm); }
.note .nh { display:flex; align-items:center; gap:10px; font-size:clamp(13px, 1vw, 16px); font-weight:800; letter-spacing:-0.2px; }
.note .nh .ic { width:32px; height:32px; flex:0 0 32px; border-radius:9px; background: var(--sd-blue-50); border:1px solid var(--sd-blue-200); display:grid; place-items:center; color:var(--accent); }
.note p { font-size:clamp(13px, 0.95vw, 15px); line-height:1.58; color:var(--sec); margin:14px 0 0; }
@media (max-width: 800px){ .notes { grid-template-columns: 1fr; } }

/* ── Token mapping table (signature) ────────────────────── */
.tokmap { border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--sd-shadow-md); margin-top: 28px; }
.tokmap .thead { display: grid; grid-template-columns: 1.7fr 1.4fr 28px 1.4fr 1.4fr; gap: 0; background: var(--sd-grey-50); border-bottom: 1px solid var(--hair); }
.tokmap .thead .th { padding: 16px 22px; font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.tokmap .thead .th.lt { color:var(--sd-grey-700); } .tokmap .thead .th.dk { color:var(--accent); }
.tokrow { display: grid; grid-template-columns: 1.7fr 1.4fr 28px 1.4fr 1.4fr; gap: 0; border-bottom: 1px solid var(--hair); align-items: center; }
.tokrow:last-child { border-bottom: 0; }
.tokrow .role { padding: 15px 22px; }
.tokrow .role .rn { font-size: 14.5px; font-weight: 800; letter-spacing: -0.2px; }
.tokrow .role .rv { font-family: var(--sd-font-mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tokrow .sw { padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.tokrow .sw .chip { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; border: 1px solid var(--hair); box-shadow: inset 0 0 0 1px rgba(11,16,41,.04); }
.tokrow .sw .hex { font-family: var(--sd-font-mono); font-size: 12.5px; color: var(--sd-grey-800); }
.tokrow .arr { display: grid; place-items: center; color: var(--muted); }
.tokrow .sw.dkcol { background: var(--sd-blue-50); }
@media (max-width: 900px){
  .tokmap .thead { display:none; }
  .tokrow { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hair); }
  .tokrow .role { grid-column: 1 / -1; padding-bottom: 4px; }
  .tokrow .arr { display:none; }
  .tokrow .sw.dkcol { background: transparent; }
}

/* ── Decision blocks ────────────────────────────────────── */
.dec { border-top: 1px solid var(--hair); padding: 40px 0; display: grid; grid-template-columns: 58px 1fr; gap: 28px; }
.dec:last-child { border-bottom: 1px solid var(--hair); }
.dec .idx { font-family: var(--sd-font-mono); font-size: 14px; font-weight: 700; color: var(--accent); padding-top: 4px; }
.dec .deh { font-size: clamp(20px, 1.8vw, 30px); font-weight: 900; letter-spacing: -0.5px; line-height: 1.18; }
.dec .body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.dec .dtx { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.64; color: var(--sec); margin-top: 14px; }
.dec .dtx b { color: var(--sd-grey-900); font-weight: 700; }
.dec .dtx code { font-family: var(--sd-font-mono); font-size: 12.5px; background: var(--sd-grey-50); border:1px solid var(--hair); padding: 1px 6px; border-radius: 5px; color: var(--accent); }
.deep .dec { border-color: rgba(255,255,255,.12); }
.deep .dec .deh { color:#fff; }
.deep .dec .dtx { color:#AEB6D0; }
.deep .dec .dtx b { color:#fff; }
.deep .dec .dtx code { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color:#6ea4ff; }
@media (max-width: 880px){ .dec { grid-template-columns: 1fr; gap: 14px; } .dec .body { grid-template-columns: 1fr; gap: 24px; } }

/* surface ladder visual (always a dark sample panel) */
.ladder { border:1px solid rgba(255,255,255,.08); border-radius:14px; overflow:hidden; background: #060810; padding: 26px; }
.ladder .rung { border-radius:10px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; border:1px solid rgba(255,255,255,.08); }
.ladder .rung:last-child { margin-bottom:0; }
.ladder .rung .nm { font-size:13.5px; font-weight:700; color:#E7EAF4; }
.ladder .rung .hx { font-family:var(--sd-font-mono); font-size:11.5px; color:#9098B0; }

/* contrast chip */
.aa { display:inline-flex; align-items:center; gap:6px; font-family:var(--sd-font-mono); font-size:11px; font-weight:700; padding:4px 9px; border-radius:999px; }
.aa.pass { background: rgba(32,186,117,.14); color:#1FA968; border:1px solid rgba(32,186,117,.3); }
.aa.fail { background: rgba(219,53,69,.12); color:#C42435; border:1px solid rgba(219,53,69,.28); }
.ladder .aa.pass { color:#34E08F; } .ladder .aa.fail { color:#FF7A86; }

/* ── Challenges grid ────────────────────────────────────── */
.chal { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--sd-radius-lg); overflow: hidden; }
.chal .c { background: #fff; padding: 30px 28px; }
.chal .c .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sd-blue-50); color: var(--accent); display: grid; place-items: center; }
.chal .c .nm { font-size: clamp(16px, 1.3vw, 21px); font-weight: 800; letter-spacing: -0.3px; margin: 16px 0 9px; }
.chal .c .why { font-size: clamp(13px, 1vw, 15.5px); line-height: 1.58; color: var(--sec); }
.chal .c .move { font-size: clamp(12.5px, 0.95vw, 15px); line-height: 1.55; color: var(--sd-grey-800); margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--hair); }
.chal .c .move b { color: var(--sd-teal-700); font-weight: 700; }
@media (max-width: 800px){ .chal { grid-template-columns: 1fr; } }

/* ── Impact ─────────────────────────────────────────────── */
.bigstat { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-bottom: 52px; }
.bigstat .s .num { font-weight: 900; font-size: clamp(36px,4.4vw,54px); letter-spacing: -2px; line-height: 1;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigstat .s .lb { font-size: clamp(13px, 1vw, 16px); color: var(--sec); margin-top: 12px; line-height: 1.4; }
@media (max-width: 820px){ .bigstat { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px){ .bigstat { grid-template-columns: 1fr; } }

.imp { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.imp .col h4 { font-size: clamp(11px, 0.85vw, 13.5px); font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.imp .col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.imp .col li { display: flex; gap: 12px; align-items: flex-start; }
.imp .col li .ic { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; background: var(--sd-green-50); color: var(--sd-green-900); display: grid; place-items: center; margin-top: 1px; }
.imp .col li .tx { font-size: clamp(13.5px, 1.05vw, 16.5px); line-height: 1.5; color: var(--sec); }
.imp .col li .tx b { font-weight: 800; color: var(--sd-grey-900); }
@media (max-width: 860px){ .imp { grid-template-columns: 1fr; gap: 34px; } }

/* ── Footer (dark) ──────────────────────────────────────── */
.foot { padding: 70px 0 80px; }
.foot .kick { color:#6ea4ff; }
.foot .h2 { color:#fff; }
.foot .p { color:#AEB6D0; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: clamp(14px, 1.05vw, 17px); padding: 13px 22px; border-radius: 10px; }
.btn.pri { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0,95,236,.3); }
.btn.gho { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.18); }

/* ── Media: framed images, galleries, video ─────────────── */
.media { margin-top: 30px; }
.imgcard { border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sd-shadow-md); }
.imgcard .ib { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--hair); }
.imgcard .ib .dot { width: 11px; height: 11px; border-radius: 50%; }
.imgcard .ib .r { background:#FF5F57; } .imgcard .ib .y { background:#FEBC2E; } .imgcard .ib .g { background:#28C840; }
.imgcard .ib .fig { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--sd-grey-800); }
.imgcard .ib .fig .sq { width: 15px; height: 15px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), #1f4fe0); }
.imgcard .ib .lbl { margin-left: auto; font-family: var(--sd-font-mono); font-size: 11px; font-weight: 700; color: var(--muted); }
.imgcard > img { width: 100%; display: block; }
.imgcard .ic-cap { font-size: 12.5px; color: var(--sec); padding: 14px 18px; border-top: 1px solid var(--hair); line-height: 1.5; background:#fff; }
.imgcard .ic-cap b { color: var(--sd-grey-900); font-weight: 700; }

.gal2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.gal3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 24px; }
.galab { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; margin-top: 24px; align-items: start; }
@media (max-width: 860px){ .gal2, .gal3, .galab { grid-template-columns: 1fr; } }

.vidcard { border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; background: #060810; box-shadow: 0 30px 70px rgba(11,16,41,.22); }
.vidcard .vb { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--hair); }
.vidcard .vb .play { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--accent); }
.vidcard .vb .play .rd { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(0,166,128,.6); animation: vpulse 1.8s infinite; }
@keyframes vpulse { 0%{box-shadow:0 0 0 0 rgba(0,166,128,.5);} 70%{box-shadow:0 0 0 7px rgba(0,166,128,0);} 100%{box-shadow:0 0 0 0 rgba(0,166,128,0);} }
.vidcard .vb .vlbl { margin-left: auto; font-family: var(--sd-font-mono); font-size: 11px; font-weight: 700; color: var(--muted); }
.vidcard video { width: 100%; display: block; background: #060810; }

/* ── Lightbox ───────────────────────────────────────────── */
[data-zoom]{ cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11,16,41,.82); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox[hidden]{ display: none; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lightbox .lb-close { position: fixed; top: 18px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; cursor: pointer; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .rv { opacity: 1; transform: none; transition: none; } }

/* ── Component anatomy — DARK specimens on a light page ──── */
/* Specimens use the REAL Sedona dark token values:
   surface/secondary #02040F · surface/primary #171C34 · surface/elevated #30344A
   action #49B6FF (blue/300) with dark ink #171C34 on top · border #2A2F49 */
.anat { display:grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.spec { background: #02040F; border:1px solid #20243C; border-radius:16px; overflow:hidden; display:flex; flex-direction:column; box-shadow: var(--sd-shadow-md); }
.spec .stage { padding: 34px 30px; display:flex; align-items:center; justify-content:center; min-height: 200px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #0a0d1c, #02040F); flex: 1; }
.spec .cap { padding: 18px 22px; border-top: 1px solid #20243C; background: #0B0F22; }
.spec .cap .ct { font-size: 14.5px; font-weight: 800; letter-spacing:-0.2px; color:#F2F4FA; }
.spec .cap .cd { font-size: 13px; color: #9098B0; margin-top: 6px; line-height: 1.5; }
.spec .cap .cd b { color: #C5C9DD; font-weight: 700; }
.spec.wide { grid-column: 1 / -1; }
.spec.realshot .stage { padding: 0; }
.spec.realshot .stage img { width: 100%; display: block; }
@media (max-width: 800px){ .anat { grid-template-columns: 1fr; } }

.ui-card { background: #171C34; border:1px solid #2A2F49; border-radius:14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ui-suggest { width: 320px; max-width:100%; background: #171C34; border:1px solid #2A2F49; border-radius:14px; padding:18px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ui-suggest .sl { font-size:12.5px; color: #9098B0; margin-bottom:10px; }
.ui-suggest .sl b { color: #C5C9DD; }
.ui-suggest .sp { font-size:14px; line-height:1.5; color: #F2F4FA; margin:0 0 16px; }
.ui-suggest .row { display:flex; align-items:center; gap:10px; }
.ui-thumb { width:34px; height:34px; border-radius:9px; background: #30344A; border:1px solid #3A3F58; display:grid; place-items:center; color: #C5C9DD; }
.ui-btn { margin-left:auto; display:inline-flex; align-items:center; }
.ui-btn .main { background: #49B6FF; color:#171C34; font-size:13.5px; font-weight:800; padding:9px 15px; border-radius:8px 0 0 8px; }
.ui-btn .car { background: #49B6FF; color:#171C34; padding:9px 9px; border-radius:0 8px 8px 0; border-left:1px solid rgba(23,28,52,.28); display:grid; place-items:center; }
.ui-appt { width: 330px; max-width:100%; }
.ui-appt .h { display:flex; align-items:center; gap:11px; padding:16px 18px; border-bottom:1px solid #2A2F49; }
.ui-appt .h .ic { width:34px; height:34px; border-radius:9px; background: rgba(73,182,255,.16); color:#49B6FF; display:grid; place-items:center; }
.ui-appt .h .t { font-size:15px; font-weight:800; color:#F2F4FA; }
.ui-appt .h .plus { margin-left:auto; color: #9098B0; }
.ui-appt .tabs { display:flex; gap:18px; padding:12px 18px 0; }
.ui-appt .tabs .tb { font-size:13px; font-weight:700; color: #9098B0; padding-bottom:10px; }
.ui-appt .tabs .tb.on { color: #F2F4FA; border-bottom:2px solid #49B6FF; }
.ui-appt .empty { padding:30px 18px; text-align:center; font-size:13px; color: #6B7290; }
.swrow { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:center; }
.av { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-size:14px; font-weight:800; }
.callbar { display:flex; align-items:center; gap:14px; background: #171C34; border:1px solid #49B6FF; border-radius:12px; padding:8px 12px; box-shadow: 0 0 0 3px rgba(73,182,255,.16); }
.callbar .seg { display:flex; align-items:center; gap:10px; color: #9098B0; }
.callbar .ic { width:30px; height:30px; border-radius:8px; display:grid; place-items:center; }
.callbar .who { display:flex; align-items:center; gap:8px; }
.callbar .who .a { width:26px;height:26px;border-radius:50%; background:#5A3A20; color:#FFC59E; display:grid;place-items:center; font-size:11px; font-weight:800; }
.callbar .who .n { font-size:14px; font-weight:800; color:#F2F4FA; }
.callbar .time { font-family:var(--sd-font-mono); font-size:13px; color: #C5C9DD; }
.callbar .end { width:32px; height:32px; border-radius:50%; background:#FF5C6A; color:#fff; display:grid; place-items:center; }
.btnrow { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:center; }
.b { font-size:13.5px; font-weight:800; padding:10px 16px; border-radius:8px; display:inline-flex; align-items:center; gap:8px; }
.b.pri { background: #49B6FF; color:#171C34; }
.b.sec { background: #30344A; color: #F2F4FA; border:1px solid #3A3F58; }
.b.gho { background: transparent; color:#49B6FF; border:1px solid rgba(73,182,255,.5); }
.b.dng { background: rgba(255,92,106,.16); color:#FF8A94; border:1px solid rgba(255,92,106,.4); }
.ui-input { width:320px; max-width:100%; display:flex; align-items:center; gap:10px; background: #171C34; border:1px solid #2A2F49; border-radius:10px; padding:11px 14px; }
.ui-input.foc { border-color: #49B6FF; box-shadow: 0 0 0 3px rgba(73,182,255,.22); }
.ui-input span { color: #6B7290; font-size:14px; flex:1; }
.ui-input .send { width:30px; height:30px; border-radius:8px; background: #49B6FF; color:#171C34; display:grid; place-items:center; }
.tag-pill { font-family:var(--sd-font-mono); font-size:10.5px; font-weight:700; color: #9098B0; background: #171C34; border:1px solid #2A2F49; padding:3px 8px; border-radius:6px; }

/* ── Variable-table snippet (recreated from the .fig) ───── */
.vartable { border:1px solid var(--hair); border-radius:16px; overflow:hidden; background:#fff; box-shadow: var(--sd-shadow-md); }
.vartable .vt-head { display:flex; align-items:center; gap:10px; padding:14px 18px; background:#fff; border-bottom:1px solid var(--hair); }
.vartable .vt-head .sq { width:15px; height:15px; border-radius:4px; background: linear-gradient(135deg, var(--accent), #1f4fe0); }
.vartable .vt-head .ttl { font-size:13px; font-weight:800; color:var(--sd-grey-900); letter-spacing:-0.2px; }
.vartable .vt-head .grp { margin-left:auto; font-family:var(--sd-font-mono); font-size:11px; font-weight:700; color:var(--muted); }
.vt-rows { display:flex; flex-direction:column; }
.vt-row { display:grid; grid-template-columns: 30px 1fr auto; align-items:center; gap:14px; padding:11px 18px; border-bottom:1px solid var(--sd-grey-50); }
.vt-row:last-child { border-bottom:0; }
.vt-row .ch { width:30px; height:30px; border-radius:8px; border:1px solid rgba(11,16,41,.10); }
.vt-row .nm { font-size:13px; font-weight:700; color:var(--sd-grey-900); }
.vt-row .nm .al { font-family:var(--sd-font-mono); font-size:11px; color:var(--muted); font-weight:600; display:block; margin-top:2px; }
.vt-row .hx { font-family:var(--sd-font-mono); font-size:12px; color:var(--sec); white-space:nowrap; }
.vtwrap { display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-top:24px; align-items:start; }
@media (max-width: 860px){ .vtwrap { grid-template-columns: 1fr; } }

/* dark alert specimens */
.alert { width:340px; max-width:100%; display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:12px; border:1px solid; }
.alert .ai { width:24px; height:24px; flex:0 0 24px; border-radius:7px; display:grid; place-items:center; }
.alert .at { font-size:13.5px; font-weight:800; letter-spacing:-0.1px; }
.alert .ad { font-size:12.5px; line-height:1.5; margin-top:3px; color:#AEB6D0; }
.alert.info  { background: rgba(73,182,255,.13);  border-color: rgba(73,182,255,.34); }
.alert.info .ai { background:#49B6FF; color:#171C34; } .alert.info .at { color:#9ED2FF; }
.alert.succ  { background: rgba(46,195,165,.13);  border-color: rgba(46,195,165,.34); }
.alert.succ .ai { background:#2EC3A5; color:#06231C; } .alert.succ .at { color:#5FDDC2; }
.alert.warn  { background: rgba(255,110,56,.13);  border-color: rgba(255,110,56,.34); }
.alert.warn .ai { background:#FF6E38; color:#2A1206; } .alert.warn .at { color:#FF9D74; }
.alert.err   { background: rgba(255,92,106,.13);  border-color: rgba(255,92,106,.36); }
.alert .ai.iconw { color:#fff; } .alert.err .ai { background:#FF5C6A; color:#2A0508; } .alert.err .at { color:#FF8A94; }
.alertcol { display:flex; flex-direction:column; gap:12px; align-items:center; }

.icn { width: 18px; height: 18px; stroke-width: 1.9; flex-shrink: 0; }
