/* ═══════════════════════════════════════════════════════════
   KING'S CANTERBURY BENGALURU · FOUNDING WAITLIST
   Brand palette — Pantone verified, Aug 2026
═══════════════════════════════════════════════════════════ */

/* ── BRAND COLOR TOKENS ──────────────────────────────────── */
:root {
  /* Primary */
  --kings-blue:    #006298;   /* Pantone 7691C  — primary brand blue  */
  --kings-light:   #B7C9E2;   /* Pantone 2127C  — light blue          */
  --white:         #FFFFFF;
  --black:         #000000;

  /* Canterbury extended palette */
  --cant-light:    #E3E3DD;   /* Pantone 9101C  — light background    */
  --cant-stone:    #D7D2C4;   /* Pantone 7527C  — borders / stone     */
  --flint-light:   #D0D3D4;   /* Pantone 427C   — light grey          */
  --flint:         #76787B;   /* Pantone Cool Grey 9C — body text     */

  /* Semantic shortcuts */
  --bg-dark:       var(--black);
  --bg-brand:      var(--kings-blue);
  --bg-neutral:    var(--cant-light);
  --text-heading:  var(--black);
  --text-body:     var(--flint);
  --text-on-dark:  rgba(255,255,255,0.72);
  --border:        var(--cant-stone);
}

/* ── LOCAL FONTS ─────────────────────────────────────────── */
@font-face {
  font-family: 'FreightBigPro';
  src: url('../Font/Primary Font - Freight/freight-big-pro-medium-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../Font/Secondary - Open_Sans Font/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-display: swap;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
body {
  font-family: 'OpenSans', 'Open Sans', sans-serif;
  background: var(--white);
  color: var(--text-heading);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — HERO
═══════════════════════════════════════════════════════════ */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

/* ── Left — form panel ── */
.hero-left {
  background: var(--kings-blue);
  padding: 52px 56px 68px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}


/* ── Right — image ── */
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
  transition: transform 10s ease;
  transform: scale(1.04);
}
.hero-right img.hero-loaded { transform: scale(1.0); }

/* ── Logo ── */
.logo-wrap { margin-bottom: 40px; }
.logo-wrap img { height: 136px; width: auto; max-width: 240px; }

/* ── Hero text ── */
.hero-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kings-light);
  margin-bottom: 18px;
  position: relative;
}

.hero-h1 {
  font-family: 'FreightBigPro', Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  max-width: 480px;
}

.form-heading {
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: 20px;
  color: var(--kings-light);
  margin-bottom: 4px;
  position: relative;
}
.form-subline {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   FORMS — shared (hero + popup)
═══════════════════════════════════════════════════════════ */
.kcb-form { position: relative; }

.frow { margin-bottom: 14px; }

.kcb-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-bottom: 6px;
}

