/* ===========================================================
   Desai Global Strategies — site styles
   Brand: #0B1F35 navy · #0C6766 teal · #166F9C blue · #FFFFFF
   =========================================================== */

:root {
  --navy: #0B1F35;
  --navy-900: #071526;
  --navy-800: #0E2742;
  --teal: #0C6766;
  --teal-400: #2AA9A1;
  --teal-200: #7FD6CE;
  --blue: #166F9C;
  --blue-400: #3A9CCB;
  --white: #FFFFFF;

  --paper: #F4F6F5;
  --paper-2: #E8EDEC;
  --ink: #0B1F35;
  --ink-soft: #3B4E62;
  --ink-mute: #6A7A8A;

  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.72);
  --on-dark-mute: rgba(255, 255, 255, 0.5);
  --hair-dark: rgba(255, 255, 255, 0.12);
  --hair-light: rgba(11, 31, 53, 0.14);

  --gain: #2AA9A1;
  --loss: #E27D6F;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans: "Jost", "Avenir Next", "Avenir", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0B1F35, #0C6766 50%, #166F9C);
  color: var(--on-dark);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

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

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--teal-200);
  margin: 0 0 14px;
}
.eyebrow--dark { color: var(--teal); }

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  background: linear-gradient(100deg, var(--teal), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.display--light { color: var(--white); }
.display--light em { color: var(--teal-200); }

.section__lede {
  max-width: 58ch;
  color: var(--on-dark-soft);
  font-size: 18px;
  font-weight: 300;
  margin: 24px 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  font: 500 15.5px/1 var(--f-sans);
  letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--white); color: var(--teal); }
.btn--solid:hover { background: linear-gradient(90deg, #E6F6F4, #DDEEF7); }
.btn--line { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--ghost { --h: 42px; padding: 0 18px; border-color: rgba(255,255,255,.3); color: var(--white); font-size: 14px; }
.btn--ghost:hover { border-color: var(--teal-200); color: var(--teal-200); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: linear-gradient(90deg, rgba(11,31,53,.97), rgba(12,80,90,.97) 55%, rgba(20,95,134,.97));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hair-dark);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 88px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--white); }
.brand__mark { width: 56px; height: 56px; color: var(--white); flex: none; }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand__name { font-family: var(--f-display); font-size: 38px; line-height: .9; letter-spacing: .34em; font-weight: 500; margin-right: -.34em; }
/* letter-spacing is fitted by main.js so the line ends exactly under the last letter of DESAI */
.brand__sub { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; margin-top: 10px; color: var(--on-dark-soft); }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 14px; text-decoration: none; color: var(--on-dark-soft);
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--teal-200); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 28px;
  background: linear-gradient(170deg, #0B2A40, #0C6766 70%, #166F9C);
  border-bottom: 1px solid var(--hair-dark);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; text-decoration: none; font-family: var(--f-display); font-size: 26px; border-bottom: 1px solid var(--hair-dark); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  background:
    radial-gradient(ellipse 45% 55% at 8% 45%, rgba(42,169,161,.55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 95% 110%, rgba(58,156,203,.55), transparent 70%),
    linear-gradient(175deg, #0B1F35 0%, #0B3A47 38%, #0C6766 68%, #166F9C 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__bloom {
  position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; left: -22vmax; top: 10%;
  background: radial-gradient(circle, rgba(127,214,206,.22), rgba(12,103,102,0) 60%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(8vmax, -4vmax) scale(1.08); } }
.hero__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: .98; letter-spacing: -0.015em;
  margin: 0;
}
.hero__title em { font-style: italic; color: var(--teal-200); }
.hero__lede { margin: 28px 0 0; max-width: 46ch; font-size: 18.5px; font-weight: 300; color: var(--on-dark-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__tag {
  margin: 48px 0 0; padding-top: 18px; max-width: 360px;
  border-top: 1px solid rgba(255,255,255,.3);
  font-size: 14px; letter-spacing: .04em; color: var(--on-dark-soft);
}

.hero__instrument {
  margin: 0;
  background: linear-gradient(160deg, rgba(11,31,53,.55), rgba(12,103,102,.28) 60%, rgba(22,111,156,.3));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
  overflow: hidden;
}
.instrument__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--hair-dark);
  font: 400 12px/1.3 var(--f-mono); color: var(--on-dark-soft); letter-spacing: .02em;
}
.instrument__hint { margin-left: auto; color: var(--on-dark-mute); }
#mc { width: 100%; height: clamp(260px, 36vw, 420px); cursor: ns-resize; touch-action: pan-y; }
.instrument__readout {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid var(--hair-dark);
}
.instrument__readout div { padding: 14px 18px; border-right: 1px solid var(--hair-dark); }
.instrument__readout div:last-child { border-right: 0; }
.instrument__readout dt { font-size: 12.5px; color: var(--on-dark-mute); }
.instrument__readout dd { margin: 4px 0 0; font: 500 16px/1.2 var(--f-mono); color: var(--white); font-variant-numeric: tabular-nums; }


/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section--paper {
  color: var(--ink);
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(22,111,156,.14), transparent 70%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(12,103,102,.14), transparent 70%),
    linear-gradient(165deg, #F3F8F7 0%, #E6F2EF 55%, #E1EDF4 100%);
}
#lab {
  background:
    radial-gradient(ellipse 50% 40% at 85% 8%, rgba(58,156,203,.35), transparent 70%),
    linear-gradient(172deg, #0B1F35 0%, #0B3345 35%, #0C5A5E 75%, #0C6766 100%);
}
.section--ink {
  background:
    radial-gradient(ellipse 50% 60% at 78% 55%, rgba(127,214,206,.16), transparent 70%),
    linear-gradient(180deg, #0C6766 0%, #0C4D5E 45%, #135E86 80%, #166F9C 100%);
}
#process {
  background:
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(42,169,161,.3), transparent 70%),
    linear-gradient(180deg, #0B1F35 0%, #0B3A4B 40%, #0C6766 85%, #117079 100%);
}
.section--contact {
  background:
    radial-gradient(ellipse 60% 80% at 92% 100%, rgba(58,156,203,.55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 10%, rgba(42,169,161,.35), transparent 70%),
    linear-gradient(180deg, #117079 0%, #0C6766 40%, #166F9C 100%);
  overflow: hidden;
}
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }

/* ---------- Approach ---------- */
.approach__head { display: grid; grid-template-columns: 1fr; max-width: 900px; }
.equation {
  margin: 36px 0 0; padding: 18px 0;
  font-family: var(--f-display); font-style: italic; font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ink-soft); border-top: 1px solid var(--hair-light); border-bottom: 1px solid var(--hair-light);
  overflow-x: auto; white-space: nowrap;
}
.principles { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.principles { gap: 18px; }
.principle {
  position: relative; padding: 30px clamp(20px, 2.4vw, 32px) 34px; border-radius: 6px;
  border-top: 2px solid var(--hair-light);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease), border-color .45s;
}
.principle::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.principle h3, .principle__n { transition: color .35s; }
.principle:hover, .principle:focus-within {
  background: linear-gradient(160deg, #FFFFFF 0%, #E6F4F1 55%, #DDEDF6 100%);
  box-shadow: 0 30px 60px -34px rgba(11,31,53,.35);
  transform: translateY(-6px);
}
.principle:hover::before, .principle:focus-within::before { transform: scaleX(1); }
.principle:hover h3 { color: var(--teal); }
.principle:hover .principle__n { color: var(--blue); }
.principle:nth-child(2) { margin-top: 56px; }
.principle:nth-child(3) { margin-top: 112px; }
.principle__n { font: 500 13px/1 var(--f-mono); color: var(--teal); letter-spacing: .08em; }
.principle h3 { font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1.1; margin: 18px 0 14px; }
.principle p { margin: 0; color: var(--ink-soft); font-weight: 300; }

/* ---------- Controls ---------- */
.ctl { display: flex; flex-direction: column; gap: 10px; }
.ctl__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14.5px; letter-spacing: 0; color: var(--on-dark-soft);
  padding: 0;
}
.ctl__label output { font: 500 14px/1 var(--f-mono); letter-spacing: 0; color: var(--white); text-transform: none; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-200), var(--blue-400)) 0 0 / var(--p) 100% no-repeat, rgba(255,255,255,.2);
}
input[type="range"]::-moz-range-track { height: 2px; background: rgba(255,255,255,.18); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--teal-200); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--white); transition: transform .2s var(--ease), border-color .2s;
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 2px solid var(--white); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.2); border-color: var(--teal-200); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-runnable-track { box-shadow: 0 0 0 4px rgba(127,214,206,.18); }

