
:root {
  --ink: #102233;
  --navy: #0b1c2c;
  --navy-2: #142b40;
  --paper: #f6f2e9;
  --paper-2: #fffdf8;
  --white: #ffffff;
  --gold: #b18a45;
  --gold-soft: #d7c28f;
  --muted: #5e6974;
  --line: rgba(16, 34, 51, 0.14);
  --shadow: 0 24px 60px rgba(11, 28, 44, 0.10);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link { position: absolute; top: -60px; left: 16px; background: var(--navy); color: var(--white); padding: 10px 14px; z-index: 999; }
.skip-link:focus { top: 16px; }
.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; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 850px; }
.section-pad { padding: 104px 0; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.028em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 4vw, 4.35rem); margin-bottom: 28px; font-weight: 500; }
h2 { font-size: clamp(2.1rem, 2.9vw, 3.25rem); margin-bottom: 26px; font-weight: 500; }
h3 { font-size: clamp(1.35rem, 2vw, 1.95rem); margin-bottom: 14px; font-weight: 600; }
p { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: clamp(1.14rem, 1.7vw, 1.35rem); max-width: 820px; }
.eyebrow { color: var(--gold); font-size: 0.77rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow.gold { color: var(--gold-soft); }
.text-link { color: var(--ink); text-decoration: none; font-weight: 800; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.text-link:hover { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: Georgia, serif; font-size: 1.25rem; }
.brand-word { font-weight: 800; letter-spacing: .16em; font-size: .9rem; }
.main-nav { display: flex; align-items: center; gap: 23px; }
.main-nav a { text-decoration: none; font-size: .9rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.nav-cta { border: 1px solid var(--navy); padding: 11px 16px; border-radius: 999px; }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 750; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: var(--white); box-shadow: 0 12px 30px rgba(11,28,44,.18); }
.button-primary:hover { background: var(--navy-2); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.45); }
.button-light { background: var(--white); color: var(--navy); }
.button.full { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 16px; }
.microcopy { font-size: .88rem; max-width: 700px; }

.hero { min-height: calc(100vh - 78px); display: flex; align-items: center; background: radial-gradient(circle at 85% 10%, rgba(177,138,69,.14), transparent 25%), linear-gradient(180deg, var(--paper-2), var(--paper)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 70px; align-items: center; }
.hero-lead { max-width: 790px; font-size: clamp(1.12rem, 1.6vw, 1.35rem); }
.credentials { color: var(--ink); font-weight: 750; letter-spacing: .02em; }
.hero-card { position: relative; background: var(--navy); color: var(--white); padding: 145px 38px 48px; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(215,194,143,.26); border-radius: 18px; }
.formula { position: absolute; top: 34px; right: 34px; font-family: Georgia, serif; font-size: 2.35rem; line-height: 1; color: rgba(215,194,143,.28); pointer-events: none; }
.hero-card-kicker { color: var(--gold-soft); font-size: .75rem; letter-spacing: .18em; font-weight: 800; }
.hero-card-title { color: var(--white); font-family: Georgia, serif; font-size: 2.05rem; line-height: 1.16; max-width: 15ch; }
.hero-card-rule { width: 54px; height: 1px; background: var(--gold); margin: 20px 0; }
.hero-card-small { color: rgba(255,255,255,.72); }

.page-hero { padding: 95px 0 78px; background: radial-gradient(circle at 88% 5%, rgba(177,138,69,.14), transparent 24%), linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero .container { max-width: 1050px; }
.page-hero h1 { font-size: clamp(2.7rem, 3.7vw, 4rem); max-width: 1000px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: .86rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }

.proof-strip { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-grid > div { padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.1); }
.proof-grid > div:first-child { padding-left: 0; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { color: var(--white); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.proof-grid span { color: rgba(255,255,255,.6); font-size: .9rem; }

.intro-centered { text-align: center; margin-inline: auto; margin-bottom: 52px; }
.intro-centered p:last-child { max-width: 760px; margin-inline: auto; }
.cards { display: grid; gap: 18px; }
.three-up { grid-template-columns: repeat(3,1fr); }
.four-up { grid-template-columns: repeat(4,1fr); }
.two-up { grid-template-columns: repeat(2,1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(16,34,51,.04); }
.card-number { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 12px; text-decoration: none; font-weight: 800; color: var(--ink); }
.card-link:hover { color: var(--gold); }

.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.67); }
.split-heading { display: grid; grid-template-columns: 1.05fr .8fr; gap: 100px; align-items: end; margin-bottom: 54px; }
.dark-cards .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.11); box-shadow: none; }

.services-section, .soft-section { background: var(--paper); }
.service-stack { display: grid; gap: 20px; }
.service-card { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 38px; border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); }
.service-card.featured { border-color: rgba(177,138,69,.55); box-shadow: var(--shadow); }
.service-index { font-family: Georgia, serif; color: var(--gold); font-size: 2rem; }
.service-label { color: var(--gold); letter-spacing: .14em; font-size: .74rem; font-weight: 800; }
.check-list, .dash-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li, .dash-list li { position: relative; padding-left: 25px; margin: 8px 0; color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--gold); position: absolute; left: 0; font-weight: 800; }
.dash-list li::before { content: "—"; color: var(--gold); position: absolute; left: 0; }
.subject-line { color: var(--ink); font-weight: 700; margin-top: 20px; }

