/* Self-hosted Inter and Manrope (latin), from Google Fonts, SIL Open Font License */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-0.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-0.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-0.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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-1.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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/manrope-1.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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/manrope-1.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: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/manrope-1.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;
}

/* John Ouma Otieno, portfolio. Tokens documented in DESIGN.md */
:root {
  --paper: #F6F2EA;
  --paper-2: #EEE7DA;
  --ink: #172033;
  --ink-2: #4C5466;
  --line: #D8CEBD;
  --accent: #B93E0B;
  --on-accent: #FFFFFF;
  --navy: #172033;
  --cream: #F6F2EA;
  --orange: #F0884A;
  --head: "Manrope", Arial, system-ui, sans-serif;
  --sans: "Inter", Calibri, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #10141C; --paper-2: #161B25; --ink: #ECE6DA; --ink-2: #A9AEB9;
  --line: #2B3140; --accent: #F0884A; --on-accent: #1A0E06; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 300; border-radius: 4px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; color: var(--ink); background: transparent;
  position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 120%; background: var(--accent); border-radius: 50% 50% 0 0; transform: translateY(105%); transition: transform .45s var(--ease), border-radius .45s var(--ease); z-index: -1; }
.btn:hover { color: var(--on-accent); border-color: var(--accent); }
.btn:hover::before { transform: translateY(-10%); border-radius: 0; }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { color: var(--on-accent); }
.round {
  width: clamp(150px, 15vw, 190px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--cream); font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  position: relative; overflow: hidden; isolation: isolate; flex: none;
}
.round::before { content: ""; position: absolute; inset: 0; background: var(--accent); border-radius: 50%; transform: translateY(102%); transition: transform .5s var(--ease); z-index: -1; }
.round:hover { color: #fff; }
.round:hover::before { transform: translateY(0); }
:root[data-theme="dark"] .round { background: var(--orange); color: #1A0E06; }

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 50%; color: inherit; cursor: pointer; }
.icon-btn:hover { border-color: currentColor; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }


/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 60; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px var(--gutter); max-width: none; }
.brand { display: inline-flex; gap: 6px; font: 600 15px/1 var(--sans); text-decoration: none; }
.brand .roll { display: inline-block; height: 1.1em; overflow: hidden; }
.brand .roll span { display: block; transition: transform .45s var(--ease); line-height: 1.1em; }
.brand:hover .roll span { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { display: flex; gap: 30px; }
.nav a { position: relative; font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav a:hover { color: inherit; }
.menu-open-btn { display: none; background: none; border: 0; font: 500 15px/1 var(--sans); color: inherit; cursor: pointer; padding: 10px 0; }
@media (max-width: 760px) { .nav ul { display: none; } .menu-open-btn { display: inline-flex; align-items: center; gap: 8px; } }
.menu-open-btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Floating round menu button (appears after scrolling) */
.fab {
  position: fixed; top: 22px; right: 22px; z-index: 90; width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--cream); display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease), background .3s;
}
.fab.show, body.menu-open .fab { transform: scale(1); }
.fab span, .fab span::before { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); position: relative; }
.fab span { transform: translateY(-4px); }
.fab span::before { content: ""; position: absolute; left: 0; top: 8px; }
body.menu-open .fab { background: var(--accent); }
body.menu-open .fab span { transform: translateY(0) rotate(45deg); }
body.menu-open .fab span::before { transform: translateY(-8px) rotate(-90deg); }
:root[data-theme="dark"] .fab { background: var(--orange); color: #1A0E06; }


/* Slide-in menu panel */
.menu-backdrop { position: fixed; inset: 0; background: rgba(10, 13, 20, .45); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); z-index: 70; }
.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 80; background: var(--navy); color: var(--cream);
  transform: translateX(105%); transition: transform .65s var(--ease); display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px clamp(28px, 6vw, 72px) 44px; overflow-y: auto; visibility: hidden;
}
body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
body.menu-open .menu-panel { transform: translateX(0); visibility: visible; }
.menu-panel .menu-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #A9AEB9; padding-bottom: 18px; border-bottom: 1px solid rgba(246, 242, 234, .18); margin-bottom: 22px; }
.menu-panel ul a { display: block; font: 600 clamp(40px, 7vw, 56px)/1.25 var(--head); letter-spacing: -0.03em; text-decoration: none; color: var(--cream); transition: transform .35s var(--ease), color .2s; }
.menu-panel ul a:hover, .menu-panel ul a:focus-visible { color: var(--orange); transform: translateX(10px); }
.menu-panel ul a[aria-current="page"]::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-right: 16px; vertical-align: middle; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 48px; font-size: 14px; }
.menu-foot a { color: var(--cream); text-decoration: none; }
.menu-foot a:hover { color: var(--orange); }
.menu-foot .icon-btn { color: var(--cream); width: 40px; height: 40px; }