/* ---------- Strategy Lab ---------- */
.lab {
  display: grid;
  grid-template-columns: 300px 1fr 260px;
  border: 1px solid var(--hair-dark); border-radius: 6px;
  background: linear-gradient(150deg, rgba(11,31,53,.72) 0%, rgba(11,45,62,.6) 55%, rgba(12,103,102,.35) 100%);
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.55);
  overflow: hidden;
}
.lab__controls { padding: 26px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--hair-dark); }
.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { margin-bottom: 12px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 400 13px/1 var(--f-sans); color: var(--on-dark-soft);
  padding: 9px 11px; border-radius: 3px; border: 1px solid var(--hair-dark); background: transparent;
  cursor: pointer; transition: all .25s var(--ease);
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,.35); }
.chip[aria-checked="true"] { background: linear-gradient(120deg, #FFFFFF, #DDF3F0); color: var(--teal); border-color: transparent; font-weight: 500; }
.lab__note { margin: auto 0 0; font: 400 11.5px/1.5 var(--f-mono); color: var(--on-dark-mute); }

.lab__chart { padding: 22px 22px 16px; display: flex; flex-direction: column; min-width: 0; }
.lab__legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font: 400 12px/1 var(--f-mono); color: var(--on-dark-soft); margin-bottom: 12px; }
.lab__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 0; border-top: 2px solid var(--white); }
.sw--dash { border-top: 2px dashed var(--teal-200); }
.lab__legs { margin-left: auto; color: var(--on-dark-mute); }
.lab__canvaswrap { position: relative; flex: 1; min-height: 360px; }
#payoff { width: 100%; height: 100%; position: absolute; inset: 0; cursor: crosshair; }
.tip {
  position: absolute; pointer-events: none; z-index: 2;
  background: linear-gradient(160deg, rgba(11,31,53,.96), rgba(12,90,94,.94)); border: 1px solid rgba(255,255,255,.18); border-radius: 4px;
  padding: 10px 12px; font: 400 12px/1.6 var(--f-mono); color: var(--white); white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
}
.tip b { font-weight: 500; }
.tip .g { color: var(--gain); } .tip .l { color: var(--loss); }

