/* GlobusLearn redesign
   Palette: shared Prepzy and Global R-Hub tokens (indigo #3D348B, deep #241D52, amber #FFAA3E, cream #FFF8ED).
   Shape rule: panels 24px, inner blocks 14px, inputs 12px, every interactive control is a pill. */

:root {
  --bg: #fff8ed;
  --bg-2: #fbf3e4;
  --surface: #ffffff;
  --ink: #1e1839;
  --ink-2: #4a4560;
  --ink-3: #686480;
  --line: rgba(30, 24, 57, 0.1);
  --line-strong: rgba(30, 24, 57, 0.2);
  --indigo: #3d348b;
  --indigo-text: #3d348b;
  --indigo-deep: #241d52;
  --indigo-soft: #edeafb;
  --amber: #ffaa3e;
  --amber-hover: #ffb95e;
  --amber-text: #b45309;
  --on-amber: #241d52;
  --danger: #c4453d;
  --shadow: 0 1px 2px rgba(36, 29, 82, 0.06), 0 24px 48px -24px rgba(36, 29, 82, 0.28);

  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-panel: 24px;
  --r-inner: 14px;
  --r-input: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;

  --z-progress: 20;
  --z-sticky: 10;
  --z-toast: 40;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120f29;
    --bg-2: #171334;
    --surface: #1d1940;
    --ink: #f4f2ff;
    --ink-2: #c9c5e6;
    --ink-3: #a29dc6;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.22);
    --indigo-text: #a9a1f5;
    --indigo-soft: #2a2459;
    --amber-text: #ffb95e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120f29;
  --bg-2: #171334;
  --surface: #1d1940;
  --ink: #f4f2ff;
  --ink-2: #c9c5e6;
  --ink-3: #a29dc6;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --indigo-text: #a9a1f5;
  --indigo-soft: #2a2459;
  --amber-text: #ffb95e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color 300ms, color 300ms;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--font-display); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: var(--z-toast); }
.skip:focus { top: 12px; }

.h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.sub { margin-top: 14px; max-width: 58ch; color: var(--ink-2); font-size: 1.1rem; }

/* Scroll progress (CSS scroll-driven, ignored where unsupported) */
.progress { position: fixed; inset: 0 0 auto; height: 3px; background: var(--amber); transform-origin: left; transform: scaleX(0); z-index: var(--z-progress); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 6px 6px 22px;
  border: 1px solid transparent; border-radius: 999px; white-space: nowrap;
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 200ms var(--ease), background-color 160ms, border-color 160ms, color 160ms;
}
.btn:active { transform: scale(0.98); }
.btn__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1.05rem; transition: transform 300ms var(--ease); }
.btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.06); }
.btn--brand { background: var(--amber); color: var(--on-amber); }
.btn--brand:hover { background: var(--amber-hover); }
.btn--brand .btn__icon { background: var(--indigo-deep); color: #fff; }
.btn--light { background: #fff; color: var(--indigo-deep); }
.btn--light:hover { background: #f2f0fd; }
.btn--light .btn__icon { background: var(--indigo-deep); color: #fff; }
.btn--ghost { padding-inline: 22px; border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }
.btn--lg { min-height: 56px; font-size: 1.02rem; }
.btn--lg.btn--ghost { padding-inline: 26px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.2rem; cursor: pointer; text-decoration: none;
  transition: transform 200ms var(--ease), border-color 160ms;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.icon-btn--light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; }

.link-btn {
  background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; color: var(--indigo-text);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.link-btn:hover { text-decoration-color: currentColor; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__logo { margin-right: auto; }
.nav__logo img { width: 150px; height: auto; }
.logo--dark { display: none; }
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--light { display: none; }
  :root:not([data-theme="light"]) .logo--dark { display: block; }
}
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); padding: 10px 0; transition: color 120ms; }
.nav__menu a:not(.btn):hover { color: var(--ink); }
.nav__tools { display: flex; gap: 8px; }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
  min-height: min(calc(100dvh - 72px), 780px); padding-block: 48px 72px;
}
.kicker { display: inline-flex; font-size: 0.85rem; font-weight: 600; color: var(--amber-text); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; padding-bottom: 6px; }
.hero h1 em { font-style: normal; color: var(--indigo-text); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.14em; border-radius: 99px;
  background: var(--amber); transform-origin: left; animation: underline 900ms var(--ease) 400ms both; z-index: -1;
}
@keyframes underline { from { transform: scaleX(0); } }
.lead { margin-top: 24px; max-width: 44ch; font-size: 1.2rem; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__copy > * { animation: rise 800ms var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 70ms; }
.hero__copy > :nth-child(3) { animation-delay: 140ms; }
.hero__copy > :nth-child(4) { animation-delay: 210ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Hero bento: exactly three cells */
.bento { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: min(560px, 62vh); min-height: 440px; animation: rise 900ms var(--ease) 120ms both; }
.bento__photo { grid-row: span 2; margin: 0; border-radius: var(--r-panel); overflow: hidden; position: relative; }
.bento__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; transform: scale(1.04); transition: transform 1200ms var(--ease); }
.bento__photo:hover img { transform: scale(1.08); }
.bento__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); pointer-events: none; }
.bento__tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 24px; border-radius: var(--r-panel); color: #fff; text-decoration: none;
  transition: transform 400ms var(--ease);
}
.bento__tile:hover { transform: translateY(-3px); }
.bento__tile--rhub {
  background-color: var(--indigo);
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bento__tile--prepzy {
  background-color: var(--indigo-deep);
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.5px);
  background-size: 16px 16px;
}
/* Faint subject or research icons; they light up and lift on hover */
.tile__motifs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tile__motifs i { position: absolute; font-size: 2.4rem; color: rgba(255, 255, 255, 0.14); transition: color 300ms, transform 500ms var(--ease); }
.tile__motifs i:nth-child(1) { right: 26%; top: 24%; }
.tile__motifs i:nth-child(2) { right: 7%; top: 34%; font-size: 2.9rem; }
.tile__motifs i:nth-child(3) { right: 42%; top: 36%; font-size: 2rem; }
.tile__motifs i:nth-child(4) { right: 24%; top: 44%; font-size: 1.9rem; }
.tile__motifs i:nth-child(5) { right: 56%; top: 26%; font-size: 1.7rem; }
.bento__tile:hover .tile__motifs i { color: rgba(255, 170, 62, 0.55); transform: translateY(-6px) rotate(-6deg); }
.bento__tile:hover .tile__motifs i:nth-child(even) { transform: translateY(-3px) rotate(6deg); transition-delay: 60ms; }
.tile__body { display: grid; gap: 10px; }
.tile__facts { font-size: 0.82rem; line-height: 1.4; color: #dcd8f5; opacity: 0; transform: translateY(6px); transition: opacity 250ms, transform 350ms var(--ease); }
.bento__tile:hover .tile__facts, .bento__tile:focus-visible .tile__facts { opacity: 1; transform: none; }
@media (hover: none) { .tile__facts { opacity: 1; transform: none; } }
.bento__tile img { align-self: flex-start; width: auto; height: 30px; }
.bento__tile--rhub img { height: 24px; }
.bento__text { font: 600 1.2rem/1.25 var(--font-display); letter-spacing: -0.01em; max-width: 18ch; }
.bento__go {
  position: absolute; right: 18px; top: 18px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--on-amber); font-size: 1.1rem;
  transition: transform 300ms var(--ease);
}
.bento__tile:hover .bento__go { transform: rotate(45deg) scale(1.08); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.marquee li i { color: var(--indigo-text); font-size: 1.15rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* What we do: four cards in a staggered grid */
.what { padding-block: 120px; }
.what__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.wcard {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 32px;
  border-radius: var(--r-panel); transition: transform 350ms var(--ease);
}
.wcard:nth-child(1), .wcard:nth-child(4) { grid-column: span 3; }
.wcard:nth-child(2), .wcard:nth-child(3) { grid-column: span 2; }
.wcard:hover { transform: translateY(-4px); }
.wcard__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 16px; font-size: 1.6rem; transition: transform 350ms var(--ease); }
.wcard:hover .wcard__icon { transform: rotate(-8deg) scale(1.06); }
.wcard h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.wcard p { max-width: 46ch; }
.wcard__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; min-height: 44px; font-weight: 600; text-decoration: none; }
.wcard__link i { transition: transform 250ms var(--ease); }
.wcard__link:hover i { transform: translateX(4px); }
.wcard--rhub {
  color: #fff; background-color: var(--indigo);
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wcard--prepzy {
  color: #fff; background-color: var(--indigo-deep);
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.5px); background-size: 16px 16px;
}
.wcard--rhub p, .wcard--prepzy p { color: #dcd8f5; }
.wcard--rhub .wcard__icon, .wcard--prepzy .wcard__icon { background: rgba(255, 255, 255, 0.12); color: var(--amber); }
.wcard--plain { background: var(--surface); border: 1px solid var(--line); }
.wcard--plain p, .wcard--amber p { color: var(--ink-2); }
.wcard--plain .wcard__icon { background: var(--indigo-soft); color: var(--indigo-text); }
.wcard--amber { background: color-mix(in srgb, var(--amber) 20%, var(--surface)); }
.wcard--amber .wcard__icon { background: var(--amber); color: var(--on-amber); }

/* Prepzy */
.prepzy { padding-block: 24px 120px; }
.prepzy__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.prepzy__logo { height: 52px; width: auto; margin: 0 0 24px -4px; }
.feature-list { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: center; color: var(--ink-2); }
.feature-list i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-text); font-size: 1.2rem; }