/* Page transition curtain */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--navy); color: var(--cream); display: grid; place-items: center; pointer-events: none; transform: translateY(-100%); }
.curtain p { font: 600 clamp(28px, 4vw, 44px)/1 var(--head); margin: 0; display: flex; align-items: center; gap: 14px; }
.curtain p::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.curtain.in { animation: curtainIn .55s var(--ease) forwards; }
.curtain.out { animation: curtainOut .7s var(--ease) forwards; }
@keyframes curtainIn { from { transform: translateY(100%); border-radius: 50% 50% 0 0 / 12% 12% 0 0; } to { transform: translateY(0); border-radius: 0; } }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 12% 12%; } }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 250; background: var(--navy); color: var(--cream); display: grid; place-items: center; transition: transform .8s var(--ease) .1s; }
.preloader p { font: 600 clamp(36px, 5vw, 56px)/1 var(--head); margin: 0; display: flex; align-items: center; gap: 16px; }
.preloader p::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.preloader small { position: absolute; bottom: 36px; font-size: 13px; color: #A9AEB9; }
.preloader.done { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 14% 14%; }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--paper-2); }
.hero-photo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 88%; width: auto; aspect-ratio: 934 / 1400; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--paper-2) 30%, transparent), transparent 30%); }
.located { position: absolute; left: 0; top: 40%; display: flex; align-items: center; gap: 22px; background: var(--navy); color: var(--cream); padding: 18px 18px 18px var(--gutter); border-radius: 0 999px 999px 0; font-size: 14px; line-height: 1.25; z-index: 3; }
.located .globe { width: 58px; height: 58px; border-radius: 50%; background: rgba(246, 242, 234, .14); display: grid; place-items: center; }
.located .globe svg { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-role { position: absolute; right: var(--gutter); top: 36%; z-index: 3; font: 500 clamp(20px, 2vw, 28px)/1.3 var(--head); letter-spacing: -0.015em; max-width: 13em; }
.hero-role .arrow { display: block; margin-bottom: 26px; width: 20px; }
.marquee-name { position: absolute; left: 0; right: 0; bottom: 6vh; z-index: 2; overflow: hidden; pointer-events: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font: 700 clamp(84px, 14vw, 230px)/1 var(--head); letter-spacing: -0.045em; white-space: nowrap; padding-right: .35em; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .hero { min-height: 92svh; }
  .hero-photo { height: 74%; }
  .located { top: 18%; font-size: 13px; padding-top: 12px; padding-bottom: 12px; }
  .located .globe { width: 44px; height: 44px; }
  .hero-role { top: auto; bottom: calc(6vh + 120px); right: auto; left: var(--gutter); font-size: 19px; background: color-mix(in srgb, var(--paper) 86%, transparent); padding: 10px 14px; border-radius: 10px; }
  .hero-role .arrow { display: none; }
  .marquee-track span { font-size: 26vw; }
}

/* ---------- Sections ---------- */
.sec { padding: var(--section) 0; }
.tint { background: var(--paper-2); }
.eyebrow { font-size: 13px; color: var(--ink-2); margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.h-xl { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; }
.h-lg { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.h-md { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }

/* Intro statement (home) */
.intro { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro .h-md { max-width: 22ch; }
.intro-side p { color: var(--ink-2); max-width: 36ch; }
.intro-side .round { margin-top: 36px; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* Ledger of results */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ledger li { padding: 28px 24px 8px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.ledger li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.ledger b { display: block; font: 700 clamp(34px, 3.6vw, 52px)/1 var(--head); color: var(--ink); letter-spacing: -0.04em; margin-bottom: 10px; }
@media (max-width: 820px) { .ledger { grid-template-columns: 1fr 1fr; } .ledger li:nth-child(3) { padding-left: 0; border-left: 0; } .ledger li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Big subject rows (Votrix-style) */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 80px); }
.split-side p { color: var(--ink-2); max-width: 34ch; }
.split-side .btn { margin-top: 18px; }
.big-rows li { padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.big-rows li:first-child { border-top: 1px solid var(--line); }
.big-rows h3 { font-size: clamp(36px, 5.6vw, 78px); line-height: .98; font-weight: 800; letter-spacing: -0.05em; text-transform: uppercase; transition: color .3s, transform .45s var(--ease); }
.big-rows p { margin: 10px 0 0; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.big-rows li:hover h3 { color: var(--accent); transform: translateX(12px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Work list with cursor preview (Dennis-style) */
.work-head { display: grid; grid-template-columns: 1.6fr 1fr 90px; gap: 20px; font-size: 13px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.work-rows li { border-bottom: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 1.6fr 1fr 90px; gap: 20px; align-items: center; padding: clamp(26px, 3.6vw, 46px) 0; text-decoration: none; color: inherit; transition: opacity .3s, padding .45s var(--ease); }
.work-row h3 { font-size: clamp(26px, 3.8vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; transition: transform .45s var(--ease); }
.work-row .type, .work-row .yr { font-size: 15px; color: var(--ink-2); }
.work-row .yr { text-align: right; }
.work-rows:hover .work-row { opacity: .4; }
.work-rows .work-row:hover, .work-rows .work-row:focus-visible { opacity: 1; }
.work-row:hover h3 { transform: translateX(-10px); }
.work-row .desc { grid-column: 1 / -1; font-size: 15.5px; color: var(--ink-2); max-width: 70ch; margin: 0; }
@media (max-width: 700px) {
  .work-head { display: none; }
  .work-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .work-row .type { grid-column: 1; grid-row: 2; }
  .work-row .yr { grid-column: 2; grid-row: 1; }
}
.preview { position: fixed; left: 0; top: 0; z-index: 55; width: 320px; height: 240px; pointer-events: none; border-radius: 6px; overflow: hidden; transform: translate(-50%, -50%) scale(0); transition: transform .35s var(--ease); }
.preview.on { transform: translate(-50%, -50%) scale(1); }
.preview-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; transition: transform .45s var(--ease); }
.preview-inner b { font: 800 64px/0.95 var(--head); letter-spacing: -0.05em; }
.preview-inner small { font-size: 13px; opacity: .85; }
.tone-navy { background: var(--navy); color: var(--cream); }
.tone-orange { background: #B93E0B; color: #FFF4EC; }
.tone-sand { background: #D9C9AE; color: #172033; }
.tone-cream { background: #F6F2EA; color: #172033; border: 1px solid #D8CEBD; }
.preview-cursor { position: fixed; left: 0; top: 0; z-index: 56; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; pointer-events: none; transform: translate(-50%, -50%) scale(0); transition: transform .3s var(--ease); }
.preview-cursor.on { transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (pointer: coarse) { .preview, .preview-cursor { display: none; } }
.center-cta { display: flex; justify-content: center; margin-top: 56px; }

/* Photo strip marquee (Votrix-style) */
.photo-strip { overflow: hidden; padding: 0 0 var(--section); }
.photo-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.photo-strip:hover .photo-track { animation-play-state: paused; }
.photo-track figure { width: clamp(240px, 26vw, 380px); flex: none; }
.photo-track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 6px; }

/* Centered quote (Jessica-style) */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 26ch; font: 500 clamp(28px, 3.6vw, 48px)/1.25 var(--head); letter-spacing: -0.03em; }
.quote-band .who { margin-top: 30px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.quote-band .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-band .who strong { color: var(--ink); font-size: 15px; }

/* ---------- Sub-page hero ---------- */
.page-hero { padding: clamp(150px, 18vw, 220px) 0 clamp(60px, 8vw, 110px); }
.page-hero .h-xl { max-width: 15ch; }
.page-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.page-hero .arrow-down { width: 26px; margin-bottom: 20px; }
.page-hero hr { border: 0; border-top: 1px solid var(--line); margin: clamp(40px, 6vw, 72px) 0 0; position: relative; }
.hr-wrap { position: relative; }
.hr-wrap .round { position: absolute; right: 8%; top: 0; transform: translateY(-50%); }
@media (max-width: 760px) { .hr-wrap .round { position: static; transform: none; margin-top: 32px; } }

/* About page: photo + text */
.about-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-cols .lead { font: 500 clamp(20px, 2vw, 26px)/1.45 var(--head); letter-spacing: -0.015em; }
.about-cols img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 6px; }
@media (max-width: 820px) { .about-cols { grid-template-columns: 1fr; } }

/* A note from John (Dr Deb-style) */
.note { max-width: 760px; margin: 0 auto; background: color-mix(in srgb, var(--orange) 18%, var(--paper)); border-radius: 18px; padding: clamp(28px, 5vw, 56px); }
.note h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.note .sub { font: 500 18px/1.4 var(--head); color: var(--ink-2); margin: 6px 0 24px; }
.note .sign { margin-top: 26px; font: 600 18px/1.4 var(--head); }
.note .sign span { display: block; font: 400 15px/1.5 var(--sans); color: var(--ink-2); }

/* Principles */
.principles li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); align-items: start; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .n { font-size: 14px; color: var(--ink-2); padding-top: 8px; }
.principles h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
.principles p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .principles li { grid-template-columns: 1fr; gap: 8px; } }

/* Observations table */
.obs li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.obs li:first-child { border-top: 1px solid var(--ink); }
.obs b { font: 800 30px/1 var(--head); letter-spacing: -0.03em; }
.obs li:last-child b { color: var(--accent); }

/* Timeline */
.timeline > li { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.when { font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 6px; margin: 0; }
.timeline h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.02em; }
.where { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
.timeline p.what { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 820px) { .timeline > li { grid-template-columns: 1fr; gap: 6px; } }
.photo-row { display: grid; grid-template-columns: 1.2fr 1.4fr 0.8fr; gap: 16px; margin-top: 48px; }
.photo-row img { width: 100%; height: clamp(220px, 26vw, 360px); object-fit: cover; object-position: 50% 22%; border-radius: 6px; }
@media (max-width: 700px) { .photo-row { grid-template-columns: 1fr; } }

/* Qualifications */
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.col-title { font-size: 15px; font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.qual-list > div, .cert-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qual-list { margin: 0; }
.qual-list dt { font: 700 17px/1.35 var(--head); }
.qual-list dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.cert-list li { font-size: 15.5px; }
.cert-list a { font-weight: 500; }
.cert-list small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
@media (max-width: 900px) { .qual-grid { grid-template-columns: 1fr; } }

/* Work page filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: transparent; color: var(--ink); font: 500 14.5px/1 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.work-rows li[hidden] { display: none; }

/* Subjects table */
.table-wrap { overflow-x: auto; }
.subjects { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.subjects thead th { text-align: left; font: 500 13px/1.4 var(--sans); color: var(--ink-2); padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.subjects tbody th { text-align: left; font: 700 17px/1.35 var(--head); padding: 18px 16px 18px 0; vertical-align: top; width: 24%; border-bottom: 1px solid var(--line); }
.subjects td { padding: 18px 16px 18px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.subjects td:last-child { color: var(--ink-2); padding-right: 0; }
@media (max-width: 640px) {
  .subjects thead { display: none; }
  .subjects tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .subjects tbody th, .subjects td { display: block; width: auto; padding: 0; border: 0; }
}

/* Ventures */
.venture { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.venture img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 6px; }
.services li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font: 600 clamp(19px, 1.8vw, 23px)/1.3 var(--head); letter-spacing: -0.015em; }
.services li:first-child { border-top: 1px solid var(--line); }
.services li span { font: 400 14px/1.6 var(--sans); color: var(--ink-2); text-align: right; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.tint .card { background: var(--paper); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 820px) { .venture, .cards3 { grid-template-columns: 1fr; } .venture figure { max-width: 380px; } }

/* Contact page form (Dennis-style numbered questions) */
.contact-page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 110px); }
.qform .q { display: grid; grid-template-columns: 50px 1fr; gap: 6px 14px; padding: 30px 0; border-top: 1px solid var(--line); }
.qform .q:last-of-type { border-bottom: 1px solid var(--line); }
.qform .num { font-size: 13px; color: var(--ink-2); padding-top: 6px; }
.qform label { font: 600 clamp(20px, 2vw, 26px)/1.3 var(--head); letter-spacing: -0.02em; }
.qform input, .qform textarea { grid-column: 2; width: 100%; border: 0; background: transparent; color: var(--ink); font: 400 18px/1.5 var(--sans); padding: 8px 0; resize: vertical; }
.qform input::placeholder, .qform textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 75%, transparent); }
.qform input:focus, .qform textarea:focus { outline: none; }
.qform .q:focus-within { border-top-color: var(--accent); }
.qform .q:focus-within label { color: var(--accent); }
.form-actions { display: flex; justify-content: flex-end; margin-top: -40px; position: relative; }
.form-actions .round { border: 0; cursor: pointer; font: 600 16px/1.2 var(--sans); }
.form-note { font-size: 14px; color: var(--ink-2); margin-top: 24px; max-width: 44ch; }
.details h3 { font-size: 13px; font-weight: 500; color: var(--ink-2); font-family: var(--sans); letter-spacing: 0; margin: 0 0 10px; }
.details ul { margin-bottom: 34px; }
.details li { padding: 3px 0; font-size: 16px; }
.details .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 34px; }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } .form-actions { margin-top: 24px; justify-content: flex-start; } }
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.offer li { padding: 22px 0; border-top: 1px solid var(--line); }
.offer h3 { margin-bottom: 6px; font-size: 19px; }
.offer p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .offer { grid-template-columns: 1fr; } }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.paper li { padding: 9px 0 9px 22px; position: relative; font-size: 15.5px; border-bottom: 1px dashed var(--line); }
.paper li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Footer CTA (every page) ---------- */
.footer-cta { background: var(--navy); color: var(--cream); padding: clamp(90px, 12vw, 160px) 0 0; overflow: hidden; }
:root[data-theme="dark"] .footer-cta { background: #080B10; }

.cta-title { margin: 0; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); font: 600 clamp(44px, 7vw, 112px)/1 var(--head); letter-spacing: -0.045em; color: var(--cream); }
.cta-title img { width: clamp(64px, 7vw, 110px); height: clamp(64px, 7vw, 110px); border-radius: 50%; object-fit: cover; flex: none; }
.cta-title-2 { margin: 0; font: 600 clamp(44px, 7vw, 112px)/1 var(--head); letter-spacing: -0.045em; color: var(--cream); margin-top: .08em; }
.cta-rule { position: relative; border-top: 1px solid rgba(246, 242, 234, .2); margin: clamp(56px, 7vw, 90px) 0 0; }
.ring { position: absolute; right: 10%; top: 0; transform: translateY(-50%); width: clamp(170px, 16vw, 210px); aspect-ratio: 1; }
.ring a { position: absolute; inset: 18%; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-decoration: none; font: 600 15px/1.2 var(--sans); text-align: center; transition: background .3s; }
.ring a:hover { background: var(--orange); color: #1A0E06; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.ring text { font: 600 10.5px var(--sans); letter-spacing: 2.4px; text-transform: uppercase; fill: #F6F2EA; }
.cta-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.cta-pills .btn { color: var(--cream); border-color: rgba(246, 242, 234, .35); min-height: 64px; padding: 0 30px; font-size: 16px; }
.cta-pills .btn:hover { color: #fff; border-color: var(--accent); }
.footer-bar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; padding: clamp(70px, 9vw, 120px) 0 30px; font-size: 14px; }
.footer-bar h4 { margin: 0 0 8px; font: 500 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8E94A3; }
.footer-bar .group { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-bar ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bar a { color: var(--cream); text-decoration: none; position: relative; }
.footer-bar a:hover { color: var(--orange); }
.footer-cta :focus-visible { outline-color: var(--orange); }
@media (max-width: 760px) {
  .ring { position: relative; right: auto; transform: none; margin: -40px 0 0 auto; display: block; }
  .cta-rule { margin-top: 72px; }
}

/* ---------- v3.1 additions ---------- */
/* Stats as pill buttons */
.stat-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(56px, 7vw, 96px); }
.btn.stat { min-height: 0; padding: 12px 26px 12px 12px; gap: 14px; white-space: normal; text-align: left; font-weight: 500; }
.btn.stat b { display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 12px; border-radius: 999px; background: var(--paper-2); font: 800 26px/1 var(--head); letter-spacing: -0.04em; color: var(--ink); transition: background .35s var(--ease), color .35s var(--ease); }
.btn.stat span { font-size: 15px; line-height: 1.35; max-width: 18ch; }
.btn.stat:hover b { background: rgba(255, 255, 255, .18); color: var(--on-accent); }
@media (max-width: 560px) { .stat-pills li { width: 100%; } .btn.stat { width: 100%; justify-content: flex-start; } .btn.stat span { max-width: none; } }

/* CV snapshot */
.cv-rows li { display: grid; grid-template-columns: 130px minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cv-rows li:first-child { border-top: 1px solid var(--ink); }
.cv-yr { font-size: 14px; font-weight: 600; color: var(--accent); }
.cv-role { font: 700 clamp(18px, 1.7vw, 22px)/1.3 var(--head); letter-spacing: -0.02em; }
.cv-org { font-size: 15px; color: var(--ink-2); }
@media (max-width: 700px) { .cv-rows li { grid-template-columns: 1fr; gap: 2px; } }

/* Floating side buttons: WhatsApp + back to top */
.side-actions { position: fixed; right: 22px; bottom: 22px; z-index: 65; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.side-actions.show { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open .side-actions { opacity: 0; pointer-events: none; }
.side-btn { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; background: var(--paper); color: var(--ink); border: 1px solid var(--line); transition: background .3s, color .3s, transform .3s var(--ease); }
.side-btn:hover { transform: translateY(-3px); color: var(--ink); }
.side-wa { background: #1F8F55; color: #fff; border-color: #1F8F55; }
.side-wa:hover { background: #17733F; color: #fff; }
.side-top:hover { background: var(--ink); color: var(--paper); }
.side-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; background: var(--navy); color: var(--cream); font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.side-btn:hover .side-tip, .side-btn:focus-visible .side-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 560px) { .side-actions { right: 14px; bottom: 14px; } .side-btn { width: 48px; height: 48px; } }

/* Hero role that follows the cursor (laptops) */
.hero.follow .hero-role { transition: none; pointer-events: none; will-change: transform; }
.hero.follow .hero-role { z-index: 6; background: var(--navy); color: var(--cream); padding: 12px 18px; border-radius: 14px; font-size: 17px; line-height: 1.3; box-shadow: 0 10px 30px rgba(23, 32, 51, .18); }
.hero.follow .hero-role .arrow { display: none; }
.hero-role { transition: background .3s, color .3s, padding .3s; }
.stat-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-pills .btn.stat { width: 100%; height: 100%; justify-content: flex-start; }
@media (max-width: 1100px) { .stat-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-pills { grid-template-columns: 1fr; } }
.btn.stat b { flex: none; font-size: 22px; height: 72px; min-width: 72px; padding: 0 16px; }
.btn.stat { gap: 12px; padding-right: 20px; }

/* ---------- v4 additions ---------- */
.intro .eyebrow { margin-bottom: 18px; }
/* Tools marquee */
.tools { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 0; }
.tools-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.tools-track span { font: 600 clamp(20px, 2.2vw, 30px)/1 var(--head); letter-spacing: -0.02em; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.tools-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tools:hover .tools-track { animation-play-state: paused; }
/* FAQ */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 600 clamp(18px, 1.7vw, 22px)/1.3 var(--head); letter-spacing: -0.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 400 22px/1 var(--sans); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { color: var(--ink-2); margin: 0 0 24px; max-width: 62ch; }

/* Header theme button (light is the default; dark only on request) */
.header-theme { width: 40px; height: 40px; }
@media (max-width: 760px) { .nav { gap: 14px; } }

/* ---------- v4.2 fixes ---------- */
/* Keep the round button's hover layer inside the circle on phones */
@media (max-width: 760px) { .hr-wrap .round { position: relative; right: auto; top: auto; } }
/* Phone header: solid and sticky across every page */
@media (max-width: 760px) {
  .site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 96%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .header-row { padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 16px; }
  .fab { display: none; }
  .hero { min-height: calc(92svh - 65px); }
  .page-hero { padding-top: clamp(56px, 14vw, 90px); }
}
.menu-close { display: none; position: absolute; top: 14px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246, 242, 234, .3); background: transparent; color: var(--cream); cursor: pointer; place-items: center; }
.menu-close:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) { .menu-close { display: grid; } .menu-panel { padding-top: 90px; } }

/* ======================= v5 ======================= */
/* Links: no underlines; a sweep of colour on hover instead */
a { text-decoration: none; }
.tlink, .prose a, .muted a, .cert-list a, .details a, .contact-list a, .faq-item p a, .who a, .note a, .form-note a, .small-note a, .side-note a {
  color: var(--ink); font-weight: 600; text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 35%, transparent));
  background-size: 0% 2px, 100% 2px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--ease), color .25s;
}
.tlink:hover, .prose a:hover, .muted a:hover, .cert-list a:hover, .details a:hover, .contact-list a:hover, .faq-item p a:hover, .who a:hover, .note a:hover, .form-note a:hover, .small-note a:hover, .side-note a:hover,
.tlink:focus-visible, .details a:focus-visible, .cert-list a:focus-visible { color: var(--accent); background-size: 100% 2px, 100% 2px; }
.footer-bar a, .menu-foot a { display: inline-block; transition: color .25s, transform .3s var(--ease); }
.footer-bar a:hover, .menu-foot a:hover { transform: translateY(-2px); }
.footer-bar a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer-bar a:hover::before { transform: scaleX(1); transform-origin: left; }
.nav a::before { content: none; }

/* Hover cards that fill with navy (Recognition, Ventures, For schools) */
.fill-card { position: relative; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease), color .35s; }
.fill-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .5s var(--ease); }
.fill-card:hover, .fill-card:focus-within { transform: translateY(-6px); border-color: var(--navy); box-shadow: 0 18px 40px rgba(23, 32, 51, .16); color: var(--cream); }
.fill-card:hover::before, .fill-card:focus-within::before { transform: translateY(0); }
.fill-card:hover h3, .fill-card:focus-within h3 { color: var(--cream); }
.fill-card:hover p, .fill-card:hover .eyebrow, .fill-card:focus-within p { color: #C9CDD6; }
.fill-card:hover .eyebrow::before { background: var(--orange); }
:root[data-theme="dark"] .fill-card::before { background: #F0884A; }
:root[data-theme="dark"] .fill-card:hover, :root[data-theme="dark"] .fill-card:hover h3 { color: #1A0E06; }
:root[data-theme="dark"] .fill-card:hover p, :root[data-theme="dark"] .fill-card:hover .eyebrow { color: #3B2414; }
@media (hover: none) { .fill-card:hover { transform: none; } }

/* Journey: photos walk alongside the story */
.timeline > li.t-photo { display: block; padding: 6px 0 34px 184px; border-top: 0; }
.t-photo figure { max-width: 620px; }
.t-photo img { width: 100%; border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 25%; }
.t-photo.tall img { aspect-ratio: 4 / 3; object-position: 50% 15%; }
@media (max-width: 820px) { .timeline > li.t-photo { padding-left: 0; } }

/* Generic slider (testimonials, gallery, ventures photos) */
.slider { position: relative; }
.slider-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { height: 6px; }
.slider-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.slider-track > * { scroll-snap-align: start; flex: none; }
.slider-controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.slider-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.slider-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slider-btn:active { transform: scale(.94); }
.slider-btn[disabled] { opacity: .35; cursor: default; background: transparent; color: var(--ink); }
.slider-count { font-size: 14px; color: var(--ink-2); margin-left: 6px; min-width: 4em; }

/* Gallery slides */
.gallery .slide { width: clamp(260px, 32vw, 420px); }
.gallery .slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 10px; transition: transform .6s var(--ease); }
.gallery .slide.wide { width: clamp(300px, 46vw, 620px); }
.gallery .slide.wide img { aspect-ratio: 3 / 2; }
.gallery .slide figure { overflow: hidden; border-radius: 10px; }
.gallery .slide:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 14px; margin-top: 10px; }

/* Testimonials */
.testimonials { background: var(--navy); color: var(--cream); padding: var(--section) 0; overflow: hidden; }
:root[data-theme="dark"] .testimonials { background: #080B10; }
.testimonials .eyebrow { color: #A9AEB9; }
.testimonials h2 { color: var(--cream); }
.t-slide { width: min(760px, 86vw); background: rgba(246, 242, 234, .06); border: 1px solid rgba(246, 242, 234, .14); border-radius: 18px; padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.t-slide blockquote { margin: 0; font: 500 clamp(21px, 2.3vw, 30px)/1.4 var(--head); letter-spacing: -0.02em; color: var(--cream); }
.t-slide blockquote::before { content: "“"; display: block; font: 800 72px/0.6 var(--head); color: var(--orange); margin-bottom: 18px; }
.t-who { display: flex; align-items: center; gap: 14px; }
.t-badge { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #1A0E06; display: grid; place-items: center; font: 800 15px/1 var(--head); flex: none; }
.t-who strong { display: block; color: var(--cream); font-size: 15.5px; }
.t-who span { font-size: 14px; color: #A9AEB9; }
.testimonials .slider-track { scrollbar-color: rgba(246,242,234,.2) transparent; }
.testimonials .slider-btn { color: var(--cream); border-color: rgba(246, 242, 234, .35); }
.testimonials .slider-btn:hover { background: var(--orange); border-color: var(--orange); color: #1A0E06; }
.testimonials .slider-btn[disabled] { background: transparent; color: var(--cream); }
.testimonials .slider-count { color: #A9AEB9; }
.t-note { font-size: 13.5px; color: #8E94A3; margin-top: 22px; max-width: 70ch; }

/* For schools: responsive cards */
.offer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.offer-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.offer-card .ic { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 20%, var(--paper)); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; transition: background .35s, color .35s, transform .45s var(--ease); }
.offer-card:hover .ic { background: var(--orange); color: #1A0E06; transform: rotate(-8deg) scale(1.06); }
.offer-card h3 { font-size: 19px; }
.offer-card p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.offer-card .n { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.offer-card:hover .n { color: var(--orange); }
.ready { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; background: var(--navy); color: var(--cream); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.ready h3 { color: var(--cream); font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.ready ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ready li { font-size: 14.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(246, 242, 234, .25); }
.ready .btn { color: var(--cream); border-color: rgba(246, 242, 234, .4); }
:root[data-theme="dark"] .ready { background: #080B10; }
@media (max-width: 760px) { .ready { grid-template-columns: 1fr; } }

/* Contact form states */
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-size: 15.5px; display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, #1F8F55 14%, var(--paper)); border: 1px solid #1F8F55; }
.form-status.err { display: block; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); border: 1px solid var(--accent); }
.qform .req { color: var(--accent); }
.qform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform button[disabled] { opacity: .6; cursor: progress; }
.qform .q.invalid { border-top-color: var(--accent); }
.qform .q.invalid label { color: var(--accent); }

/* Simple pages (thanks / 404) */
.simple { min-height: 70svh; display: grid; align-content: center; padding: 140px 0 90px; }
.simple .h-xl { max-width: 14ch; }
.simple .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* At-a-glance facts (About) */
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 30px 0 0; border-top: 1px solid var(--line); }
.glance > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.glance dt { font-size: 13px; color: var(--ink-2); }
.glance dd { margin: 2px 0 0; font-weight: 500; font-size: 15.5px; }
@media (max-width: 520px) { .glance { grid-template-columns: 1fr; } }
ul.cards3 { list-style: none; }
.card.fill-card { cursor: default; }

/* Cookie consent */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 120; width: min(420px, calc(100% - 40px)); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; box-shadow: 0 24px 60px rgba(23, 32, 51, .22); animation: cookieIn .6s var(--ease) both; }
.cookie[hidden] { display: none; }
.cookie-h { font: 700 18px/1.3 var(--head); margin: 0 0 6px; }
.cookie p { font-size: 14.5px; color: var(--ink-2); }
.cookie a { color: var(--ink); font-weight: 600; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; } }

/* Assistant bot */
.bot { position: fixed; left: 20px; bottom: 20px; z-index: 110; }
body.cookie-open .bot { display: none; }
.bot-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--navy); color: var(--cream); font: 600 15px/1 var(--sans); cursor: pointer; box-shadow: 0 12px 30px rgba(23, 32, 51, .25); transition: transform .3s var(--ease), background .3s; }
.bot-launch:hover { transform: translateY(-2px); background: var(--accent); }
.bot-dot { width: 10px; height: 10px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.bot.open .bot-launch { display: none; }
.bot-panel { width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100svh - 120px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px rgba(23, 32, 51, .28); overflow: hidden; animation: cookieIn .45s var(--ease) both; }
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--navy); color: var(--cream); }
.bot-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.bot-head strong { display: block; font-size: 15px; }
.bot-head span { font-size: 12.5px; color: #A9AEB9; }
.bot-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(246, 242, 234, .3); background: transparent; color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; }
.bot-close:hover { background: var(--accent); border-color: var(--accent); }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--navy); color: var(--cream); border-bottom-right-radius: 4px; }
.msg.bot-msg { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.msg a { font-weight: 600; color: var(--accent); }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.bot-chips button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.bot-chips button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bot-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.bot-form input { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 16px; font: 400 15px var(--sans); }
.bot-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bot-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 560px) { .bot { left: 12px; bottom: 12px; } .bot-launch span:last-child { display: none; } .bot-launch { padding: 0 16px; } .bot-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(78svh, 600px); } }

/* Print: a clean, paper-friendly version for recruiters */
@media print {
  .site-header, .fab, .menu-panel, .menu-backdrop, .curtain, .preloader, .side-actions, .cookie, .bot, .marquee-name, .tools, .photo-strip, .slider-controls, .ring, .cta-pills, .form-actions, .qform, .located, .gallery, .testimonials .slider-controls { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { min-height: 0; } .hero-photo { position: static; transform: none; height: auto; width: 40%; }
  .sec, .page-hero { padding: 18pt 0; } .tint, .testimonials, .footer-cta { background: #fff !important; color: #000 !important; }
  .testimonials h2, .t-slide blockquote, .cta-title, .cta-title-2, .t-who strong { color: #000 !important; }
  .slider-track { display: block; overflow: visible; } .t-slide { width: auto; border: 1px solid #ccc; margin-bottom: 10pt; break-inside: avoid; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  h2, h3 { break-after: avoid; } li, figure { break-inside: avoid; }
}
.two-col > *, .split > *, .contact-page > *, .about-cols > *, .venture > * { min-width: 0; }
@media (max-width: 420px) { .obs li { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; font-size: 14.5px; } .obs b { font-size: 24px; } }
.bot-launch { border: 1px solid rgba(246, 242, 234, .28); }
.bot-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.bot-chips button { flex: none; }
.bot-head span { white-space: nowrap; }
.curtain { visibility: hidden; }
.curtain.in, .curtain.out { visibility: visible; }
.t-who { margin: 0; }
.t-who .t-badge { color: #1A0E06; }
.foot-label { margin: 0 0 8px; font: 500 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8E94A3; }
.details .d-label { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.preloader { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.preloader.done { opacity: 0; }
/* Keep the footer clear of the floating buttons on phones */
@media (max-width: 760px) { .footer-bar { padding-bottom: 96px; } }
/* Assistant button: orange everywhere */
.bot-launch { background: var(--accent); color: #fff; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 12px 30px rgba(185, 62, 11, .35); }
.bot-launch:hover { background: var(--navy); color: var(--cream); }
.bot-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation-name: pulseW; }
@keyframes pulseW { 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
:root[data-theme="dark"] .bot-launch { background: #F0884A; color: #1A0E06; border-color: rgba(26, 14, 6, .5); }
:root[data-theme="dark"] .bot-launch .bot-dot { background: #1A0E06; }
@media (max-width: 560px) {
  .bot-launch { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .bot-launch::after { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v10H9l-5 4z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v10H9l-5 4z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .bot-launch .bot-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; background: #3DDC84; border: 2px solid #fff; }
  .bot-launch { position: relative; }
}
@media (max-width: 560px) { :root[data-theme="dark"] .bot-launch .bot-dot { background: #3DDC84; border-color: #1A0E06; } }