.kcb-form input,
.kcb-form select {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  color: var(--white);
  font-size: 13.5px;
  font-family: 'OpenSans', sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.kcb-form input:focus,
.kcb-form select:focus {
  outline: none;
  border-color: var(--kings-light);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(183,201,226,0.15);
}
.kcb-form input::placeholder { color: rgba(255,255,255,0.28); }
.kcb-form select option { background: var(--kings-blue); color: #fff; }

/* ── Validation states ── */
.kcb-form input.field-error,
.kcb-form select.field-error {
  border-color: #f87171 !important;
  background: rgba(248,113,113,0.08) !important;
}
.error-msg {
  display: none;
  font-size: 10.5px;
  color: #fca5a5;
  margin-top: 4px;
  line-height: 1.4;
}
.error-msg.visible { display: block; }

/* ── Phone wrap ── */
.phone-wrap {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-wrap:focus-within {
  border-color: var(--kings-light);
  box-shadow: 0 0 0 3px rgba(183,201,226,0.15);
}
.phone-wrap.field-error { border-color: #f87171 !important; }
.phone-prefix {
  padding: 11px 12px 11px 13px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
  user-select: none;
  display: flex;
  align-items: center;
}
.phone-wrap input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1;
  min-width: 0;
  box-shadow: none !important;
}

/* ── Two-column grid ── */
.f2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */

/* White button — hero / popup (on blue bg) */
.btn-black {
  display: block;
  width: 100%;
  background: var(--white);
  color: var(--kings-blue);
  border: none;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'OpenSans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  margin-top: 8px;
}
.btn-black:hover {
  background: var(--kings-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.btn-black:active { transform: translateY(0); }

/* King's Blue button — light sections */
.btn-primary {
  display: inline-block;
  background: var(--kings-blue);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'OpenSans', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background: #004f7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,98,152,0.35);
}
.btn-primary:active { transform: translateY(0); }

/* King's Blue outline — light sections */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--kings-blue);
  border: 1.5px solid var(--kings-blue);
  padding: 13px 36px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'OpenSans', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline:hover { background: var(--kings-blue); color: var(--white); }

/* White outline — dark/blue sections */
.btn-outline-light {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 13px 36px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'OpenSans', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
}

/* Privacy line */
.privacy {
  font-size: 10.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
  margin-top: 10px;
  text-align: center;
}

/* ── Thank-you state ── */
.ty { display: none; }
.ty.show { display: block; padding: 40px 0 20px; }
.ty h3 {
  font-family: 'FreightBigPro', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.ty p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.8; }

/* ═══════════════════════════════════════════════════════════
   PATTERN STRIP — brand element between sections
═══════════════════════════════════════════════════════════ */
.pattern-strip {
  height: 5px;
  background: var(--kings-blue);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — TRUST STRIP
═══════════════════════════════════════════════════════════ */
#trust {
  background: var(--cant-stone);
  padding: 56px 48px;
}
.trust-row {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}

.t-block {
  flex: 1;
  min-width: 160px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(0,98,152,0.2);
}
.t-block:first-child { padding-left: 0; }
.t-block:last-child  { padding-right: 0; border-right: none; }

.t-num {
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: 36px;
  color: var(--kings-blue);
  line-height: 1;
  margin-bottom: 6px;
  white-space: nowrap;
}
.t-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.52);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION UTILITIES
═══════════════════════════════════════════════════════════ */
.section-intro {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kings-blue);
  margin-bottom: 14px;
  font-family: 'OpenSans', sans-serif;
}
.eyebrow-light {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kings-light);
  margin-bottom: 14px;
  font-family: 'OpenSans', sans-serif;
}

.section-h {
  font-family: 'FreightBigPro', Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.2;
  color: var(--text-heading);
}
.section-h-light {
  font-family: 'FreightBigPro', Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.2;
  color: var(--white);
}

.section-sub {
  font-size: 17px;
  color: var(--flint);
  line-height: 1.75;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — PILLARS
═══════════════════════════════════════════════════════════ */
#pillars {
  padding: 80px 48px;
  background: var(--cant-light);
  position: relative;
  overflow: hidden;
}


.pillars-wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  background: var(--white);
  padding: 44px 36px;
  border-radius: 2px;
  border-top: 3px solid var(--kings-blue);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.pillar:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }

.pillar-icon {
  font-size: 28px;
  color: var(--kings-blue);
  margin-bottom: 20px;
}
.pillar h3 {
  font-family: 'FreightBigPro', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.3;
}
.pillar p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--flint);
}

.pillars-cta { text-align: center; margin-top: 56px; }

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — QUOTE
═══════════════════════════════════════════════════════════ */
#quote {
  background: var(--kings-light);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.quote-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

.portrait-wrap { text-align: center; }
.portrait-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--kings-blue);
  box-shadow: 0 0 0 8px rgba(0,98,152,0.14);
}

