/* ==========================================================================
   The Decision Studio · design system
   Dark navy foundations, warm ivory reading sections, restrained gold.
   ========================================================================== */
:root {
  /* colour */
  --navy: #0D1B2A;
  --navy-2: #13243A;
  --navy-3: #1B2E47;
  --steel: #415A77;
  --ivory: #F7F3E9;
  --paper: #FBF9F3;
  --gold: #D4AF37;
  --gold-2: #E9CB6B;
  --gold-ink: #7A5A0C;

  /* text on dark */
  --tx: #F7F3E9;
  --tx-2: #C3CBD6;
  --tx-3: #93A0B2;
  --ln-d: rgba(247, 243, 233, .14);
  --ln-d2: rgba(247, 243, 233, .26);

  /* text on light */
  --ink: #0D1B2A;
  --ink-2: #364254;
  --ink-3: #5A6472;
  --ln-l: rgba(13, 27, 42, .12);
  --ln-l2: rgba(13, 27, 42, .24);

  /* status */
  --ok: #7ED3A6;   --ok-l: #1D6A46;
  --wait: #F2A65A; --wait-l: #8A4A0E;
  --pro: #8EB5FF;  --pro-l: #2447A6;
  --plan: #A9B3C1; --plan-l: #4E5866;
  --hold: #E58C7A; --hold-l: #9A3422;

  /* type */
  --f: "Satoshi", "Inter", "Helvetica Neue", Arial, sans-serif;
  --m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* rhythm */
  --wrap: 1280px;
  --gut: clamp(20px, 4.2vw, 56px);
  --sec: clamp(88px, 11vw, 168px);
  --r: 18px;
  --e: cubic-bezier(.2, .7, .15, 1);
  --e2: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { font-style: normal !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--navy); color: var(--tx);
  font: 400 18px/1.6 var(--f); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--navy); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.lt :focus-visible { outline-color: var(--gold-ink); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; position: relative; }
.sec.tight { padding: clamp(64px, 8vw, 112px) 0; }
.dk { background: var(--navy); color: var(--tx); }
.dk2 { background: var(--navy-2); color: var(--tx); }
.lt { background: var(--ivory); color: var(--ink); }
.lt2 { background: var(--paper); color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

/* ---------- type ---------- */
.lbl { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.3 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); }
.lt .lbl, .lt2 .lbl { color: var(--ink-3); }
.lbl.g { color: var(--gold); }
.lt .lbl.g, .lt2 .lbl.g { color: var(--gold-ink); }
.lbl .n { color: var(--gold); }
.lt .lbl .n, .lt2 .lbl .n { color: var(--gold-ink); }
.d1 { font-size: clamp(44px, 6.4vw, 96px); font-weight: 500; letter-spacing: -.04em; line-height: .98; }
.d2 { font-size: clamp(36px, 4.8vw, 68px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -.03em; line-height: 1.06; }
.h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--tx-2); max-width: 46ch; }
.lt .lede, .lt2 .lede { color: var(--ink-2); }
.body { color: var(--tx-2); max-width: 62ch; }
.lt .body, .lt2 .body { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.55; color: var(--tx-3); }
.lt .small, .lt2 .small { color: var(--ink-3); }
.gold { color: var(--gold); }
.lt .gold, .lt2 .gold { color: var(--gold-ink); }
.mute { color: var(--tx-3); }
.lt .mute { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.stmt { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; max-width: 20ch; }
.stmt .m { color: var(--tx-3); }
.lt .stmt .m, .lt2 .stmt .m { color: #6A7280; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; transition: transform .3s var(--e), background .3s; }
.btn:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn .ar { transition: transform .3s var(--e); }
.btn:hover .ar { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 1px var(--ln-d2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(212, 175, 55, .08); }
.lt .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ln-l2); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .4s var(--e), color .2s; }
.link:hover { color: var(--gold); }
.lt .link:hover { color: var(--gold-ink); }
.link .ar { transition: transform .35s var(--e); }
.link:hover .ar { transform: translateX(5px); }

.st { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.2 var(--m); letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.done { color: var(--ok); } .st.wait { color: var(--wait); } .st.pro { color: var(--pro); } .st.plan { color: var(--plan); } .st.hold { color: var(--hold); }
.lt .st.done, .lt2 .st.done { color: var(--ok-l); } .lt .st.wait, .lt2 .st.wait { color: var(--wait-l); } .lt .st.pro, .lt2 .st.pro { color: var(--pro-l); } .lt .st.plan, .lt2 .st.plan { color: var(--plan-l); } .lt .st.hold, .lt2 .st.hold { color: var(--hold-l); }
.st.plan::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ln-d2); background: transparent; color: var(--tx-2); font-weight: 500; font-size: 15.5px; transition: background .25s, color .25s, border-color .25s; }
.seg button:hover { border-color: var(--gold); color: var(--tx); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.lt .seg button { border-color: var(--ln-l2); color: var(--ink-2); }
.lt .seg button:hover { border-color: var(--ink); color: var(--ink); }
.lt .seg button[aria-pressed="true"], .lt .seg button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s, box-shadow .35s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.nav.sc { background: rgba(13, 27, 42, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ln-d); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--tx); }
.brand i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.nav ul { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--tx-2); font-size: 16px; font-weight: 500; position: relative; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--tx); }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1.5px; background: var(--gold); }
.nav ul a.cta { border: 1px solid var(--ln-d2); border-radius: 999px; padding: 0 18px; color: var(--tx); }
.nav ul a.cta:hover { border-color: var(--gold); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav ul a { padding: 0 8px; font-size: 15.5px; }
  .nav ul a.cta { padding: 0 14px; }
}

