/* ============================================================
   Proton Scientific Consulting
   Palette derived from the PSC logo:
   deep royal purple/violet field, glowing orange-gold proton,
   white wordmark.
   ============================================================ */

:root {
  /* Brand */
  --purple-950: #150a2e;
  --purple-900: #1e0f42;
  --purple-800: #2b1560;
  --purple-700: #3d1f85;
  --purple-600: #522ba8;
  --purple-500: #6b3fd4;
  --purple-400: #8b64e8;
  --purple-300: #ad8ff2;
  --purple-200: #cfbcf8;
  --purple-100: #e9e0fd;

  --gold-600: #d97a06;
  --gold-500: #f59026;
  --gold-400: #ffa63d;
  --gold-300: #ffbe6b;

  /* Neutrals */
  --white: #ffffff;
  --ink-900: #14101f;
  --ink-700: #3a3450;
  --ink-500: #635c7d;
  --ink-300: #a49dbd;
  --ink-100: #e7e4f0;
  --ink-50:  #f6f5fa;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--ink-50);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --accent: var(--gold-500);
  --border: var(--ink-100);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(20, 16, 31, .07), 0 1px 2px rgba(20, 16, 31, .04);
  --shadow-md: 0 10px 30px -10px rgba(43, 21, 96, .18), 0 4px 12px -4px rgba(43, 21, 96, .1);
  --shadow-lg: 0 28px 60px -18px rgba(43, 21, 96, .32), 0 10px 24px -12px rgba(43, 21, 96, .2);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--purple-800);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------- Layout ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 660px;
  margin: 0 auto clamp(2.75rem, 5vw, 4rem);
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.075rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--purple-500);
  margin-bottom: .85rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.85rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #2a1500;
  box-shadow: 0 8px 22px -8px rgba(217, 122, 6, .65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(217, 122, 6, .8);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  border-color: rgba(255, 255, 255, .32);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease);
}

/* Reading progress — a gold thread across the top of the viewport. */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 5;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

/* Logo lockup: SVG mark + text wordmark.
   The mark inherits `color`, so re-tinting for a context is a one-line change. */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);            /* wordmark over the purple hero */
  transition: color .35s var(--ease);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--purple-300);       /* shells, nodes, molecular ring */
  transition: color .35s var(--ease), transform .45s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(20deg); }

.brand-word {
  display: flex;
  flex-direction: column;
  gap: .16em;
  line-height: 1;
}

.brand-word-name {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: currentColor;
}

.brand-word-sub {
  font-size: .565rem;
  font-weight: 600;
  letter-spacing: .175em;
  text-transform: uppercase;
  color: var(--purple-300);
  transition: color .35s var(--ease);
}

/* Scrolled header turns white — the mark and wordmark darken to match. */
.site-header.is-scrolled .brand { color: var(--ink-900); }
.site-header.is-scrolled .brand-mark { color: var(--purple-500); }
.site-header.is-scrolled .brand-word-sub { color: var(--purple-600); }

.brand-footer { color: var(--white); }
.brand-footer .brand-mark { color: var(--purple-400); }

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nav-menu a {
  display: inline-block;
  padding: .55rem .95rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: .94rem;
  color: rgba(255, 255, 255, .9);
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
.nav-menu a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }

.nav-menu a.is-active:not(.nav-cta) {
  color: var(--white);
  background: rgba(255, 255, 255, .14);
}

.site-header.is-scrolled .nav-menu a { color: var(--ink-700); }
.site-header.is-scrolled .nav-menu a:hover {
  color: var(--purple-700);
  background: var(--purple-100);
}
.site-header.is-scrolled .nav-menu a.is-active:not(.nav-cta) {
  color: var(--purple-700);
  background: var(--purple-100);
}