/* Three real app screens, overlapped into one composition */
.phones { margin: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; padding-top: 12px; }
.phone { position: relative; padding: 7px; border-radius: 34px; background: #15122e; box-shadow: var(--shadow); transition: transform 600ms var(--ease); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 27px; }
.phone--left { z-index: 1; transform: translateX(16%) rotate(-5deg) scale(0.9); }
.phone--right { z-index: 1; transform: translateX(-16%) rotate(5deg) scale(0.9); }
.phone--center { z-index: 2; transform: translateY(-10px); }
.phones:hover .phone--left { transform: translateX(8%) rotate(-7deg) scale(0.9); }
.phones:hover .phone--right { transform: translateX(-8%) rotate(7deg) scale(0.9); }
.phones:hover .phone--center { transform: translateY(-16px); }
.phones figcaption { grid-column: 1 / -1; margin-top: 24px; text-align: center; font-size: 0.85rem; color: var(--ink-3); }

/* Global R-Hub: full-width band */
.rhub { background: var(--indigo); color: #fff; padding-block: 112px 104px; margin-bottom: 120px; }
.rhub__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
.rhub__logo { height: 32px; width: auto; margin-bottom: 28px; }
.rhub .sub { color: #dcd8f5; }
.rhub__who { margin: 20px 0 36px; max-width: 54ch; color: #c9c4ee; font-size: 0.98rem; }
.rhub__photo { margin: 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; }
.rhub__photo img { width: 100%; height: 100%; object-fit: cover; }

.process { margin-top: 88px; }
.process__title { margin-bottom: 32px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; view-timeline-name: --steps; }
.timeline li { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 28px; }
.timeline li::before, .timeline li::after { content: ""; position: absolute; top: 0; left: 0; right: -28px; height: 2px; }
.timeline li:last-child::before, .timeline li:last-child::after { right: 0; }
.timeline li::before { background: rgba(255, 255, 255, 0.2); }
.timeline li::after { background: var(--amber); transform-origin: left; }
.timeline__n { font-weight: 600; font-size: 0.9rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.timeline h4 { margin: 0; font: 600 1.15rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.timeline p { color: #dcd8f5; font-size: 0.96rem; }
@supports (animation-timeline: view()) {
  .timeline li::after { animation: line-x linear both; animation-timeline: --steps; animation-range: cover calc(28% + var(--i) * 7%) cover calc(35% + var(--i) * 7%); }
  .timeline li > * { animation: step-on linear both; animation-timeline: --steps; animation-range: cover calc(26% + var(--i) * 7%) cover calc(32% + var(--i) * 7%); }
  @keyframes line-x { from { transform: scaleX(0); } }
  @keyframes step-on { from { opacity: 0.35; } }
}

/* Mission: full-width band */
.mission {
  display: grid; align-items: center; min-height: min(100dvh, 820px); padding-block: 120px;
  background: var(--indigo-deep); color: #fff; view-timeline-name: --mission;
}
.mission__text { font: 600 clamp(2rem, 4.4vw, 3.8rem)/1.18 var(--font-display); letter-spacing: -0.03em; max-width: 24ch; }
@supports (animation-timeline: view()) {
  .mission__text .w { color: rgba(255, 255, 255, 0.2); animation: word-lit linear both; animation-timeline: --mission; animation-range: cover var(--a) cover var(--b); }
  @keyframes word-lit { to { color: #fff; } }
}

/* Team strips */
.team { padding-block: 120px; }
.strips { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 14px; height: 440px; }
.strip {
  position: relative; flex: 1; min-width: 0; border-radius: var(--r-panel); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: flex-grow 700ms var(--ease), background-color 300ms;
}
.strip.is-open { flex: 2.4; background: var(--indigo-soft); border-color: transparent; }
.strip__face {
  display: grid; justify-items: start; align-content: start; gap: 6px; width: 100%; padding: 28px 28px 0;
  border: 0; background: none; cursor: pointer; text-align: left;
}
.strip__face img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 600ms var(--ease); }
.strip.is-open .strip__face img { transform: scale(1.12); transform-origin: left top; }
.strip__name { font: 600 1.4rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.strip__role { font-size: 0.92rem; font-weight: 600; color: var(--amber-text); }
.strip__more { padding: 14px 28px 24px; display: grid; gap: 10px; align-content: start; opacity: 0; visibility: hidden; transition: opacity 300ms; max-width: 60ch; }
.strip.is-open .strip__more { opacity: 1; visibility: visible; transition-delay: 250ms; }
.strip__more p { color: var(--ink-2); }
.strip__more .link-btn { justify-self: start; }
.strip__creds { font-size: 0.9rem; color: var(--ink-3) !important; }

/* FAQ */
.faq { padding-bottom: 120px; }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 18px;
  list-style: none; cursor: pointer; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 300ms var(--ease), background-color 200ms; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 62ch; }
.faq details[open] p { animation: rise 400ms var(--ease) both; }

/* Contact */
.contact { padding-bottom: 120px; }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact__list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: 0.88rem; color: var(--ink-3); }
.contact__list dd { margin: 0; overflow-wrap: anywhere; }
.contact__list a { color: var(--indigo-text); font-weight: 600; text-underline-offset: 4px; }

.form { display: grid; gap: 28px; padding: 40px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.form__roles { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__roles legend { margin-bottom: 12px; font-size: 0.88rem; font-weight: 500; color: var(--ink-3); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); transition: background-color 150ms, color 150ms; }
.segmented label:hover span { color: var(--ink); }
.segmented input:checked + span { background: var(--indigo); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; padding: 10px 0; min-height: 48px; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 1.1rem; resize: vertical;
  transition: border-color 150ms;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--indigo-text); }
.field [aria-invalid="true"] { border-bottom-color: var(--danger); }
.field__error { font-size: 0.88rem; color: var(--danger); }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 4px; }
.form__note { font-size: 0.88rem; color: var(--ink-3); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 999px; background: var(--indigo-deep); color: #fff; font-weight: 500; box-shadow: var(--shadow);
  transform: translate(-50%, 140%); opacity: 0; transition: transform 500ms var(--ease), opacity 300ms; pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Footer */
.footer { background: var(--indigo-deep); color: #cfcbea; padding-block: 72px 32px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; }
.footer__line { font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.15 var(--font-display); letter-spacing: -0.03em; color: #fff; max-width: 22ch; }
.footer__brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 36px; border-block: 1px solid rgba(255, 255, 255, 0.1); }
.brand img { height: 28px; width: auto; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); text-decoration: none; font-size: 1.2rem; transition: background-color 150ms, color 150ms; }
.socials a:hover { background: var(--amber); color: var(--on-amber); }
.footer__base { padding-top: 24px; font-size: 0.88rem; }

/* Bio dialog */
.bio { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 0; border-radius: var(--r-panel); padding: 32px; color: var(--ink); background: var(--surface); }
.bio::backdrop { background: rgba(18, 15, 41, 0.6); backdrop-filter: blur(4px); }
.bio[open] { animation: pop 380ms var(--ease); }
.bio__head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 12px; }
.bio__head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.bio__head h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.bio__head p { font-size: 0.92rem; color: var(--amber-text); font-weight: 600; }
.bio > p { color: var(--ink-2); margin-top: 14px; }
.bio__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.bio__foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--indigo-text); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

/* Responsive */
@media (max-width: 1080px) {
  .nav__menu { gap: 20px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 40px; }
  .bento { height: 460px; }
  .contact__grid, .faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .rhub__grid { grid-template-columns: 1fr; gap: 48px; }
  .prepzy__grid { grid-template-columns: 1fr; gap: 48px; }
  .phones { max-width: 560px; margin-inline: auto; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline li::before, .timeline li::after { right: 0; }
  .rhub__photo { aspect-ratio: 16 / 10; max-height: none; }
}

@media (max-width: 860px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; justify-content: center; }
}

@media (max-width: 767px) {
  .wrap { padding-inline: 16px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .lead { font-size: 1.08rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px auto; height: auto; min-height: 0; }
  .bento__photo { grid-row: auto; grid-column: 1 / -1; }
  .bento__tile { min-height: 180px; padding: 18px; }
  .bento__text { font-size: 1rem; }
  .bento__tile img { height: 24px; }
  .bento__tile--rhub img { height: 18px; }
  .tile__facts { display: none; }
  .tile__motifs { display: none; }
  .phone { padding: 4px; border-radius: 22px; }
  .phone img { border-radius: 18px; }
  .what { padding-block: 80px; }
  .what__grid { grid-template-columns: 1fr; gap: 12px; }
  .wcard:nth-child(n) { grid-column: auto; }
  .wcard { min-height: 0; padding: 24px; }
  .wcard__icon { margin-bottom: 12px; }
  .prepzy { padding-bottom: 80px; }
  .rhub { padding-block: 72px; margin-bottom: 80px; }
  .process { margin-top: 56px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 28px 32px; }
  .timeline li::before, .timeline li::after { top: 6px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before, .timeline li:last-child::after { bottom: 20px; right: auto; }
  .timeline li::after { transform-origin: top; animation-name: line-y; }
  @keyframes line-y { from { transform: scaleY(0); } }
  .mission { min-height: 0; padding-block: 96px; }
  .team { padding-block: 80px; }
  .faq, .contact { padding-bottom: 80px; }
  .strips { flex-direction: column; height: auto; }
  .strip, .strip.is-open { flex: none; }
  .strip:not(.is-open) .strip__more { display: none; }
  .strip__face { grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .strip__face img { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .strip.is-open .strip__face img { transform: none; }
  .strip__name { font-size: 1.15rem; align-self: end; }
  .strip__role { align-self: start; }
  .strip__more { padding: 0 20px 20px; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .segmented { border-radius: 20px; }
  .form__foot .btn { width: 100%; justify-content: space-between; }
  .footer__top { align-items: flex-start; }
  .footer__brands { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
  .mission__text .w { animation: none !important; color: #fff !important; }
}