/* ---------- case hero shell ---------- */
.chero { min-height: 100svh; padding: 132px 0 72px; display: flex; align-items: center; position: relative; overflow: hidden; }
.chero .wrap { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 28px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--ln-d); }
.facts > div { padding: 20px 20px 0 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--ln-d); }
.facts dt { font: 500 12.5px/1.3 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--tx-2); }
.facts dd b { color: var(--tx); font-weight: 500; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts > div, .facts > div + div { border-left: 0; padding: 16px 0 0; } .facts > div + div { border-top: 1px solid var(--ln-d); margin-top: 16px; } }

/* section header */
.sh { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sh > * { min-width: 0; }
.sh .lbl { margin-bottom: 20px; }
@media (max-width: 960px) { .sh { grid-template-columns: 1fr; align-items: start; } }

/* panel */
.panel { background: var(--navy-2); border: 1px solid var(--ln-d); border-radius: var(--r); }
.lt .panel { background: #fff; border-color: var(--ln-l); }

/* note */
.note { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--tx-3); max-width: 70ch; }
.note::before { content: ""; flex: 0 0 auto; width: 18px; height: 1.5px; background: var(--gold); margin-top: 11px; }
.lt .note, .lt2 .note { color: var(--ink-3); }
.lt .note::before, .lt2 .note::before { background: var(--gold-ink); }

/* disclosure */
.more { border-top: 1px solid var(--ln-d); border-bottom: 1px solid var(--ln-d); }
.lt .more { border-color: var(--ln-l); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; font-weight: 500; font-size: 18px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--gold); transition: transform .3s var(--e); }
.lt .more summary::after { color: var(--gold-ink); }
.more[open] summary::after { transform: rotate(45deg); }
.more .in { padding: 4px 0 28px; }

/* ---------- status list ---------- */
.stat { display: grid; gap: 0; border-top: 1px solid var(--ln-d); }
.stat li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ln-d); }
.lt .stat, .lt .stat li { border-color: var(--ln-l); }
.stat li b { font-weight: 500; }
.stat li span.d { display: block; font-size: 15px; color: var(--tx-3); margin-top: 2px; }
.lt .stat li span.d { color: var(--ink-3); }
@media (max-width: 520px) { .stat li { grid-template-columns: 1fr; gap: 10px; } .stat li .st { justify-self: start; } }

/* ---------- next case ---------- */
.nextc { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ln-d); }
.nextc a { display: block; padding: clamp(32px, 5vw, 64px) 0; text-decoration: none; transition: color .3s; }
.nextc a + a { padding-left: clamp(20px, 4vw, 56px); border-left: 1px solid var(--ln-d); text-align: right; }
.nextc a b { display: block; margin-top: 10px; font-size: clamp(24px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.nextc a:hover b { color: var(--gold); }
@media (max-width: 640px) { .nextc { grid-template-columns: 1fr; } .nextc a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--ln-d); text-align: left; } }

/* ---------- footer ---------- */
.foot { background: var(--navy); border-top: 1px solid var(--ln-d); padding: 32px 0 40px; color: var(--tx-3); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; color: var(--tx-2); min-height: 32px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--gold); }

/* ---------- reveal motion ---------- */
.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--e), transform .9s var(--e); transition-delay: var(--d, 0s); }
.js [data-rv].in { opacity: 1; transform: none; }
.js [data-rv="fade"] { transform: none; }
.js [data-rv="left"] { transform: translateX(-28px); }
.js [data-rv="scale"] { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-rv] { opacity: 1; transform: none; }
}

