/* ============ KEULOGIS SHARED STYLES ============ */

/* ---- Themes: soft, neutral, with character ---- */
:root, [data-theme="honey"] {
  --bg: #FAF6EF;
  --bg-alt: #F3ECDD;
  --surface: #FEFBF5;
  --ink: #3B342A;
  --ink-soft: #7B7060;
  --accent: #C99A5B;
  --accent-deep: #A2773D;
  --accent-tint: #F4E7D0;
  --line: #E9DFC9;
}
[data-theme="sage"] {
  --bg: #F7F6F2; --bg-alt: #EFEEE7; --surface: #FDFCFA;
  --ink: #33372F; --ink-soft: #6B7064;
  --accent: #7C8B72; --accent-deep: #5C6B54; --accent-tint: #E4E8DF; --line: #DDDCD2;
}
[data-theme="sand"] {
  --bg: #F9F5F0; --bg-alt: #F1EAE1; --surface: #FEFCF9;
  --ink: #3D352E; --ink-soft: #7A6F63;
  --accent: #B98A6E; --accent-deep: #97694F; --accent-tint: #F0E3D8; --line: #E5DBCE;
}
[data-theme="mist"] {
  --bg: #F4F5F7; --bg-alt: #EAECF0; --surface: #FBFCFD;
  --ink: #2F353D; --ink-soft: #68707C;
  --accent: #7E93A8; --accent-deep: #5A7188; --accent-tint: #E1E8EE; --line: #D9DEE5;
}
[data-theme="oat"] {
  --bg: #F8F5F1; --bg-alt: #EFEAE3; --surface: #FDFBF8;
  --ink: #38322C; --ink-soft: #75695C;
  --accent: #8A7361; --accent-deep: #6B5747; --accent-tint: #EBE2D8; --line: #E2D9CD;
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.65; font-size: 16.5px;
  transition: background .5s ease, color .5s ease;
  overflow-x: hidden;
}
h1, h2, h3, .serif { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: #000000; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); transition: background .5s ease; }
.kicker {
  display: inline-block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #000000; font-weight: 600; margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.section-intro { color: var(--ink-soft); max-width: 640px; margin-bottom: 48px; }

/* ---- Animations ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-25px) scale(1.06); }
  66% { transform: translate(-20px,20px) scale(.96); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes pulseRing {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.4); opacity: 0; }
}

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

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .5s ease;
  overflow: visible;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 240px; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.logo { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo span { color: #000000; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 16px; font-weight: 500;
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.themes { display: flex; gap: 8px; margin-left: 10px; }
.swatch {
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.swatch:hover { transform: scale(1.25); }
.swatch.active { box-shadow: 0 0 0 2px var(--accent-deep); }
.swatch-honey { background: linear-gradient(135deg, #FAF6EF 50%, #C99A5B 50%); }
.swatch-sage { background: linear-gradient(135deg, #F7F6F2 50%, #7C8B72 50%); }
.swatch-sand { background: linear-gradient(135deg, #F9F5F0 50%, #B98A6E 50%); }
.swatch-mist { background: linear-gradient(135deg, #F4F5F7 50%, #7E93A8 50%); }
.swatch-oat  { background: linear-gradient(135deg, #F8F5F1 50%, #8A7361 50%); }

.hamburger { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--ink); }

/* ---- Hero (home, photo background) ---- */
.hero {
  min-height: 92vh; display: flex; align-items: center; position: relative;
  padding: 270px 0 80px; overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: kenburns 22s ease-out both alternate infinite;
  will-change: transform, background-position;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--bg) 72%, transparent) 30%, color-mix(in srgb, var(--bg) 35%, transparent) 60%, color-mix(in srgb, var(--bg) 10%, transparent));
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none;
  background: var(--accent-tint); transition: background .5s ease;
}
.blob-1 { width: 480px; height: 480px; top: -120px; right: -100px; animation: floatBlob 14s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; bottom: -140px; left: -120px; animation: floatBlob 18s ease-in-out infinite reverse; background: color-mix(in srgb, var(--accent) 25%, var(--bg)); }
.hero-content { position: relative; max-width: 720px; will-change: transform, opacity; }
.hero h1 { font-size: clamp(36px, 5.6vw, 58px); margin-bottom: 22px; animation: fadeUp .8s ease both .1s; }
.hero h1 em { font-style: italic; color: #000000; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin-bottom: 34px; animation: fadeUp .8s ease both .25s; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  animation: fadeUp .7s ease both; transition: border-color .3s, transform .3s, color .3s;
}
.chip:nth-child(1) { animation-delay: .4s; } .chip:nth-child(2) { animation-delay: .5s; }
.chip:nth-child(3) { animation-delay: .6s; } .chip:nth-child(4) { animation-delay: .7s; }
.chip:hover { border-color: var(--accent); color: #000000; transform: translateY(-2px); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .8s ease both .55s; }

/* ---- Interior page hero ---- */
.page-hero { padding: 270px 0 70px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 16px; animation: fadeUp .8s ease both .1s; max-width: 700px; }
.page-hero p { font-size: 18px; color: var(--ink-soft); max-width: 580px; animation: fadeUp .8s ease both .25s; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: transform .25s ease, box-shadow .25s ease, background .3s;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  position: relative; overflow: hidden;
}
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0); opacity: .55;
  background: rgba(255,255,255,.6); pointer-events: none;
  animation: rippleEffect .6s ease-out;
}
.btn-ghost .ripple { background: color-mix(in srgb, var(--accent) 35%, transparent); }
@keyframes rippleEffect { to { transform: scale(4); opacity: 0; } }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: #000000; transform: translateY(-2px); }

