/* ==========================================================================
   IvyFactor — College Consulting & Tutoring
   Direction: collegiate editorial — university-press / acceptance-letter.
   Ivy-green on cream, letterpress serif; Fraunces + Newsreader + typewriter mono.
   ========================================================================== */

:root {
  /* ground + ink */
  --paper:    #f4eee1;   /* warm cream */
  --paper-2:  #ece3d2;   /* deeper panel */
  --card:     #fbf7ee;   /* lifted card */
  --ink:      #0f2e24;   /* near-black forest — body ink */
  --navy:     #1c5a45;   /* mid forest — was navy, now aligned with the ivy palette */
  --steel:    #6a89a7;
  /* on-panel colours — used only inside .section--panel, sitting on forest green */
  --brass:    #d4b978;   /* warm gold accent — rule-top and section-sign marks */
  --mist:     #cbe0d3;   /* pale mint — body text on dark green */

  /* the committed accent — IvyFactor forest green */
  --ivy:      #0f4a37;
  --moss:     #17614a;

  --rule:      rgba(15, 46, 36, 0.22);
  --rule-soft: rgba(15, 46, 36, 0.11);

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text:    "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --hand:    "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);

  /* proofreader's wavy underline */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12' viewBox='0 0 64 12'%3E%3Cpath d='M0 7 Q 16 1 32 7 T 64 7' fill='none' stroke='%230f4a37' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--display);
  font-weight: 480;
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 110;
}

p { margin: 0; }

/* ------------------------------------------------------------ scaffolding -- */

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivy);
  margin-bottom: 1.5rem;
}

.rule-top {
  width: 3.5rem;
  height: 3px;
  background: var(--ivy);
  margin-bottom: 1.4rem;
}

.text-muted { color: var(--navy); }

.ul-hand {
  background-image: var(--wave);
  background-repeat: repeat-x;
  background-position: left 0.92em;
  background-size: 62px 11px;
  padding-bottom: 0.14em;
}

/* thematic hand-written margin scrawl in ivy */
.marginnote {
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.05;
  color: var(--moss);
  transform: rotate(-4deg);
}

/* ------------------------------------------------------------- brand mark - */
/* IvyFactor lockup (shield + wordmark) used in header and footer.
   The image already contains both shield and "IvyFactor" text, so no
   separate wordmark text node is needed alongside it. */

.brand__mark { height: 3.4rem; width: auto; display: block; }
.colophon__brand .brand__mark { height: 2rem; }

/* Shield-only variant for the large acceptance-letter seal. */
img.letter__seal { width: auto; height: 5rem; }

/* Legacy .seal classes retained in case any inline SVG still uses them. */
.seal { width: 2.4rem; height: 2.4rem; flex: none; color: var(--ink); }
.seal--lg { width: 4.5rem; height: 4.5rem; }
.seal--red { color: var(--ivy); }

/* --------------------------------------------------------------- header -- */

.letterhead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
/* double-rule letterpress underline */
.letterhead::after {
  content: "";
  display: block;
  height: 3px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.letterhead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.4rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__word {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 40;
}
.brand__word b { font-weight: 400; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }

.nav a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.4rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0.15rem;
  height: 2px;
  background: var(--ivy);
  transition: right 0.25s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]:not(.btn)::after { right: 0; }

.nav a.btn { color: var(--paper); }
.nav a.btn:hover { color: #fff; }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.12s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--ivy); border-color: var(--ivy); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.68rem; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--ivy); border-color: var(--ivy); color: #fff; }

.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.textlink {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--ivy), var(--ivy));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1.5px;
  padding-bottom: 1px;
  transition: background-size 0.2s var(--ease);
}
.textlink:hover { background-size: 100% 100%; color: #fff; }

/* ------------------------------------------------------------------ hero -- */

.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.25rem);
}
.hero__text { max-width: 44rem; }

.hero__title {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  margin-bottom: 1.6rem;
}
.hero__line { display: block; white-space: nowrap; }
.hero__title em { font-style: italic; color: var(--navy); }

