/* ============================================================
   plus8h — production stylesheet
   Brand: gradient #4E3292 (purple) -> #00B050 (green)
   Type:  Figtree (self-hosted variable font)
   ============================================================ */

/* ---------- Self-hosted Figtree (variable 300–900, roman + italic) ---------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --purple: #4E3292;
  --green: #00B050;
  --indigo: #404886;
  --ink: #16181f;
  --ink-2: #1b1d24;
  --body: #565a62;
  --muted: #71757c;
  --muted-2: #8a8e95;
  --muted-3: #9a9ea5;
  --line: #ECEDF1;
  --line-2: #F0F1F4;
  --wash: #F7F8FA;
  --wash-2: #FBFBFC;
  --violet-wash: #F1EEFA;
  --green-wash: #EAF6EF;
  --grad: linear-gradient(135deg, #4E3292, #00B050);
  --grad-3: linear-gradient(135deg, #4E3292 0%, #37417e 48%, #00B050 100%);
  --shadow-cta: 0 16px 34px -14px rgba(64, 40, 120, .55);
  --maxw: 1240px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: #3aa86a; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(78, 50, 146, .45); outline-offset: 2px; border-radius: 6px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(20,12,50,.4);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: clamp(20px, 4.4vw, 44px); padding-right: clamp(20px, 4.4vw, 44px); }
.section { padding-top: clamp(54px, 8vw, 94px); padding-bottom: clamp(54px, 8vw, 94px); }
.section--wash { background: var(--wash); }
.bg-wash { background: var(--wash); }
.rel { position: relative; }
.clip { overflow: hidden; }

/* Decorative gradient orbs */
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb--purple { background: radial-gradient(circle, rgba(78,50,146,.10), rgba(78,50,146,0) 70%); }
.orb--green { background: radial-gradient(circle, rgba(0,176,80,.10), rgba(0,176,80,0) 70%); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo);
}
.eyebrow--boxed { border: 1px solid #E6E3F0; border-radius: 999px; padding: 8px 15px; color: var(--indigo); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }

.display {
  font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--ink);
  letter-spacing: -.018em; line-height: .98; margin: 0;
}
.h1 { font-size: clamp(38px, 7vw, 64px); }
.h1--sub { font-size: clamp(33px, 6.2vw, 56px); }
.h2 {
  font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--ink);
  font-size: clamp(29px, 4.8vw, 46px); line-height: 1.02; letter-spacing: -.015em; margin: 0;
}
.h2--sm { font-size: clamp(27px, 4.4vw, 42px); line-height: 1.04; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-weight: 300; color: var(--body); font-size: clamp(16px, 2.3vw, 19px); line-height: 1.62; }
.body { font-weight: 300; color: var(--muted); font-size: 14.5px; line-height: 1.58; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; text-decoration: none; border-radius: 999px; cursor: pointer;
  border: none; transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, filter .22s ease;
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; font-size: 16px; padding: 15px 30px; box-shadow: var(--shadow-cta); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(64,40,120,.6); filter: saturate(1.08); }
.btn-primary--sm { font-size: 14px; padding: 11px 22px; box-shadow: none; }
.btn-white { background: #fff; color: #1c1640; font-size: 16px; padding: 16px 32px; box-shadow: 0 16px 34px -16px rgba(0,0,0,.5); }
.btn-white:hover { color: #1c1640; transform: translateY(-2px); }
.link-arrow { color: var(--indigo); font-weight: 600; font-size: 16px; cursor: pointer; }
.link-arrow:hover { color: #3aa86a; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(18px, 4vw, 44px);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s ease, background .3s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(20,12,50,.28); background: rgba(255,255,255,.92); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand-name { font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: -.025em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 300; color: #5b5f67; }
.nav a:not(.btn):hover { color: var(--indigo); }
.nav a.is-active { color: var(--indigo); font-weight: 600; }
.burger {
  width: 44px; height: 44px; border: 1px solid #E6E3F0; border-radius: 12px; background: #fff;
  cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; color: var(--ink); flex: none;
}
.burger svg { display: block; }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 55; background: rgba(15,12,30,.42);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .26s ease, visibility .26s ease;
}
.drawer {
  position: fixed; top: 74px; left: 0; right: 0; z-index: 58; background: #fff;
  border-bottom: 1px solid var(--line-2); box-shadow: 0 22px 44px -26px rgba(20,12,50,.4);
  padding: 10px clamp(18px, 4vw, 44px) 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .26s cubic-bezier(.4,0,.2,1), transform .26s cubic-bezier(.4,0,.2,1), visibility .26s;
}
.nav-open .drawer, .nav-open .drawer-scrim { opacity: 1; visibility: visible; transform: none; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { font-size: 17px; font-weight: 500; color: var(--ink); padding: 14px 4px; border-bottom: 1px solid #F2F3F5; }
.drawer-links a:last-child { border-bottom: none; }
.drawer .btn { margin-top: 14px; width: 100%; font-size: 15px; padding: 14px 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .orb--a { right: -160px; top: -130px; width: 520px; height: 520px; }
.hero .orb--b { left: -150px; bottom: -170px; width: 460px; height: 460px; }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(46px,7vw,74px) clamp(20px,4.4vw,44px) clamp(58px,8vw,92px);
  display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; position: relative;
}
.hero h1 { margin-top: 22px; }
.hero .lead { max-width: 47ch; margin-top: 22px; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.stat .num { font-weight: 900; font-style: italic; font-size: 32px; line-height: 1; }
.stat .label { font-weight: 300; color: var(--muted); font-size: 13px; margin-top: 5px; }

/* Hero visual */
.hero-visual { position: relative; height: 512px; }
.hero-card { position: absolute; }
.hero-panel-bg {
  inset: 0; border-radius: 24px; background: var(--grad); overflow: hidden;
  box-shadow: 0 38px 74px -30px rgba(64,40,120,.5);
}
.hero-panel-bg img { position: absolute; right: -44px; bottom: -50px; width: 308px; opacity: .13; }
.hero-panel-bg .dots {
  position: absolute; left: 26px; top: 26px; width: 118px; height: 118px;
  background-image: radial-gradient(rgba(255,255,255,.4) 1.4px, transparent 1.4px);
  background-size: 15px 15px; opacity: .5;
}
.card-report {
  top: 52px; left: 46px; right: 46px; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 50px -22px rgba(20,12,50,.45); padding: 18px 18px 16px;
}
.mini-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 74px; padding: 0 2px; }
.bars > i { flex: 1; border-radius: 5px; display: block; }
.badge-ok { font-size: 10.5px; font-weight: 700; color: #119260; background: var(--green-wash); padding: 5px 10px; border-radius: 999px; }
.rowline { display: flex; align-items: center; justify-content: space-between; }
.trend-up { display: inline-flex; align-items: center; gap: 2px; color: #119260; font-size: 11.5px; font-weight: 700; }
.card-float-l {
  left: -26px; top: 118px; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(20,12,50,.32); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.card-float-r {
  right: -22px; bottom: 42px; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(20,12,50,.32); padding: 13px 18px;
}

/* Floating animation */
.float { animation: p8-float 9s ease-in-out infinite; }
.float-2 { animation: p8-float2 8s ease-in-out infinite .4s; }
.float-3 { animation: p8-float 6.5s ease-in-out infinite; }
.float-4 { animation: p8-float2 7.5s ease-in-out infinite .5s; }
@keyframes p8-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes p8-float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes p8-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Brand strip ---------- */
.brandstrip { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--wash-2); overflow: hidden; padding: 26px 0; }
.bs-head { margin-bottom: 16px; }
.brandstrip .kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-3); }
.bs-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.bs-track { display: flex; align-items: center; gap: clamp(44px, 6vw, 72px); width: max-content; padding-inline: clamp(20px, 4.4vw, 44px); will-change: transform; }
.bs-item { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
/* Marks are pre-tinted to the uniform grey; the Latin name sits beneath each */
.bs-item img { height: 30px; width: auto; display: block; }
.bs-name { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-3); white-space: nowrap; }

/* ---------- Generic cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
/* Icon above the text so longer copy runs the full card width (Sarah's review) */
.card--link { cursor: pointer; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.card-hover { transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, border-color .28s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(30,15,70,.35); border-color: #DAD3EE; }
.icon-badge { border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-badge--v { width: 48px; height: 48px; background: var(--violet-wash); }
.icon-badge--g { width: 48px; height: 48px; background: var(--green-wash); }
.icon-badge--grad { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); }
.card h3 { font-weight: 700; font-size: 19px; color: var(--ink-2); margin: 18px 0 8px; }
.card--link h3 { margin: 3px 0 7px; }
.card .idx { font-size: 13px; font-weight: 700; color: #b3a8d8; letter-spacing: .04em; }

.grid-auto { display: grid; gap: 24px; }
/* Explicit columns so rows never leave a single orphan card.
   3-up -> 3 or 1 (never 2). 4-up -> 4 / 2 / 1. Breakpoints below. */
.grid-auto--3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto--svc { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-auto--principles { grid-template-columns: repeat(4, 1fr); gap: 22px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* ---------- Timeline (How we work) ---------- */
.timeline { position: relative; margin-top: 56px; }
.timeline .line { position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 2px; background: var(--grad); opacity: .3; }
.timeline .steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.timeline .step { text-align: center; }
.timeline .num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 900; font-style: italic; font-size: 20px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto; box-shadow: 0 10px 22px -10px rgba(64,40,120,.6);
}
.timeline h3 { font-weight: 700; font-size: 17.5px; color: var(--ink-2); margin: 18px 0 7px; }

/* ---------- Stats band ---------- */
.statband { position: relative; overflow: hidden; background: var(--grad-3); }
.statband .watermark { position: absolute; right: -70px; top: 50%; transform: translateY(-50%); width: 380px; opacity: .10; pointer-events: none; }
.statband .grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(50px,7vw,74px) clamp(20px,4.4vw,44px); position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; }
.statband .num { font-weight: 900; font-style: italic; color: #fff; font-size: clamp(34px,5vw,50px); line-height: 1; }
.statband .label { font-weight: 300; color: rgba(255,255,255,.85); font-size: 14.5px; margin-top: 8px; }

/* ---------- Services detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 54px 0; border-bottom: 1px solid var(--line-2); }
.svc-row:last-child { border-bottom: none; }
.svc-row .idx { font-weight: 900; font-style: italic; font-size: 15px; color: #cfc7e6; letter-spacing: .05em; }
.svc-row h2 { font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--ink); font-size: clamp(25px,3.4vw,34px); line-height: 1.04; letter-spacing: -.01em; margin: 6px 0 0; }
.svc-row p { font-weight: 300; color: var(--body); font-size: 17px; line-height: 1.62; margin: 16px 0 0; }
.checklist { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.checklist .item { display: flex; gap: 11px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 1px; }
.checklist span { font-weight: 400; color: #3f434b; font-size: 15px; }
.order-2 { order: 2; }
.order-1 { order: 1; }
.mock { position: relative; border-radius: 22px; border: 1px solid var(--line); padding: 26px; min-height: 300px; }
.mock--vg { background: linear-gradient(160deg, #F5F2FC, #EAF6EF); }
.mock--gv { background: linear-gradient(160deg, #EAF6EF, #F5F2FC); }
.mock-card { background: #fff; border-radius: 14px; box-shadow: 0 14px 30px -18px rgba(20,12,50,.3); }
.rank { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 13px; padding: 15px 18px; box-shadow: 0 10px 24px -16px rgba(20,12,50,.3); }
.rank--top { border: 2px solid var(--green); }
.rank .score { font-weight: 900; font-style: italic; font-size: 22px; }
.rank .score--muted { color: var(--muted-3); }
.progress { height: 7px; border-radius: 99px; background: #EEF0F3; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4E3292, #00B050); }
.quote { font-weight: 300; font-size: 13px; color: var(--body); line-height: 1.6; border-left: 3px solid; border-image: linear-gradient(180deg, #4E3292, #00B050) 1; padding-left: 13px; }
.pill { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.pill--v { color: var(--indigo); background: var(--violet-wash); }
.pill--g { color: #119260; background: var(--green-wash); }
.pill--n { color: var(--muted); background: #F1F2F4; }

/* ---------- About: sleep grid ---------- */
.sleep {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; max-width: 880px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 64px -40px rgba(30,15,70,.3);
}
.sleep .cell { padding: 38px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.sleep .mid { background: linear-gradient(160deg, #F5F2FC, #EAF6EF); padding: 0 30px; }
.sleep .badge { width: 62px; height: 62px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; font-style: italic; font-size: 21px; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(64,40,120,.6); }
.sleep .time { font-weight: 900; font-style: italic; font-size: 30px; color: var(--ink); line-height: 1; }
.circle-ic { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

/* Powered-by band */
.powered { background: #0F0E18; border-radius: 24px; padding: clamp(30px,5vw,46px) clamp(24px,4vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; overflow: hidden; }
.powered .glow { position: absolute; right: -50px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,176,80,.28), rgba(0,176,80,0) 70%); }
.powered .logo-box { position: relative; background: #fff; border-radius: 18px; padding: 26px 30px; flex: none; }
.powered .logo-box img { height: 96px; width: auto; display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px,4vw,34px); box-shadow: 0 30px 64px -44px rgba(30,15,70,.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-top: 18px; }
.field:first-child, .form-row .field { margin-top: 0; }
.field label { display: block; font-weight: 600; font-size: 13px; color: #3f434b; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #DFE1E6; border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(78,50,146,.12); }
.form-card .btn { margin-top: 22px; width: 100%; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; text-align: center; font-weight: 300; }
.form-error { display: none; margin-top: 14px; background: #FCEEF0; color: #b3253b; border: 1px solid #F3D0D6; border-radius: 12px; padding: 12px 15px; font-size: 13.5px; }
.form-error.is-visible { display: block; }
.form-success { text-align: center; padding: 40px 20px; animation: p8-rise .4s ease both; }
.form-success .check { width: 66px; height: 66px; border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.form-success h2 { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 30px; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }

.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-email { background: var(--grad); border-radius: 20px; padding: 28px; color: #fff; position: relative; overflow: hidden; }
.aside-email img { position: absolute; right: -30px; bottom: -34px; width: 170px; opacity: .14; }
.aside-email .k { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.aside-email a { font-weight: 800; font-size: 21px; color: #fff; display: inline-block; margin-top: 6px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.aside-card .k { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 16px; }
.phone-row { display: flex; align-items: center; gap: 13px; }
.phone-row + .phone-row { margin-top: 15px; }
.flag { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.flag--dk { background: var(--violet-wash); color: var(--purple); }
.flag--se { background: var(--green-wash); color: #119260; }
.social-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.social-btn { width: 46px; height: 46px; border-radius: 12px; background: var(--indigo); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform .2s ease; }
.social-btn:hover { transform: translateY(-2px); }

/* ---------- Shared CTA ---------- */
.cta { padding: 20px clamp(20px,4.4vw,44px) clamp(56px,8vw,84px); }
.cta .inner { max-width: var(--maxw); margin: 0 auto; }
.cta .box { position: relative; overflow: hidden; border-radius: 28px; background: var(--grad-3); padding: clamp(36px,6vw,64px); text-align: center; }
.cta .box img { position: absolute; width: 240px; opacity: .12; }
.cta .box img.tl { left: -50px; top: -50px; }
.cta .box img.br { right: -50px; bottom: -60px; width: 260px; }
.cta h2 { font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; font-size: clamp(28px,5vw,48px); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.cta p { font-weight: 300; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.55; max-width: 48ch; margin: 18px auto 0; }
.cta .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { background: #14131C; color: #fff; }
.footer .inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(44px,7vw,60px) clamp(20px,4.4vw,44px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer .about { font-weight: 300; color: rgba(255,255,255,.6); font-size: 14.5px; line-height: 1.6; max-width: 34ch; margin: 0 0 18px; }
.footer .powered-by { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.footer h2 { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer .col-links { display: flex; flex-direction: column; gap: 11px; }
.footer .col-links a, .footer .col-links span { font-weight: 300; color: rgba(255,255,255,.78); font-size: 14.5px; }
.footer .col-links a:hover { color: #fff; }
.footer .rule { height: 1px; background: rgba(255,255,255,.1); margin: 40px 0 22px; }
.footer .base { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .base span { font-weight: 300; color: rgba(255,255,255,.45); font-size: 13px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   Utilities + component internals
   (moved out of inline styles — this is the single source of truth)
   ============================================================ */

/* Spacing */
.mt-2 { margin-top: 2px; }
.mt-3 { margin-top: 3px; }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-34 { margin-top: 34px; }
.mt-44 { margin-top: 44px; }
.mt-48 { margin-top: 48px; }
.mb-14 { margin-bottom: 14px; }
.mb-15 { margin-bottom: 15px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-50 { margin-bottom: 50px; }

/* Measure (max-widths) */
.measure-560 { max-width: 560px; }
.measure-620 { max-width: 620px; }
.measure-640 { max-width: 640px; }
.measure-680 { max-width: 680px; }
.measure-720 { max-width: 720px; }
.w-16ch { max-width: 16ch; }
.w-18ch { max-width: 18ch; }
.lead-38 { max-width: 38ch; }
.lead-44 { max-width: 44ch; }
.lead-47 { max-width: 47ch; }
.lead-48 { max-width: 48ch; }
.lead-50 { max-width: 50ch; }
.lead-54 { max-width: 54ch; }
.lead-56 { max-width: 56ch; }

/* Layout helpers */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.nowrap { white-space: nowrap; }
.col-11 { display: flex; flex-direction: column; gap: 11px; }
.col-12 { display: flex; flex-direction: column; gap: 12px; }
.col-15 { display: flex; flex-direction: column; gap: 15px; }
.row-10 { display: flex; align-items: center; gap: 10px; }
.pills { display: flex; gap: 8px; margin-top: 14px; }

/* Intro blocks */
.intro-center { max-width: 640px; margin: 0 auto; text-align: center; }
.link-15 { font-size: 15.5px; }

/* Hero page headers (services / about / contact) */
.page-hero-inner { position: relative; }
.orb--svc { right: -140px; top: -150px; width: 480px; height: 480px; }
.orb--about { left: -150px; top: -150px; width: 480px; height: 480px; }
.orb--contact { right: -150px; top: -140px; width: 480px; height: 480px; }

/* Services + contact wrappers */
.svc-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(24px,4vw,30px) clamp(20px,4.4vw,44px) 20px; }
.contact-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(46px,7vw,74px) clamp(20px,4.4vw,44px) clamp(56px,8vw,90px); position: relative; }

/* Mock dashboard internals (hero + services) */
.mock-h { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.mock-h--13 { font-size: 13px; }
.mock-sub { font-weight: 300; font-size: 11px; color: var(--muted-2); }
.rep-title { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.rep-divider { height: 1px; background: var(--line-2); margin: 15px 0 13px; }
.rank-title { font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.rank-sub { font-weight: 300; font-size: 12px; color: var(--muted-2); }
.metric-k { font-weight: 300; font-size: 13px; color: var(--muted); }
.metric-v { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.trend-up--sm { display: inline-flex; align-items: center; gap: 3px; color: #119260; font-size: 12px; font-weight: 700; }
.p-label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.p-label .k { color: var(--muted); font-weight: 300; }
.p-label .v { font-weight: 700; color: var(--ink-2); }
.spark { width: 100%; height: 108px; display: block; }

/* Hero bar chart */
.bars--hero i:nth-child(1) { height: 42%; background: linear-gradient(180deg,#6a4fb0,#4E3292); }
.bars--hero i:nth-child(2) { height: 55%; background: linear-gradient(180deg,#6a4fb0,#4E3292); }
.bars--hero i:nth-child(3) { height: 48%; background: linear-gradient(180deg,#5a73a8,#3f7a87); }
.bars--hero i:nth-child(4) { height: 64%; background: linear-gradient(180deg,#4d8f7e,#2f9466); }
.bars--hero i:nth-child(5) { height: 58%; background: linear-gradient(180deg,#4d8f7e,#2f9466); }
.bars--hero i:nth-child(6) { height: 76%; background: linear-gradient(180deg,#3aa86a,#12a257); }
.bars--hero i:nth-child(7) { height: 92%; background: linear-gradient(180deg,#16b35c,#00B050); }

/* Progress bar fills */
.progress .w-86 { width: 86%; }
.progress .w-99 { width: 99%; }
.progress .w-100 { width: 100%; }

/* Rank rows opacity steps */
.rank--b { opacity: .86; }
.rank--c { opacity: .72; }

/* Hero float chips */
.chip-icon { width: 42px; height: 42px; border-radius: 50%; background: #119260; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chip-title { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.chip-sub { font-weight: 300; font-size: 11.5px; color: var(--muted); }
.tz-num { font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; }
.tz-label { font-weight: 300; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Icon badge sizes / mini icon */
.icon-badge--46 { width: 46px; height: 46px; }
.mini-icon--30 { width: 30px; height: 30px; }
.circle-ic--v { background: var(--violet-wash); }
.circle-ic--g { background: var(--green-wash); }

/* Powered-by band */
.powered-kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9b92c8; }
.powered-title { font-weight: 800; font-size: 24px; color: #fff; margin: 10px 0 10px; line-height: 1.25; }
.powered-text { font-weight: 300; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; margin: 0; }

/* Contact aside extras */
.aside-note { font-weight: 300; font-size: 13.5px; opacity: .8; margin-top: 8px; }
.aside-name { font-weight: 700; font-size: 15.5px; color: var(--ink-2); }
.aside-city { font-weight: 300; font-size: 12.5px; color: var(--muted-2); }
.social-title { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.social-sub { font-weight: 300; font-size: 13px; color: var(--muted-2); margin-top: 3px; }

/* Success + 404 copy */
.success-text { max-width: 38ch; margin: 0 auto 22px; }
.lead-center-44 { max-width: 44ch; margin: 20px auto 0; }
.sleep-caption { text-align: center; font-weight: 400; color: #3f434b; font-size: 16px; margin: 30px auto 0; max-width: 48ch; }

/* Footer brand spacing */
.footer .brand { margin-bottom: 16px; }
.footer .brand img { height: 34px; width: auto; }

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

/* Card padding variants used by mock cards */
.p-18 { padding: 18px; }
.p-20 { padding: 20px; }
.p-28 { padding: 28px; }

/* Section vertical padding variant */
.section--tight { padding-top: clamp(48px,7vw,74px); padding-bottom: clamp(48px,7vw,74px); }

/* Divider under page-hero headers */
.bordered-b { border-bottom: 1px solid var(--line-2); }

/* ---------- Team ("The people behind") ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 44px; }
.team-card .photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--violet-wash); box-shadow: 0 16px 34px -22px rgba(30,15,70,.4); }
.team-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.team-card:hover img { transform: scale(1.045); }
.team-card .t-name { font-weight: 800; font-size: 17px; color: var(--ink); margin-top: 15px; }
.team-card .t-role { font-weight: 600; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--indigo); margin-top: 5px; }
.team-card .t-bio { font-weight: 300; font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 9px; }

/* ---------- Our model (stacked list) ---------- */
.model-list { margin-top: 40px; border-top: 1px solid var(--line); }
.model-row { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.model-row .m-num { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 900; font-style: italic; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -12px rgba(64,40,120,.6); }
.model-row h3 { font-weight: 800; font-size: 19px; color: var(--ink-2); }
.model-row p { font-weight: 300; font-size: 15px; color: var(--muted); line-height: 1.6; margin: 7px 0 0; max-width: 68ch; }
.model-row--fee { background: linear-gradient(160deg, #F5F2FC, #EAF6EF); border: 1px solid var(--line); border-radius: 16px; margin: 8px 0; }
.model-row--fee .tagchip { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: #119260; background: #fff; border-radius: 999px; padding: 5px 12px; }

/* ---------- Comparison ("why us / the sweet spot") ---------- */
.compare { display: grid; grid-template-columns: 1fr 1.06fr 1fr; gap: 22px; margin-top: 50px; align-items: stretch; }
.compare .col { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; }
/* Signature: the recommended path wears the brand gradient as its border */
.compare .col--best { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 40px 84px -46px rgba(64,40,120,.5); transform: translateY(-12px); }
.compare .best-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 12px 24px -10px rgba(64,40,120,.55); }
.compare .tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); }
.compare .col--best .tag { color: var(--indigo); }
.compare h3 { font-weight: 800; font-size: 20px; color: var(--ink); margin: 10px 0 4px; letter-spacing: -.01em; }
.compare .sub { font-weight: 300; font-size: 13.5px; color: var(--muted); margin: 0; }
.compare ul { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #3f434b; font-weight: 400; line-height: 1.5; }
.compare .ic { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.compare .ic--no { background: #FBE9EC; }
.compare .ic--yes { background: var(--green-wash); }

/* ---------- Brands we work with (logo wall) ---------- */
.bw-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 34px 58px; margin-top: 44px; }
.bw-item { display: inline-flex; align-items: center; }
.bw-item img { height: 26px; width: auto; display: block; opacity: .8; transition: opacity .25s ease, transform .25s ease; }
.bw-item--tall img { height: 44px; }
.bw-item:hover img { opacity: 1; transform: translateY(-2px); }
@media (max-width: 640px) {
  .bw-wall { gap: 26px 34px; }
  .bw-item img { height: 22px; }
  .bw-item--tall img { height: 36px; }
}

/* Page headers (services / about / contact / 404) — distinct from the home .hero */
.page-hero { position: relative; overflow: hidden; }

/* Font-size helpers used by mock/timeline/principle copy */
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.lead-17 { font-size: 17px; }
.h3-18 { font-size: 18px; margin: 16px 0 7px; }

/* ============================================================
   Reporting demo ("video player" tour) — all classes dm-
   ============================================================ */
.dm-hero { position: relative; overflow: hidden; background: #0F0E18; color: #fff; }
.dm-hero .orb--a2 { right: -160px; top: -140px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(0,176,80,.16), rgba(0,176,80,0) 70%); }
.dm-hero .orb--b2 { left: -140px; bottom: -180px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(78,50,146,.28), rgba(78,50,146,0) 70%); }
.dm-hero .display { color: #fff; }
.dm-hero .lead { color: rgba(255,255,255,.72); }
.dm-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 14px; }
.dm-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
.dm-cta-hint { font-size: 12.5px; font-weight: 300; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 60ch; line-height: 1.7; }
/* Published on purpose: fictional client, synthetic data (see SITE.cockpitPassword) */
.dm-pw { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 3px 9px; letter-spacing: .04em; user-select: all; }

/* Player frame */
.dm-stage { padding: clamp(30px,5vw,56px) clamp(14px,3vw,44px) clamp(54px,8vw,90px); background: #0F0E18; }
.dm-frame { position: relative; max-width: 1180px; margin: 0 auto; background: #171522; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; box-shadow: 0 60px 120px -50px rgba(0,0,0,.8); overflow: hidden; }
.dm-titlebar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.dm-dots { display: flex; gap: 7px; }
.dm-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dm-url { flex: 1; text-align: center; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.4); letter-spacing: .02em; }
.dm-live { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2fd67d; }
.dm-live i { width: 7px; height: 7px; border-radius: 50%; background: #2fd67d; animation: dm-pulse 2s ease-in-out infinite; }
@keyframes dm-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* App bar inside the frame */
.dm-appbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px 0; flex-wrap: wrap; }
.dm-client { display: flex; align-items: center; gap: 12px; }
.dm-client .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-style: italic; font-size: 15px; color: #fff; flex: none; }
.dm-client .t { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.01em; }
.dm-client .s { font-weight: 300; font-size: 12px; color: rgba(255,255,255,.45); margin-top: 1px; }
.dm-range { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 8px 16px; transition: box-shadow .3s ease, border-color .3s ease; }
.dm-range.is-hot { border-color: rgba(0,176,80,.7); box-shadow: 0 0 0 3px rgba(0,176,80,.18); }

/* KPI row */
.dm-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 16px 22px 6px; }
.dm-kpi { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 13px 15px; transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
.dm-kpi .k { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.dm-kpi .v { font-weight: 900; font-style: italic; font-size: clamp(17px, 1.9vw, 24px); color: #fff; margin-top: 5px; line-height: 1; white-space: nowrap; }
.dm-kpi .d { font-size: 11px; font-weight: 700; margin-top: 6px; color: #2fd67d; }
.dm-kpi .d.down { color: #ff7a90; }
.dm-kpi.is-hot { border-color: rgba(0,176,80,.65); box-shadow: 0 0 0 3px rgba(0,176,80,.15); transform: translateY(-2px); }

/* Chart area */
.dm-main { display: grid; grid-template-columns: 1fr 300px; gap: 14px; padding: 10px 22px 22px; }
.dm-chart { position: relative; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 18px 16px 10px; min-height: 320px; }
.dm-chart .hd { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; }
.dm-chart .hd .t { font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.85); }
.dm-chart .hd .legend { display: flex; gap: 14px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); }
.dm-chart .hd .legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.dm-chart svg { width: 100%; height: 270px; display: block; }
.dm-evt { position: absolute; transform: translate(-50%, -130%); background: #221f33; border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 11.5px; font-weight: 600; padding: 7px 11px; border-radius: 9px; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0,0,0,.7); opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: 4; }
.dm-evt.is-on { opacity: 1; }
.dm-evt::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: inherit; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); transform: translateX(-50%) rotate(45deg); }

/* Side panel: goals */
.dm-side { display: flex; flex-direction: column; gap: 12px; }
.dm-panel { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 16px; }
.dm-panel .t { font-weight: 700; font-size: 12.5px; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.dm-goal { margin-bottom: 12px; }
.dm-goal:last-child { margin-bottom: 0; }
.dm-goal .r { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }
.dm-goal .r .m { color: rgba(255,255,255,.55); font-weight: 500; }
.dm-goal .r .p { font-weight: 700; color: #fff; }
.dm-goal .bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; }
.dm-goal .bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); width: 0; transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.dm-goal.warn .bar i { background: linear-gradient(90deg,#b3253b,#e0722f); }

/* Caption / narration bar */
.dm-caption { display: flex; gap: 14px; align-items: flex-start; padding: 16px 22px 20px; border-top: 1px solid rgba(255,255,255,.07); min-height: 86px; }
.dm-caption .badge { flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; padding: 6px 13px; margin-top: 2px; }
.dm-caption .txt { font-size: 14.5px; font-weight: 400; color: rgba(255,255,255,.88); line-height: 1.55; max-width: 72ch; }
.dm-caption .txt .cursor-blink { display: inline-block; width: 8px; height: 15px; background: #2fd67d; vertical-align: -2px; margin-left: 2px; animation: dm-pulse 1s steps(1) infinite; }

/* Ghost cursor */
.dm-cursor { position: absolute; z-index: 30; width: 22px; height: 22px; pointer-events: none; transition: left 1.1s cubic-bezier(.45,.05,.25,1), top 1.1s cubic-bezier(.45,.05,.25,1), opacity .4s ease; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); }
.dm-cursor .ring { position: absolute; left: -9px; top: -9px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #2fd67d; opacity: 0; transform: scale(.4); }
.dm-cursor.is-click .ring { animation: dm-ripple .55s ease-out both; }
@keyframes dm-ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.25); } }

/* Chat overlay (Ask Claude scene) */
.dm-chat { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(10,9,18,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; }
.dm-chat.is-on { opacity: 1; visibility: visible; }
.dm-chat .win { width: min(600px, 92%); background: #1b1927; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9); overflow: hidden; }
.dm-chat .win .bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.85); }
.dm-chat .body { padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow: hidden; }
.dm-msg { max-width: 88%; border-radius: 14px; padding: 12px 15px; font-size: 13.5px; line-height: 1.55; }
.dm-msg.q { align-self: flex-end; background: var(--grad); color: #fff; font-weight: 500; }
.dm-msg.a { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.9); }
.dm-msg.a .chip { display: inline-block; font-size: 11px; font-weight: 700; color: #2fd67d; background: rgba(0,176,80,.12); border: 1px solid rgba(0,176,80,.3); border-radius: 999px; padding: 2px 9px; margin: 0 2px; white-space: nowrap; }
.dm-trace { align-self: flex-start; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 10.5px; color: rgba(255,255,255,.4); background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.07); border-radius: 9px; padding: 8px 12px; }
.dm-trace b { color: #9b8fd0; font-weight: 600; }

/* Scene chips + progress */
.dm-controls { max-width: 1180px; margin: 18px auto 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dm-scene-chip { border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.6); font-family: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: all .25s ease; position: relative; overflow: hidden; }
.dm-scene-chip .fill { position: absolute; inset: 0; background: rgba(255,255,255,.1); transform: scaleX(0); transform-origin: left; }
.dm-scene-chip.is-on { color: #fff; border-color: rgba(0,176,80,.7); }
.dm-scene-chip.is-on .fill { transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.dm-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dm-scene-chip:focus-visible, .dm-play:focus-visible { outline: 3px solid rgba(47,214,125,.75); outline-offset: 2px; }

/* Story timeline below player */
.dm-timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 28px; display: flex; flex-direction: column; gap: 34px; position: relative; }
.dm-tl-item { position: relative; }
.dm-tl-item::before { content: ''; position: absolute; left: -37px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px #fff, 0 6px 14px -4px rgba(64,40,120,.5); }
.dm-tl-item .dte { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.dm-tl-item h3 { font-weight: 800; font-size: 19px; color: var(--ink); margin: 6px 0 10px; }
.dm-tl-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dm-tl-col { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; }
.dm-tl-col .k { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 7px; }
.dm-tl-col .k.what { color: var(--indigo); }
.dm-tl-col .k.goal { color: #119260; }
.dm-tl-col .k.next { color: #b3612f; }
.dm-tl-col p { font-size: 13.5px; font-weight: 300; color: var(--body); line-height: 1.55; margin: 0; }

/* MCP section */
.dm-mcp-card { background: #0F0E18; border-radius: 24px; padding: clamp(30px,5vw,50px); color: #fff; position: relative; overflow: hidden; }
.dm-mcp-card .glow { position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(0,176,80,.25), rgba(0,176,80,0) 70%); }
.dm-mcp-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.dm-mcp-card h2 { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(26px,4vw,40px); line-height: 1.04; letter-spacing: -.015em; color: #fff; margin: 14px 0 0; }
.dm-mcp-card .lead { color: rgba(255,255,255,.72); font-size: 16px; margin-top: 16px; }
.dm-mcp-points { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dm-mcp-points li { display: flex; gap: 11px; font-size: 14.5px; color: rgba(255,255,255,.85); font-weight: 300; line-height: 1.5; }
.dm-mcp-points svg { flex: none; margin-top: 2px; }

.sw-gmv { background: linear-gradient(90deg, #7b5fc7, #00B050); }
.sw-roas { background: #ffd166; }
.mini-icon--24 { width: 24px; height: 24px; }
.dm-trace--sample { padding: 18px 20px; font-size: 12px; line-height: 2; }

@media (max-width: 1024px) {
  .dm-kpis { grid-template-columns: repeat(3, 1fr); }
  .dm-main { grid-template-columns: 1fr; }
  .dm-mcp-grid { grid-template-columns: 1fr; }
  .dm-tl-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dm-kpis { grid-template-columns: repeat(2, 1fr); }
  .dm-chart svg { height: 210px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .svc-row { grid-template-columns: 1fr; gap: 34px; }
  .svc-row .order-2 { order: 0; }
  .svc-row .order-1 { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .timeline .line { display: none; }
  /* Even-count grids: 4-up -> 2 across */
  .grid-auto--svc,
  .grid-auto--principles,
  .timeline .steps { grid-template-columns: repeat(2, 1fr); }
  /* Team: 5 -> 3 across (3+2, no orphan). Comparison stacks. */
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr; gap: 26px; }
  .compare .col--best { transform: none; }
}
@media (max-width: 640px) {
  .sleep { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; }
  .hide-sm { display: none !important; }
  /* Even-count grids: everything to a single column */
  .grid-auto--3,
  .grid-auto--svc,
  .grid-auto--principles,
  .timeline .steps { grid-template-columns: 1fr; }
  /* Team -> single column (5 is odd; avoids an orphan) */
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