.lab__stats { padding: 26px; border-left: 1px solid var(--hair-dark); display: flex; flex-direction: column; gap: 0; }
.stat { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair-dark); gap: 12px; }
.stat__k { font-size: 14px; color: var(--on-dark-soft); }
.stat__v { font: 500 15px/1.2 var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.stat__v.g { color: var(--gain); } .stat__v.l { color: var(--loss); }
.greeks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; background: var(--hair-dark); border: 1px solid var(--hair-dark); border-radius: 4px; overflow: hidden; }
.greeks div { background: linear-gradient(160deg, rgba(11,31,53,.85), rgba(12,80,90,.6)); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.greeks span { font-size: 11px; letter-spacing: .06em; color: var(--on-dark-mute); }
.greeks b { font: 500 15px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.stat__desc { margin: 18px 0 0; font-size: 14px; font-weight: 300; color: var(--on-dark-soft); line-height: 1.55; }

/* ---------- Vol surface ---------- */
.surface { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.surface__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 40px; }
.surface__viz { margin: 0; position: relative; }
#volsurf { width: 100%; aspect-ratio: 1.15 / 1; cursor: grab; touch-action: pan-y; }
#volsurf:active { cursor: grabbing; }
.surface__viz figcaption { font: 400 12px/1.4 var(--f-mono); color: var(--on-dark-mute); text-align: center; margin-top: 8px; }

/* ---------- Services ---------- */
.services__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.display--xl { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; }
.services__lede { padding-bottom: 8px; }
.services__lede p { margin: 0; color: var(--ink-soft); font-weight: 300; font-size: 17.5px; max-width: 44ch; }
.services__lede .services__tagline { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--teal); margin-bottom: 10px; }
@media (max-width: 760px) { .services__head { grid-template-columns: 1fr; } }
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid; border-image: linear-gradient(90deg, var(--navy), var(--teal), var(--blue)) 1; }
.service { border-bottom: 1px solid var(--hair-light); }
.service__row {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 24px;
  padding: 30px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit;
}
.service__n { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--teal); }
.service__t { font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.1; transform: translateX(-12px); transition: color .3s, transform .45s var(--ease); }
.service__row:hover .service__t, .service__row:focus-visible .service__t, .service__row[aria-expanded="true"] .service__t { transform: none; }
.service__row:hover .service__t { color: var(--teal); }
.service__tags { font-size: 13px; color: var(--ink-mute); text-align: right; }
.service__plus { width: 40px; height: 40px; border: 1px solid var(--hair-light); border-radius: 50%; position: relative; transition: background .3s, border-color .3s; }
.service__plus::before, .service__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%,-50%); transition: transform .35s var(--ease), background .3s; }
.service__plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.service__row[aria-expanded="true"] .service__plus { background: linear-gradient(135deg, var(--teal), var(--blue)); border-color: transparent; }
.service__row[aria-expanded="true"] .service__plus::before, .service__row[aria-expanded="true"] .service__plus::after { background: var(--white); }
.service__row[aria-expanded="true"] .service__plus::after { transform: translate(-50%,-50%) rotate(0deg); }
.service__body {
  display: grid; grid-template-columns: 70px 1.2fr 1fr; gap: 24px;
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .6s var(--ease), opacity .4s var(--ease), padding .6s var(--ease);
}
.service__body > p { grid-column: 2; margin: 0; color: var(--ink-soft); font-weight: 300; font-size: 18px; }
.service__body > ul { grid-column: 3; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink); }
.service__body > ul li { padding: 8px 0 8px 22px; border-top: 1px solid var(--hair-light); position: relative; }
.service__body > ul li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--teal); }
.service.is-open .service__body { max-height: 420px; opacity: 1; padding-bottom: 36px; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.step { position: relative; padding-top: 42px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: #0B3345; border: 1.5px solid rgba(255,255,255,.45); transform: translateY(-6px);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.step.is-lit::before { background: var(--teal-200); border-color: var(--teal-200); box-shadow: 0 0 0 6px rgba(127,214,206,.12); }
.step__n { font: 500 12px/1 var(--f-mono); color: var(--on-dark-mute); letter-spacing: .1em; }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 28px; margin: 10px 0 12px; line-height: 1.1; }
.step p { margin: 0; font-size: 15px; color: var(--on-dark-soft); font-weight: 300; }
.process__rail { position: relative; height: 1px; background: var(--hair-dark); margin-top: -1px; order: -1; }
#process-list { border-top: 1px solid var(--hair-dark); }
.process__rail { display: none; }
#process-list::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--teal-200), var(--blue-400)); transition: width .2s linear;
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy { position: relative; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; background: linear-gradient(160deg, rgba(11,31,53,.5), rgba(12,103,102,.35) 60%, rgba(22,111,156,.35)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); border: 1px solid var(--hair-dark); border-radius: 6px; padding: clamp(24px, 3vw, 40px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; color: var(--on-dark-soft); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--on-dark-mute); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--f-sans); color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25);
  padding: 10px 0; border-radius: 0; transition: border-color .25s;
}
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { color: var(--navy); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--teal-200); }
.field.is-invalid input { border-bottom-color: var(--loss); }
.form .btn { margin-top: 8px; }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--teal-200); }
.form__status.is-error { color: var(--loss); }