/* ---- Accountability banner ---- */
.accountability-banner {
  background: linear-gradient(120deg, var(--accent-tint), var(--bg-alt) 50%, var(--accent-tint));
  background-size: 200% 100%;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0;
  animation: bannerShine 10s ease-in-out infinite;
  transition: background-color .5s ease, border-color .5s ease;
}
@keyframes bannerShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.banner-inner { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; flex-wrap: wrap; }
.banner-inner .banner-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: var(--surface); border: 1.5px solid var(--accent);
  color: #000000; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.banner-inner .banner-icon::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--accent); animation: pulseRing 2.6s ease-out infinite;
}
.banner-inner p { font-size: 15.5px; color: var(--ink); max-width: 640px; margin: 0; }
.banner-inner strong { color: #000000; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat .num { font-family: 'Fraunces', serif; font-size: 40px; color: #000000; font-weight: 600; }
.stat .label { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---- Cards ---- */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }

/* Specialties grid: 3 top, 2 bottom centered */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}
.specialties-grid .card:nth-child(4),
.specialties-grid .card:nth-child(5) {
  width: 100%;
}
.specialties-grid:has(.card:nth-child(4):last-child) { /* 4 cards fallback */ }
@supports (grid-template-columns: subgrid) {}
/* Row 2: center the last 2 cards */
.specialties-grid .card:nth-child(4) { grid-column: 1; }
.specialties-grid .card:nth-child(5) { grid-column: 2; }
/* Override to start the pair in col 1 of a 3-col grid — shift them to cols 1-2, centered */
.specialties-grid {
  grid-template-columns: repeat(6, 1fr);
}
.specialties-grid .card:nth-child(1) { grid-column: 1 / 3; }
.specialties-grid .card:nth-child(2) { grid-column: 3 / 5; }
.specialties-grid .card:nth-child(3) { grid-column: 5 / 7; }
.specialties-grid .card:nth-child(4) { grid-column: 2 / 4; }
.specialties-grid .card:nth-child(5) { grid-column: 4 / 6; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s;
  width: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.14); border-color: var(--accent); }
.card .icon {
  width: 50px; height: 50px; border-radius: 13px; background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 18px;
  transition: background .4s, transform .35s;
}
.card:hover .icon { transform: scale(1.1) rotate(-4deg); }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); font-weight: 500; }