.quote-mark {
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: 120px;
  color: var(--kings-blue);
  line-height: 0.55;
  margin-bottom: 28px;
  opacity: 0.28;
}
.quote-text {
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: clamp(24px, 2.8vw, 36px);
  color: var(--kings-blue);
  line-height: 1.35;
  margin-bottom: 32px;
}
.quote-attr {
  font-size: 15px;
  color: var(--kings-blue);
  letter-spacing: 0.5px;
  font-weight: 600;
}
.quote-attr span {
  display: block;
  color: rgba(0,0,0,0.55);
  font-size: 13px;
  font-weight: 400;
  margin-top: 5px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — CAMPUS SHOWCASE
═══════════════════════════════════════════════════════════ */
#campus { padding: 80px 48px; background: var(--white); }

.campus-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.campus-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cant-light);
}
.campus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.campus-card:hover img { transform: scale(1.07); }
.campus-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 56px 20px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, transparent 100%);
  color: var(--white);
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: 17px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.campus-card:hover .campus-cap { opacity: 1; transform: translateY(0); }

.campus-cta { text-align: center; margin-top: 52px; }

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — FOUNDING GENERATION
═══════════════════════════════════════════════════════════ */
#founding {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.founding-bg {
  position: absolute;
  inset: 0;
}
.founding-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 12s ease;
}
#founding.visible-section .founding-bg img { transform: scale(1); }

.founding-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,98,152,0.92) 0%,
    rgba(0,78,120,0.82) 50%,
    rgba(0,0,0,0.88) 100%);
}


.founding-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 64px;
  align-items: start;
  width: 100%;
}

.year-mark {
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: 88px;
  color: rgba(183,201,226,0.18);
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  user-select: none;
  letter-spacing: -4px;
}

.founding-content h2 {
  font-family: 'FreightBigPro', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 46px);
  color: var(--white);
  line-height: 1.2;
  margin: 12px 0 28px;
}
.founding-content p {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  max-width: 640px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 7 — FAQ
═══════════════════════════════════════════════════════════ */
#faq { padding: 108px 48px; background: var(--cant-light); }

.faq-wrap { max-width: 800px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--cant-stone); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  cursor: pointer;
  gap: 24px;
  user-select: none;
}
.faq-q span {
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: 20px;
  color: var(--black);
  line-height: 1.3;
  flex: 1;
  transition: color 0.2s ease;
}
.faq-item:hover .faq-q span,
.faq-item.open .faq-q span { color: var(--kings-blue); }

.faq-icon {
  font-size: 20px;
  color: var(--kings-blue);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  font-size: 16px;
  line-height: 1.9;
  color: var(--flint);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding-bottom 0.35s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 28px; }

/* ═══════════════════════════════════════════════════════════
   SECTION 8 — CTA STRIP
═══════════════════════════════════════════════════════════ */
#cta-strip {
  background: var(--kings-blue);
  padding: 88px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip-inner { position: relative; max-width: 640px; margin: 0 auto; }
#cta-strip .section-h-light { margin: 12px 0 18px; }
#cta-strip > .cta-strip-inner > p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: #0A1628;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
footer img { height: 64px; width: auto; }

.foot-info {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  text-align: right;
}
.foot-info a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s ease; }
.foot-info a:hover { color: var(--kings-light); }

/* ═══════════════════════════════════════════════════════════
   STICKY BAR
═══════════════════════════════════════════════════════════ */
#sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--kings-blue);
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
#sticky.show { transform: translateY(0); }

.sticky-text {
  font-family: 'FreightBigPro', Georgia, serif;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}
.sticky-btn {
  background: var(--white);
  color: var(--kings-blue);
  border: none;
  padding: 11px 24px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'OpenSans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.sticky-btn:hover { background: var(--kings-light); }

/* ═══════════════════════════════════════════════════════════
   POPUP MODAL
═══════════════════════════════════════════════════════════ */
#popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#popup.open { opacity: 1; pointer-events: auto; }

.popup-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-card {
  position: relative;
  z-index: 1;
  background: var(--kings-blue);
  width: 92%;
  max-width: 580px;
  max-height: 92svh;
  overflow-y: auto;
  border-radius: 3px;
  padding: 52px 48px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  border-top: 3px solid var(--kings-light);
}
#popup.open .popup-card { transform: translateY(0) scale(1); }

.popup-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 28px;
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.popup-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.popup-head { margin-bottom: 28px; position: relative; }
.popup-head h3 {
  font-family: 'FreightBigPro', Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  color: var(--white);
  margin: 10px 0 8px;
  line-height: 1.2;
}
.popup-head > p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   PREMIUM ANIMATIONS
═══════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--kings-light);
  z-index: 500;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Hero entrance (above-fold stagger) ── */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-tag     { animation: heroUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.15s both; }
