/* =====================================================================
   RamanInvests - design system
   Navy-black, royal blue, signal gold, white. "Making money make sense."
   Inter Tight display, Inter text.
   ===================================================================== */
:root {
  --ink: #0b111c;         /* near-black navy (brand banner) */
  --navy: #121b2d;
  --navy-2: #1a2742;
  --blue: #2453c7;        /* royal blue */
  --blue-2: #4f7cff;
  --gold: #f4c430;        /* brand gold bar */
  --gold-2: #ffdb6e;
  --gold-ink: #1a1400;
  --paper: #ffffff;
  --cream: #f3f5f9;
  --line: #e2e6ee;
  --text: #0d1422;
  --muted: #5a6476;
  --light: #f5f7fb;
  --light-muted: #aab4c6;

  --series-1: #2a78d6;   /* chart slot 1 (validated reference palette) */
  --series-2: #eb6834;   /* chart slot 2 */

  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px; --r: 18px; --r-lg: 26px;
  --shadow: 0 1px 2px rgba(11,17,28,.06), 0 12px 32px -12px rgba(11,17,28,.18);
  --shadow-lg: 0 30px 80px -30px rgba(11,17,28,.5);
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(18px, 4vw, 40px);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--font-text); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.02em; }
h1,h2 { font-family: var(--font-display); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
h1 em, h2 em { color: var(--gold); font-style: normal; }
::selection { background: var(--gold-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.muted-light { color: var(--light-muted); }
.fine { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }

/* ----------------------------------------------------------- buttons */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid var(--b);
  font: 600 .95rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.05em 1.75em; font-size: 1rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #d9a400);
  color: var(--gold-ink); box-shadow: 0 10px 30px -10px rgba(244,196,48,.7), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(244,196,48,.85), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost-light { --b: rgba(244,241,234,.28); color: var(--light); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { --b: rgba(244,241,234,.6); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: var(--light); }
.btn-dark:hover { background: var(--blue); }
.btn-outline { --b: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--paper); }
.btn-text { background: none; color: var(--muted); padding-inline: .4em; }
.btn-text:hover { color: var(--text); transform: none; }

/* ----------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.scrolled {
  background: rgba(11,17,28,.78); backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--light); }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(140deg, var(--gold-2), var(--gold)); color: var(--ink);
  font: 600 1.15rem/1 var(--font-display);
}
.brand-word { font: 700 1.3rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-word em { font-style: normal; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li > a, .menu-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px;
  color: var(--light); text-decoration: none; font: 700 .93rem/1 var(--font-text);
  background: none; border: 0; cursor: pointer; opacity: .82; transition: opacity .2s, background .2s;
}
.site-nav > ul > li > a:hover, .menu-btn:hover, .site-nav [aria-current="page"] { opacity: 1; background: rgba(255,255,255,.07); }
.chev { width: 14px; height: 14px; transition: transform .25s; }
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 4px;
  width: max-content; max-width: min(640px, 92vw); margin: 0; padding: 10px; list-style: none;
  background: rgba(14,21,35,.96); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease);
}
.has-menu.open .mega, .has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.has-menu.open .chev, .has-menu:hover .chev { transform: rotate(180deg); }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--light); }
.mega a:hover { background: rgba(255,255,255,.06); }
.mega .icon { color: var(--gold); margin-top: 2px; }
.mega strong { display: block; font-weight: 600; font-size: .92rem; }
.mega small { display: block; color: var(--light-muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.nav-toggle { display: none; }

/* ----------------------------------------------------------- dark grounds */
.hero, .page-hero, .section-dark, .site-footer { background: var(--ink); color: var(--light); position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 620px; height: 620px; background: radial-gradient(circle, #2453c7, transparent 65%); top: -180px; right: -120px; }
.orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(244,196,48,.55), transparent 65%); bottom: -260px; left: -120px; animation-duration: 22s; }
.orb-3 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(244,196,48,.32), transparent 65%); top: -200px; left: 40%; }
.grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
@keyframes drift { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font: 600 .74rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow-light { color: var(--gold-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.display { font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 24px; }
.h-xl { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; }
.lead { font-size: clamp(1.04rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 40em; }
.lead-light { color: var(--light-muted); }

/* ----------------------------------------------------------- hero */
.hero { padding: 150px 0 110px; min-height: min(100svh, 940px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.hero-trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 52px 0 0; padding: 0; list-style: none; }
.hero-trust li { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.12); max-width: 190px; }
.hero-trust li:first-child { padding-left: 0; border-left: 0; }
.hero-trust strong { display: block; font: 700 2.1rem/1 var(--font-display); color: var(--gold-2); margin-bottom: 6px; }
.hero-trust span { font-size: .82rem; color: var(--light-muted); }

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12);
}
.glass-light { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.hero-card { padding: 28px; color: var(--light); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.hero-card:hover { transform: none; }
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.hc-title { font-weight: 600; }
.chip { font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(74,222,128,.14); color: #86efac; letter-spacing: .04em; }
.range-field { display: block; margin-bottom: 20px; }
.range-field > span { display: flex; justify-content: space-between; font-size: .85rem; color: var(--light-muted); margin-bottom: 10px; }
.range-field output { color: var(--light); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline-offset: 6px;
  background: linear-gradient(90deg, var(--gold) var(--p), rgba(255,255,255,.14) var(--p)); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); }
.hc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.hc-result div { padding: 16px; border-radius: var(--r); background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06); }
.hc-result small { display: block; font-size: .76rem; color: var(--light-muted); margin-bottom: 6px; }
.hc-result strong { font: 700 1.75rem/1 var(--font-display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.hc-foot { margin: 16px 0 0; font-size: .78rem; color: var(--light-muted); }
.hc-foot a { color: var(--gold-2); text-decoration: none; }

/* ----------------------------------------------------------- marquee */
.marquee { overflow: hidden; background: var(--gold); color: var(--ink); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 700 1.2rem/1 var(--font-display); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "\2726"; font-style: normal; font-size: .8rem; opacity: .6; margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------- sections */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-tint { background: var(--cream); }
.section-dark { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; padding: 26px; min-height: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 80% at 100% 0%, rgba(244,196,48,.16), transparent 60%);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { opacity: 1; }
.svc-card h3 { margin-top: auto; font: 700 1.35rem/1.1 var(--font-display); }
.svc-card p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.svc-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 30px;
  background: var(--navy); color: var(--gold-2);
}
.svc-icon .icon { width: 22px; height: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; color: var(--blue); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.svc-card:hover .link-arrow .icon { transform: translateX(4px); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { padding: 26px; border-radius: var(--r); }
.pillar:nth-child(even) { transform: translateY(32px); }
.pillar-n { font: 700 1rem/1 var(--font-display); color: var(--gold); display: block; margin-bottom: 18px; }
.pillar p { color: var(--light-muted); font-size: .9rem; margin: 0; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tool { padding: 34px 30px; background: var(--paper); text-decoration: none; transition: background .3s; position: relative; }
.tool:hover { background: #fff; }
.tool::after { content: "\2192"; position: absolute; right: 28px; top: 32px; font-size: 1.2rem; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: .3s var(--ease); }
.tool:hover::after { opacity: 1; transform: none; }
.tool-n { font: 700 .95rem/1 var(--font-display); color: var(--gold); display: block; margin-bottom: 28px; }
.tool h3 { font: 700 1.45rem/1.1 var(--font-display); }
.tool p { color: var(--muted); font-size: .9rem; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.steps-row { grid-template-columns: repeat(4, 1fr); }
.steps-row li { flex-direction: column; }
.step-n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold-2); font: 700 1.05rem/1 var(--font-display); }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }

.insta { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.insta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.insta-tile {
  aspect-ratio: 4/5; border-radius: var(--r); padding: 22px; display: flex; align-items: flex-end;
  font: 700 1.25rem/1.15 var(--font-display); color: var(--light); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.insta-tile::before { content: ""; position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.insta-tile::after { content: ""; position: absolute; top: 28px; right: 28px; border-left: 10px solid rgba(255,255,255,.85); border-top: 6px solid transparent; border-bottom: 6px solid transparent; translate: 2px 0; }
.t1 { background: linear-gradient(160deg, var(--blue), var(--ink)); }
.t2 { background: linear-gradient(160deg, var(--gold), #8a6a00); color: var(--ink); translate: 0 30px; }
.t3 { background: linear-gradient(160deg, #1b2232, var(--ink)); }
.t4 { background: linear-gradient(160deg, var(--blue), #0a1430); translate: 0 30px; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 60px); border-radius: var(--r-lg); color: var(--light); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 140% at 100% 0%, rgba(244,196,48,.35), transparent 55%), linear-gradient(135deg, var(--navy), var(--ink));
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.cta-band p { color: var(--light-muted); margin: 0; }

/* ----------------------------------------------------------- inner pages */
.page-hero { padding: 160px 0 100px; }
.page-hero-sm { padding: 150px 0 80px; }
.page-hero .icon { color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.ticks .icon { color: var(--blue); background: rgba(36,83,199,.1); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature { padding: 22px; border-radius: var(--r); background: var(--cream); }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.calc-callout { display: flex; align-items: center; gap: 20px; margin-top: 48px; padding: 22px 26px; border-radius: var(--r-lg); border: 1px dashed var(--gold); background: #fffbea; flex-wrap: wrap; }
.calc-callout .svc-icon { margin: 0; }
.calc-callout div { flex: 1; min-width: 220px; }
.calc-callout h3 { margin-bottom: 4px; }
.calc-callout p { margin: 0; color: var(--muted); font-size: .9rem; }
.faqs details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faqs summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font: 400 1.5rem/1 var(--font-display); color: var(--gold); transition: transform .3s; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs p { margin: 12px 0 0; color: var(--muted); }
.other-svcs { margin-top: 28px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.other-svcs a { color: var(--blue); }

.about-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.portrait { margin: 0; position: relative; }
.portrait-ph, .portrait img {
  display: grid; place-items: center; aspect-ratio: 4/5; border-radius: var(--r-lg); width: 100%; object-fit: cover;
  background: linear-gradient(160deg, var(--blue), var(--navy) 60%, var(--ink)); border: 1px solid rgba(255,255,255,.1);
  font: 700 9rem/1 var(--font-display); color: rgba(255,219,110,.35); box-shadow: var(--shadow-lg);
}
.portrait figcaption { position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(11,17,28,.7); backdrop-filter: blur(10px); font-size: .82rem; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #2c3445; }
.prose a { color: var(--blue); }
.fact-stack { display: grid; gap: 12px; }
.fact { padding: 20px 22px; border-radius: var(--r); }
.fact small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.fact strong { font: 700 1.15rem/1.3 var(--font-display); }
.note { padding: 14px 18px; border-radius: var(--r-sm); background: #fff6df; border: 1px solid #f0d998; font-size: .9rem; }

/* ----------------------------------------------------------- calculators */
.calc-section { padding-top: 56px; }
.calc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.calc-tabs { position: sticky; top: 100px; display: grid; gap: 4px; }
.calc-tabs a {
  padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--muted);
  border: 1px solid transparent; transition: .2s;
}
.calc-tabs a:hover { color: var(--text); background: #fff; }
.calc-tabs a[aria-selected="true"] { color: var(--light); background: var(--ink); box-shadow: var(--shadow); }
.calc-panels { min-width: 0; }
.js .calc[hidden] { display: none; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; scroll-margin-top: 100px; }
.calc > header { padding: 28px 32px 0; }
.calc > header h2 { margin-bottom: 4px; }
.calc > header p { color: var(--muted); margin: 0; }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 22px; }
.fields { padding: 8px 32px 32px; display: grid; gap: 16px; align-content: start; }
.field { display: block; min-width: 0; }
.field > span, .field legend, .q-label { display: block; font-size: .84rem; font-weight: 500; color: #2c3445; margin-bottom: 7px; padding: 0; }
.field b, .q-label b { color: #b45309; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap input, .enquiry input:not([type=radio]):not([type=checkbox]), .enquiry select, .enquiry textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  font: 700 1rem/1.3 var(--font-text); color: var(--text); font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap input:focus, .enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(244,196,48,.18); }
.input-wrap.pre input { padding-left: 30px; }
.input-wrap.post input { padding-right: 62px; }
.input-wrap.pre::before, .input-wrap.post::after { position: absolute; top: 50%; translate: 0 -50%; color: var(--muted); font-size: .92rem; pointer-events: none; }
.input-wrap.pre::before { content: attr(data-pre); left: 15px; }
.input-wrap.post::after { content: attr(data-post); right: 15px; }
.seg { border: 0; margin: 0; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 0; }
.seg legend { width: 100%; }
.seg label { flex: 1; min-width: 0; }
.seg input, .pills input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--line); margin-left: -1px; font-size: .86rem; font-weight: 500; cursor: pointer; background: var(--paper); transition: .2s; }
.seg label:first-of-type span { border-radius: 12px 0 0 12px; margin-left: 0; }
.seg label:last-of-type span { border-radius: 0 12px 12px 0; }
.seg input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); position: relative; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.results { padding: 32px; background: linear-gradient(180deg, var(--cream), #fff 70%); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.result-hero { padding: 24px; border-radius: var(--r); color: var(--light); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(100% 140% at 100% 0%, rgba(244,196,48,.4), transparent 55%), linear-gradient(135deg, var(--navy), var(--ink)); }
.result-hero small { display: block; font-size: .8rem; color: var(--light-muted); margin-bottom: 8px; }
.result-hero strong { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--font-display); color: var(--gold-2); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.result-list { margin: 0; display: grid; gap: 0; }
.result-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.result-list dt { color: var(--muted); }
.result-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.results .fine { margin: 0; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font-text); }
.chart .s1 { stroke: var(--series-1); }
.chart .s2 { stroke: var(--series-2); }
.chart .area1 { fill: var(--series-1); opacity: .08; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .lbl { font-size: 11px; font-weight: 600; fill: var(--text); font-family: var(--font-text); }
.chart .xhair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { stroke: #fff; stroke-width: 2; }
.chart .dot.s1 { fill: var(--series-1); } .chart .dot.s2 { fill: var(--series-2); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); margin: 0 0 8px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--light); padding: 8px 10px; border-radius: 10px; font-size: .78rem; line-height: 1.45; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s; font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; font-size: .82rem; }
.bar-row span:first-child { color: var(--muted); }
.bar-track { height: 14px; border-radius: 4px; background: transparent; }
.bar-fill { height: 100%; border-radius: 0 4px 4px 0; transition: width .5s var(--ease); }
.bar-row strong { font-variant-numeric: tabular-nums; }

.progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .5s var(--ease); width: 0; }
.calc-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px; color: var(--light); margin: 8px 0 24px;
  background: radial-gradient(90% 140% at 100% 0%, rgba(244,196,48,.35), transparent 55%), linear-gradient(135deg, var(--navy), var(--ink)); }
.calc-cta h3 { font: 700 1.5rem/1.15 var(--font-display); margin-bottom: 4px; }
.calc-cta p { margin: 0; color: var(--light-muted); }

/* ----------------------------------------------------------- enquiry form */
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; margin-top: -60px; position: relative; z-index: 2; }
.enquiry { padding: clamp(24px, 4vw, 44px); }
.stepper { display: flex; gap: 8px; list-style: none; margin: 0 0 32px; padding: 0; counter-reset: s; }
.stepper li { flex: 1; font-size: .78rem; font-weight: 600; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--line); counter-increment: s; transition: .3s; }
.stepper li::before { content: counter(s) ". "; }
.stepper li.is-on { color: var(--text); border-color: var(--gold); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.step-title { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display); letter-spacing: -.02em; margin-bottom: 8px; padding: 0; }
.step-title span { color: var(--muted); font-weight: 500; }
.step-sub { color: var(--muted); margin-bottom: 26px; }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 14px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice span { display: block; height: 100%; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); transition: .25s var(--ease); }
.choice strong { display: block; font: 700 1.3rem/1.1 var(--font-display); margin-bottom: 6px; }
.choice small { color: var(--muted); font-size: .84rem; line-height: 1.45; display: block; }
.choice:hover span { border-color: var(--gold); transform: translateY(-2px); }
.choice input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.choice input:checked + span small { color: var(--light-muted); }
.choice input:checked + span strong { color: var(--gold-2); }
.choice input:focus-visible + span, .pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.q { margin-bottom: 22px; }
.q-label small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .88rem; cursor: pointer; transition: .2s; }
.pills span:hover { border-color: var(--gold); }
.pills input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.grid-2 .full { grid-column: 1 / -1; }
.enquiry textarea { resize: vertical; }
.enquiry .invalid, .enquiry .q.invalid .pills span { border-color: #c2410c !important; }
.enquiry .q.invalid .q-label, .consent.invalid span { color: #c2410c; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--cream); font-size: .86rem; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.consent a { color: var(--blue); }
.form-error { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-sm); background: #fff1eb; color: #9a3412; font-size: .9rem; }
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-done { text-align: center; padding: 40px 0 20px; }
.done-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(140deg, var(--gold-2), var(--gold)); color: var(--ink); font-size: 2rem; margin-bottom: 20px; box-shadow: 0 16px 40px -12px rgba(244,196,48,.8); }
.step-done a { color: var(--blue); }
.form-foot { margin: 26px 0 0; }
.contact-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.side-card { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.side-card a { color: var(--blue); font-weight: 600; text-decoration: none; }
.mini-steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; display: grid; gap: 6px; }

/* ----------------------------------------------------------- footer */
.site-footer { padding: 90px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer h3 { font: 600 .74rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--light-muted); }
.site-footer ul a, .footer-social a { color: var(--light-muted); text-decoration: none; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.site-footer ul a:hover, .footer-social a:hover { color: var(--light); }
.brand-light { margin-bottom: 18px; }
.legal { padding-top: 28px; font-size: .76rem; color: #7f8aa0; }
.legal p { margin-bottom: .8em; max-width: 980px; }
.legal a { color: var(--light-muted); }

/* ----------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal[data-delay="1"] { transition-delay: .15s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-card.reveal.in { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }
.js .hero-card.reveal.in:hover { transform: none; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: var(--light); cursor: pointer; }
  .site-nav {
    position: fixed; inset: 76px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px;
    background: rgba(11,17,28,.97); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r);
    max-height: calc(100svh - 96px); overflow: auto; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease);
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: rgba(11,17,28,.92); }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li > a, .menu-btn { width: 100%; padding: 14px; font-size: 1rem; justify-content: space-between; }
  .mega { position: static; translate: none; grid-template-columns: 1fr; width: auto; max-width: none; box-shadow: none; border: 0; background: rgba(255,255,255,.03); display: none; opacity: 1; visibility: visible; transform: none; }
  .has-menu:hover .mega, .has-menu:focus-within .mega { display: none; }
  .has-menu.open .mega { display: grid; }
  .hero-grid, .split, .two-col, .insta, .about-hero, .calc-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; min-height: 0; }
  .hero-card, .js .hero-card.reveal.in { transform: none; }
  .pillar:nth-child(even) { transform: none; }
  .calc-tabs { position: sticky; top: 76px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; padding: 10px 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--paper); scrollbar-width: none; }
  .calc-tabs a { white-space: nowrap; border: 1px solid var(--line); background: #fff; }
  .contact-side { position: static; }
  .contact-layout { margin-top: -40px; }
  .portrait { max-width: 420px; }
}
@media (max-width: 720px) {
  .calc-body { grid-template-columns: 1fr; }
  .results { border-left: 0; border-top: 1px solid var(--line); }
  .fields, .results { padding: 24px 20px; }
  .calc > header { padding: 24px 20px 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .features, .grid-2, .choice-cards { grid-template-columns: 1fr; }
  .hero-trust li { padding: 0 16px; }
  .hero-trust strong { font-size: 1.7rem; }
}
@media (max-width: 560px) {
  .svc-grid, .steps-row, .pillars, .footer-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; }
  .hc-result strong { font-size: 1.4rem; }
  .hero-actions .btn { flex: 1; }
  .seg span { font-size: .8rem; padding: 11px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Brand layer (v2): photos, Raman portrait, story, shop, socials
   ===================================================================== */
h1, h2, .h-xl, .display { letter-spacing: -.035em; }
.display { font-weight: 800; line-height: .96; }
.gold-bar::before, .display::before {
  content: ""; display: block; width: 84px; height: 5px; border-radius: 3px; background: var(--gold); margin-bottom: 26px;
}
.section-head .h-xl::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 3px; background: var(--gold); margin-bottom: 20px; }
.brand-mark { background: var(--gold); color: var(--ink); font: 800 1.1rem/1 var(--font-display); border-radius: 10px; }
.brand-word { font: 800 1.3rem/1 var(--font-display); letter-spacing: -.03em; }
.orb-1 { background: radial-gradient(circle, rgba(36,83,199,.9), transparent 65%); }
.orb-2 { background: radial-gradient(circle, rgba(244,196,48,.35), transparent 65%); }
.orb-3 { background: radial-gradient(circle, rgba(36,83,199,.55), transparent 65%); }
.eyebrow { color: var(--blue); }
.eyebrow-light { color: var(--gold); }
.lead-light { color: #c3cbdb; }

/* full-bleed background photo for dark heroes */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none;
}
.hero:has(.hero-photo)::before, .page-hero:has(.hero-photo)::before, .section-dark:has(.hero-photo)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,17,28,.96) 0%, rgba(11,17,28,.82) 45%, rgba(11,17,28,.45) 100%),
    linear-gradient(0deg, rgba(11,17,28,.9), transparent 40%);
}

/* hero with Raman */
.hero-visual { position: relative; justify-self: end; width: min(100%, 430px); margin-bottom: 130px; }
.hero-copy { max-width: 600px; }
.hero-portrait { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,17,28,.75)); }
.portrait-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-ph {
  display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 4/5;
  background: radial-gradient(120% 90% at 30% 10%, var(--blue), var(--navy) 60%, var(--ink));
  font: 800 9rem/1 var(--font-display); color: rgba(244,196,48,.4);
}
.hero-nametag { position: absolute; left: 20px; top: 20px; z-index: 2; display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: rgba(11,17,28,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); }
.hero-nametag strong { font: 700 1rem/1.2 var(--font-display); }
.hero-nametag small { color: var(--light-muted); font-size: .76rem; }
.hero-visual .hero-card { position: absolute; left: -64px; bottom: -150px; width: 300px; padding: 22px; transform: none; z-index: 3;
  background: linear-gradient(160deg, rgba(26,39,66,.88), rgba(11,17,28,.9)); }
.js .hero-visual .hero-card.reveal.in, .hero-visual .hero-card:hover { transform: none; }
.hero-visual .hc-result strong { font-size: 1.45rem; }
.hero-visual .range-field { margin-bottom: 14px; }

/* socials row (banner style) */
.socials, .footer-social { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; color: var(--light); }
.socials span, .footer-social span { font-size: .95rem; opacity: .85; }
.socials a, .footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--light); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .25s var(--ease); }
.socials a:hover, .footer-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.socials .icon, .footer-social .icon { width: 20px; height: 20px; }
.socials strong, .footer-social strong { font: 700 1.05rem/1 var(--font-display); letter-spacing: -.01em; }
.footer-social { margin-top: 18px; gap: 10px; }
.footer-social strong { font-size: .9rem; }
.section-light .socials, .section-light .socials a { color: var(--text); }
.section-light .socials a { background: var(--cream); border-color: var(--line); }

/* "Sound familiar?" problems */
.problems { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.problem-list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-weight: 500; transition: .3s var(--ease); }
.problem-list li:hover { border-color: var(--gold); transform: translateX(6px); box-shadow: var(--shadow); }
.problem-list .q-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 800 .95rem/1 var(--font-display); }
.problem-list a { margin-left: auto; color: var(--blue); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Meet Raman */
.meet { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.meet-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.meet-photo::before { content: ""; position: absolute; inset: auto -30px -30px auto; width: 60%; height: 40%; background: var(--gold); border-radius: var(--r-lg); z-index: -1; }
.meet-wrap { position: relative; isolation: isolate; }
.meet-wrap::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 55%; height: 45%; border-radius: var(--r-lg); background: var(--gold); z-index: -1; }
.meet-quote { font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.3 var(--font-display); letter-spacing: -.02em; border-left: 4px solid var(--gold); padding-left: 20px; margin: 26px 0; }
.meet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.meet-stats div { padding: 16px; border-radius: var(--r); background: var(--cream); }
.meet-stats strong { display: block; font: 800 1.15rem/1.2 var(--font-display); }
.meet-stats small { color: var(--muted); font-size: .8rem; }

/* service cards with photos */
.svc-card { padding: 0; min-height: 0; }
.svc-photo { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-photo img { transform: scale(1.06); }
.svc-card .svc-icon { margin: -24px 0 16px 22px; position: relative; z-index: 1; border: 3px solid #fff; background: var(--ink); color: var(--gold); width: 46px; height: 46px; }
.svc-card h3, .svc-card p, .svc-card .link-arrow { margin-inline: 22px; }
.svc-card h3 { font-size: 1.25rem; margin-top: 0; }
.svc-card .link-arrow { margin-bottom: 22px; margin-top: auto; }
.svc-card::before { z-index: 1; pointer-events: none; }

/* story timeline */
.story { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.story::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--blue)); }
.story li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 22px; }
.story .chap { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 800 1rem/1 var(--font-display); box-shadow: 0 0 0 6px var(--paper); position: relative; }
.story .chap-body { padding: 22px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.story .chap-body small { display: block; color: var(--blue); font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.story .chap-body h3 { font: 700 1.3rem/1.2 var(--font-display); }
.story .chap-body p { color: var(--muted); margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 28px; border-radius: var(--r-lg); }
.value h3 { font: 700 1.2rem/1.2 var(--font-display); margin-top: 18px; }
.value p { color: var(--light-muted); font-size: .92rem; margin: 0; }
.value .icon { width: 28px; height: 28px; color: var(--gold); }

/* shop */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: .35s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-art { position: relative; aspect-ratio: 16/10; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--light); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 100% 0%, rgba(36,83,199,.9), transparent 60%), var(--ink); }
.product-art::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 30px; border: 2px solid rgba(244,196,48,.35); transform: rotate(18deg); z-index: -1; }
.product-art .sheet { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 62%; }
.product-art .sheet i { height: 9px; border-radius: 3px; background: rgba(255,255,255,.14); }
.product-art .sheet i:nth-child(3n) { background: rgba(244,196,48,.7); }
.product-art .sheet i:nth-child(7n) { background: rgba(79,124,255,.85); }
.product-art .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.product-art h3 { font: 800 1.45rem/1.1 var(--font-display); letter-spacing: -.02em; margin: 0; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.product-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .88rem; }
.product-body li { display: flex; gap: 8px; }
.product-body li .icon { color: var(--blue); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 800 1.6rem/1 var(--font-display); }
.price small { font: 500 .78rem/1 var(--font-text); color: var(--muted); margin-left: 4px; }
.formats { display: flex; gap: 6px; flex-wrap: wrap; }
.formats span { font-size: .72rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: var(--cream); color: var(--muted); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.shop-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.shop-trust div { padding: 20px; border-radius: var(--r); background: var(--cream); }
.shop-trust strong { display: block; margin-bottom: 4px; }
.shop-trust p { margin: 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 1080px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) {
  .problems, .meet { grid-template-columns: 1fr; }
  .hero-visual { justify-self: stretch; width: 100%; max-width: 520px; padding-bottom: 0; margin-bottom: 0; }
  .hero-visual .hero-card { position: relative; left: auto; bottom: auto; width: auto; margin: -80px 16px 0; }
  .values, .shop-trust { grid-template-columns: 1fr; }
  .meet-wrap { max-width: 440px; }
}
@media (max-width: 640px) {
  .shop-grid, .meet-stats { grid-template-columns: 1fr; }
  .problem-list a { display: none; }
}

/* social tiles use photos */
.insta-tile { background-size: cover !important; background-position: center !important; color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.4); font-weight: 700; }
.t1 { background: linear-gradient(180deg, transparent 35%, rgba(11,17,28,.9)), url(/assets/img/photos/home-loans-sm.jpg); }
.t2 { background: linear-gradient(180deg, transparent 35%, rgba(11,17,28,.9)), url(/assets/img/photos/first-home-buyers-sm.jpg); }
.t3 { background: linear-gradient(180deg, transparent 35%, rgba(11,17,28,.9)), url(/assets/img/photos/refinance-sm.jpg); }
.t4 { background: linear-gradient(180deg, transparent 35%, rgba(11,17,28,.9)), url(/assets/img/photos/investment-loans-sm.jpg); }
.insta-tile em { font-style: normal; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nav-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--light); text-decoration: none; font-size: .88rem; font-weight: 600; opacity: .85; transition: opacity .2s, color .2s; }
.nav-ig:hover { opacity: 1; color: var(--gold); }
.nav-ig .icon { width: 20px; height: 20px; }
@media (max-width: 1180px) and (min-width: 921px) { .nav-ig span { display: none; } }
@media (max-width: 920px) { .nav-ig { padding: 10px 14px; } }

/* ----------------------------------------------------------- admin inbox */
.admin { padding-top: 40px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-stats span { padding: 8px 12px; border-radius: 999px; background: var(--cream); font-size: .84rem; color: var(--muted); }
.admin-stats strong { color: var(--text); }
.admin-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-controls input, .admin-controls select, .admin-detail select, .admin-detail textarea {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 500 .9rem/1.3 var(--font-text); color: var(--text);
}
.admin-controls input { min-width: 240px; }
.admin-detail select, .admin-detail textarea { width: 100%; }
.admin-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.admin-layout:has(.admin-detail:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.admin-list { display: grid; gap: 6px; }
.admin-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 14px 16px; text-align: left; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: inherit; transition: .2s; }
.admin-row:hover { border-color: var(--gold); }
.admin-row.is-on { border-color: var(--ink); box-shadow: var(--shadow); }
.ar-main strong { display: block; }
.ar-main small, .ar-when { color: var(--muted); font-size: .8rem; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.st-new { background: var(--gold); } .st-contacted { background: var(--blue-2); } .st-in-progress { background: var(--blue); }
.st-won { background: #16a34a; } .st-closed { background: #9aa3b5; }
.admin-stats .st { background: var(--cream); }
.admin-detail { position: sticky; top: 100px; padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.admin-detail header { display: flex; justify-content: space-between; gap: 12px; }
.admin-detail h2 { margin: 0; font-size: 1.6rem; }
.admin-detail header p { margin: 4px 0 0; color: var(--muted); }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.admin-saved { margin: 0; font-size: .8rem; color: var(--muted); min-height: 1em; }
.admin-answers dd { text-align: right; max-width: 60%; overflow-wrap: anywhere; }
.admin-delete { color: #b42318; }
.admin-empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }
@media (max-width: 920px) {
  .admin-layout:has(.admin-detail:not([hidden])) { grid-template-columns: 1fr; }
  .admin-detail { position: static; max-height: none; }
  .admin-controls input { min-width: 0; flex: 1; }
}

/* live Instagram reels */
.insta-grid.is-live .insta-tile { text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.insta-grid.is-live .insta-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.insta-grid.is-live .insta-tile::before, .insta-grid.is-live .insta-tile::after { display: none; }
.insta-tile.live em { font-size: .98rem; line-height: 1.3; }
.ig-play { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.5); }
.ig-play::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ig-box { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(5,8,14,.86); backdrop-filter: blur(8px); }
.ig-box.open { display: grid; }
.ig-box-inner { position: relative; display: grid; gap: 14px; justify-items: center; width: min(420px, 100%); }
.ig-box video { width: 100%; max-height: calc(100svh - 140px); border-radius: var(--r); background: #000; box-shadow: var(--shadow-lg); }
.ig-close { position: absolute; top: -14px; right: -14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* =====================================================================
   Home hero v3: morphing line drawings (see home.js)
   ===================================================================== */
.hero-torus { min-height: min(100svh, 1000px); padding: 140px 0 120px; text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 52%, #0f1930 0%, var(--ink) 62%); }
.hero-torus::after { mask-image: radial-gradient(ellipse at 50% 50%, #000 5%, transparent 65%); opacity: .6; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-center { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 960px; }
.hero-center::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11,17,28,.7), rgba(11,17,28,.25) 60%, transparent); }
.hero-center .display { font-size: clamp(2.9rem, 8vw, 6.6rem); text-shadow: 0 2px 30px rgba(11,17,28,.6); }
.hero-center .display::before { margin-inline: auto; }
.hero-center .display em { font-variant-numeric: tabular-nums; }
.hero-center .lead { margin-inline: auto; max-width: 34em; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .socials { justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid rgba(244,241,234,.35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.quick { padding: clamp(72px, 9vw, 120px) 0; }
.quick-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.quick .hero-card { transform: none; }
.js .quick .hero-card.reveal.in { transform: none; }
@media (max-width: 920px) {
  .quick-grid { grid-template-columns: 1fr; }
  .hero-torus { padding: 120px 0 110px; min-height: 92svh; }
}
@media (max-width: 560px) { .scroll-cue, .hero-center .eyebrow .dot { display: none; } .hero-center .eyebrow { justify-content: center; } }

/* Calmer hero: no gold bar. On the home page the hero carries "Book a free chat",
   so the header drops its button and the menu sits far right (desktop). */
.hero-center .display::before { display: none; }
.hero-center .eyebrow { margin-bottom: 46px; }
@media (min-width: 921px) {
  .page-home .nav-cta { display: none; }
  .page-home .site-nav { margin-left: auto; }
}

/* Wordmark-only logo, and framing for the photo of Raman outside the house. */
.brand-word { font-size: 1.45rem; }
.portrait-house { object-position: 74% 50%; }

/* Thank-you page after buying a planner */
.thanks-section { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
.thanks-card { padding: clamp(26px, 4vw, 44px); }
.thanks-card .eyebrow { margin-bottom: 10px; }
.thanks-card h2 { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.02em; margin: 0 0 10px; }
.thanks-card #thanks-msg { margin: 0 0 24px; }
.thanks-card h3 { font: 700 1.05rem/1.3 var(--font-display); margin: 30px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.thanks-card ul { margin: 0 0 18px; padding-left: 1.2em; }
.thanks-card li { margin-bottom: 8px; }
.thanks-card .fine { margin: 0; }