.nav-menu .nav-cta {
  margin-left: .6rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #2a1500;
  font-weight: 650;
  padding: .62rem 1.3rem;
  box-shadow: 0 6px 18px -8px rgba(217, 122, 6, .7);
}
.nav-menu .nav-cta:hover,
.site-header.is-scrolled .nav-menu .nav-cta,
.site-header.is-scrolled .nav-menu .nav-cta:hover {
  color: #2a1500;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink-900); }

.nav-toggle[aria-expanded="true"] span { background: var(--ink-900); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 92vh, 900px);
  padding-block: 9rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 15% 15%, var(--purple-700) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 85% 85%, var(--purple-600) 0%, transparent 55%),
    linear-gradient(150deg, var(--purple-950) 0%, var(--purple-800) 45%, var(--purple-900) 100%);
  color: var(--white);
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 22s ease-in-out infinite;
}
.orb-1 {
  width: 460px; height: 460px;
  top: -12%; right: -6%;
  background: radial-gradient(circle, var(--gold-500) 0%, transparent 68%);
  opacity: .34;
}
.orb-2 {
  width: 560px; height: 560px;
  bottom: -22%; left: -10%;
  background: radial-gradient(circle, var(--purple-400) 0%, transparent 68%);
  animation-delay: -11s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(28px, -34px) scale(1.08); }
}

/* Molecular network — nodes and bonds drifting behind the headline. */
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ambient brand mark — the atom slowly turning behind the headline. */
.hero-mark {
  position: absolute;
  top: 50%;
  right: -14%;
  width: min(58vw, 720px);
  height: min(58vw, 720px);
  margin-top: calc(min(58vw, 720px) / -2);
  color: var(--purple-400);
  opacity: .1;
  animation: hero-spin 150s linear infinite;
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
}

.hero-inner {
  max-width: 900px;
  text-align: center;
}

/* Staged entrance — each hero element rises in sequence on load.
   Scoped to .js so a script failure never hides the headline. */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.js .hero-inner > * { animation: rise .8s var(--ease) both; }
.js .hero-inner > .eyebrow       { animation-delay: .05s; }
.js .hero-inner > .hero-title    { animation-delay: .18s; }
.js .hero-inner > .hero-sub      { animation-delay: .34s; }
.js .hero-inner > .hero-actions  { animation-delay: .48s; }
.js .hero-inner > .hero-founder  { animation-delay: .62s; }

.hero .eyebrow { color: var(--gold-300); }

.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.04rem, 1.9vw, 1.22rem);
  color: var(--purple-200);
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 2.4rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.hero-founder {
  font-size: .93rem;
  color: var(--purple-300);
  letter-spacing: .01em;
}
.hero-founder strong { color: var(--white); font-weight: 600; }

/* ---------------- Stats ---------------- */
.stats {
  background: var(--purple-950);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(clamp(1.25rem, 3vw, 2.5rem) / -2);
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, .12);
}

.stat-num {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num-sm { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

.stat-label {
  font-size: .88rem;
  color: var(--purple-200);
  line-height: 1.45;
}
.stat-label em {
  display: inline-block;
  font-style: normal;
  font-size: .8rem;
  color: var(--ink-300);
}

/* ---------------- Credibility strip ---------------- */
.cred {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 1.9rem;
}

.cred-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem 2.25rem;
}

.cred-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-300);
  margin: 0;
}

.cred-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2.25rem;
}

.cred-list li {
  position: relative;
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--ink-500);
  white-space: nowrap;
}
.cred-list li + li::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ---------------- Cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  padding: 2.1rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 1.35rem;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: var(--gold-400);
  box-shadow: 0 8px 20px -8px rgba(61, 31, 133, .6);
  transition: transform .35s var(--ease);
}
.card:hover .card-icon { transform: scale(1.07) rotate(-4deg); }
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.2rem;
  margin-bottom: .7rem;
  letter-spacing: -0.018em;
}

.card > p {
  color: var(--text-muted);
  font-size: .96rem;
  margin-bottom: 1.2rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}
.card-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .88rem;
  color: var(--ink-700);
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(245, 144, 38, .18);
}

/* ---------------- Approach ---------------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.approach-item {
  position: relative;
  padding: 2rem 1.6rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.approach-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.approach-num {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: .9rem;
  background: linear-gradient(135deg, var(--purple-300), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.approach-item h3 {
  font-size: 1.08rem;
  margin-bottom: .6rem;
}
.approach-item p {
  font-size: .92rem;
  color: var(--text-muted);
}

/* ---------------- Engagement band ---------------- */
.engage {
  background: var(--purple-950);
  color: var(--white);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-block: 1px solid rgba(255, 255, 255, .07);
}