/* ---------- Footer ---------- */
.footer {
  padding: 72px 0 40px;
  background:
    radial-gradient(ellipse 40% 70% at 0% 30%, rgba(42,169,161,.25), transparent 70%),
    linear-gradient(180deg, #166F9C 0%, #0F5470 30%, #0B3A4B 70%, #0B2A40 100%);
}
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.footer__brand .brand__mark { width: 84px; height: 84px; }
.footer__brand > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer__name { font-family: var(--f-display); font-size: 44px; letter-spacing: .34em; margin: 0 -.34em 0 0; line-height: .9; }
.footer__sub { margin: 12px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; color: var(--on-dark-soft); }
.footer__tag { margin: 18px 0 0; font-size: 14px; color: var(--on-dark-mute); }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: flex-end; align-content: start; }
.footer__links a { text-decoration: none; color: var(--on-dark-soft); font-size: 14px; }
.footer__links a:hover { color: var(--white); }
.footer__legal { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 28px; border-top: 1px solid var(--hair-dark); font-size: 12.5px; line-height: 1.7; color: var(--on-dark-mute); max-width: 110ch; }
.footer__copy { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--on-dark-mute); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .lab { grid-template-columns: 280px 1fr; }
  .lab__stats { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--hair-dark); display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
  .lab__stats .greeks { grid-column: 1 / 3; grid-row: 2; }
  .lab__stats .stat__desc { grid-column: 3 / 5; grid-row: 2; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__grid, .surface, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 26px 20px 28px; margin-top: 0 !important; }
  .principles { gap: 8px; }
  .lab { grid-template-columns: 1fr; }
  .lab__controls { border-right: 0; border-bottom: 1px solid var(--hair-dark); }
  .lab__stats { grid-template-columns: 1fr 1fr; }
  .lab__stats .greeks, .lab__stats .stat__desc { grid-column: 1 / -1; grid-row: auto; }
  .process { grid-template-columns: 1fr; gap: 0; border-top: 0 !important; border-left: 1px solid var(--hair-dark); padding-left: 28px; }
  #process-list::before { top: 0; left: -1px; width: 1px; height: var(--fill, 0%); background: linear-gradient(180deg, var(--teal-200), var(--blue-400)); }
  .step { padding: 0 0 40px; }
  .step::before { left: -35px; top: 4px; transform: none; }
  .service__row { grid-template-columns: 40px 1fr 40px; }
  .service__tags { display: none; }
  .service__body { grid-template-columns: 40px 1fr; }
  .service__body > ul { grid-column: 2; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .instrument__hint { display: none; }
  .instrument__readout { grid-template-columns: 1fr 1fr; }
  .instrument__readout div:nth-child(2) { border-right: 0; }
  .instrument__readout div:nth-child(-n+2) { border-bottom: 1px solid var(--hair-dark); }
  .surface__controls { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .lab__controls, .lab__stats { padding: 20px 16px; }
  .lab__chart { padding: 16px 12px 12px; }
  .lab__canvaswrap { min-height: 300px; }
  .lab__legs { margin-left: 0; width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .service__row { gap: 14px; padding: 24px 0; }
  .service__body { grid-template-columns: 1fr; }
  .service__body > p, .service__body > ul { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bloom { animation: none; }
}

/* ---------- Trading rules ---------- */
.rules { margin-top: clamp(64px, 8vw, 110px); padding-top: 36px; border-top: 2px solid; border-image: linear-gradient(90deg, var(--navy), var(--teal), var(--blue)) 1; }
.rules__title { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--teal); margin: 0 0 28px; }
.rules__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.rule { padding: 0 24px; border-left: 1px solid var(--hair-light); }
.rule:first-child { padding-left: 0; border-left: 0; }
.rule dt {
  font-family: var(--f-display); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; font-weight: 500;
  background: linear-gradient(100deg, var(--navy), var(--teal) 55%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rule dd { margin: 12px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.contact__note { margin: 20px 0 0; padding-left: 16px; border-left: 2px solid var(--teal-200); font-size: 15px; color: var(--on-dark-soft); max-width: 46ch; }
@media (max-width: 960px) {
  .rules__grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .rule:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- Film grain: softens gradients so they read printed, not rendered ---------- */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
}
.footer__contact { margin: 16px 0 0; font-size: 14px; line-height: 1.7; color: var(--on-dark-soft); }
.footer__contact a, .contact__direct a { color: var(--white); text-decoration-color: rgba(127,214,206,.6); text-underline-offset: 3px; }
.contact__direct { margin: 20px 0 0; font-size: 16px; color: var(--on-dark-soft); }

/* ---------- Equation caption ---------- */
.equation__cap { margin: 14px 0 0; max-width: 62ch; font-size: 15px; color: var(--ink-mute); font-weight: 300; }

/* ---------- About page ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(150px, 18vw, 210px) 0 clamp(80px, 10vw, 130px);
  background:
    radial-gradient(ellipse 45% 60% at 5% 60%, rgba(42,169,161,.5), transparent 70%),
    radial-gradient(ellipse 55% 60% at 100% 100%, rgba(58,156,203,.5), transparent 70%),
    linear-gradient(170deg, #0B1F35 0%, #0B3A47 45%, #0C6766 80%, #117079 100%);
}
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 6.4vw, 92px); line-height: .98; margin: 0; letter-spacing: -.015em; }
.page-hero__title em { font-style: italic; color: var(--teal-200); }
.page-hero__lede { margin: 0; font-size: 18.5px; font-weight: 300; color: var(--on-dark-soft); max-width: 50ch; }

.about-why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about-why__body { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.about-why__body p { margin: 0; font-size: 18px; font-weight: 300; color: var(--ink-soft); line-height: 1.7; }

.section--founder {
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(58,156,203,.35), transparent 70%),
    linear-gradient(175deg, #117079 0%, #0C5A63 40%, #0B3A4B 100%);
}
.founder { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.founder__portrait {
  margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 6px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 70%, rgba(127,214,206,.35), transparent 60%),
    linear-gradient(160deg, #0B1F35, #0C6766 60%, #166F9C);
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.founder__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder__mark { width: 42%; height: auto; aspect-ratio: 184 / 186; color: rgba(255,255,255,.85); }
.founder__portrait figcaption { position: absolute; left: 20px; bottom: 16px; font-family: var(--f-display); font-size: 22px; letter-spacing: .3em; color: rgba(255,255,255,.7); }
.founder__role { margin: 12px 0 0; font-size: 15px; color: var(--teal-200); }
.founder__copy .section__lede + .section__lede { margin-top: 16px; }
.founder__mail { display: inline-block; margin-top: 28px; color: var(--white); text-underline-offset: 4px; text-decoration-color: rgba(127,214,206,.6); }

.promises { list-style: none; margin: 0; padding: 0; border-top: 2px solid; border-image: linear-gradient(90deg, var(--navy), var(--teal), var(--blue)) 1; }
.promises li { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; padding: 30px 0; border-bottom: 1px solid var(--hair-light); }
.promises h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.promises p { margin: 0; color: var(--ink-soft); font-weight: 300; font-size: 16.5px; align-self: center; }

.section--who {
  background:
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(42,169,161,.3), transparent 70%),
    linear-gradient(180deg, #0B1F35 0%, #0B3A4B 45%, #0C6766 85%, #117079 100%);
}
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.who__item { padding: 32px 32px 8px 0; }
.who__item + .who__item { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.14); }
.who__item h3 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 500; font-size: 26px; line-height: 1.15; }
.who__item p { margin: 0; color: var(--on-dark-soft); font-weight: 300; font-size: 16px; }

.about-cta { padding-block: clamp(80px, 10vw, 130px); }
.about-cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.about-cta__inner .display { max-width: 16ch; }
.about-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 960px) {
  .page-hero__grid, .about-why, .founder { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 320px; }
  .promises li { grid-template-columns: 1fr; gap: 10px; }
  .who { grid-template-columns: 1fr; }
  .who__item, .who__item + .who__item { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Shared bits ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 560px) {
  .brand { gap: 14px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 30px; }
  .brand__sub { font-size: 9.5px; margin-top: 8px; }
}

/* ---------- Footer columns ---------- */
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 56px; justify-content: end; }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer__col a { text-decoration: none; color: var(--on-dark-soft); font-size: 14.5px; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--white); }
.footer__h { margin: 0 0 4px; font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--teal-200); }
.footer__legal a { color: var(--on-dark-soft); }
@media (max-width: 960px) { .footer__cols { grid-template-columns: 1fr 1fr; justify-content: start; } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Contact channels ---------- */
.channels { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); max-width: 460px; }
.channels li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); align-items: baseline; }
.channels span { font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--teal-200); }
.channels a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.channels a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Founder ---------- */
.founder__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; border-top: 1px solid rgba(255,255,255,.22); }
.creds div { padding: 18px 20px 0 0; }
.creds div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.creds dt { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--teal-200); }
.creds dd { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--white); }
.founder__contact { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; }
.founder__contact a { color: var(--white); text-underline-offset: 4px; text-decoration-color: rgba(127,214,206,.6); }
@media (max-width: 560px) {
  .creds { grid-template-columns: 1fr; }
  .creds div, .creds div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Short page heroes ---------- */
.page-hero--short { padding-bottom: clamp(56px, 7vw, 90px); }
.page-hero--short:not(:has(.hero__bloom)) , .page-hero--article {
  background:
    radial-gradient(ellipse 45% 60% at 5% 60%, rgba(42,169,161,.45), transparent 70%),
    radial-gradient(ellipse 55% 60% at 100% 100%, rgba(58,156,203,.45), transparent 70%),
    linear-gradient(170deg, #0B1F35 0%, #0B3A47 45%, #0C6766 80%, #117079 100%);
}
.page-hero--article { position: relative; padding: clamp(140px, 16vw, 190px) 0 clamp(56px, 7vw, 90px); }
.article__head { max-width: 860px; }
.article__head .page-hero__title { font-size: clamp(40px, 5.4vw, 72px); text-wrap: balance; }
.article__head .page-hero__lede { margin-top: 24px; max-width: 60ch; }
.article__by { margin: 28px 0 0; font-size: 15px; color: var(--teal-200); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; border-top: 2px solid; border-image: linear-gradient(90deg, var(--navy), var(--teal), var(--blue)) 1; }
.faq__item { border-bottom: 1px solid var(--hair-light); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover span { color: var(--teal); }
.faq__item summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair-light); position: relative; transition: background .3s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%,-50%); transition: transform .3s var(--ease); }
.faq__item summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__item[open] summary i { background: linear-gradient(135deg, var(--teal), var(--blue)); border-color: transparent; }
.faq__item[open] summary i::before, .faq__item[open] summary i::after { background: var(--white); }
.faq__item[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.faq__item p { margin: 0; padding: 0 60px 28px 0; color: var(--ink-soft); font-weight: 300; font-size: 17.5px; max-width: 68ch; }
.faq__item a, .prose a { color: var(--teal); text-underline-offset: 3px; }

/* ---------- Prose (articles, disclosures) ---------- */
.prose { max-width: 740px; color: var(--ink); }
.prose > * + * { margin-top: 20px; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; font-weight: 300; color: var(--ink-soft); }
.prose p { margin-bottom: 0; }
.prose b { font-weight: 500; color: var(--ink); }
.prose h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin: 48px 0 0; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 0; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--teal); }
.prose__meta { font-size: 14px; color: var(--ink-mute); margin: 0; }
.prose__note { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--hair-light); font-size: 14px !important; color: var(--ink-mute) !important; }
.callout {
  padding: 22px 26px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(12,103,102,.1), rgba(22,111,156,.1));
  border: 1px solid rgba(12,103,102,.22);
}
.callout p { margin: 0; font-size: 16.5px; }
.callout p + p { margin-top: 8px; }
.callout__k { font-family: var(--f-display); font-style: italic; font-size: 19px !important; color: var(--teal) !important; }
.callout__eq { font-family: var(--f-mono); font-size: 15.5px !important; color: var(--ink) !important; }
.table-wrap { overflow-x: auto; }
.data { border-collapse: collapse; width: 100%; max-width: 420px; font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--hair-light); font-size: 16px; }
.data th { font-weight: 500; font-size: 14px; color: var(--ink-mute); }
.data td { font-family: var(--f-mono); color: var(--ink); }
.next { display: flex; flex-direction: column; gap: 6px; margin-top: 40px !important; padding: 22px 0; border-top: 2px solid; border-image: linear-gradient(90deg, var(--navy), var(--teal), var(--blue)) 1; text-decoration: none; font-family: var(--f-display); font-size: 28px; line-height: 1.2; color: var(--ink) !important; }
.next span { font-family: var(--f-sans); font-size: 14px; color: var(--ink-mute); }
.next:hover { color: var(--teal) !important; }