.hero-h1      { animation: heroUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.30s both; }
.hero-sub     { animation: heroUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.48s both; }
.form-heading { animation: heroUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.62s both; }
.form-subline { animation: heroUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.70s both; }
.kcb-form     { animation: heroUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.82s both; }
.hero-right   { animation: heroRight 1.1s cubic-bezier(0.16,1,0.3,1) 0.1s both; }

/* ── Button shimmer sweep ── */
.btn-black,
.btn-outline,
.btn-outline-light,
.btn-primary,
.sticky-btn {
  position: relative;
  overflow: hidden;
}
.btn-black::after,
.btn-outline::after,
.btn-outline-light::after,
.btn-primary::after,
.sticky-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-black:hover::after,
.btn-outline:hover::after,
.btn-outline-light:hover::after,
.btn-primary:hover::after,
.sticky-btn:hover::after { left: 160%; }

/* ── Pillar icon spring ── */
.pillar-icon {
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.pillar:hover .pillar-icon { transform: scale(1.22) rotate(-6deg); }

/* ── Trust blocks fade-in cascade ── */
@keyframes trustIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.t-block { opacity: 0; animation: trustIn 0.6s ease forwards; }
.t-block:nth-child(1) { animation-delay: 0.05s; }
.t-block:nth-child(2) { animation-delay: 0.15s; }
.t-block:nth-child(3) { animation-delay: 0.25s; }
.t-block:nth-child(4) { animation-delay: 0.35s; }
.t-block:nth-child(5) { animation-delay: 0.45s; }

/* ── Portrait subtle breathe ── */
@keyframes portraitBreathe {
  0%, 100% { box-shadow: 0 0 0 8px rgba(0,98,152,0.14); }
  50%       { box-shadow: 0 0 0 14px rgba(0,98,152,0.08); }
}
.portrait-img { animation: portraitBreathe 4s ease-in-out infinite; }

/* ── Section divider line grow ── */
.eyebrow { position: relative; display: inline-block; }
.eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--kings-blue);
  width: 0;
  margin: 8px auto 0;
  transition: width 0.6s ease 0.2s;
  opacity: 0.35;
}
.reveal.visible .eyebrow::after,
.section-intro.visible .eyebrow::after { width: 48px; }

/* ── Form input focus lift ── */
.kcb-form input:focus,
.kcb-form select:focus {
  transform: translateY(-1px);
}

/* ── Campus card image parallax ── */
.campus-card { isolation: isolate; }

