/* ============================================================
   KSHR — Home (Design v1) · Direction B, mid-fidelity
   Navy-led · warm sand surfaces · framework stages O→T→N
   ============================================================ */

:root {
  /* brand */
  --navy:        #1F3A6B;
  --navy-deep:   #14283f;
  --navy-900:    #0e1f33;
  --teal:        #15808a;
  --teal-deep:   #0f6068;
  --orange:      #E8740C;
  --orange-soft: #F58A4B;

  /* surfaces */
  --sand:        #F5EFE4;
  --sand-2:      #EFE7D7;
  --paper:       #FCFAF5;
  --card:        #FFFFFF;
  --line:        #E2D9C7;
  --line-2:      #D8CDB6;

  /* text */
  --ink:         #182230;
  --ink-2:       #3a4654;
  --muted:       #5a646e;
  --on-dark:     #F3EFE6;
  --on-dark-mut: rgba(243,239,230,.72);

  /* stage colors (stable) */
  --stage1: var(--orange);
  --stage2: var(--teal);
  --stage3: var(--navy);

  /* role tokens (palette-swappable) */
  --accent:       var(--navy);
  --accent-ink:   #fff;
  --accent-2:     var(--orange);
  --hero-bg:      var(--sand);
  --section-dark: var(--navy-900);

  /* type */
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,40,63,.06), 0 2px 6px rgba(20,40,63,.05);
  --shadow-md: 0 6px 20px rgba(20,40,63,.08), 0 2px 6px rgba(20,40,63,.05);
  --shadow-lg: 0 24px 60px rgba(20,40,63,.14), 0 6px 16px rgba(20,40,63,.07);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* palette: navy lead (default) */