/* ---------- Insights list ---------- */
.posts { display: grid; gap: 0; border-top: 2px solid; border-image: linear-gradient(90deg, var(--navy), var(--teal), var(--blue)) 1; }
.post { border-bottom: 1px solid var(--hair-light); }
.post__link { display: grid; grid-template-columns: 220px 1fr; grid-template-areas: "meta title" "meta dek" "meta more"; gap: 10px 48px; padding: 36px 0; text-decoration: none; color: var(--ink); }
.post__meta { grid-area: meta; margin: 6px 0 0; font-size: 14px; color: var(--ink-mute); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.post__tag { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; color: var(--teal); background: linear-gradient(120deg, rgba(12,103,102,.12), rgba(22,111,156,.12)); }
.post__title { grid-area: title; margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; transition: color .3s; }
.post__dek { grid-area: dek; margin: 0; color: var(--ink-soft); font-weight: 300; font-size: 17.5px; max-width: 62ch; }
.post__more { grid-area: more; margin-top: 6px; font-size: 15px; color: var(--teal); }
.post__more::after { content: " →"; transition: margin .3s; }
.post__link:hover .post__title { color: var(--teal); }
.post__meta--light { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--on-dark-soft); margin-bottom: 20px; }
.post__meta--light a { color: var(--white); }
.post__meta--light .post__tag { color: var(--teal-200); background: rgba(255,255,255,.1); }
@media (max-width: 760px) {
  .post__link { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "dek" "more"; }
  .post__meta { flex-direction: row; align-items: center; }
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding-block: clamp(56px, 7vw, 88px);
  background:
    radial-gradient(ellipse 50% 90% at 100% 100%, rgba(58,156,203,.5), transparent 70%),
    linear-gradient(120deg, #0B2A40 0%, #0C6766 60%, #166F9C 100%);
}
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: center; }
.newsletter__title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.newsletter__inner > div p { margin: 10px 0 0; color: var(--on-dark-soft); font-weight: 300; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter__form input[type="email"] {
  flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--white); font: 400 16px var(--f-sans);
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter__form input:focus { outline: none; border-color: var(--teal-200); }
.newsletter__form input.is-invalid { border-color: var(--loss); }
.newsletter__form .form__status { flex-basis: 100%; }
@media (max-width: 760px) { .newsletter__inner { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: flex; align-items: center; }
.notfound__eq { font-family: var(--f-mono); font-size: 15px; color: var(--teal-200); margin: 0 0 20px; }
@media (max-width: 560px) {
  .channels li { grid-template-columns: 1fr; gap: 2px; }
  .channels a { overflow-wrap: normal; }
}

/* ---------- Direct message form ---------- */
.form__head { margin: 0 0 4px; }
.form__head h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 28px; line-height: 1.1; }
.form__head p { margin: 6px 0 0; font-size: 15px; color: var(--on-dark-soft); }
.creds__link { display: inline-block; margin-top: 18px; font-size: 14.5px; color: var(--teal-200); text-underline-offset: 4px; }
.creds__link:hover { color: var(--white); }
.field textarea::placeholder { color: rgba(255,255,255,.42); }

/* ---------- Trademark on the wordmark (kept out of the measured width) ---------- */
.brand__name, .footer__name { position: relative; }
.brand__name::after, .footer__name::after {
  content: "™"; position: absolute; top: .02em; left: calc(100% - .34em + .1em);
  font-family: var(--f-sans); font-size: .28em; font-weight: 400; letter-spacing: 0; line-height: 1;
  color: var(--on-dark-soft);
}

/* ---------- About: bigger "Why we exist", personal details under the photo ---------- */
.about-why__tagline { margin: 22px 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; color: var(--ink-soft); max-width: 30ch; text-wrap: balance; }
.about-why__tagline em { color: var(--teal); }
.about-why { align-items: end; }
.founder__side { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.founder__side .creds { grid-template-columns: 1fr; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.22); }
.founder__side .creds div, .founder__side .creds div + div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.founder__side .creds dt { font-size: 17px; }
.founder__side .creds dd { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.founder__side .creds a { color: var(--white); text-decoration: none; }
.founder__side .creds a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .founder__side { max-width: 420px; } }

/* ---------- Email / phone icon links ---------- */
.contact-icons { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 22px; }
.ci { display: inline-flex; align-items: center; gap: 9px; color: var(--white); text-decoration: none; font-size: 14px; white-space: nowrap; }
.ci__icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(127,214,206,.28), rgba(58,156,203,.28));
  border: 1px solid rgba(255,255,255,.22); transition: background .3s, border-color .3s;
}
.ci__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ci:hover .ci__icon { background: linear-gradient(135deg, var(--teal), var(--blue)); border-color: transparent; }
.ci:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(127,214,206,.7); }
.contact-icons--home { margin-top: 32px; gap: 14px 32px; }
.contact-icons--home .ci { font-size: 16px; }
.contact-icons--home .ci__icon { width: 40px; height: 40px; }
.contact-icons--home .ci__icon svg { width: 19px; height: 19px; }

