/* Milad & Co. — warm ivory ground, deep maroon
   for actions, saffron gold for gains, Fraunces for display, Inter for reading. */

:root {
  --bg: #f8f5f0;
  --bg-alt: #f2ede6;
  --surface: #ffffff;
  --border: #e8e1d7;
  --border-strong: #d6cdc1;
  --text: #22191a;
  --muted: #6e6460;
  --accent: #7b1e2c;
  --accent-hover: #651824;
  --accent-weak: rgba(123, 30, 44, 0.08);
  --rose: #7b1e2c;           /* accent as text/line colour; lightens in dark mode */
  --on-accent: #ffffff;
  --positive: #8a5d12;       /* saffron gold for gains */
  --positive-weak: rgba(166, 116, 28, 0.1);
  --ink: #1a1214;            /* dark band background */
  --ink-text: #f3ece6;
  --ink-muted: #b4a8a3;
  --shadow: 0 1px 2px rgba(40, 20, 20, 0.04), 0 12px 40px rgba(40, 20, 20, 0.08);
  --grain: 0.07;

  --r: 12px;
  --r-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-fa: 'Noto Nastaliq Urdu', 'Vazirmatn', serif;
  --star: polygon(50% 0, 64% 21%, 85% 15%, 79% 36%, 100% 50%, 79% 64%, 85% 85%, 64% 79%, 50% 100%, 36% 79%, 15% 85%, 21% 64%, 0 50%, 21% 36%, 15% 15%, 36% 21%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #141012;
    --bg-alt: #1a1517;
    --surface: #201a1c;
    --border: #322a2c;
    --border-strong: #43393b;
    --text: #efe8e3;
    --muted: #a59a96;
    --accent: #a8394b;
    --accent-hover: #bb4458;
    --accent-weak: rgba(232, 145, 157, 0.12);
    --rose: #e8919d;
    --positive: #d6a24e;
    --positive-weak: rgba(214, 162, 78, 0.12);
    --ink: #0e0b0c;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --grain: 0.09;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--rose); font-weight: 400; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Film grain, scroll progress, cursor */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 7%); } 80% { transform: translate(6%, 2%); } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--rose); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.cursor { position: fixed; top: 0; left: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; z-index: 150; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; transition: opacity .2s; }
.cursor.away { opacity: 0; }
.cursor svg { width: 100%; height: 100%; overflow: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.cursor polygon { fill: transparent; stroke: var(--rose); stroke-width: 1.2; transition: fill .3s; }
.cursor.hover svg { transform: scale(1.7) rotate(45deg); }
.cursor.hover polygon { fill: var(--accent-weak); }
.cursor.down svg { transform: scale(.8) rotate(90deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s, color .25s;
  will-change: transform;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.btn:hover::before { transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(123, 30, 44, 0.28); }
.btn-primary::before { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: var(--bg); border-color: var(--text); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light::before { background: #f5e9ea; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .45s cubic-bezier(.2,.7,.2,1); }
.nav.scrolled { border-bottom-color: var(--border); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.brand em { font-style: italic; color: var(--rose); font-weight: 400; }
.mark { width: 30px; height: 30px; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.brand:hover .mark { transform: rotate(135deg); }
.mark polygon { fill: var(--accent); }
.mark circle { fill: var(--bg); }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .links { display: none; } }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 68px); display: flex; align-items: center; padding: 48px 0 96px; overflow: hidden; }
.rosette { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
@media (min-width: 1001px) {
  .rosette { mask-image: linear-gradient(90deg, transparent 18%, #000 58%); -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 58%); }
}
@media (max-width: 1000px) {
  .rosette { mask-image: linear-gradient(180deg, transparent 30%, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 70%); }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin-bottom: 18px; }
.hero h1 { font-size: clamp(46px, 6.8vw, 96px); font-weight: 400; letter-spacing: -0.025em; word-spacing: 0.04em; line-height: 1.0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); margin-top: 28px; max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.seed { display: grid; place-items: center; height: 420px; }
.seed span { font-family: var(--font-fa); font-size: clamp(40px, 4.4vw, 60px); color: var(--rose); line-height: 1.8; padding: 0 28px; border-radius: 50%; background: radial-gradient(closest-side, var(--bg) 55%, transparent); text-shadow: 0 0 30px var(--bg); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { width: 1px; height: 44px; background: linear-gradient(var(--rose), transparent); transform-origin: top; animation: cue 2.2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero intro (CSS-driven so it works even if scripts fail) */
.hero-in { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.eyebrow.hero-in { animation-delay: .1s; }
.lede.hero-in { animation-delay: .85s; }
.cta-row.hero-in { animation-delay: 1s; }
.seed.hero-in { animation: seed 1.6s cubic-bezier(.2,.7,.2,1) .15s both; }
.scroll-cue.hero-in { animation-delay: 1.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes seed { from { opacity: 0; transform: scale(.6); filter: blur(8px); } }
.scroll-cue.hero-in { animation-name: rise-cue; }
@keyframes rise-cue { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Split words */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .26em; margin-bottom: -.26em; }
.split .w > span { display: inline-block; }
.hero .split .w > span { animation: wordUp 1.1s cubic-bezier(.2,.75,.15,1) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes wordUp { from { transform: translateY(105%) rotate(4deg); } }
.swash-word { position: relative; display: inline-block; }
.swash { position: absolute; left: -2%; right: -4%; bottom: -.04em; width: 106%; height: .24em; overflow: visible; }
.swash path { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.2s cubic-bezier(.6,0,.2,1) 1.2s forwards; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 26px 0; background: var(--bg); position: relative; z-index: 2; }
.track { display: flex; width: max-content; animation: scroll 50s linear infinite; will-change: transform; }
.js-marquee .track { animation: none; }
.track span { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-style: italic; font-weight: 300; color: var(--text); padding: 0 34px; white-space: nowrap; position: relative; }
.track span::after { content: ''; position: absolute; right: -8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--rose); clip-path: var(--star); opacity: .7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Statement */
.statement { position: relative; padding: 180px 0; overflow: hidden; }
.statement-fa { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-fa); font-size: clamp(200px, 34vw, 520px); line-height: 1; color: var(--rose); opacity: .045; white-space: nowrap; pointer-events: none; }
.words { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 58px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 400; position: relative; }
.words b { font-weight: 500; }
.words i { color: var(--rose); }
.words .word { opacity: var(--o, 1); transition: opacity .2s linear; }

/* Untangle */
.untangle { position: relative; background: var(--bg-alt); }
.untangle-pin { min-height: 100vh; display: flex; align-items: center; padding: 96px 0; }
.untangle-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.untangle h2 { font-size: clamp(38px, 4.6vw, 62px); }
.counter { margin-top: 36px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.counter span { font-family: var(--font-display); font-size: clamp(72px, 9vw, 128px); line-height: 1; color: var(--positive); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.counter small { color: var(--muted); font-size: 15px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: 0 4px 20px rgba(40, 20, 20, 0.05); will-change: transform; }
.chip b { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.3; }
.chip small { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; transition: color .3s; }
.tick { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 2px solid var(--border-strong); position: relative; transition: background .3s, border-color .3s; }
.tick::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.chip.done .tick, .no-anim .tick { background: var(--positive); border-color: var(--positive); }
.chip.done .tick::after, .no-anim .tick::after { transform: rotate(45deg) scale(1); }
.chip.done small, .no-anim .chip small { color: var(--positive); }

/* Sections */
.section { position: relative; padding: 128px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(36px, 4.6vw, 60px); }
.sub { color: var(--muted); font-size: 18px; margin-top: 20px; }

/* Services: stacked sticky cards */
.stack { display: grid; gap: 28px; }
/* Spacer (not padding: sticky ignores it) so all three cards settle before leaving. */
.stack::after { content: ''; height: 18vh; }
/* Receding cards dim slightly via an overlay (cheaper and steadier than a filter). */
.service::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: calc(var(--dim, 0) * 0.07); pointer-events: none; }
.service { position: sticky; top: calc(100px + var(--i, 0) * 26px); display: grid; grid-template-columns: 220px 1fr; gap: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 52px; min-height: 360px; transform-origin: 50% 0; box-shadow: 0 -10px 40px rgba(40, 20, 20, 0.06); }
.service:nth-child(2) { --i: 1; }
.service:nth-child(3) { --i: 2; }
.service-num { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(80px, 10vw, 150px); line-height: .85; color: var(--rose); letter-spacing: -0.04em; }
.service h3 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 16px; }
.service p { color: var(--muted); font-size: 18px; max-width: 36em; }
.service.featured { background: var(--accent); color: #fff; border-color: transparent; }
.service.featured p, .service.featured .ticks li { color: rgba(255,255,255,.88); }
.service.featured .service-num { color: rgba(255,255,255,.55); }
.service.featured .ticks li::before { background: #fff; }
.service.ink { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.service.ink p, .service.ink .ticks li { color: var(--ink-muted); }
.service.ink .service-num { color: #e8919d; }
.service.ink .ticks li::before { background: #e8919d; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.service .ticks { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 28px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; background: var(--accent); clip-path: var(--star); }
.ticks.light li { color: var(--ink-text); }
.ticks.light li::before { background: #e8919d; }

/* Industries */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; position: relative; }
.tab { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: color .3s, border-color .3s; position: relative; z-index: 1; }
.tab:hover { border-color: var(--text); }
.tab[aria-selected='true'] { color: var(--bg); border-color: transparent; background: transparent; }
.no-ind .tab[aria-selected='true'] { background: var(--text); }
.tab-ind { position: absolute; z-index: 0; border-radius: 999px; background: var(--text); transition: transform .5s cubic-bezier(.3,1.25,.5,1), width .5s cubic-bezier(.3,1.25,.5,1), height .3s; top: 0; left: 0; }
.sector-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sector-panel.swap .card { animation: cardIn .6s cubic-bezier(.2,.7,.2,1) both; }
.sector-panel.swap .card:nth-child(2) { animation-delay: .08s; }
.sector-panel.swap .pains li, .sector-panel.swap .build { animation: cardIn .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 50ms + 120ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; }
.card h3 { font-size: 28px; margin-bottom: 6px; }
.card .who { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.pains { list-style: none; padding: 0; margin: 0; }
.pains li { display: flex; gap: 16px; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--border); }
.pains b { font-weight: 600; font-size: 15.5px; display: block; }
.pains small { color: var(--muted); font-size: 14px; }
.pains .hrs { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--rose); background: var(--accent-weak); padding: 3px 10px; border-radius: 99px; align-self: flex-start; }
.builds { display: grid; gap: 12px; }
.build { padding: 18px 20px; border-radius: var(--r); background: var(--bg-alt); border: 1px solid var(--border); transition: transform .3s, border-color .3s; }
.build:hover { transform: translateX(6px); border-color: var(--rose); }
.build b { display: block; font-size: 16px; margin-bottom: 4px; }
.build span { color: var(--muted); font-size: 14.5px; }
.guard { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--positive-weak); color: var(--positive); font-size: 14.5px; font-weight: 500; }
.guard svg { flex-shrink: 0; margin-top: 2px; }
.total { margin-top: 16px; font-size: 15px; color: var(--muted); }
.total b { color: var(--text); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.calc-inputs { padding: 40px; display: grid; gap: 26px; }
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 10px; }
.field > span { margin-bottom: 0; display: flex; justify-content: space-between; gap: 12px; }
output { color: var(--rose); font-weight: 700; }
select { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); }
.pain-list { display: grid; gap: 8px; }
.pain-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; font-size: 15px; }
.pain-opt:hover { border-color: var(--border-strong); }
.pain-opt:active { transform: scale(.99); }
.pain-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); }
.pain-opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.pain-opt .h { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-result { background: var(--accent); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-result::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -120px; background: rgba(255,255,255,.07); clip-path: var(--star); animation: spin 60s linear infinite; }
.calc-result::after { content: ''; position: absolute; width: 220px; height: 220px; left: -80px; bottom: -90px; background: rgba(255,255,255,.05); clip-path: var(--star); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.calc-result .label { font-size: 14px; opacity: .75; position: relative; }
.calc-result .big { font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); line-height: 1.05; margin: 4px 0 22px; position: relative; font-variant-numeric: tabular-nums; }
.calc-result .big small { font-size: 20px; font-family: var(--font); opacity: .75; }
.calc-result .fine { font-size: 13.5px; opacity: .75; margin-bottom: 24px; position: relative; }
.calc-result .btn { align-self: flex-start; }
.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.04); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; --p: 1; }
.steps::before, .steps::after { content: ''; position: absolute; top: 28px; left: 28px; right: calc(25% - 8px); height: 2px; background: var(--border); border-radius: 2px; }
.steps::after { background: var(--rose); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.step > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border-strong); font-family: var(--font-display); font-size: 22px; background: var(--bg); position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.step.lit > span, .no-anim .step > span { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.08); }
.step h3 { font-size: 26px; margin: 24px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trust h3 { font-size: 26px; margin-bottom: 10px; }
.trust p { color: var(--muted); }

/* FAQ */
.faq { display: grid; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font-family: var(--font-display); font-size: 22px; position: relative; transition: color .2s, padding-left .35s cubic-bezier(.2,.7,.2,1); }
.faq summary:hover { color: var(--rose); padding-left: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font); font-size: 28px; font-weight: 300; color: var(--rose); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq details p { color: var(--muted); padding: 0 48px 28px 0; }
.faq details[open] p { animation: cardIn .4s ease both; }

/* Booking */
.book { overflow: hidden; background: var(--bg-alt); }
.book .wrap { position: relative; z-index: 1; }
.pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%237b1e2c' stroke-width='1'%3E%3Cpolygon points='32,9.4 38.6,16 48,16 48,25.4 54.6,32 48,38.6 48,48 38.6,48 32,54.6 25.4,48 16,48 16,38.6 9.4,32 16,25.4 16,16 25.4,16'/%3E%3Cpath d='M0 0L9.4 9.4M64 0L54.6 9.4M0 64L9.4 54.6M64 64L54.6 54.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 70%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .pattern { filter: invert(1); opacity: .06; } }
.calendly-shell { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); min-height: 700px; overflow: hidden; max-width: 1000px; margin-inline: auto; }
.calendly-shell .cal-embed { min-width: 320px; height: 960px; } /* Calendly stacks on narrow screens */
@media (min-width: 1000px) { .calendly-shell .cal-embed { height: 720px; } } /* side-by-side layout */
/* Calendly draws its own card, so the shell steps back once it's embedded. */
.calendly-shell:has(.cal-embed) { background: transparent; border: 0; box-shadow: none; min-height: 0; border-radius: 0; }
.calendly-loading, .calendly-fallback { display: grid; place-items: center; text-align: center; min-height: 700px; padding: 40px 24px; color: var(--muted); gap: 16px; align-content: center; }
.calendly-fallback h3 { font-size: 34px; color: var(--text); }

/* Footer */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--border); overflow: hidden; }
.foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-tag { color: var(--muted); margin-top: 12px; font-family: var(--font-display); font-style: italic; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 17.5vw, 270px); line-height: .9; letter-spacing: -0.045em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--border-strong); margin: 72px 0 0; user-select: none; }
.wordmark em { font-style: italic; -webkit-text-stroke: 1px var(--rose); }
.foot-base { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.fa-small { font-family: var(--font-fa); font-size: 20px; color: var(--rose); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .untangle-grid { grid-template-columns: 1fr; gap: 40px; }
  .seed { height: 260px; }
  .services, .trust { grid-template-columns: 1fr; }
  .trust { gap: 32px; }
  .sector-panel, .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 40px; }
  .service .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  .statement { padding: 120px 0; }
  .hero { padding: 32px 0 88px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .card, .calc-inputs, .calc-result { padding: 26px 20px; }
  .service { padding: 30px 24px; min-height: 0; top: calc(84px + var(--i, 0) * 14px); border-radius: 22px; }
  .chips { grid-template-columns: 1fr; gap: 8px; }
  .chip { padding: 12px 14px; }
  .untangle-pin { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .brand { font-size: 19px; }
  .foot-base { flex-direction: column; gap: 8px; align-items: flex-start; }
  .calc-result .btn { align-self: stretch; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .swash path { stroke-dashoffset: 0; }
  .grain { display: none; }
}