/* ── Founding year watermark fade ── */
.year-mark {
  transition: opacity 1.2s ease, transform 1.2s ease;
  opacity: 0;
  transform: rotate(180deg) translateY(20px);
}
#founding.visible-section .year-mark {
  opacity: 1;
  transform: rotate(180deg) translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .campus-grid   { grid-template-columns: repeat(2, 1fr); }
  .pillars-wrap  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .founding-inner { grid-template-columns: 1fr; }
  .year-mark { display: none; }
  .quote-wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .portrait-wrap { display: flex; flex-direction: column; align-items: center; }
  .portrait-img { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; }
  .hero-left  { padding: 36px 24px 52px; order: 1; }
  .hero-right { min-height: 280px; order: 2; }

  #trust { padding: 32px 20px; }
  .trust-row { flex-wrap: wrap; justify-content: center; gap: 20px 0; }
  .t-block {
    flex: 0 0 50%;
    min-width: 0;
    border-right: none;
    padding: 12px 16px;
    text-align: center;
    align-items: center;
    border-bottom: 1px solid rgba(0,98,152,0.15);
  }
  .t-block:first-child, .t-block:nth-child(2) { padding-top: 0; }
  .t-block:last-child, .t-block:nth-last-child(2) { border-bottom: none; }

  #pillars, #campus, #faq, #cta-strip { padding: 72px 24px; }
  #quote { padding: 72px 24px; }
  .founding-inner { padding: 72px 24px; }

  .pillars-wrap  { grid-template-columns: 1fr; }
  .f2col         { grid-template-columns: 1fr; }

  footer { flex-direction: column; align-items: center; text-align: center; padding: 40px 24px; }
  .foot-info { text-align: center; }

  .campus-cap { opacity: 1; transform: none; }
  .pattern-strip { height: 48px; background-size: auto 48px; }

  /* ── Mobile centering ─────────────────────────────── */
  .hero-left { text-align: center; }
  .hero-h1, .hero-tag, .hero-sub { text-align: center; }
  .kcb-form { text-align: left; } /* keep form labels left-aligned */

  /* Logo: block img needs margin:auto to centre — text-align doesn't apply */
  .logo-wrap { text-align: center; }
  .logo-wrap img { margin-left: auto; margin-right: auto; }

  .btn-black {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .pillar { text-align: center; }
  .pillar-icon { margin-left: auto; margin-right: auto; }

  .founding-inner { text-align: center; }
  .founding-inner .eyebrow,
  .founding-inner .section-h-light,
  .founding-inner p { text-align: center; }

  #cta-strip { text-align: center; }
  #cta-strip .btn-black { max-width: 400px; margin: 0 auto; display: block; }

  .section-intro { text-align: center; }
}

@media (max-width: 480px) {
  .campus-grid { grid-template-columns: 1fr; }
  .campus-card { aspect-ratio: 16/9; }
  .hero-h1 { font-size: 26px; }
  #trust .t-block { flex: 0 0 100%; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — MID-PAGE FORM
═══════════════════════════════════════════════════════════ */
#mid-form {
  background: var(--cant-light);
  padding: 80px 48px;
}

.mid-form-wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.mid-form-info { padding-top: 8px; }
.mid-form-info .section-h { margin-bottom: 20px; }
.mid-form-info p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--flint);
  margin-top: 16px;
}

.mid-form-card {
  background: var(--kings-blue);
  padding: 44px 40px;
  border-radius: 3px;
  border-top: 3px solid var(--kings-light);
}

/* ─── Bottom CTA — inline mini form ─── */
#cta-strip { padding: 88px 48px; }

.cta-mini-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 640px;
  margin: 36px auto 0;
  flex-wrap: wrap;
}
.cta-mini-form .frow {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
}
.cta-mini-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-bottom: 6px;
}
.cta-mini-form input {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 3px;
  color: var(--white);
  font-size: 14px;
  font-family: 'OpenSans', sans-serif;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}
.cta-mini-form input:focus {
  outline: none;
  border-color: var(--kings-light);
  background: rgba(255,255,255,0.14);
}
.cta-mini-form input::placeholder { color: rgba(255,255,255,0.32); }
.cta-mini-form .btn-outline-light {
  white-space: nowrap;
  flex-shrink: 0;
  height: auto;
  align-self: flex-end;
}
.cta-ty {
  margin-top: 24px;
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  display: none;
}
.cta-ty.show { display: block; }

@media (max-width: 900px) {
  .mid-form-wrap { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  #mid-form { padding: 72px 24px; }
  .mid-form-card { padding: 32px 24px; }
  .cta-mini-form { flex-direction: column; }
  .cta-mini-form .frow { min-width: 100%; }
  .cta-mini-form .btn-outline-light { width: 100%; text-align: center; }
  .logo-wrap img { height: 120px; }

  /* Sticky bar: stack text + button so nothing gets clipped */
  #sticky {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 18px;
    gap: 10px;
  }
  .sticky-text { text-align: center; font-size: 13px; }
  .sticky-btn  { white-space: normal; text-align: center; width: 100%; }
}