/* ---------- Founder: bio column ends level with the photo column ---------- */
.founder { grid-template-columns: minmax(240px, 420px) 1fr; align-items: stretch; }
.founder__copy { display: flex; flex-direction: column; min-width: 0; }
.founder__copy .section__lede a { color: var(--teal-200); text-underline-offset: 3px; }
.founder__rule { margin: auto 0 0; padding-top: 16px; }
.founder__rule figcaption { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--teal-200); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.founder__rule p { margin: 8px 0 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--white); }
@media (max-width: 960px) { .founder__rule { margin-top: 32px; padding-top: 0; } }
@media (max-width: 960px) { .founder { grid-template-columns: 1fr; } }

/* ---------- Section heads: title and tagline block share top and bottom edges ---------- */
.services__head { align-items: stretch; }
.services__title { display: flex; flex-direction: column; justify-content: space-between; }
.services__lede { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 8px 0 10px; }
.services__lede .services__tagline { margin-bottom: 0; }
@media (max-width: 760px) { .services__title { display: block; } .services__title > * { display: inline; } }

/* ---------- Contact: smaller mail / phone icons ---------- */
.contact-icons--home { gap: 12px 26px; }
.contact-icons--home .ci { font-size: 15px; }
.contact-icons--home .ci__icon { width: 30px; height: 30px; }
.contact-icons--home .ci__icon svg { width: 15px; height: 15px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 55;
  right: max(20px, env(safe-area-inset-right, 0px) + 16px);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--white); border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, var(--navy), var(--teal) 60%, var(--blue));
  box-shadow: 0 14px 30px -12px rgba(11,31,53,.55);
  opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 18px 36px -12px rgba(11,31,53,.7); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .to-top { width: 44px; height: 44px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; transform: none; } }

