/* =========================================================
   Brennan College Advising - Site Stylesheet
   Implements the design system in 02_brand/visual-direction.md
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* Color palette */
    --color-harbor: #1F3A5F;          /* Deep Harbor - primary */
    --color-harbor-hover: #2A4A75;
    --color-linen: #FAF6EF;           /* Linen - warm bg */
    --color-white: #FFFFFF;
    --color-brass: #C99858;           /* Accent */
    --color-brass-hover: #B58542;
    --color-charcoal: #1F2937;        /* Body text */
    --color-stone: #6B7280;           /* Secondary text */
    --color-sand: #E8E0D2;            /* Dividers / borders */
    --color-coral: #B8503E;           /* Form errors */

    /* Type */
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Spacing rhythm */
    --section-pad-y-desktop: 112px;
    --section-pad-y-tablet: 80px;
    --section-pad-y-mobile: 56px;

    /* Container */
    --container-max: 1120px;
    --container-narrow: 760px;
    --container-pad-x: 24px;

    /* Header */
    --header-height: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-charcoal);
    background: var(--color-linen);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--color-linen);
    background: var(--color-harbor);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-harbor); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--color-brass); }
button { font-family: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--color-sand); margin: 0; }
::selection { background: var(--color-harbor); color: var(--color-linen); }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--color-harbor);
    margin: 0 0 0.6em;
    letter-spacing: -0.012em;
    line-height: 1.12;
    text-wrap: balance; /* keep headline line lengths even; avoid a lone last word */
}
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 20px; }

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

/* Prevent a single short word wrapping to its own line (widows/orphans) in body copy. */
p, li, blockquote, figcaption, cite, .lead, dd, dt { text-wrap: pretty; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-stone);
    margin: 0 0 18px;
}
.eyebrow--brass { color: var(--color-brass); }
.eyebrow--linen { color: var(--color-linen); opacity: 0.85; }

.lead {
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--color-charcoal);
    max-width: 60ch;
}
.lead--center { margin-left: auto; margin-right: auto; text-wrap: balance; }
.lead--linen { color: var(--color-linen); }
.subtle { color: var(--color-stone); }

em { font-style: italic; color: var(--color-stone); font-weight: 400; }
strong { font-weight: 500; color: var(--color-harbor); }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad-x);
    padding-right: var(--container-pad-x);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
    padding-top: var(--section-pad-y-desktop);
    padding-bottom: var(--section-pad-y-desktop);
}
.section--linen { background: var(--color-linen); }
.section--white { background: var(--color-white); }
.section--harbor { background: var(--color-harbor); color: var(--color-linen); }
.section--harbor h1,
.section--harbor h2,
.section--harbor h3 { color: var(--color-linen); }
.section--harbor a:not(.btn) { color: var(--color-linen); }
.section--harbor a:not(.btn):hover { color: var(--color-brass); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 239, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, background 200ms ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--color-sand);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.wordmark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.wordmark__logo {
    display: block;
    height: 40px;
    width: auto;
}
@media (max-width: 640px) {
    .wordmark__logo { height: 34px; }
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
    color: var(--color-charcoal);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--color-harbor); }
.site-nav .btn { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    color: var(--color-harbor);
}
.nav-toggle svg { display: block; width: 24px; height: 24px; }

.mobile-drawer {
    position: fixed;
    inset: 0;
    background: var(--color-linen);
    z-index: 60;
    padding: 24px;
    display: none;
    flex-direction: column;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}