/* the framed hero photo */
.hero__media {
  position: relative;
  margin: 0;
  padding: 0.75rem 0.75rem 0;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 1px 0 var(--rule-soft), 14px 16px 0 -2px rgba(15, 46, 36, 0.06);
  transform: rotate(1.2deg);
}
.hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}
.hero__cap {
  display: block;
  padding: 0.7rem 0.3rem 0.85rem;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--navy);
  text-align: center;
}
.hero__media .stamp { right: -2.6rem; bottom: -3rem; }
.hero__media .marginnote { top: -1.4rem; left: -1rem; right: auto; transform: rotate(-4deg); }

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--navy);
  max-width: 33ch;
}
.lede--wide { max-width: 46ch; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero .marginnote {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
}
.hero .marginnote::after {
  content: "";
  position: absolute;
  left: -2.4rem; top: 1.3rem;
  width: 2.1rem; height: 1.1rem;
  border-bottom: 2px solid var(--moss);
  border-left: 2px solid var(--moss);
  border-bottom-left-radius: 60%;
  transform: rotate(8deg);
}

/* the ADMIT-style rubber stamp */
.stamp {
  position: absolute;
  display: grid;
  place-items: center;
  width: 8.5rem; height: 8.5rem;
  border: 2.5px solid var(--ivy);
  border-radius: 50%;
  color: var(--ivy);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  transform: rotate(-11deg);
  opacity: 0.9;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 1.5px solid var(--ivy);
  border-radius: 50%;
}

/* ---------------------------------------------------------------- ledger -- */

.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-block: 2px solid var(--ink);
}
.ledger__item { padding: 1.4rem clamp(0.75rem, 2vw, 1.5rem); }
.ledger__item + .ledger__item { border-left: 1px solid var(--rule-soft); }
.ledger dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.6rem;
}
.ledger dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.15;
}

/* --------------------------------------------------------------- catalog -- */
/* dense course-catalog spread — the deliberately busy counterpoint */

/* navy band variant — lifts the section off the cream ground */
.section--panel {
  background: var(--ink);
  color: var(--paper);
  margin-block: clamp(1rem, 4vw, 3rem);
}
.section--panel .catalog__head h2,
.section--panel .entry__title { color: var(--paper); }
.section--panel .text-muted,
.section--panel .entry__body { color: var(--mist); }
.section--panel .rule-top { background: var(--brass); }
.section--panel .catalog__list { border-top-color: rgba(244, 238, 225, 0.4); }
.section--panel .entry { border-bottom-color: rgba(244, 238, 225, 0.16); }
.section--panel .entry:nth-child(odd) { border-right-color: rgba(244, 238, 225, 0.16); }
.section--panel .entry__title::before { color: var(--brass); }

.catalog {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.catalog__head { position: sticky; top: 6rem; }
.catalog__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1rem; }
.catalog__head p { font-size: 1rem; }

.catalog__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.entry {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.entry:nth-child(odd) { border-right: 1px solid var(--rule-soft); padding-right: 1.5rem; }
.entry:nth-child(even) { padding-left: 1.5rem; }
.entry__title {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.entry__title::before {
  content: "\00a7";              /* section sign — a catalog mark, not 01/02/03 */
  color: var(--ivy);
  font-size: 0.9rem;
}
.entry__body { font-size: 0.95rem; color: var(--navy); }

/* reusable framed snapshot — a small photo card that reads as pinned-up */
.snapshot {
  margin: 0;
  padding: 0.6rem 0.6rem 0;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  box-shadow: 10px 12px 0 -2px rgba(15, 46, 36, 0.10);
}
.snapshot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.snapshot--portrait img { aspect-ratio: 3 / 4; }
.snapshot figcaption {
  padding: 0.55rem 0.2rem 0.7rem;
  font-family: var(--hand);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--navy);
  text-align: center;
}
.catalog__head .snapshot { margin-top: 2rem; transform: rotate(-1.4deg); }

/* -------------------------------------------------------------- calendar -- */
/* application-timeline agenda for "how it works" */

/* two-column "how it works": heading + photo on the left, steps on the right */
.howto {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.howto__head { position: sticky; top: 6rem; }
.howto .calendar { margin-top: 0; }

.calendar { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.cal__row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.cal__row:last-child { border-bottom: 1px solid var(--rule); }
.cal__mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivy);
  padding-top: 0.35rem;
  position: relative;
}
.cal__mark::before {
  content: "";
  position: absolute;
  left: -1.55rem; top: 0.55rem;
  width: 0.6rem; height: 0.6rem;
  background: var(--ivy);
  border-radius: 50%;
}
.cal__row h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 0.55rem; }
.cal__row p { color: var(--navy); font-size: 1rem; max-width: 46ch; }