.engage-head { margin-bottom: clamp(2.25rem, 4vw, 3rem); }
.engage .eyebrow { color: var(--gold-300); }
.engage .section-title {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.engage-item {
  padding-top: 1.4rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-500) 0 42px, rgba(255, 255, 255, .14) 42px) 1;
}

.engage-item h3 {
  font-size: 1.08rem;
  margin-bottom: .55rem;
  color: var(--white);
}

.engage-item p {
  font-size: .93rem;
  color: var(--purple-200);
  line-height: 1.65;
}

@media (max-width: 780px) {
  .engage-grid { grid-template-columns: 1fr; gap: 1.9rem; }
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-intro .section-title { margin-bottom: .3rem; }

.about-person {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

/* The name shares its row with the portrait — scale it to fit on one line. */
.about-person .section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
}

.about-photo-ring {
  flex-shrink: 0;
  display: inline-flex;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--gold-500));
  box-shadow: var(--shadow-md);
}

.about-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
}

.about-role {
  color: var(--gold-600);
  font-weight: 600;
  font-size: 1.02rem;
  margin-top: .4rem;
}

@media (max-width: 520px) {
  .about-person { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

.about-intro p { color: var(--text-muted); }
.about-intro strong { color: var(--text); font-weight: 600; }

.about-edu {
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-edu h4 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--purple-600);
  margin-bottom: .85rem;
}
.about-edu ul { display: flex; flex-direction: column; gap: .6rem; }
.about-edu li {
  font-size: .89rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.about-edu strong { color: var(--text); }

/* Timeline */
.timeline-title {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--purple-600);
  margin-bottom: 1.75rem;
  font-weight: 700;
}

.timeline {
  position: relative;
  padding-left: 1.9rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: .45rem;
  bottom: .45rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--purple-400) 35%, var(--border));
}

/* The career line draws itself as the reader scrolls through it (JS sets --tl-draw). */
.js .timeline::before {
  transform: scaleY(var(--tl-draw, 0));
  transform-origin: top;
}

@media (prefers-reduced-motion: reduce) {
  .js .timeline::before { transform: none; }
}

.timeline-item {
  position: relative;
  padding-bottom: 1.85rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -1.9rem;
  top: .5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--purple-300);
}
.is-current .timeline-dot {
  background: var(--gold-500);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(245, 144, 38, .2);
}

.timeline-date {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: .3rem;
}
.is-current .timeline-date { color: var(--gold-600); }

.timeline-item h4 {
  font-size: 1.02rem;
  margin-bottom: .2rem;
}

.timeline-org {
  font-size: .88rem;
  font-weight: 600;
  color: var(--purple-600);
  margin-bottom: .35rem;
}

.timeline-desc {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------------- Contact ---------------- */
.section-contact {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, var(--purple-700) 0%, transparent 62%),
    linear-gradient(160deg, var(--purple-950), var(--purple-800));
  color: var(--white);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.section-contact .eyebrow { color: var(--gold-300); }
.section-contact .section-title { margin-bottom: 1rem; }
.contact-intro > p { color: var(--purple-200); }

.contact-points {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  margin: 2rem 0;
}
.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: .93rem;
  color: var(--purple-100);
}
.contact-points svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .18rem;
  color: var(--gold-400);
}

.contact-process {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius);
}

.contact-process h3 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--gold-300);
  margin-bottom: 1rem;
}

.contact-process ol {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.contact-process li {
  counter-increment: step;
  position: relative;
  padding-left: 2.3rem;
  font-size: .92rem;
  color: var(--purple-200);
  line-height: 1.55;
}
.contact-process li strong { color: var(--white); }

.contact-process li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  color: #2a1500;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

.contact-direct {
  font-size: .93rem;
  color: var(--purple-200);
  margin-bottom: 1.6rem;
}
.contact-direct a {
  color: var(--gold-400);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 166, 61, .35);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  overflow-wrap: anywhere;
}
.contact-direct a:hover {
  color: var(--gold-300);
  border-bottom-color: var(--gold-300);
}

.contact-location {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .88rem;
  color: var(--purple-300);
  line-height: 1.7;
}
.contact-location strong { color: var(--white); }