/* ---- Audience CTA split (home) ---- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cta-card {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
}
.cta-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px -20px rgba(0,0,0,.2); }
.cta-card .photo {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .6s ease; background-color: var(--accent-tint);
}
.cta-card:hover .photo { transform: scale(1.06); }
.cta-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(25,20,12,.72), rgba(25,20,12,.05) 60%); }
.cta-card .body { position: relative; padding: 28px; color: #fff; }
.cta-card .body h3 { font-size: 24px; margin-bottom: 6px; color: #fff; }
.cta-card .body p { font-size: 14.5px; opacity: .9; margin-bottom: 12px; }
.cta-card .body .go { font-weight: 600; font-size: 14.5px; letter-spacing: .02em; }
.cta-card .body .go::after { content: ' →'; transition: margin-left .3s; }
.cta-card:hover .body .go::after { margin-left: 6px; }

/* ---- How It Works ---- */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.tracks.single { grid-template-columns: 1fr; max-width: 640px; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; }
.track h3 { font-size: 22px; margin-bottom: 6px; }
.track .sub { font-size: 14px; color: #000000; font-weight: 600; margin-bottom: 24px; }
.step { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint);
  color: #000000; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.step p { font-size: 14.5px; color: var(--ink-soft); }
.step strong { color: var(--ink); display: block; font-size: 15px; }

/* ---- Why ---- */
.why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.why-item {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; transition: transform .3s, border-color .3s;
}
.why-item:hover { transform: translateX(6px); border-color: var(--accent); }
.why-item .check { color: #000000; font-size: 18px; flex-shrink: 0; }
.why-item p { font-size: 14.5px; color: var(--ink-soft); }
.why-item strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---- California map ---- */
.map-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ca-map { width: 100%; max-width: 420px; margin: 0 auto; display: block; }
.ca-map .outline {
  fill: var(--surface); stroke: var(--accent-deep); stroke-width: 2.5;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  transition: stroke-dashoffset 2.6s ease .2s;
}
.ca-map.visible .outline { stroke-dashoffset: 0; }
.ca-map .route-line {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 8; stroke-dashoffset: 440; opacity: 0;
  transition: stroke-dashoffset 1.6s ease, opacity .4s ease;
}
.ca-map.visible .route-line { stroke-dashoffset: 0; opacity: .55; transition-delay: 2.4s; }
.map-dot { opacity: 0; transition: opacity .5s ease; }
.ca-map.visible .map-dot { opacity: 1; }
.ca-map.visible .map-dot:nth-of-type(2) { transition-delay: 1.2s; }
.ca-map.visible .map-dot:nth-of-type(3) { transition-delay: 1.45s; }
.ca-map.visible .map-dot:nth-of-type(4) { transition-delay: 1.7s; }
.ca-map.visible .map-dot:nth-of-type(5) { transition-delay: 1.95s; }
.ca-map.visible .map-dot:nth-of-type(6) { transition-delay: 2.2s; }
.map-dot .core { fill: var(--accent-deep); }
.map-dot .ring {
  fill: none; stroke: var(--accent); stroke-width: 2;
  transform-origin: center; transform-box: fill-box;
  animation: pulseRing 2.4s ease-out infinite;
}
.map-dot text { font-family: 'Inter', sans-serif; font-size: 12px; fill: var(--ink-soft); font-weight: 600; }
.map-regions { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.map-regions li {
  display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--ink-soft);
}
.map-regions li strong { color: var(--ink); }
.map-regions li::before { content: '●'; color: var(--accent); font-size: 11px; }

/* ---- Lifestyle / Off the clock ---- */
.lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); background: linear-gradient(140deg, var(--accent-tint), var(--bg-alt));
}
.tile.tall { grid-row: span 2; aspect-ratio: auto; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.tile:hover img { transform: scale(1.07); }
.tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px;
  background: linear-gradient(to top, rgba(25,20,12,.66), transparent);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: background .4s ease;
}
.tile .desc {
  display: block; font-weight: 400; font-size: 13px; line-height: 1.5; opacity: 0;
  max-height: 0; overflow: hidden; transform: translateY(8px);
  transition: opacity .4s ease, max-height .45s ease, transform .4s ease;
}
.tile:hover .caption, .tile:focus-within .caption {
  background: linear-gradient(to top, rgba(25,20,12,.85), rgba(25,20,12,.1));
}
.tile:hover .desc, .tile:focus-within .desc {
  opacity: 1; max-height: 80px; transform: none; margin-top: 4px;
}
.tile.tall:hover .desc, .tile.tall:focus-within .desc {
  max-height: 220px;
}
.tile.img-fail img { display: none; }
.tile.img-fail .caption { background: none; color: var(--ink); }