/* ----------------------------------------------------------- ruled + note -- */

.ruled {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 2.19rem,
    rgba(28, 90, 69, 0.14) 2.19rem 2.2rem
  );
}

.note-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 5vw, 3.5rem)
           clamp(2rem, 5vw, 3.5rem) clamp(2.75rem, 6vw, 4.5rem);
}
/* red margin line, like a legal pad */
.note-card::before {
  content: "";
  position: absolute;
  left: clamp(1.4rem, 3.5vw, 2.5rem);
  top: 0; bottom: 0;
  border-left: 2px solid rgba(23, 97, 74, 0.4);
}
.note-card__lead { font-size: clamp(1.35rem, 2.8vw, 2.1rem); line-height: 1.28; max-width: 26ch; }
.note-card__lead em { font-style: italic; color: var(--ivy); }
.signoff {
  font-family: var(--hand);
  font-size: 2rem;
  color: var(--ink);
  margin-top: 1.5rem;
}

/* ------------------------------------------------------- acceptance letter -- */

.envelope { background: var(--ink); }
.letter {
  position: relative;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(15, 46, 36, 0.55);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 46rem;
}
.letter__seal { position: absolute; top: clamp(1.5rem, 4vw, 2.5rem); right: clamp(1.5rem, 4vw, 2.5rem); }
.letter__salutation {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivy);
  margin-bottom: 1.25rem;
}
.letter h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; max-width: 15ch; }
.letter p { color: var(--navy); margin-top: 1.1rem; max-width: 44ch; }
.letter .btn { margin-top: 1.75rem; }
.letter__ps { font-family: var(--hand); font-size: 1.4rem; color: var(--moss); margin-top: 1.5rem; }

/* ---------------------------------------------------------------- footer -- */

.colophon {
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
  padding-block: 2.75rem 2.25rem;
}
.colophon__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.colophon__brand { display: flex; align-items: center; gap: 0.7rem; }
.colophon__brand .brand__word { font-size: 1.3rem; }
.colophon nav { display: flex; gap: 1.4rem; }
.colophon nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.colophon nav a:hover { color: var(--ivy); }
.colophon__fine {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

/* ================================================================ pricing == */

.price-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 1.4rem; }

/* free-session stamp banner */
.free-banner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  border: 2px solid var(--ivy);
  background:
    repeating-linear-gradient(45deg, rgba(156,43,43,0.05) 0 10px, transparent 10px 20px);
}
.free-banner__tag {
  flex: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ivy);
  padding: 0.5rem 0.85rem;
  transform: rotate(-3deg);
}
.free-banner__text { flex: 1 1 20rem; font-size: 1rem; color: var(--navy); }
.free-banner__text strong { color: var(--ink); font-family: var(--display); font-weight: 500; margin-right: 0.35rem; }
.free-banner .btn { flex: none; }

