:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #1a2035;
  --surface-2: #131b2e;
  --tint: #161d30;
  --ink: #e8edf5;
  --ink-soft: #94a3b8;
  --line: #2a3350;
  --accent: #1d4ed8;
  --accent-dark: #1a40b0;
  --accent-ink: #ffffff;
  --accent-soft: #162a4a;
  --highlight: #f59e0b;
  --highlight-dark: #d97706;
  --highlight-ink: #1a1100;
  --highlight-soft: #2a2010;
  --on-accent-soft: rgba(0, 0, 0, 0.7);
  --header-bg: rgba(11, 17, 32, 0.88);
  --footer-ink: #64748b;
  --grad-hero: linear-gradient(180deg, #0b1120 0%, #161d30 100%);
  --grad-mark: linear-gradient(135deg, #1d4ed8, #60a5fa);
  --grad-bar: linear-gradient(90deg, #1d4ed8, #60a5fa);
  --grad-band: linear-gradient(120deg, #0a1225 0%, #1a3a7a 55%, #1d4ed8 100%);
  --grad-blob: linear-gradient(140deg, #1a2840, #2a2010);
  --grad-avatar: linear-gradient(135deg, #1d4ed8, #60a5fa);
  --grad-avatar-b: linear-gradient(135deg, #0d9488, #5ee0c0);
  --grad-avatar-c: linear-gradient(135deg, #8b5cf6, #c4b5fd);
  --radius: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font-display: \x27DM Serif Display\x27, \x27Segoe UI\x27, system-ui, sans-serif;
  --font-body: \x27DM Sans\x27, \x27Segoe UI\x27, system-ui, sans-serif;
  --wrap: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

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

svg {
  display: block;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-mark);
  color: var(--accent-ink);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: var(--space-3);
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--highlight {
  background: var(--highlight);
  color: var(--highlight-ink);
}

.btn--highlight:hover {
  background: var(--highlight-dark);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0 clamp(2rem, 1rem + 4vw, 4rem);
  background: var(--grad-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);
}

.finder {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-top: var(--space-4);
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.field label {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.field input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.finder-btn {
  padding-inline: 1.5rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.stat b {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Hero artwork */
.hero-art {
  position: relative;
  min-height: 380px;
}

.art-blob {
  position: absolute;
  inset: 6% 4% 10% 8%;
  border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
  background: var(--grad-blob);
}

.art-card {
  position: absolute;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.art-card--main {
  left: 0;
  top: 16%;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 320px);
}

.art-card--float {
  right: 0;
  top: 2%;
  display: grid;
  gap: 0.35rem;
  width: min(78%, 240px);
}

.art-card--float2 {
  right: 6%;
  bottom: 2%;
  display: grid;
  gap: 0.35rem;
  width: min(68%, 220px);
}

.art-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.art-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.art-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 4px var(--highlight-soft);
}

/* Sections */
.section {
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
}

.section--tint {
  background: var(--tint);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-4);
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
}

.chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Course cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.course {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-lg);
}

.course[hidden] {
  display: none;
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.course p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.course-duration {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.pill {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill--warm {
  background: var(--highlight-soft);
  color: var(--highlight-ink);
}

.bar-label {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.bar span {
  display: block;
  width: var(--fill, 50%);
  height: 100%;
  border-radius: inherit;
  background: var(--grad-bar);
}

.bar--art {
  --fill: 70%;
}

.fill-30 {
  --fill: 30%;
}

.fill-45 {
  --fill: 45%;
}

.fill-55 {
  --fill: 55%;
}

.fill-60 {
  --fill: 60%;
}

.fill-70 {
  --fill: 70%;
}

.fill-85 {
  --fill: 85%;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.step {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-2);
  border-radius: 14px;
  background: var(--highlight);
  color: var(--highlight-ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.step p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

/* Tutors */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.person {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  background: var(--grad-avatar);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.avatar--b {
  background: var(--grad-avatar-b);
}

.avatar--c {
  background: var(--grad-avatar-c);
}

.person-role {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.person p:last-child {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.quote {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--highlight);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.quote blockquote {
  margin: 0;
  font-size: 1.05rem;
}

.quote footer {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.faq details {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.25rem;
}

.faq details[open] summary::after {
  content: '–';
}

.faq summary:hover {
  color: var(--accent);
}

.faq p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: clamp(2rem, 1rem + 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--grad-band);
  color: var(--accent-ink);
}

.cta-band h2 {
  color: var(--accent-ink);
}

.cta-band p {
  margin-top: 0.5rem;
  color: var(--on-accent-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.contact-lines {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.9;
}

.contact-note {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.contact-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
  margin-top: var(--space-4);
  padding: var(--space-5) 0 var(--space-3);
  background: #0a0f1a;
  color: var(--footer-ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--ink);
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: var(--footer-ink);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-base {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--footer-ink);
  font-size: 0.85rem;
}

/* Reveal on scroll (class added by main.js only) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .finder {
    grid-template-columns: 1fr 1fr;
  }

  .finder-btn {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: var(--space-2) 1.25rem var(--space-3);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .finder {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 300px;
  }

  .art-card--float2 {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* Picture spaces. Append this block to the end of styles/style.css. */

/* Every slot fills its frame and crops to cover. */
img[data-slot] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--ink-soft);
}

/* Frames, one per ratio used in this template. */
img[data-slot='hero'] {
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-lg);
}

img[data-slot='about'],
img[data-slot='service'] {
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-4);
}

img[data-slot='person'] {
  aspect-ratio: 1 / 1;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
}

/* Shapes replaced by picture spaces. */
.art-blob,
.avatar {
  display: none;
}


/* Extra fill widths used by FTP Bootcamp */
.fill-25 { --fill: 25%; }
.fill-35 { --fill: 35%; }
.fill-40 { --fill: 40%; }