/* ---------- Large section titles on dark grounds ---------- */
.display--light em { background: linear-gradient(100deg, #7FD6CE, #9CD3F0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.services__head--dark .services__lede p { color: var(--on-dark-soft); }
.services__head--dark .services__lede .services__tagline { color: var(--teal-200); }
#approach .equation { margin-top: 0; }

/* ---------- Approach: equation row sits on the same two-column grid as the title ---------- */
#approach .approach__head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 64px; align-items: center;
  max-width: none; padding: 26px 0;
  border-top: 1px solid var(--hair-light); border-bottom: 1px solid var(--hair-light);
}
#approach .equation { margin: 0; padding: 0; border: 0; font-size: clamp(20px, 2.3vw, 28px); color: var(--ink); }
#approach .equation__cap { margin: 0; max-width: 46ch; font-size: 15.5px; color: var(--ink-mute); }
@media (max-width: 760px) { #approach .approach__head { grid-template-columns: 1fr; } }

/* Principle text aligns with the section grid; the hover card extends into the gutter */
.principles { --pad: clamp(20px, 2.4vw, 32px); margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
.principle, .principle + .principle { border-top: 0; padding: 30px var(--pad) 34px; }
.principle::after { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 2px; background: var(--hair-light); transition: opacity .3s; }
.principle::before { top: 0; left: var(--pad); right: var(--pad); z-index: 1; }
.principle:hover::after, .principle:focus-within::after { opacity: 0; }
@media (max-width: 960px) { .principles { --pad: 16px; } }

/* ---------- Approach: one flowing block (label, headline, equation, caption) ---------- */
.eyebrow--lg { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 18px; }
.approach__intro { max-width: 900px; }
.approach__intro .display { font-size: clamp(38px, 5.2vw, 68px); }
#approach .approach__intro .equation {
  margin: 40px 0 0; padding: 20px 0;
  border-top: 1px solid var(--hair-light); border-bottom: 1px solid var(--hair-light);
  font-size: clamp(20px, 2.3vw, 28px); color: var(--ink);
}
#approach .approach__intro .equation__cap { margin: 16px 0 0; max-width: 62ch; font-size: 15.5px; color: var(--ink-mute); }

/* Approach v3: title is the largest type; equation row runs the full width */
.approach__intro { max-width: none; }
.approach__sub { margin: 18px 0 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.approach__sub em { font-style: italic; background: linear-gradient(100deg, var(--teal), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#approach .approach__intro .equation__cap { max-width: none; }
#approach .approach__intro .display--xl { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; }
#approach .approach__intro .display--xl { margin-left: -0.049em; } /* optical: the round "O" sits in from its box */

/* =====================================================================
   Round 12: consistent big titles, centred side text, promise accordion,
   centred rules, seamless gradient joins
   ===================================================================== */

/* Phone numbers never break across lines */
a[href^="tel:"] { white-space: nowrap; }

/* Page heroes: big label title, italic sub, side text centred against them */
.page-hero__grid { align-items: center; }
.page-hero__title { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; }
.page-hero__sub { margin: 18px 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; color: var(--teal-200); text-wrap: balance; }

/* Section heads whose side text is centred on the title (no stretched gap) */
.services__head--center { align-items: center; }
.services__head--center .services__title { justify-content: flex-start; }
.services__head--center .services__lede { justify-content: flex-start; padding: 0; gap: 12px; }

/* Contact title */
.contact__title { margin: 0; }
.contact__tagline { margin: 18px 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--teal-200); }

/* Rules we trade by: centred in their columns */
.rules__title { text-align: center; }
.rules__grid .rule, .rules__grid .rule:first-child { padding: 6px 20px; text-align: center; }
.rules__grid .rule + .rule { border-left: 1px solid var(--hair-light); }
@media (max-width: 960px) {
  .rules__grid .rule:nth-child(3) { border-left: 0; }
}

/* What we won't do: full-width rows, highlight on hover, description drops down */
.promises { --pad: clamp(16px, 2vw, 28px); }
.promise { position: relative; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); border-radius: 6px; transition: background .35s var(--ease); }
.promise::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--hair-light); }
.promise:hover, .promise[open] { background: linear-gradient(100deg, rgba(12,103,102,.09), rgba(22,111,156,.07)); }
.promise summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: var(--ink);
}
.promise summary::-webkit-details-marker { display: none; }
.promise summary span { transition: color .3s; }
.promise:hover summary span, .promise[open] summary span { color: var(--teal); }
.promise summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair-light); position: relative; transition: background .3s, border-color .3s; }
.promise summary i::before, .promise summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%,-50%); transition: transform .3s var(--ease), background .3s; }
.promise summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.promise[open] summary i { background: linear-gradient(135deg, var(--teal), var(--blue)); border-color: transparent; }
.promise[open] summary i::before, .promise[open] summary i::after { background: var(--white); }
.promise[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.promise p { margin: 0; padding: 0 60px 28px 0; color: var(--ink-soft); font-weight: 300; font-size: 17.5px; line-height: 1.65; }

/* Seamless joins between dark sections: glows sit away from the edges, and each
   section ends on exactly the colour the next one starts with */
.section--contact {
  background:
    radial-gradient(ellipse 55% 60% at 90% 55%, rgba(58,156,203,.45), transparent 70%),
    radial-gradient(ellipse 45% 50% at 6% 45%, rgba(42,169,161,.3), transparent 70%),
    linear-gradient(180deg, #117079 0%, #0C6766 40%, #166F9C 100%);
}
#process {
  background:
    radial-gradient(ellipse 40% 50% at 0% 50%, rgba(42,169,161,.28), transparent 70%),
    linear-gradient(180deg, #0B1F35 0%, #0B3A4B 45%, #0C6766 85%, #117079 100%);
}
.section--who {
  background:
    radial-gradient(ellipse 45% 50% at 0% 50%, rgba(42,169,161,.28), transparent 70%),
    linear-gradient(180deg, #0B1F35 0%, #0B3A4B 45%, #0C6766 85%, #117079 100%);
}
.newsletter {
  background:
    radial-gradient(ellipse 50% 70% at 88% 50%, rgba(58,156,203,.4), transparent 70%),
    linear-gradient(180deg, #0C6766 0%, #166F9C 100%);
}
.footer {
  background:
    radial-gradient(ellipse 40% 40% at 0% 70%, rgba(42,169,161,.22), transparent 70%),
    linear-gradient(180deg, #166F9C 0%, #0F5470 30%, #0B3A4B 70%, #0B2A40 100%);
}
.notfound {
  background:
    radial-gradient(ellipse 45% 60% at 5% 50%, rgba(42,169,161,.45), transparent 70%),
    linear-gradient(170deg, #0B1F35 0%, #0B3A47 45%, #0C6766 75%, #166F9C 100%);
}
.services__lede p, .page-hero__lede, .contact__tagline { text-wrap: pretty; } .services__lede p:not(.services__tagline) { text-wrap: balance; }
.footer { border-top: 1px solid rgba(255, 255, 255, 0.22); } /* thin grey divider above the footer */

/* =====================================================================
   One heading system: plain first words + gradient italic last word;
   one subline style: short gradient bar, then a clean sans line
   ===================================================================== */
.hero__title em, .page-hero__title em, .display--light em {
  font-style: italic;
  background: linear-gradient(100deg, #7FD6CE, #9CD3F0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}

.services__lede .services__tagline,
.page-hero__sub, .contact__tagline, .approach__sub, .about-why__tagline, .surface__sub {
  position: relative; margin: 22px 0 0; padding-top: 18px; max-width: 46ch;
  font-family: var(--f-sans); font-style: normal; font-weight: 400;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; letter-spacing: .005em;
  color: var(--ink); text-wrap: balance;
}
.services__lede .services__tagline::before,
.page-hero__sub::before, .contact__tagline::before, .approach__sub::before, .about-why__tagline::before, .surface__sub::before {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
/* on dark grounds */
.page-hero__sub, .contact__tagline, .surface__sub,
.services__head--dark .services__lede .services__tagline { color: rgba(255,255,255,.9); }
.page-hero__sub::before, .contact__tagline::before, .surface__sub::before,
.services__head--dark .services__lede .services__tagline::before { background: linear-gradient(90deg, #7FD6CE, #9CD3F0); }
/* in the right-hand column the tagline starts the block, so no top margin */
.services__lede .services__tagline { margin-top: 0; }
#surface .display--xl { margin: 0; }

/* =====================================================================
   Brand guidelines pass (v1.0): palette-only colours, logo lockup,
   Ocean Blue buttons/links, white page grounds, no decorative bars
   ===================================================================== */

/* Sublines: back to the italic serif (as the FAQ had it), no bars */
.services__lede .services__tagline,
.page-hero__sub, .contact__tagline, .approach__sub, .about-why__tagline, .surface__sub {
  padding-top: 0; max-width: 40ch;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: 0;
  color: var(--teal);
}
.services__lede .services__tagline::before,
.page-hero__sub::before, .contact__tagline::before, .approach__sub::before, .about-why__tagline::before, .surface__sub::before { content: none; display: none; }
.page-hero__sub { margin-top: 18px; font-size: clamp(24px, 2.8vw, 36px); }
.page-hero__sub, .contact__tagline, .surface__sub,
.services__head--dark .services__lede .services__tagline { color: var(--teal-200); }
.approach__sub, .about-why__tagline, .contact__tagline, .surface__sub { margin-top: 16px; }

/* Footer: white dividing line */
.footer { border-top: 1px solid #FFFFFF; }

/* Logo per guidelines: DESAI in Cormorant Garamond Regular, all-white lockup */
.brand__name, .footer__name { font-weight: 400; }
.brand__sub, .footer__sub { color: var(--white); }
/* Footer lockup: rule and tagline span exactly the width of DESAI (fitted in main.js) */
.footer__rule { display: block; height: 1px; background: var(--white); margin-top: 14px; width: 100%; }
.footer__tag { margin: 10px 0 0; color: var(--white); font-weight: 300; white-space: nowrap; line-height: 1.2; }

/* Links: Ocean Blue */
.faq__item a, .prose a, .post__more { color: var(--blue); }


/* Approach subline: roman serif, navy, gradient on key words (restored) */
.approach__sub { margin: 18px 0 0; max-width: none; font-family: var(--f-display); font-style: normal; font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; color: var(--ink); }

/* Footer disclaimer: one line on desktop, divider runs the full width */
.footer__legal { max-width: none; }