.price-group__head { margin-bottom: 1.75rem; }
.price-group__head .kicker { margin-bottom: 0.85rem; }
.price-group__head h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.price-group__head--home {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* a tier reads like a line in a tuition schedule */
.tier {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr) auto;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.tier:last-of-type { border-bottom: 1px solid var(--rule); }
.tier--feature { background: linear-gradient(90deg, rgba(189,221,252,0.4), transparent 60%); }

/* service tier: no price column, just what's included */
.tier--service { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr); }
.tier__lead { display: flex; flex-direction: column; align-items: flex-start; }
.tier__lead .tier__meta { display: block; }
.tier__lead .btn { margin-top: 1.25rem; }

.tier__name { font-family: var(--display); font-size: 1.55rem; margin-bottom: 0.5rem; }
.tier__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.tier__badge {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ivy);
  color: #fff;
}

.tier__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tier__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.98rem;
  color: var(--navy);
}
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.66em;
  width: 0.34rem; height: 0.34rem;
  background: var(--ivy);
  transform: rotate(45deg);        /* small diamond marker */
}

.tier__price { text-align: right; min-width: 9rem; }
.tier__amount { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; display: block; }
.tier__unit { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--steel); display: block; margin-top: 0.6rem; }
.tier__price .btn { margin-top: 1.25rem; }

/* custom-plan panel */
.custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--ink);
  background: var(--card);
}
.custom__body { flex: 1 1 24rem; }
.custom__title { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
.custom__text { color: var(--navy); font-size: 1rem; max-width: 46ch; }
.custom .btn { flex: none; }

/* ================================================================ contact == */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.panel-title { font-family: var(--display); font-size: 1.5rem; margin-bottom: 1.5rem; }

.detail-list { display: grid; gap: 1.4rem; }
.detail dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.3rem;
}
.detail dd { margin: 0; font-size: 1.05rem; }

/* enrollment-form-on-letterhead */
.form-card {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { display: grid; gap: 0.45rem; margin-bottom: 1.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.field .muted { color: var(--steel); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font-family: var(--text);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ivy);
  box-shadow: 0 0 0 3px rgba(15, 74, 55, 0.18);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.form-note { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--steel); margin-top: 1rem; }
.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ivy);
  background: rgba(15, 74, 55, 0.07);
  font-size: 0.98rem;
}
.form-status[hidden] { display: none; }

/* FAQ as a dense Q&A sheet */
.faq { display: grid; gap: 0; border-top: 1px solid var(--ink); margin-top: 1rem; }
.faq__item { padding: 1.6rem 0; border-bottom: 1px solid var(--rule-soft); }
.faq__q {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.6rem;
}
.faq__q::before { content: "Q."; color: var(--ivy); font-family: var(--mono); font-size: 0.9rem; }
.faq__a { color: var(--navy); font-size: 0.98rem; padding-left: 1.7rem; }

.section-heading { max-width: 20ch; }
.section-heading .display { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

/* ======================================================= skeleton loaders == */

@keyframes sk-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

[data-sk] { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }

.is-loading [data-sk] {
  position: relative;
  color: transparent !important;
  border-color: transparent !important;
  background-color: rgba(28, 90, 69, 0.12) !important;
  background-image: linear-gradient(
    90deg,
    rgba(28, 90, 69, 0) 0%,
    rgba(189, 221, 252, 0.7) 45%,
    rgba(28, 90, 69, 0) 90%
  ) !important;
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: sk-shimmer 1.5s linear infinite;
  user-select: none;
  pointer-events: none;
  box-shadow: none !important;
}
.is-loading [data-sk] * { visibility: hidden; }
.is-loading [data-sk]::after,
.is-loading [data-sk]::before { display: none; }

.is-loading [data-sk="lines"] { background: none !important; animation: none; position: relative; }
.is-loading [data-sk="lines"]::after {
  display: block; content: "";
  position: absolute; inset: 0.2em 0;
  background-color: rgba(28, 90, 69, 0.12);
  background-image: linear-gradient(90deg, rgba(28,90,69,0) 0%, rgba(189,221,252,0.7) 45%, rgba(28,90,69,0) 90%);
  background-size: 200% 100%; background-repeat: no-repeat;
  animation: sk-shimmer 1.5s linear infinite;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 0.72em, transparent 0.72em 1.7em);
  mask-image: repeating-linear-gradient(180deg, #000 0 0.72em, transparent 0.72em 1.7em);
}

[data-sk].sk-done { animation: sk-in 0.5s var(--ease) both; }
@keyframes sk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- marquee -- */
/* Right-to-left college-logo strip. The track holds two identical rows and
   slides by exactly -50% so the second row lands where the first started —
   a seamless loop. app.js upgrades this to a drag-scrollable strip that
   keeps moving on hover; the CSS animation below is the no-JS fallback.
   Edges fade via mask-image. */

.marquee {
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border-block: 1px solid var(--rule-soft);
}
.marquee__kicker {
  text-align: center;
  margin-bottom: 1.25rem;
}
.marquee__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;            /* Firefox: hide the scrollbar */
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__viewport::-webkit-scrollbar { display: none; }  /* WebKit: hide the scrollbar */
.marquee.is-dragging .marquee__viewport { cursor: grabbing; }
/* Images must not intercept the drag or show a native drag-ghost. */
.marquee__row img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-slide 44s linear infinite;
}
.marquee__row {
  display: flex;
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4rem);
  padding: 0 clamp(1.125rem, 2.5vw, 2rem);
  margin: 0;
  list-style: none;
}
/* Single-image logos (schools whose brand mark already combines emblem +
   text, e.g. NYU, Columbia). Sized narrower than a lockup wordmark. */