.method-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.method-intro { position: sticky; top: 120px; }
.method-steps { border-top: 1px solid var(--line); }
.method-step { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.method-step > span { color: var(--gold); font-weight: 800; letter-spacing: .1em; }
.method-step p:last-child { margin-bottom: 0; }

.professor-section { background: var(--navy); }
.professor-grid { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); gap: 44px; align-items: center; }
.portrait-wrap { position: relative; width: min(100%, 143px); justify-self: center; }
.portrait-wrap::after { content: ""; position: absolute; inset: 9px -9px -9px 9px; border: 1px solid rgba(215,194,143,.35); border-radius: var(--radius); z-index: 0; }
.portrait-wrap img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/4.45; object-fit: cover; object-position: center 18%; border-radius: var(--radius); filter: grayscale(1) contrast(1.06); }
.professor-copy h2 { color: var(--white); }
.professor-copy p { color: rgba(255,255,255,.68); }
.professor-name { color: var(--gold-soft) !important; font-size: 1.15rem; font-weight: 800; }
.credentials-list { margin: 28px 0; }
.credentials-list > div { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.credentials-list > div:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.credentials-list dt { color: var(--white); font-weight: 700; }
.credentials-list dd { margin: 0; color: rgba(255,255,255,.55); text-align: right; }
blockquote { margin: 30px 0 0; padding: 24px 0 0 24px; border-left: 2px solid var(--gold); color: var(--white); font-family: Georgia, serif; font-size: 1.4rem; line-height: 1.45; }

.testimonials-section { background: var(--paper); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testimonial { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial blockquote { color: var(--ink); border: 0; padding: 0; margin: 0 0 24px; font-size: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--gold); font-weight: 800; letter-spacing: .04em; }

.offer-section { background: var(--paper-2); }
.offer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.offer-card { border: 1px solid var(--line); border-radius: 22px; padding: 32px; background: var(--white); display: flex; flex-direction: column; }
.offer-card.featured { border-color: rgba(177,138,69,.6); box-shadow: var(--shadow); }
.offer-card .price { font-family: Georgia, serif; font-size: 2.4rem; color: var(--ink); margin: 8px 0 2px; }
.offer-card .price-note { font-size: .88rem; margin-bottom: 22px; }
.offer-card .button { margin-top: auto; }

.content-grid { display: grid; grid-template-columns: minmax(0,1.38fr) minmax(320px,.62fr); gap: 56px; align-items: start; }
.content-main h2 { font-size: clamp(1.9rem, 2.55vw, 2.85rem); margin-top: 60px; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin-top: 34px; }
.content-main ul { color: var(--muted); padding-left: 22px; }
.content-main li { margin-bottom: 8px; }
.side-card { position: sticky; top: 110px; background: var(--navy); color: var(--white); border-radius: 22px; padding: 28px; }
.side-card h3 { color: var(--white); font-size: clamp(1.45rem, 1.8vw, 1.78rem); line-height: 1.08; overflow-wrap: normal; word-break: normal; hyphens: none; }
.side-card p, .side-card li { color: rgba(255,255,255,.68); }
.side-card .price { color: var(--gold-soft); font-family: Georgia, serif; font-size: 2rem; margin-bottom: 0; }
.side-card .button { width: 100%; margin-top: 18px; }

.fit-section { background: var(--navy-2); color: var(--white); }
.fit-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.fit-copy h2 { color: var(--white); }
.fit-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit-panel { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; background: rgba(255,255,255,.04); }
.fit-panel.positive { border-color: rgba(215,194,143,.45); }
.fit-panel h3 { color: var(--white); font-size: 1.45rem; }
.fit-panel .check-list li, .fit-panel .dash-list li { color: rgba(255,255,255,.68); }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.faq-grid > div:first-child h2 { font-size: clamp(2.1rem, 3vw, 3.35rem); line-height: 1.05; max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; padding-right: 40px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -4px; font-size: 1.6rem; color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { padding-top: 14px; margin-bottom: 0; }

.application-section { background: var(--paper); }
.application-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.application-copy { position: sticky; top: 120px; }
.contact-note { margin-top: 34px; border-left: 2px solid var(--gold); padding-left: 18px; }
.contact-note strong, .contact-note span { display: block; }
.contact-note span { color: var(--muted); margin-top: 5px; }
.application-form { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.form-heading { margin-bottom: 26px; }
.form-heading h3 { margin-bottom: 7px; }
.form-heading p { margin-bottom: 0; }
.field-grid { display: grid; gap: 16px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
label { display: block; font-weight: 750; font-size: .92rem; margin-bottom: 16px; }
input, select, textarea { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); padding: 13px 14px; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(177,138,69,.14); }
textarea { resize: vertical; }
.form-privacy { font-size: .78rem; margin: 12px 0 0; }
.form-privacy a { color: var(--ink); font-weight: 700; }
.form-status { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 12px 0 0; }
.form-status.success { color: #1f6f43; }
.form-status.error { color: #9b2c2c; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.application-form button:disabled { opacity: .7; cursor: wait; transform: none; }

.page-cta { background: var(--navy); color: var(--white); text-align: center; }
.page-cta h2 { color: var(--white); max-width: 900px; margin-inline: auto; }
.page-cta p { color: rgba(255,255,255,.68); max-width: 760px; margin: 0 auto 30px; }

.notice { border-left: 3px solid var(--gold); background: var(--paper); padding: 20px 22px; border-radius: 0 12px 12px 0; margin: 28px 0; }
.notice p:last-child { margin-bottom: 0; }
.legal-meta { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 34px; }
.legal-meta p:last-child { margin-bottom: 0; }

.site-footer { background: #081622; color: var(--white); padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr .9fr; gap: 50px; }
.footer-grid h2 { font-family: inherit; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.footer-grid p, .footer-grid a { display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: .93rem; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { color: var(--white); margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,.48); font-size: .84rem; text-decoration: none; }


/* V6.1.2 — mobile overflow protection */
.hero-grid > *,
.professor-grid > *,
.fit-grid > *,
.faq-grid > *,
.application-grid > *,
.method-grid > *,
.content-grid > *,
.service-card > *,
.footer-grid > * { min-width: 0; }

.hero-card,
.card,
.service-card,
.offer-card,
.side-card,
.application-form,
.testimonial { max-width: 100%; }

h1, h2, h3, p, li, a, summary, dt, dd { overflow-wrap: break-word; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
@media (max-width: 1050px) {
  .section-pad { padding: 84px 0; }
  .hero-grid, .professor-grid, .fit-grid, .faq-grid, .application-grid, .method-grid, .content-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-card { min-height: 380px; }
  .four-up { grid-template-columns: repeat(2,1fr); }
  .proof-grid { grid-template-columns: repeat(2,1fr); }
  .proof-grid > div:nth-child(2) { border-right: 0; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .method-intro, .application-copy, .side-card { position: static; }
  .fit-panels { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .offer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 9px; background: transparent; border: 0; }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 20px; background: var(--paper-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; }
  .nav-cta { text-align: center; padding: 12px !important; }
  .three-up, .testimonials-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 50px 1fr; padding: 28px 22px; }
  .credentials-list > div { grid-template-columns: 1fr; gap: 4px; }
  .credentials-list dd { text-align: left; }
}
@media (max-width: 640px) {
  .container { width: 100%; max-width: 100%; padding-inline: 18px; margin-inline: auto; }
  .section-pad { padding: 64px 0; }
  .page-hero { padding: 68px 0 56px; }
  h1 { font-size: clamp(2.3rem, 11.5vw, 3.35rem); }
  h2 { font-size: clamp(1.9rem, 9.2vw, 2.75rem); }
  h3 { font-size: clamp(1.3rem, 7vw, 1.7rem); }
  p, li { font-size: 1rem; }
  .hero { min-height: auto; }
  .hero-grid { gap: 36px; }
  .hero-card { width: 100%; min-height: 315px; padding: 102px 24px 30px; border-radius: 22px; }
  .hero-card-title { font-size: 1.75rem; max-width: 100%; }
  .formula { top: 28px; right: 24px; font-size: 2rem; }
  .cta-row { flex-direction: column; }
  .button { width: 100%; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div { padding: 18px 10px; }
  .proof-grid strong { font-size: 1.08rem; }
  .proof-grid span { font-size: .82rem; }
  .four-up, .two-up { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; gap: 12px; padding: 24px 18px; }
  .service-index { font-size: 1.5rem; }
  .method-step { grid-template-columns: 42px minmax(0, 1fr); }
  .field-grid.two { grid-template-columns: 1fr; }
  .application-form { width: 100%; padding: 22px 16px; border-radius: 18px; }
  .side-card { width: 100%; padding: 24px 20px; }
  .side-card h3 { font-size: 1.42rem; overflow-wrap: anywhere; }
  .fit-panel, .card, .testimonial, .offer-card { padding: 22px 18px; }
  .faq-grid > div:first-child h2 { max-width: 100%; }
  .breadcrumbs { row-gap: 5px; }
  .portrait-wrap { width: min(50%, 143px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}


/* V6.1 refinements */
.testimonials-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
.price-note { font-size: .92rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) { .testimonials-grid-compact { grid-template-columns: 1fr; } }

@media (max-width: 390px) {
  .container { padding-inline: 16px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .proof-grid > div:last-child { border-bottom: 0; }
  .hero-card { padding-inline: 20px; }
  .application-form { padding-inline: 14px; }
}