/* ---- About / Founder ---- */
.founder-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.photo-frame {
  border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; position: sticky; top: 90px;
  background: linear-gradient(150deg, var(--accent-tint), var(--bg-alt));
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .placeholder { text-align: center; color: var(--ink-soft); padding: 24px; }
.photo-frame .placeholder .initials {
  font-family: 'Fraunces', serif; font-size: 64px; color: #000000;
  display: block; margin-bottom: 8px;
}
.photo-frame .placeholder small { font-size: 12.5px; }
.founder-note p { margin-bottom: 18px; color: var(--ink); font-size: 16.5px; }
.founder-note .signoff { font-family: 'Fraunces', serif; font-style: italic; font-size: 19px; color: #000000; }
.cred-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cred-list li {
  display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-soft);
  border-left: 2px solid var(--accent); padding-left: 12px;
}
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; }
  .photo-frame { position: static; max-width: 320px; }
}

/* ---- Forms ---- */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.forms-grid.single { grid-template-columns: 1fr; max-width: 620px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; }
.form-card h3 { font-size: 22px; margin-bottom: 4px; }
.form-card .sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); transition: color .2s ease; }
.field:focus-within label { color: #000000; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 14.5px; background: var(--bg); color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
/* ---- Upload zone ---- */
.upload-zone {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px 18px;
  text-align: center; cursor: pointer; transition: border-color .25s ease, background .25s ease;
  color: var(--ink-soft); font-size: 14px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-tint); }
.upload-zone .upload-icon { display: block; font-size: 22px; margin-bottom: 6px; }
.upload-zone .upload-text strong { color: #000000; }
.upload-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.upload-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 8px 5px 12px;
  font-size: 13px; color: var(--ink); animation: fadeUp .3s ease both;
}
.upload-chip button {
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 50%;
  transition: color .2s, background .2s;
}
.upload-chip button:hover { color: #000000; background: var(--accent-tint); }

.success-msg { display: none; text-align: center; padding: 40px 16px; animation: fadeUp .5s ease both; }
.success-msg .big { font-size: 40px; margin-bottom: 12px; }
.success-msg h4 { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 8px; }
.success-msg p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- Footer ---- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 36px; transition: background .5s; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; margin-bottom: 36px; }
.footer-grid p { font-size: 14px; color: var(--ink-soft); max-width: 360px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: #000000; }
.copyright { text-align: center; font-size: 13px; color: var(--ink-soft); padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .tracks, .forms-grid, .cta-split, .map-wrap { grid-template-columns: 1fr; }
  .lifestyle-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); flex-direction: column; padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  section { padding: 72px 0; }
  /* Specialties: 2-col on tablet */
  .specialties-grid { grid-template-columns: repeat(4, 1fr); }
  .specialties-grid .card:nth-child(1) { grid-column: 1 / 3; }
  .specialties-grid .card:nth-child(2) { grid-column: 3 / 5; }
  .specialties-grid .card:nth-child(3) { grid-column: 1 / 3; }
  .specialties-grid .card:nth-child(4) { grid-column: 3 / 5; }
  .specialties-grid .card:nth-child(5) { grid-column: 2 / 4; }
}
@media (max-width: 540px) {
  .lifestyle-grid { grid-template-columns: 1fr; }
  .tile.tall { grid-row: auto; }
  /* Specialties: single column on mobile */
  .specialties-grid { grid-template-columns: 1fr; }
  .specialties-grid .card:nth-child(n) { grid-column: 1; }
}