.marquee__row .logo {
  height: clamp(1.85rem, 3vw, 2.4rem);
  width: auto;
  max-width: 15rem;
  object-fit: contain;
}

/* Emblem + wordmark lockup: crest on the left, wordmark to its right.
   The crest gets more height than the wordmark so the shield reads as
   the primary visual and the text sits as a label next to it. */
.lockup {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1vw, 0.85rem);
  margin: 0;
}
.lockup__crest {
  height: clamp(2.5rem, 4.4vw, 3.4rem);
  width: auto;
  max-width: 3.4rem;
  object-fit: contain;
}
.lockup__mark {
  height: clamp(1.15rem, 1.9vw, 1.55rem);
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

/* Cornell: single-line wordmark sits small beside the seal — give it room. */
.lockup--cornell .lockup__mark {
  height: clamp(1.55rem, 2.6vw, 2.05rem);
  max-width: 16rem;
}
/* Johns Hopkins & Emory: two-line wordmark + shield, so scale the whole
   lockup up and give the wordmark extra height so both lines stay legible. */
.lockup--jhu .lockup__crest,
.lockup--emory .lockup__crest {
  height: clamp(3rem, 5.1vw, 4rem);
  max-width: 4.2rem;
}
.lockup--jhu .lockup__mark,
.lockup--emory .lockup__mark {
  height: clamp(2rem, 3.4vw, 2.7rem);
  max-width: 13rem;
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* No-JS fallback: run the strip a little quicker on small screens. */
@media (max-width: 640px) {
  .marquee__track { animation-duration: 28s; }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .catalog, .contact-grid, .howto { grid-template-columns: 1fr; }
  .catalog__head, .howto__head { position: static; }
  .catalog__head .snapshot, .howto__head .snapshot { max-width: 22rem; }
  .howto .calendar { margin-top: 2rem; }
  .catalog__list { grid-template-columns: 1fr; }
  .entry:nth-child(odd) { border-right: 0; padding-right: 0; }
  .entry:nth-child(even) { padding-left: 0; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger__item:nth-child(3) { border-left: 0; }
  .ledger__item:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .tier { grid-template-columns: 1fr; }
  .tier__price { text-align: left; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__text { max-width: none; }
  .hero__media { max-width: 24rem; transform: rotate(0deg); }
  .hero .marginnote, .stamp { display: none; }
  .cal__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .cal__mark::before { display: none; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .nav { gap: 0.85rem; }
  .nav__hide-sm { display: none; }
  .letter { box-shadow: 8px 8px 0 rgba(15,46,36,0.55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
