/* FCC School tour page. One font (Outfit, the school's own site font), FCC navy as ink,
   FCC yellow as the single accent: CTA fills and a few small marks only. */
:root {
  --paper: #F7F4EC;
  --paper-2: #EFEADD;
  --white: #FFFFFF;
  --ink: #1d1254;          /* FCC navy, from fcc.school theme */
  --ink-2: #231749;
  --muted: rgba(29, 18, 84, 0.72);
  --hair: rgba(29, 18, 84, 0.14);
  --accent: #f7eb0d;       /* FCC yellow: fills only, never text on light */
  --on-dark: #F5F3FF;
  --on-dark-muted: rgba(245, 243, 255, 0.78);
  --radius: 18px;
  --gutter: 20px;
  --max: 1160px;
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.58; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  animation: settle .6s ease-out both;
}
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow--dark { color: var(--on-dark-muted); }
.mark { display: inline-block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(247, 244, 236, 0.92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1; }
.brand__sub { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); margin-top: 3px; }
.nav__call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; padding: 9px 14px; border: 1px solid var(--hair); border-radius: 300rem; transition: all .2s ease; }
.nav__call:hover { border-color: var(--ink); transform: translateY(-1px); }
.nav__call svg { width: 16px; height: 16px; }
@media (max-width: 380px) { .nav__call span { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font-family: inherit; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; border-radius: 300rem; padding: 16px 26px; text-decoration: none; transition: all .2s ease; }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 1px 0 rgba(29,18,84,.12); }
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 24px -12px rgba(29,18,84,.45); }
.btn--primary[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--dark-ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(245,243,255,.35); }
.btn--dark-ghost:hover { border-color: var(--on-dark); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: 0 0 56px; }
.hero__photo { position: relative; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__copy { padding-top: 28px; }
.hero h1 { font-size: clamp(36px, 9.4vw, 64px); font-weight: 600; margin: 14px 0 16px; max-width: 13ch; }
.hero__lede { font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero__facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero__facts li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.hero__facts li::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: translateY(-2px); }

@media (min-width: 900px) {
  .hero { padding: 28px 0 56px; }
  .hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .hero__photo { margin: 0; border-radius: var(--radius); aspect-ratio: 5 / 6; position: sticky; top: 88px; }
  .hero__photo img { position: absolute; inset: 0; }
  .hero__copy { padding-top: 4px; }
  .hero h1 { font-size: 54px; margin: 12px 0 14px; }
  .formcard { margin-top: 22px; padding: 22px 22px 18px; }
}

/* ---------- form card ---------- */
.formcard { background: var(--white); border-radius: var(--radius); padding: 24px 20px 22px; box-shadow: 0 1px 0 var(--hair), 0 24px 48px -28px rgba(29,18,84,.35); margin-top: 28px; scroll-margin-top: 84px; }
.formcard h2 { font-size: 24px; margin-bottom: 6px; }
.formcard__sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field__label small { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; padding: 13px 14px; min-height: 50px; appearance: none; -webkit-appearance: none; transition: border-color .2s ease, background .2s ease; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231d1254' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); background-color: var(--white); }
.field.is-bad input, .field.is-bad select { border-color: #B42318; }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.formcard .btn { width: 100%; margin-top: 6px; }
.formcard__micro { font-size: 14px; color: var(--muted); margin-top: 14px; }
.form-msg { font-size: 15px; margin-top: 12px; min-height: 0; }
.form-msg.is-err { color: #B42318; }
.form-msg a { font-weight: 600; }
.thanks { display: none; text-align: left; }
.thanks h2 { font-size: 26px; margin: 10px 0 10px; }
.thanks p { color: var(--muted); margin-bottom: 12px; }
.thanks__check { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.thanks__check svg { width: 22px; height: 22px; }
.formcard.is-done form { display: none; }
.formcard.is-done .thanks { display: block; }

/* ---------- sections ---------- */
.sec { padding: 72px 0; }
.sec--white { background: var(--white); }
.sec--navy { background: var(--ink); color: var(--on-dark); }
.sec h2 { font-size: clamp(30px, 7vw, 46px); max-width: 18ch; }
.sec__lede { font-size: 18px; color: var(--muted); max-width: 52ch; margin-top: 16px; }
.sec--navy .sec__lede { color: var(--on-dark-muted); }

/* known: editorial rows, not a card grid */
.known__grid { display: grid; gap: 36px; margin-top: 36px; }
.known__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.known__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 20px 0; border-top: 1px solid var(--hair); }
.points li:last-child { border-bottom: 1px solid var(--hair); }
.points h3 { font-size: 21px; letter-spacing: -0.015em; margin-bottom: 6px; }
.points p { color: var(--muted); font-size: 16px; }
@media (min-width: 900px) {
  .known__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .known__photo { aspect-ratio: 4 / 5; }
}

/* chapel band */
.band { position: relative; color: var(--on-dark); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,60,.15) 0%, rgba(20,12,60,.55) 45%, rgba(20,12,60,.92) 100%); }
.band .wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 56px; }
.band h2 { font-size: clamp(30px, 7.4vw, 50px); max-width: 16ch; }
.band p { color: var(--on-dark-muted); font-size: 18px; max-width: 50ch; margin-top: 14px; }
@media (min-width: 900px) { .band { min-height: 560px; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hair); }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.steps li:first-child::before { background: var(--accent); border-color: var(--accent); }
.steps h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; border-top: 2px solid var(--ink); padding-top: 22px; }
}