/* ---- Team grid (About page) ---- */
.story-body { max-width: 780px; }
.story-body p { font-size: 16.5px; line-height: 1.8; color: var(--ink); margin-bottom: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 40px; }
.team-card { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.team-photo { height: 240px; background: var(--accent-soft); position: relative; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-initials { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 48px; font-weight: 600; color: #000000; font-family: var(--serif); }
.team-info { padding: 20px 24px 26px; }
.team-info h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 4px; color: var(--ink); }
.team-title { font-size: 13.5px; font-weight: 600; color: #000000; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.team-degrees { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* ---- Home page — Now Hiring preview ---- */
.home-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.home-job-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--ink);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s;
}
.home-job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px -14px rgba(0,0,0,.14);
  border-color: var(--accent);
}
.home-job-title {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500;
  color: var(--ink); line-height: 1.25; margin-top: 4px;
}
.home-job-pay {
  font-size: 13px; font-weight: 700; color: #000000;
}
.home-job-meta {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
}
.home-job-link {
  font-size: 13px; font-weight: 600; color: #000000;
  margin-top: auto; padding-top: 8px;
  transition: letter-spacing .25s;
}
.home-job-card:hover .home-job-link { letter-spacing: .02em; }

/* ---- Nav dropdown (Current Positions) ---- */
.nav-dropdown { position: relative; }
.nav-drop-toggle {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); display: flex; align-items: center; gap: 5px;
  padding: 4px 0; transition: color .25s; position: relative; white-space: nowrap;
}
.nav-drop-toggle::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .3s ease;
}
.nav-drop-toggle:hover, .nav-drop-toggle.open { color: var(--ink); }
.nav-drop-toggle:hover::after, .nav-drop-toggle.open::after { width: 100%; }
.drop-caret { font-size: 10px; transition: transform .25s; display: inline-block; line-height: 1; }
.nav-drop-toggle.open .drop-caret { transform: rotate(180deg); }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 40px -8px rgba(0,0,0,.16);
  min-width: 230px; padding: 8px 0; list-style: none; z-index: 500;
}
.nav-drop-menu::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nav-drop-menu.open { display: block; animation: fadeUp .18s ease both; }
.nav-drop-menu li a {
  display: block; padding: 9px 18px; font-size: 13.5px; color: var(--ink-soft);
  text-decoration: none; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-drop-menu li a:hover { background: var(--bg-alt); color: #000000; }
.nav-drop-menu li a::after { display: none; }
@media (max-width: 860px) {
  .nav-drop-menu {
    position: static; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--accent-tint);
    border-radius: 0; padding: 0 0 4px 12px; margin-top: 4px;
    background: transparent;
  }
  .nav-drop-menu::before { display: none; }
  .nav-drop-toggle { color: var(--ink); }
}

/* ---- Jobs page ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn { padding: 9px 20px; border-radius: 24px; border: 1.5px solid var(--accent); background: transparent; color: #000000; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: var(--sans); }
.filter-btn:hover, .filter-btn.active { background: var(--accent-deep); color: #fff; border-color: #000000; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.job-card { background: var(--surface); border-radius: 16px; padding: 26px; box-shadow: 0 2px 16px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s; }
.job-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.job-card[hidden] { display: none; }
.job-discipline { display: inline-block; padding: 4px 13px; border-radius: 24px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; width: fit-content; }
.disc-ot  { background: #fef3c7; color: #92400e; }
.disc-slp { background: #d1fae5; color: #065f46; }
.disc-pt  { background: #dbeafe; color: #1e40af; }
.disc-psych { background: #ede9fe; color: #5b21b6; }
.disc-psychiatrist { background: #fce7f3; color: #9d174d; }
.job-card h3 { font-family: var(--serif); font-size: 18px; margin: 0; color: var(--ink); line-height: 1.3; }
.job-meta { font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0; }
.job-meta span { margin-right: 6px; }
.job-meta span + span::before { content: '· '; margin-right: 2px; }
.job-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.job-card .btn { align-self: flex-start; font-size: 14px; padding: 10px 22px; margin-top: 4px; }

/* ── Logo image ── */
.logo-img { height: 218px; width: auto; display: block; margin-left: 0; }
@media (max-width: 640px) { .logo-img { height: 120px; } }

/* ── Job badge (new grad / out-of-state callout) ── */
.job-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  color: #000000;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 8px;
}