.mobile-drawer__close {
    background: transparent;
    border: 0;
    padding: 8px;
    color: var(--color-harbor);
}
.mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-drawer nav a {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-harbor);
    padding: 12px 0;
    text-decoration: none;
}
.mobile-drawer .btn {
    margin-top: 32px;
    align-self: flex-start;
    font-size: 16px;
    padding: 14px 28px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
    cursor: pointer;
}
.btn--primary {
    background: var(--color-harbor);
    color: var(--color-linen);
    border-color: var(--color-harbor);
}
.btn--primary:hover {
    background: var(--color-harbor-hover);
    color: var(--color-linen);
    border-color: var(--color-harbor-hover);
}
.btn--secondary {
    background: transparent;
    color: var(--color-harbor);
    border-color: var(--color-harbor);
}
.btn--secondary:hover {
    background: var(--color-harbor);
    color: var(--color-linen);
    border-color: var(--color-harbor);
}
.btn--brass {
    background: var(--color-brass);
    color: var(--color-harbor);
    border-color: var(--color-brass);
}
.btn--brass:hover {
    background: var(--color-brass-hover);
    border-color: var(--color-brass-hover);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
    color: var(--color-harbor);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 180ms ease, color 180ms ease;
}
.text-link:hover {
    color: var(--color-brass);
    border-bottom-color: var(--color-brass);
}
.text-link--linen {
    color: var(--color-linen);
}
.text-link--linen:hover {
    color: var(--color-brass);
    border-bottom-color: var(--color-brass);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: clamp(64px, 8vw, 112px);
    padding-bottom: clamp(72px, 9vw, 128px);
    background: var(--color-linen);
}

/* ---------- Subtle background textures (add ONE class to a top <section>, e.g. a hero
   or a page's first linen intro section) ----------
   tex-grain : faint paper-grain noise      tex-glow : soft warm radial wash
   tex-both  : grain + glow (in use)        tex-lines: whisper-thin diagonal weave
   Designed for linen-background sections. Remove the class to turn it off. */
.tex-grain,
.tex-glow,
.tex-both,
.tex-lines { position: relative; isolation: isolate; }
.tex-grain > *,
.tex-glow > *,
.tex-both > *,
.tex-lines > * { position: relative; z-index: 1; }

.tex-grain::before,
.tex-both::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tex-glow,
.tex-both {
    background:
        radial-gradient(120% 95% at 50% -12%, rgba(201, 152, 88, 0.08) 0%, rgba(201, 152, 88, 0) 55%),
        var(--color-linen);
}

.tex-lines::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M0 18L18 0' stroke='%231F3A5F' stroke-width='0.5' stroke-opacity='0.05'/%3E%3C/svg%3E");
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.hero__copy { max-width: 560px; }
.hero__copy h1 { margin-bottom: 24px; }
.hero__photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;
}
.hero__photo img { width: 100%; }
@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__photo { max-width: 320px; margin: 0 auto; }
    .hero__copy { max-width: 100%; }
}

/* About hero specifically: photo on right, beach bg */
.hero--about .hero__grid { grid-template-columns: 1fr 1fr; }
.hero--about .hero__photo {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: none;
}
.hero--about .hero__photo img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
@media (max-width: 860px) {
    .hero--about .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Cards / Grids ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .card-grid,
    .card-grid--2,
    .card-grid--4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 180ms ease, transform 180ms ease;
}
.card:hover {
    border-color: var(--color-harbor);
    transform: translateY(-2px);
}
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { color: var(--color-charcoal); }
.card__eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-brass);
    margin-bottom: 6px;
}
.card__callout {
    margin-top: 16px;
    background: var(--color-linen);
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--color-charcoal);
}
.card__callout strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-harbor);
    margin-bottom: 4px;
}
.card__cta {
    margin-top: auto;
    padding-top: 18px;
}
.card--featured {
    border-top: 3px solid var(--color-brass);
}

/* ---------- Two-column section (e.g., about snippet) ---------- */
.two-col {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.two-col--flipped { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) {
    .two-col,
    .two-col--flipped { grid-template-columns: 1fr; }
}
.two-col__photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.two-col__photo img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* Tablet & mobile: shrink Patrick's photo to a centered circular avatar
   (a pre-cropped head-and-shoulders image is served via <picture>). */
@media (max-width: 860px) {
    .two-col__photo,
    .hero--about .hero__photo {
        width: min(230px, 58vw);
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        overflow: hidden;
        margin-left: auto;
        margin-right: auto;
    }
    .two-col__photo img,
    .hero--about .hero__photo img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center;
    }
}

/* ---------- Long-form prose ---------- */
.prose {
    max-width: 68ch;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
}
.prose p { margin-bottom: 1.4em; }
.prose blockquote {
    margin: 1.8em 0;
    padding-left: 24px;
    border-left: 3px solid var(--color-brass);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--color-harbor);
    line-height: 1.45;
}