/* cost */
.cost__grid { display: grid; gap: 28px; margin-top: 32px; }
.ctable { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.ctable caption { text-align: left; font-weight: 600; font-size: 15px; padding: 0 0 10px; }
.ctable th, .ctable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--hair); }
.ctable thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.ctable td.num, .ctable th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctable tr:last-child td { border-bottom: 0; }
.note { background: var(--white); border-radius: var(--radius); padding: 22px 20px; border-left: 4px solid var(--accent); }
.note h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.015em; }
.note p { color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.note p:last-child { margin-bottom: 0; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (min-width: 900px) { .cost__grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; } }

/* building + head of school */
.split { display: grid; gap: 28px; align-items: center; }
.split__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--flip .split__photo { order: 2; } }
.quote { font-size: clamp(22px, 5vw, 30px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 400; margin: 18px 0 18px; }
.quote__by { font-size: 15px; color: var(--on-dark-muted); }
.drg { aspect-ratio: 1 / 1; background: #fff; }
.drg img { object-fit: cover; object-position: 50% 20%; }

/* final */
.final { text-align: left; }
.final__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.visit { margin-top: 36px; display: grid; gap: 4px; font-size: 16px; color: var(--muted); }
.visit strong { color: var(--ink); font-weight: 600; }

footer { padding: 28px 0 110px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--hair); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (min-width: 900px) { footer { padding-bottom: 32px; } }

/* sticky mobile CTA, hides while the form is on screen */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 10px; transform: translateY(140%); transition: transform .25s ease; }
.sticky.is-on { transform: none; }
.sticky .btn { flex: 1; padding: 15px 18px; box-shadow: 0 12px 30px -10px rgba(29,18,84,.5); }
.sticky .btn--call { flex: 0 0 auto; background: var(--ink); color: var(--on-dark); }
@media (min-width: 900px) { .sticky { display: none; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } body { animation: none; } }

/* cursor (fine pointers only) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100; border-radius: 50%; opacity: 0; transition: opacity .2s ease; }
.cursor-dot { width: 6px; height: 6px; background: var(--ink); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(29,18,84,.45); transition: opacity .2s ease, width .2s ease, height .2s ease, background .2s ease; }
.cursor-ring.is-active { width: 52px; height: 52px; background: rgba(247,235,13,.25); border-color: rgba(29,18,84,.25); }
body.cursor-live .cursor-dot, body.cursor-live .cursor-ring { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