/* ---------- abstract product composition (conceptual, not a screenshot) ---------- */
.absw { position: relative; background: #0A1522; border: 1px solid var(--ln-d2); border-radius: 18px; overflow: hidden; box-shadow: 0 -30px 120px -40px rgba(212, 175, 55, .16), 0 40px 100px -30px rgba(0, 0, 0, .7); }
.absw .bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--ln-d); }
.absw .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ln-d2); }
.absw .bar .ln { margin-left: 10px; }
.absw .ab { display: grid; grid-template-columns: 22% 1fr; min-height: 300px; }
.absw .as { border-right: 1px solid var(--ln-d); padding: 18px 14px; display: grid; align-content: start; gap: 12px; }
.absw .pl { display: block; height: 26px; border-radius: 8px; background: rgba(247, 243, 233, .06); }
.absw .pl.on { background: rgba(212, 175, 55, .16); box-shadow: inset 2px 0 0 var(--gold); }
.absw .am { padding: 20px; display: grid; gap: 16px; align-content: start; }
.absw .ln { display: block; height: 8px; border-radius: 4px; background: rgba(247, 243, 233, .18); }
.absw .ln.thin { height: 6px; background: rgba(247, 243, 233, .09); margin-top: 8px; }
.absw .w30 { width: 30%; } .absw .w40 { width: 40%; } .absw .w60 { width: 60%; } .absw .w70 { width: 70%; } .absw .w50 { width: 50%; }
.absw .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.absw .c { padding: 14px; border-radius: 12px; background: rgba(247, 243, 233, .04); border: 1px solid var(--ln-d); min-height: 74px; }
.absw .c.hi { border-color: rgba(212, 175, 55, .6); background: rgba(212, 175, 55, .07); }
.absw .c.hi .ln { background: rgba(212, 175, 55, .55); }
.absw .net { width: 100%; height: auto; }
.absw .net .e { stroke: rgba(247, 243, 233, .14); stroke-width: 1.2; fill: none; }
.absw .net .g { stroke: var(--gold); stroke-width: 1.6; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.absw .net .n { fill: #13243A; stroke: rgba(247, 243, 233, .3); }
.absw .net .n.gold { fill: var(--gold); stroke: none; }
.absw .af { display: flex; gap: 10px; }
.absw .pill { display: block; width: 92px; height: 34px; border-radius: 999px; border: 1px solid var(--ln-d2); }
.absw .pill.gold { background: var(--gold); border-color: var(--gold); }
.js .absw .c, .js .absw .net, .js .absw .af { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--e), transform .7s var(--e); }
.absw.in .c, .absw.in .net, .absw.in .af { opacity: 1; transform: none; }
.absw.in .c:nth-child(2) { transition-delay: .15s; } .absw.in .c:nth-child(3) { transition-delay: .3s; }
.absw.in .net { transition-delay: .45s; } .absw.in .af { transition-delay: .7s; }
.absw.in .net .g { transition: stroke-dashoffset 1.8s var(--e2) .9s; stroke-dashoffset: 0; }
.absw-cap { margin-top: 14px; font-size: 14.5px; color: var(--tx-3); }
@media (max-width: 640px) { .absw .ab { grid-template-columns: 1fr; } .absw .as { display: none; } .absw .cards { grid-template-columns: 1fr 1fr; } .absw .cards .c:nth-child(3) { display: none; } }

/* ---------- abstract visuals (assets/visuals.js) ---------- */
.edv svg, .lpv svg { width: 100%; height: auto; display: block; overflow: visible; }
.ed-y { font: 500 76px var(--f); letter-spacing: -.04em; fill: none; stroke: var(--steel); stroke-width: 1.2; }
.ed-y2 { stroke: var(--gold); }
.ed-ring { fill: none; stroke: rgba(212, 175, 55, .45); stroke-width: 1.2; stroke-dasharray: 4 6; }
.ed-arc { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ed-p { fill: rgba(195, 203, 214, .55); transition: opacity .9s var(--e), transform .9s var(--e); transition-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
.ed-p.g { fill: var(--gold); }
.js .edv:not(.in) .ed-p { opacity: 0; transform: scale(.2); }
.edv.in .ed-arc { transition: stroke-dashoffset 1.6s var(--e2) .9s; stroke-dashoffset: 0; }
.lp-ring { fill: none; stroke: currentColor; stroke-opacity: .18; stroke-width: 1.5; }
.lp-arc { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lpv.in .lp-arc { transition: stroke-dashoffset 2.4s var(--e2) .2s; stroke-dashoffset: 0; }
.lp-p { fill: currentColor; opacity: .22; }
.lp-n circle { fill: var(--lp-bg, var(--navy-2)); stroke: currentColor; stroke-opacity: .5; stroke-width: 1.4; transition: stroke .5s, fill .5s; transition-delay: var(--d); }
.lp-n text { font: 700 16px var(--f); fill: currentColor; letter-spacing: .01em; }
.lpv.in .lp-n circle { stroke: var(--gold); stroke-opacity: 1; }
.lp-run { fill: var(--gold); offset-distance: 0%; opacity: 0; }
.lpv.in .lp-run { animation: lprun 2.4s var(--e2) .2s forwards; }
@keyframes lprun { 0% { offset-distance: 0%; opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.lt .lpv, .lt2 .lpv { --lp-bg: var(--paper); color: var(--ink); }
.lt .lp-arc, .lt2 .lp-arc, .lt .lp-run, .lt2 .lp-run { stroke: var(--gold-ink); }
.lt .lp-run, .lt2 .lp-run { fill: var(--gold-ink); }
.lt .lpv.in .lp-n circle, .lt2 .lpv.in .lp-n circle { stroke: var(--gold-ink); }
.dk .lpv { color: var(--tx); }