/* ---------- Three-block (dual-perspective) ---------- */
.tri-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tri-block__item {
    background: var(--color-linen);
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}
.tri-block__num {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-brass);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.tri-block__title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-harbor);
    margin-bottom: 12px;
    line-height: 1.2;
}
@media (max-width: 900px) {
    .tri-block { grid-template-columns: 1fr; }
}

/* ---------- Philosophy quote list ---------- */
.philosophy {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}
.philosophy__item {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-sand);
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-charcoal);
}
.philosophy__item:last-child { border-bottom: 0; }
.philosophy__item strong {
    color: var(--color-harbor);
    font-weight: 500;
}

/* ---------- Credentials block ---------- */
.creds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}
.creds h3 {
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-brass);
    margin-bottom: 16px;
    font-family: var(--font-sans);
    font-weight: 500;
}
.creds ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.creds li {
    color: var(--color-charcoal);
    font-size: 16px;
    line-height: 1.5;
}
@media (max-width: 700px) {
    .creds { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Targeted help list (two-col list) ---------- */
.help-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
    max-width: 920px;
    margin: 0 auto;
}
.help-list__item {
    padding: 16px 0;
    border-top: 1px solid var(--color-sand);
}
.help-list__item h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-harbor);
    margin: 0 0 6px;
    font-weight: 500;
}
.help-list__item p {
    color: var(--color-stone);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 760px) {
    .help-list { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Step ladder ---------- */
.steps { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: start;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--color-sand);
}
.step:first-child { border-top: 0; }
.step__num {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 28px;
    color: var(--color-brass);
    line-height: 1;
}
.step__title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-harbor);
    margin: 0 0 6px;
    font-weight: 500;
}
.step__body { color: var(--color-stone); font-size: 17px; line-height: 1.55; margin: 0; }
@media (max-width: 600px) {
    .step { grid-template-columns: 56px 1fr; gap: 16px; }
    .step__num { font-size: 24px; }
}

/* ---------- Three-pillar grid (home pillars) ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { padding: 0; }
.pillar h3 { font-size: 24px; margin-bottom: 14px; }
.pillar p { color: var(--color-charcoal); font-size: 16px; line-height: 1.65; }
@media (max-width: 900px) {
    .pillar-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reassurance band (chips) ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-linen);
    margin-top: 24px;
}
.chips__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-brass);
    display: inline-block;
}

/* ---------- Contact / Form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}
.contact-sidebar img {
    max-width: 200px;
    margin: 0 auto 16px;
}
.contact-sidebar h4 {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-harbor);
    font-weight: 500;
}
.contact-sidebar p {
    color: var(--color-stone);
    font-size: 14px;
    margin: 0 0 6px;
}

.form {
    background: var(--color-white);
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.form__group-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-stone);
    margin: 24px 0 14px;
}
.form__group-label:first-child { margin-top: 0; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-harbor);
}
.field label .req { color: var(--color-coral); margin-left: 2px; }
.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: var(--color-charcoal);
    background: var(--color-linen);
    border: 1px solid var(--color-sand);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    line-height: 1.4;
    transition: border-color 150ms ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-harbor);
    border-width: 1.5px;
    padding: 11.5px 13.5px; /* keep size stable */
}
.field--error input,
.field--error select,
.field--error textarea {
    border-color: var(--color-coral);
    border-width: 1.5px;
    padding: 11.5px 13.5px;
}
.field__error {
    display: none;
    font-size: 13px;
    color: var(--color-coral);
    margin-top: 2px;
}
.field--error .field__error { display: block; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--color-charcoal);
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-harbor);
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-sand);
}
.form__required-note { color: var(--color-stone); font-size: 13px; margin: 0; }
.form button[type="submit"] { min-width: 160px; }