/* Form */
.contact-form-wrap {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--purple-100);
  margin-bottom: .45rem;
}
.req { color: var(--gold-400); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem 1rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--white);
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  transition: border-color .22s var(--ease), background-color .22s var(--ease),
              box-shadow .22s var(--ease);
}

.field textarea { resize: vertical; min-height: 118px; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .38); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, .3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 4px rgba(245, 144, 38, .16);
}

.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfbcf8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}
.field select option { background: var(--purple-900); color: var(--white); }

.field.has-error input,
.field.has-error textarea {
  border-color: #ff8a8a;
  background: rgba(255, 100, 100, .08);
}

.error {
  margin: .4rem 0 0;
  font-size: .8rem;
  color: #ffb3b3;
  min-height: 0;
}

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

#submitBtn { margin-top: .4rem; position: relative; }
#submitBtn[disabled] { opacity: .7; cursor: not-allowed; transform: none; }

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(42, 21, 0, .3);
  border-top-color: #2a1500;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-sending .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin: 1rem 0 0;
  font-size: .89rem;
  padding: 0;
  border-radius: 8px;
  text-align: center;
}
.form-status.is-success {
  padding: .85rem 1rem;
  background: rgba(72, 220, 140, .14);
  border: 1px solid rgba(72, 220, 140, .4);
  color: #9df0c2;
}
.form-status.is-error {
  padding: .85rem 1rem;
  background: rgba(255, 100, 100, .12);
  border: 1px solid rgba(255, 130, 130, .4);
  color: #ffb3b3;
}

.form-fineprint {
  margin: 1rem 0 0;
  font-size: .76rem;
  color: var(--ink-300);
  text-align: center;
  line-height: 1.5;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--purple-950);
  color: var(--purple-200);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.footer-inner {
  display: grid;
  /* Last column carries a 38-character email — it needs the room. */
  grid-template-columns: 1.5fr .8fr 1.3fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding-bottom: 2.75rem;
}

.footer-brand .brand { margin-bottom: 1.15rem; }

.footer-tag {
  font-size: .89rem;
  color: var(--ink-300);
  max-width: 330px;
  line-height: 1.65;
}

.site-footer h4 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: .6rem; }

.footer-nav a,
.footer-link {
  font-size: .89rem;
  text-decoration: none;
  color: var(--purple-200);
  transition: color .2s var(--ease);
}
.footer-nav a:hover, .footer-link:hover { color: var(--gold-400); }

.footer-contact p {
  font-size: .89rem;
  margin-bottom: .35rem;
  color: var(--purple-200);
}
.footer-mail {
  display: inline-block;
  font-size: .84rem;
  color: var(--purple-100);
  text-decoration: none;
  /* Break only if it truly can't fit, and never mid-word before then. */
  overflow-wrap: break-word;
  transition: color .2s var(--ease);
}
.footer-mail:hover { color: var(--gold-400); }
.footer-link {
  display: inline-block;
  margin-top: .7rem;
  font-weight: 600;
  color: var(--gold-400);
}

.footer-bottom {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--ink-300);
  text-align: center;
}
.footer-legal-link { color: var(--purple-200); text-decoration: none; }
.footer-legal-link:hover { color: var(--gold-400); }

.form-fineprint a { color: var(--purple-200); }

/* ---------------- Reveal animation ----------------
   Scoped to .js so content stays visible if JavaScript
   never runs — the reveal is an enhancement, not a gate. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(2)::after { display: none; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1.1rem var(--gutter) 1.6rem;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease),
                visibility .28s var(--ease);
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a,
  .site-header.is-scrolled .nav-menu a {
    color: var(--ink-900);
    padding: .85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-menu .nav-cta { margin: .5rem 0 0; text-align: center; }

  .hero { min-height: auto; padding-block: 8rem 4.5rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .stat:not(:last-child)::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .card { padding: 1.75rem 1.5rem; }
}

/* ---------------- Motion & print ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-bg, .nav, .contact-form-wrap { display: none; }
  body { color: #000; background: #fff; }
  .hero, .stats, .section-contact, .site-footer {
    background: #fff !important;
    color: #000 !important;
  }
}