body[data-palette="navy"] {
  --accent: var(--navy); --accent-ink:#fff; --accent-2: var(--orange);
  --hero-bg: var(--sand); --section-dark: var(--navy-900);
}
/* palette: teal lead */
body[data-palette="teal"] {
  --accent: var(--teal); --accent-ink:#fff; --accent-2: var(--orange);
  --hero-bg: #ECF1F0; --section-dark: #0b3036;
}
/* palette: cream lead (lighter, accents pop) */
body[data-palette="cream"] {
  --accent: var(--orange); --accent-ink:#fff; --accent-2: var(--navy);
  --hero-bg: var(--paper); --section-dark: var(--navy-900);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--sand);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.display {
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
}
.h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.028em; }
.h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.stack > * + * { margin-top: var(--sp, 16px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ondark { background: var(--on-dark); color: var(--navy-900); }
.btn-ondark:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--sand) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.condensed { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20,40,63,.07); background: color-mix(in srgb, var(--sand) 94%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; transition: height .25s ease; }
.nav.condensed .nav-inner { height: 58px; }
.brand { display: flex; align-items: baseline; gap: 9px; font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--navy); }
.brand .dotp { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); overflow: hidden; position: relative; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-bg) 26%, color-mix(in srgb, var(--hero-bg) 40%, transparent) 52%, transparent 72%); }
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-eyebrow { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-eyebrow .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 540px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-trust .item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.hero-trust .tick { color: var(--teal); font-weight: 700; }

/* hero framework motif (abstract, geometric) */
.motif { position: relative; padding: 8px; }
.motif-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 30px;
}
.motif-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.motif-head .t { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.motif-head .live { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--teal-deep); }
.motif-head .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 color-mix(in srgb,var(--teal) 55%, transparent);} 70%{ box-shadow:0 0 0 10px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

.steps { display: grid; gap: 12px; }
.step-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 16px 16px; border-radius: var(--r-md);
  color: #fff; position: relative; overflow: hidden;
}
.step-row.s1 { background: linear-gradient(100deg, var(--orange), #f0892e); }
.step-row.s2 { background: linear-gradient(100deg, var(--teal), #1a98a2); margin-left: 16px; }
.step-row.s3 { background: linear-gradient(100deg, var(--navy), #2a55a0); margin-left: 32px; }
.step-row.s1 { animation-delay: .15s; }
.step-row.s2 { animation-delay: .30s; }
.step-row.s3 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.step-row .n { font-family: var(--sans); font-weight: 800; font-size: 22px; width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.step-row .verb { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; opacity: .85; }
.step-row .name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.15; margin-top: 2px; }
.step-row .chip { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.18); }
.motif-foot { margin-top: 16px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.motif-foot .line { flex: 1; height: 1px; background: var(--line); }
.motif-rail {
  position: absolute; left: 30px; top: 92px; bottom: 96px; width: 2px;
  background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 12px);
}

/* subtle life on the homepage motif steps */
@media (prefers-reduced-motion: no-preference) {
  .step-row { animation: stepFloat 7s ease-in-out infinite; }
  .step-row.s1 { animation-delay: 0s; }
  .step-row.s2 { animation-delay: .55s; }
  .step-row.s3 { animation-delay: 1.1s; }
}
@keyframes stepFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- generic section bits ---------- */
.kicker-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.kicker-row .lead { max-width: 440px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }

/* challenges */
.band-dark { background: var(--section-dark); color: var(--on-dark); }
.band-dark .eyebrow { color: var(--orange-soft); }
.band-dark .muted, .band-dark .lead { color: var(--on-dark-mut); }
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md); padding: 22px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.gap:hover { transform: translateY(-3px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.gap .gnum { font-family: var(--mono); font-size: 12px; color: var(--orange-soft); letter-spacing: .12em; }
.gap .gt { font-weight: 700; font-size: 18px; margin-top: 12px; letter-spacing: -.01em; }
.gap .gd { color: var(--on-dark-mut); font-size: 14.5px; margin-top: 7px; }

/* flagship */
.flagship { text-align: center; }
.flagship .h2 { max-width: 880px; margin: 0 auto; }
.flagship .badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent);
  padding: 7px 14px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; text-align: left; }
.value {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.value .vi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--serif); font-style: italic; font-size: 20px; }
.value .vt { font-weight: 700; font-size: 18px; margin-top: 16px; }
.value .vd { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* framework stepper (designed) */
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fcard .cap { padding: 22px 22px 20px; color: #fff; position: relative; }
.fcard.f1 .cap { background: linear-gradient(135deg, var(--orange), #f1862a); }
.fcard.f2 .cap { background: linear-gradient(135deg, var(--teal), #18929b); }
.fcard.f3 .cap { background: linear-gradient(135deg, var(--navy), #294f93); }
.fcard .cap .verb { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; opacity: .9; }
.fcard .cap .stg { position: absolute; top: 20px; right: 22px; font-family: var(--sans); font-weight: 800; font-size: 44px; opacity: .35; line-height: 1; }
.fcard .cap .nm { font-weight: 700; font-size: 21px; letter-spacing: -.02em; margin-top: 10px; max-width: 88%; line-height: 1.1; }
.fcard .cap .flag { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; background: rgba(255,255,255,.2); padding: 4px 9px; border-radius: 999px; }
.fcard .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.fcard .who { font-size: 14px; color: var(--muted); }
.fcard .plabel { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 18px; }
.fcard ul.pillars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.fcard ul.pillars li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.fcard ul.pillars li .pdot { flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; }
.fcard.f1 li .pdot { background: var(--orange); }
.fcard.f2 li .pdot { background: var(--teal); }
.fcard.f3 li .pdot { background: var(--navy); }
.fcard .outcome {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2);
  font-size: 13.5px; color: var(--ink-2); display: flex; gap: 9px;
}
.fcard .outcome .oa { font-weight: 700; }
.fcard.f1 .outcome .oa { color: var(--orange); }
.fcard.f2 .outcome .oa { color: var(--teal-deep); }
.fcard.f3 .outcome .oa { color: var(--navy); }

/* growth path */
.path2 { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.pnode { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.pnode:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pnode .pk { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; font-weight: 500; }
.pnode .pt { font-weight: 800; font-size: 22px; margin: 6px 0 4px; letter-spacing: -.02em; }
.pnode .pd { font-size: 13.5px; color: var(--muted); }
.pchev { color: var(--line-2); font-size: 26px; font-weight: 800; }

/* why kshr */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.why:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.why .wi { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; }
.why .wt { font-weight: 700; font-size: 17px; margin-top: 14px; }
.why .wd { color: var(--muted); font-size: 14px; margin-top: 5px; }

/* solutions */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); transition: border-color .18s ease, transform .18s ease; }
.sol:hover { transform: translateY(-2px); border-color: var(--line-2); }
.sol .si { flex: none; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--teal) 12%, transparent); display: grid; place-items: center; }
.sol .si svg { width: 20px; height: 20px; stroke: var(--teal-deep); }
.sol .st { font-weight: 700; font-size: 16.5px; }
.sol .sd { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* fractional */
.frac { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,4vw,48px); align-items: center; }
.frac-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-md); }
.frac-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.frac-stats .fs .fsl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.frac-stats .fs .fsv { font-weight: 700; font-size: 19px; margin-top: 3px; }
.frac-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); }

/* founder minimal */
.founder-min {
  display: flex; align-items: center; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.founder-min img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); }
.founder-min .fm-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.founder-min .fm-n { font-weight: 700; font-size: 18px; margin-top: 2px; }
.founder-min .fm-d { color: var(--muted); font-size: 14px; }
.founder-min .fm-cta { margin-left: auto; }
body[data-founder="hidden"] .founder-min { display: none; }

/* final cta */
.cta-final { background: var(--accent); color: var(--accent-ink); text-align: center; border-radius: 0; }
.cta-final .h2 { max-width: 760px; margin: 0 auto; color: inherit; }
.cta-final .lead { color: color-mix(in srgb, var(--accent-ink) 84%, transparent); max-width: 560px; margin: 16px auto 0; }
.cta-final .btn-row { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* footer */
.foot { background: var(--navy-900); color: var(--on-dark); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a, .foot li { color: var(--on-dark-mut); font-size: 14px; }
.foot a:hover { color: var(--on-dark); }
.foot .brand { color: #fff; }
.foot .fdesc { color: var(--on-dark-mut); font-size: 14.5px; max-width: 300px; margin-top: 12px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-mut); }

/* hero copy length tweak */
body[data-hero="long"] .hero-long { display: block; }
body[data-hero="long"] .hero-tight { display: none; }
body[data-hero="tight"] .hero-long { display: none; }
body[data-hero="tight"] .hero-tight { display: block; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .step-row { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .motif { order: -1; }
  .gap-grid, .value-row, .fw-grid, .sol-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .path2 { grid-template-columns: 1fr; }
  .pchev { transform: rotate(90deg); justify-self: center; }
  .frac, .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .gap-grid, .value-row, .fw-grid, .sol-grid, .why-grid { grid-template-columns: 1fr; }
  .frac-stats { grid-template-columns: 1fr 1fr; }
}