.form-success {
    display: none;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 64px) clamp(24px, 6vw, 56px);
    background: var(--color-white);
    border: 1px solid var(--color-sand);
    border-top: 4px solid var(--color-brass);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px rgba(31, 58, 95, 0.10);
}
.form-success.is-visible { display: block; }
.form-success:focus-visible {
    outline: 3px solid var(--color-harbor);
    outline-offset: 4px;
}
.form-success__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--color-white);
    background: var(--color-harbor);
    border-radius: 50%;
}
.form-success__icon svg { width: 34px; height: 34px; }
.form-success__icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.form-success .eyebrow { display: block; margin-bottom: 12px; }
.form-success h2 { margin-bottom: 16px; }
.form-success p { color: var(--color-charcoal); font-size: 17px; max-width: 480px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-harbor);
    color: var(--color-linen);
    padding: 64px 0 24px;
}
.site-footer a { color: var(--color-linen); }
.site-footer a:hover { color: var(--color-brass); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-col h5 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-brass);
    margin: 0 0 16px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col li { font-size: 15px; }
.footer-col p { color: rgba(250, 246, 239, 0.82); font-size: 15px; line-height: 1.55; }
.footer-logo {
    display: block;
    height: 46px;
    width: auto;
    margin-bottom: 16px;
}
.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-brass);
    font-size: 18px;
    margin-bottom: 18px;
}
.footer-bottom {
    border-top: 1px solid rgba(250, 246, 239, 0.18);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    color: rgba(250, 246, 239, 0.7);
    font-size: 13px;
}
.footer-bottom a { font-size: 13px; }
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Mobile nav breakpoint ---------- */
@media (max-width: 740px) {
    .site-nav { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Section padding responsive ---------- */
@media (max-width: 900px) {
    .section { padding-top: var(--section-pad-y-tablet); padding-bottom: var(--section-pad-y-tablet); }
}
@media (max-width: 600px) {
    .section { padding-top: var(--section-pad-y-mobile); padding-bottom: var(--section-pad-y-mobile); }
    .form { padding: 24px; }
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
:focus-visible {
    outline: 2px solid var(--color-harbor);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Mission statement band ---------- */
.mission__statement {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.42;
    color: var(--color-harbor);
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: -0.008em;
    text-wrap: balance;
}
.mission__statement em {
    color: var(--color-brass);
    font-style: italic;
}
.mission__rule {
    width: 44px;
    height: 3px;
    background: var(--color-brass);
    border-radius: 2px;
    margin: 0 auto 32px;
}

/* ---------- College marquee ---------- */
.marquee-section { overflow: hidden; }
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 80s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    font-family: var(--font-serif);
    font-size: clamp(17px, 1.8vw, 21px);
    font-weight: 400;
    color: var(--color-harbor);
    white-space: nowrap;
}
.marquee__item::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-brass);
    flex-shrink: 0;
}
/* Logo shows only once its file successfully loads; until then the
   school name (text fallback) stays visible. Lets logos roll in one at a time. */
.marquee__logo {
    display: none;
    height: 46px;
    width: auto;
    max-width: 172px;
    object-fit: contain;
}
.marquee__item.has-logo .marquee__logo { display: block; }
.marquee__item.has-logo .marquee__fallback { display: none; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Testimonial carousel ---------- */
.testimonial-carousel {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
/* All slides share one grid cell, so the carousel is always as tall as the
   tallest quote, so the height never jumps when the quote length changes. */
.testimonial-stage { display: grid; align-items: center; }
.testimonial {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 400ms ease;
}
.testimonial.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.testimonial__quote {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(23px, 3.1vw, 35px);
    line-height: 1.32;
    color: var(--color-linen);
    letter-spacing: -0.008em;
    margin: 0;
    text-wrap: balance;
}
.testimonial__cite {
    display: block;
    margin-top: 28px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-brass);
    font-style: normal;
}
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 44px;
}
.carousel-dots { display: flex; gap: 10px; }
.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(250, 246, 239, 0.28);
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}
.carousel-dot.is-active { background: var(--color-brass); transform: scale(1.25); }
.carousel-arrow {
    background: transparent;
    border: 1px solid rgba(250, 246, 239, 0.32);
    color: var(--color-linen);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 180ms ease, color 180ms ease;
}
.carousel-arrow:hover { border-color: var(--color-brass); color: var(--color-brass); }
.carousel-arrow svg { width: 18px; height: 18px; display: block; }

@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; }
    .testimonial { transition: none; }
}

/* ---------- Animation: subtle on-load fade ---------- */
.hero, .section { animation: fadeUp 600ms ease both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero, .section { animation: none; }
    html { scroll-behavior: auto; }
}
