/* Dr. Biji's Academy & Counselling Centre — design system */
:root {
  --navy: #0e1b3d;
  --navy-2: #172a5c;
  --navy-3: #22397a;
  --gold: #b8893b;
  --gold-2: #d4a95a;
  --gold-soft: #efe0bd;
  --cream: #f6efe2;
  --ivory: #fbf8f2;
  --white: #ffffff;
  --ink: #18213d;
  --muted: #5b6378;
  --line: rgba(14, 27, 61, .1);
  --sage: #e9ece4;
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(14, 27, 61, .28);
  --shadow-sm: 0 10px 30px -18px rgba(14, 27, 61, .35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ml: "Noto Serif Malayalam", "Manjari", serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
em.gold, .gold { color: var(--gold); font-style: italic; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.ml { font-family: var(--ml); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-2); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 14px 30px -14px rgba(184, 137, 59, .8); }
.btn--ghost { border-color: rgba(14, 27, 61, .2); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--wa { background: #1fa855; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Announcement bar */
.announce { background: var(--navy); color: #e8dcc0; font-size: .85rem; text-align: center; padding: 9px var(--gutter); }
.announce a { color: var(--gold-2); font-weight: 700; margin-left: 8px; }
.announce p { margin: 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -24px rgba(14,27,61,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { height: 54px; width: auto; }
.brand__word { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: rgba(14,27,61,.06); }
.nav a.is-active { color: var(--gold); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__cta .btn { padding: 12px 20px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--ivory); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.m-link { font-family: var(--serif); font-size: 2rem; color: var(--navy); padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn-row { margin-top: 24px; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .header__inner { height: 72px; }
  .brand__mark { height: 44px; }
  .brand__word { height: 34px; }
  .header__cta .btn { display: none; }
}
@media (max-width: 380px) { .brand__word { height: 28px; } }

/* Hero */
.hero { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; background: radial-gradient(circle, rgba(212,169,90,.18), transparent 62%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .line2 { display: block; color: var(--gold); font-style: italic; font-weight: 500; }
.hero__sub { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--navy-3); font-style: italic; margin-bottom: 18px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--navy); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: 680px; justify-self: center; width: min(100%, 540px); }
.arch { position: absolute; inset: 0; border-radius: 300px 300px var(--radius-xl) var(--radius-xl); background: radial-gradient(120% 80% at 70% 10%, #2b4797 0%, var(--navy-2) 38%, var(--navy) 80%); overflow: hidden; box-shadow: var(--shadow); }
.arch::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -12%; top: -6%; background: radial-gradient(circle, rgba(244, 213, 140, .55), transparent 62%); }
.arch::after { content: ""; position: absolute; inset: 14px; border-radius: 290px 290px 30px 30px; border: 1px solid rgba(212,169,90,.35); }
.arch__swirl { position: absolute; left: -18%; top: 8%; width: 95%; opacity: .25; }
.hero__portrait { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 94%; width: auto; max-width: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); z-index: 2; }
.float-card { position: absolute; z-index: 3; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: .85rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); line-height: 1; }
.float-card .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card--a { left: -8%; top: 18%; }
.float-card--b { right: -6%; bottom: 14%; animation-delay: -3s; }
.float-card--c { left: -4%; bottom: 6%; animation-delay: -1.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(100%, 440px); }
  .float-card--a { left: -2%; } .float-card--b { right: -2%; } .float-card--c { display: none; }
}

/* Marquee strip */
.strip { background: var(--navy); color: #f2e6c9; overflow: hidden; padding: 18px 0; }
.strip__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.strip__track span { display: inline-flex; align-items: center; gap: 48px; }
.strip__track span::after { content: "✦"; color: var(--gold-2); font-style: normal; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section head */
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.head > div { max-width: 680px; }
.head h2 { margin-bottom: .25em; }
.center { text-align: center; margin-inline: auto; }
.head.center { justify-content: center; }
.head.center .eyebrow { justify-content: center; }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.quote-mark { font-family: var(--serif); font-size: 6rem; line-height: .5; color: var(--gold); display: block; height: 40px; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.pillar { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.pillar b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.pillar span { font-size: .9rem; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 34px 30px 30px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease, border-color .35s; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(212,169,90,.16), transparent 70%); transition: transform .5s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scale(1.4); }
.card__num { position: absolute; top: 26px; right: 28px; font-family: var(--serif); font-size: 1rem; color: rgba(14,27,61,.3); }
.card__icon { width: 58px; height: 58px; border-radius: 18px; background: var(--cream); color: var(--navy); display: grid; place-items: center; margin-bottom: 24px; transition: background .3s, color .3s; }
.card:hover .card__icon { background: var(--navy); color: var(--gold-2); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card .aud { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.card .link-arrow { margin-top: 8px; }
.card--navy { background: var(--navy); color: #d9deeb; border-color: transparent; }
.card--navy h3 { color: #fff; }
.card--navy p { color: #b9c1d6; }
.card--navy .card__icon { background: rgba(255,255,255,.08); color: var(--gold-2); }
.card--navy .link-arrow { color: var(--gold-2); }

/* Feature (career) */
.feature { background: var(--navy); color: #d6dcea; border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(212,169,90,.35), transparent 65%); }
.feature h2 { color: #fff; }
.feature .lead { color: #b9c1d6; }
.feature__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .feature__grid { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #f0e4c4; font-size: .88rem; font-weight: 600; }
.tag--dark { border-color: var(--line); color: var(--navy); background: #fff; }
.motto { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-style: italic; color: var(--gold-2); margin-top: 26px; }

/* Pathway */
.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.pathway::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 1px dashed rgba(184,137,59,.6); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__dot { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: #fff; border: 1px solid var(--gold-soft); color: var(--navy); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; box-shadow: var(--shadow-sm); position: relative; }
.step h4 { font-size: 1.35rem; margin-bottom: .3em; }
.step p { font-size: .92rem; color: var(--muted); }
@media (max-width: 800px) {
  .pathway { grid-template-columns: 1fr; gap: 26px; }
  .pathway::before { left: 34px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px dashed rgba(184,137,59,.6); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 18px; text-align: left; }
  .step__dot { margin: 0; }
}
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .paths { grid-template-columns: 1fr; } }
.path { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.path h3 { display: flex; align-items: center; gap: 12px; }
.path h3 small { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: var(--cream); color: var(--gold); padding: 5px 12px; border-radius: 999px; font-weight: 700; }
.path__flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.path__flow span { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 7px 13px; font-size: .88rem; font-weight: 600; color: var(--navy); }

/* Academy split w/ Malayalam */
.mm { background: linear-gradient(135deg, #fff 0%, var(--cream) 100%); border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mm__title { font-family: var(--ml); font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); line-height: 1.3; margin: 0; }
.mm__tag { font-family: var(--ml); font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--gold); margin: 6px 0 18px; }
.mm__steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.mm__steps span { font-family: var(--ml); background: #fff; border: 1px solid var(--gold-soft); color: var(--navy); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }
.mm__steps i { align-self: center; color: var(--gold); font-style: normal; }
.mm__big { position: absolute; right: -20px; bottom: -60px; font-family: var(--ml); font-size: 16rem; line-height: 1; color: rgba(184,137,59,.08); pointer-events: none; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8893b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.feature-list--light li::before { background-color: rgba(255,255,255,.1); }
.feature-list.two { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .feature-list.two { grid-template-columns: 1fr; } }

/* Why us */
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.why > div { background: #fff; padding: 30px 24px; }
.why strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }

@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, 1fr); } .why > div:last-child { grid-column: span 2; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } .why > div:last-child { grid-column: auto; } }

/* Meet */
.meet { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .meet { grid-template-columns: 1fr; } }
.portrait-frame { position: relative; border-radius: 260px 260px var(--radius-xl) var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--cream), #e8dcc4); box-shadow: var(--shadow); max-width: 460px; }
.portrait-frame img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 96%; width: auto; max-width: none; }
.portrait-frame::after { content: ""; position: absolute; inset: 12px; border-radius: 250px 250px 30px 30px; border: 1px solid rgba(184,137,59,.4); pointer-events: none; }
.signature { font-family: var(--serif); font-size: 2rem; color: var(--navy); font-style: italic; margin: 6px 0 0; }
.role { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--navy); font-style: italic; border-left: 2px solid var(--gold); padding-left: 24px; margin: 28px 0; }

/* Testimonials */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tcards { grid-template-columns: 1fr; } }
.tcard { background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
.tcard p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--navy); }
.tcard footer { font-size: .88rem; color: var(--muted); }
.tcard footer b { color: var(--navy); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.8rem; color: var(--gold); line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA */
.cta { position: relative; background: var(--navy); border-radius: var(--radius-xl); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); color: #cdd4e6; overflow: hidden; text-align: center; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(212,169,90,.25); }
.cta::before { width: 600px; height: 600px; left: -240px; top: -300px; }
.cta::after { width: 500px; height: 500px; right: -200px; bottom: -280px; }
.cta h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta .lead { color: #b9c1d6; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 30px; position: relative; z-index: 1; }
.cta small { display: block; margin-top: 22px; color: var(--gold-2); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .78rem; }

/* Page hero (inner) */
.phero { position: relative; padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.phero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -300px; background: radial-gradient(circle, rgba(212,169,90,.2), transparent 62%); }
.phero__inner { position: relative; max-width: 860px; }
.phero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
.phero .sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--navy-3); margin-bottom: 14px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs span { margin: 0 8px; color: var(--gold); }

/* Service detail */
.sd { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .sd { grid-template-columns: 1fr; } }
.side { position: sticky; top: 110px; background: var(--navy); color: #cdd4e6; border-radius: var(--radius-lg); padding: 32px; }
.side h3 { color: #fff; }
.side .btn { width: 100%; margin-top: 10px; }
.side hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 22px 0; }
.side a.tel { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(184,137,59,.14); }
.field .err { color: #b3261e; font-size: .85rem; margin-top: 6px; }
.field--check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .9rem; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.form-note svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info { display: grid; gap: 14px; }
.info a, .info div.i { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s, transform .2s; }
.info a:hover { border-color: var(--gold); transform: translateY(-2px); }
.info .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; flex-shrink: 0; }
.info .ic svg { width: 22px; height: 22px; }
.info small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.info b { color: var(--navy); font-weight: 700; }
.map { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); height: 420px; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* Qualifications */
.quals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .quals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quals { grid-template-columns: 1fr; } }
.qual { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: center; }
.qual .badge { width: 46px; height: 46px; border-radius: 50%; background: var(--cream); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.qual .badge svg { width: 22px; height: 22px; }
.qual b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); line-height: 1.15; }
.qual span { font-size: .85rem; color: var(--muted); line-height: 1.4; display: block; }

/* Footer */
.footer { background: var(--navy); color: #b7bfd4; padding: clamp(60px, 8vw, 96px) 0 30px; margin-top: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -500px; transform: translateX(-50%); background: radial-gradient(circle, rgba(212,169,90,.18), transparent 65%); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.footer__grid > div:first-child p { max-width: 34ch; font-size: .95rem; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer__grid > div:first-child, .footer__grid > div:last-child { grid-column: 1 / -1; }
}
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__logo { background: var(--ivory); border-radius: 22px; padding: 16px 20px; display: inline-block; margin-bottom: 22px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.footer__logo img { width: 170px; height: auto; }
.footer ul a { transition: color .2s; }
.footer__contact { gap: 14px !important; }
.footer__contact a, .footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--gold-2); }
.footer__contact span { overflow-wrap: anywhere; }
.footer__modes { color: var(--gold-2); font-size: .9rem; }
.footer__bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }

/* Mobile action bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 12px; right: 84px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: rgba(14,27,61,.94); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: var(--shadow); transform: translateY(0); transition: transform .35s; }
  .mbar.is-hidden { transform: translateY(140%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .04em; padding: 11px 6px; border-radius: 999px; }
  .mbar a:last-child { background: var(--gold); }
  .mbar svg { width: 17px; height: 17px; }
  body { padding-bottom: 80px; }
}

/* WhatsApp bot */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .7); transition: transform .25s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.4s ease-out infinite; }
.wa-fab .dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; background: #ff4d4f; border: 2px solid #fff; border-radius: 50%; }
.wa-open .wa-fab .dot { display: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 760px) { .wa-fab { bottom: 14px; right: 12px; width: 58px; height: 58px; } }

.wa-panel { position: fixed; right: 18px; bottom: 94px; z-index: 61; width: min(380px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #efeae2; border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); overflow: hidden; transform: translateY(20px) scale(.96); transform-origin: bottom right; opacity: 0; visibility: hidden; transition: all .3s cubic-bezier(.2,.8,.2,1); }
.wa-open .wa-panel { transform: none; opacity: 1; visibility: visible; }
@media (max-width: 760px) { .wa-panel { right: 12px; bottom: 84px; } }
.wa-head { background: #075e54; color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.wa-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; padding: 4px; }
.wa-head b { display: block; font-size: 1rem; }
.wa-head small { opacity: .85; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.wa-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25d366; }
.wa-close { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.wa-body { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; background-image: radial-gradient(rgba(7,94,84,.06) 1px, transparent 1px); background-size: 16px 16px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; animation: pop .25s ease; }
.msg--bot { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg--me { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa; animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
.wa-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.wa-quick button { background: #fff; border: 1px solid #128c7e; color: #075e54; border-radius: 999px; padding: 7px 14px; font-size: .84rem; font-weight: 600; transition: background .2s, color .2s; }
.wa-quick button:hover { background: #128c7e; color: #fff; }
.wa-go { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 999px; font-size: .88rem; align-self: flex-start; }
.wa-go svg { width: 18px; height: 18px; }
.wa-foot { display: flex; gap: 8px; padding: 10px; background: #f0f0f0; }
.wa-foot input { flex: 1; border: 0; border-radius: 999px; padding: 12px 16px; font: inherit; font-size: .92rem; }
.wa-foot input:focus { outline: 2px solid #25d366; }
.wa-foot button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #075e54; color: #fff; display: grid; place-items: center; }
.wa-foot button svg { width: 20px; height: 20px; }

/* Notice for demo DB */
.demo-note { background: #fff7e0; color: #7a5a12; font-size: .8rem; text-align: center; padding: 6px var(--gutter); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Thanks / 404 */
.notice { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(60px, 10vw, 140px) 0; }
.notice .seal { width: 90px; height: 90px; margin: 0 auto 26px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; }
.notice .seal svg { width: 40px; height: 40px; }
.notice .btn-row { justify-content: center; }

/* Refinements */
h1, h2, h3, h4, .float-card strong, .why strong, .qual b, .step__dot, .signature, .side a.tel { font-variant-numeric: lining-nums; }
.nav a { white-space: nowrap; padding: 8px 10px; font-size: .88rem; }
@media (max-width: 1320px) { .header__cta .btn { padding: 11px 16px; font-size: .78rem; } }
.portrait-frame img { bottom: auto; top: 7%; height: 150%; }
@media (max-width: 640px) {
  .hero__chips { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero__visual { margin-top: 8px; }
}

.socials a { transition: border-color .2s, background .2s, color .2s; }
.socials a:hover { border-color: var(--gold-2); background: rgba(212,169,90,.12); color: #fff; }
@media (max-width: 560px) { .footer__bottom { flex-direction: column; gap: 6px; } }

/* ===== Portrait presentation & motion ===== */
.hero__portrait { height: 94%; width: auto; max-width: none; bottom: 0; transform: translateX(-50%); animation: rise 1.2s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 40px); } }
.hero__glow { position: absolute; z-index: 1; left: 50%; top: 18%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(240, 200, 120, .45), rgba(212,169,90,.12) 45%, transparent 70%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%,100% { opacity: .65; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.arch { animation: archIn 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes archIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.orbit { position: absolute; z-index: 0; inset: -5% -7% 6% -7%; border-radius: 50%; border: 1px dashed rgba(184,137,59,.45); animation: spin 40s linear infinite; pointer-events: none; }
.orbit span { position: absolute; top: 50%; right: -7px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cf, var(--gold-2) 45%, var(--gold)); box-shadow: 0 0 18px 6px rgba(240,200,120,.55); }
@keyframes spin { to { transform: rotate(360deg); } }
.spark { position: absolute; left: var(--x); top: var(--y); width: calc(26px * var(--s)); height: calc(26px * var(--s)); z-index: 1; pointer-events: none; animation: twinkle 3.2s ease-in-out var(--dl, 0s) infinite; }
.spark::before, .spark::after { content: ""; position: absolute; left: 50%; top: 50%; background: linear-gradient(transparent, #ffe9b0, transparent); transform: translate(-50%, -50%); border-radius: 2px; }
.spark::before { width: 2px; height: 100%; } .spark::after { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #ffe9b0, transparent); }
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.arch__swirl .draw { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 3.2s ease .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.arch__swirl { opacity: .35; }
.name-tag { position: absolute; z-index: 3; left: 50%; bottom: -22px; transform: translateX(-50%); background: var(--navy); color: #fff; border: 1px solid rgba(212,169,90,.5); padding: 12px 22px; border-radius: 999px; text-align: center; white-space: nowrap; box-shadow: var(--shadow); animation: fadeUp .9s ease 1.1s both; }
.name-tag b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.name-tag span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.float-card { animation: floaty 6s ease-in-out infinite, popIn .8s cubic-bezier(.2,.8,.2,1) both; }
.float-card--a { animation-delay: 0s, .9s; } .float-card--b { animation-delay: -3s, 1.15s; } .float-card--c { animation-delay: -1.5s, 1.3s; }
@keyframes popIn { from { opacity: 0; scale: .8; } }
.float-card--c { left: -12%; bottom: 26%; }
.parallax-layer { transition: translate .4s ease-out; }

/* Hero text entrance */
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.mask > span { display: inline-block; animation: maskUp 1s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }
@keyframes maskUp { from { transform: translateY(105%); } }
.hero h1 .line2 { display: block; }
.shimmer { background: linear-gradient(100deg, var(--gold) 20%, #f3d796 40%, var(--gold) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: maskUp 1s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both, sheen 5s ease-in-out 1.6s infinite; }
@keyframes sheen { 0% { background-position: 100% 0; } 60%,100% { background-position: -50% 0; } }
.anim-in { animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }

/* Portrait frames */
.portrait-frame img { top: 7%; bottom: auto; height: 150%; width: auto; transform: translateX(-50%); }
.portrait-frame::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 60% 18%, rgba(255,236,190,.65), transparent 70%); }
.portrait-frame--navy { background: radial-gradient(120% 80% at 70% 10%, #2b4797 0%, var(--navy-2) 40%, var(--navy) 85%); }
.portrait-frame--navy::before { background: radial-gradient(60% 40% at 65% 15%, rgba(240,200,120,.4), transparent 70%); }

/* Reveal variants */
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal[data-reveal="zoom"] { transform: scale(.94); }
.reveal.is-in[data-reveal] { transform: none; }
.eyebrow::before { transition: width .9s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal:not(.is-in) .eyebrow::before { width: 0; }

/* Card tilt + shine */
.card { transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s ease; pointer-events: none; z-index: 1; }
.card:hover::before { transform: translateX(120%); }
.card--navy::before { background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.1) 50%, transparent 65%); }
.card__icon { transition: background .3s, color .3s, transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }

/* Buttons: sheen */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; z-index: -1; }
.btn:hover::after { transform: translateX(120%); }
.btn--gold { animation: goldPulse 3.5s ease-in-out infinite; }
@keyframes goldPulse { 0%,100% { box-shadow: 0 14px 30px -14px rgba(184,137,59,.8); } 50% { box-shadow: 0 14px 40px -8px rgba(212,169,90,.95); } }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80; background: linear-gradient(90deg, var(--gold), #f3d796); transform-origin: 0 50%; transform: scaleX(0); }

/* Drifting decorative blobs */
.section.bg-cream, .feature, .cta { position: relative; }
.bg-cream::after { content: ""; position: absolute; width: 380px; height: 380px; left: -120px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(212,169,90,.16), transparent 70%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.bg-cream > .wrap { position: relative; z-index: 1; }
@keyframes drift { to { transform: translate(80px, -60px) scale(1.15); } }
.feature::before, .cta::before { animation: drift 16s ease-in-out infinite alternate; }

/* Why-us and pathway */
.why > div { transition: background .4s, transform .4s; }
.why > div:hover { background: var(--cream); }
.step__dot { transition: transform .4s, background .4s, color .4s; }
.step:hover .step__dot { transform: translateY(-4px); background: var(--navy); color: var(--gold-2); }
.reveal.is-in .step__dot { animation: popIn .7s cubic-bezier(.2,.8,.2,1) both; }

/* Page fade-in */
main { animation: pageIn .7s ease both; }
@keyframes pageIn { from { opacity: 0; } }

@media (max-width: 960px) {
  .orbit { inset: -3% -4% 8% -4%; }
  .name-tag { bottom: -18px; padding: 10px 18px; }
}
@media (max-width: 640px) { .float-card--c { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mask > span, .shimmer, .anim-in, .hero__portrait, .arch, .name-tag { animation: none !important; opacity: 1 !important; transform: none; }
  .hero__portrait { transform: translateX(-50%); }
  .arch__swirl .draw { stroke-dashoffset: 0; }
  .shimmer { color: var(--gold); background: none; }
}
@media (max-width: 960px) {
  .hero__visual { margin-bottom: 34px; }
}

/* Name badge sits fully below the arch, never over the photo */
.hero__visual { margin-bottom: 92px; }
.name-tag { z-index: 5; top: calc(100% + 22px); bottom: auto; padding: 14px 30px; background: #fff; color: var(--navy); border: 1px solid var(--gold-soft); box-shadow: var(--shadow-sm); }
.name-tag::before { content: ""; position: absolute; left: 50%; top: -22px; width: 1px; height: 22px; background: linear-gradient(var(--gold), transparent); transform: translateX(-50%); }
.name-tag b { color: var(--navy); font-size: 1.4rem; }
.name-tag span { color: var(--gold); }
@media (max-width: 960px) { .hero__visual { margin-bottom: 86px; } .name-tag { top: calc(100% + 18px); bottom: auto; padding: 12px 22px; } .name-tag::before { top: -18px; height: 18px; } }
@media (max-width: 380px) { .name-tag span { font-size: .62rem; letter-spacing: .08em; } }
@media (min-width: 961px) { .hero__visual { width: min(100%, 480px); } .hero { padding-top: clamp(20px, 3vw, 40px); } }

/* Keep photos crisp on phones: draw at full resolution, no scaled/filtered layers */
.hero__portrait, .portrait-frame img { image-rendering: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
@media (max-width: 760px) {
  .hero__portrait { filter: drop-shadow(0 18px 24px rgba(0,0,0,.3)); }
  .reveal[data-reveal="left"], .reveal[data-reveal="right"] { transform: translateY(24px); }
}
@media (max-width: 760px) {
  .header { background: var(--ivory); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .float-card { padding: 10px 12px; gap: 10px; font-size: .76rem; border-radius: 16px; }
  .float-card .ic { width: 34px; height: 34px; border-radius: 11px; }
  .float-card .ic svg { width: 18px; height: 18px; }
  .float-card strong { font-size: 1.35rem; }
  .float-card--a { left: -3%; top: auto; bottom: 5%; }
  .float-card--b { right: -3%; top: auto; bottom: 5%; }
}
/* Don't enlarge the portrait beyond its native resolution */
.portrait-frame img { top: 6%; height: 125%; }
@media (max-width: 760px) { .portrait-frame img { top: 5%; height: 112%; } }

/* ================= Layout & polish pass ================= */
/* Inner-page hero aligns with the page grid */
.phero__inner { max-width: 880px; }
.phero h1 { max-width: 24ch; }

/* Card grids: balanced rows, no orphans */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cards > * { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; }
@media (min-width: 1101px) { .cards:has(> :nth-child(4):last-child) > * { flex-basis: calc((100% - 60px) / 4); padding: 30px 24px 26px; } }
@media (max-width: 1100px) { .cards:has(> :nth-child(4):last-child) > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 1000px) { .cards > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .cards > *, .cards:has(> :nth-child(4):last-child) > * { flex-basis: 100%; } }
.card__native { display: block; font-size: .72em; color: var(--gold); margin-top: 4px; }
.card__num { color: rgba(14,27,61,.35); font-size: 1.05rem; }

/* Why Dr. Biji's */
.why { display: grid; grid-template-columns: repeat(5, 1fr); }
.why > div { padding: 30px 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.why__ic { width: 46px; height: 46px; border-radius: 14px; background: var(--cream); color: var(--gold); display: grid; place-items: center; margin-bottom: 12px; }
.why__ic svg { width: 22px; height: 22px; }
.why strong { font-family: var(--serif); font-size: 1.55rem; color: var(--navy); line-height: 1.15; margin: 0; display: block; }
.why strong span { color: var(--gold); }
.why p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1100px) { .why { grid-template-columns: 1fr 1fr; } .why > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .why { grid-template-columns: 1fr; } .why > div:last-child { grid-column: auto; } .why > div { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 22px 20px; } .why__ic { margin: 0; } .why strong { flex: 1; } .why p { flex-basis: 100%; } }

/* MalayalaMithram steps: arrows travel with their word */
.mm__steps { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.mm__steps li { font-family: var(--ml); background: #fff; border: 1px solid var(--gold-soft); color: var(--navy); border-radius: 999px; padding: 7px 14px; font-size: .95rem; display: inline-flex; align-items: center; }
.mm__steps li:not(:last-child)::after { content: "→"; color: var(--gold); margin-left: 10px; font-family: var(--sans); }
.mm__steps li:last-child { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }

/* Section rhythm */
.split--top { align-items: start; }
.cta-section { padding-top: clamp(64px, 9vw, 120px); }
.section + .cta-section, .section--tight + .cta-section { padding-top: 0; }
.bg-cream + .cta-section, .bg-white + .cta-section { padding-top: clamp(64px, 9vw, 120px); }
.cta h2 { max-width: 22ch; }
.footer { margin-top: clamp(64px, 9vw, 120px); }
main > section:last-child.bg-cream + * { margin-top: 0; }
.bg-cream, .bg-white, .section { position: relative; }
.bg-cream { overflow: hidden; }
.crisis-note { justify-content: center; text-align: center; font-size: .92rem; max-width: 720px; margin: 0 auto; }

/* Button rows */
.btn-row--inline { align-items: center; gap: 18px 22px; }
@media (max-width: 640px) {
  .btn-row .btn { flex: initial; }
  .hero .btn-row .btn, .cta .btn-row .btn, .side .btn { width: 100%; }
  .btn-row--inline .btn { flex: 1 1 auto; }
  .eyebrow--hero { font-size: .68rem; letter-spacing: .14em; }
  .eyebrow--hero::before { display: none; }
  h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .lead { font-size: 1.02rem; }
  .section { padding-block: 64px; }
  .phero { padding-top: 36px; padding-bottom: 28px; }
  .phero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .feature, .cta, .mm { border-radius: 28px; }
  .info a, .info div.i { padding: 16px; gap: 14px; }
  .info .ic { width: 40px; height: 40px; }
  .form-card { border-radius: 26px; }
  .footer ul { font-size: .95rem; }
  .footer__logo img { width: 150px; }
  .quote-mark { display: none; }
  .head { margin-bottom: 28px; }
  .tags { gap: 8px; }
  .tag { padding: 8px 14px; font-size: .84rem; }
}
@media (min-width: 641px) { .cards:has(> :nth-child(2):last-child) > * { flex-basis: calc((100% - 20px) / 2); } }
main:has(> section:last-child.bg-cream) + .footer, main:has(> section:last-child.bg-white) + .footer { margin-top: 0; }
.audience { text-wrap: pretty; }

/* About the Centre: left column content */
.about-intro { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--navy-3); margin: 6px 0 28px; max-width: 30ch; }
.who__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.who__grid { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.who__grid li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: .92rem; color: var(--navy); transition: border-color .25s, transform .25s; }
.who__grid li:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.who__grid li span { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--cream); color: var(--gold); display: grid; place-items: center; }
.who__grid li svg { width: 17px; height: 17px; }
.visit-card { position: relative; overflow: hidden; background: var(--navy); color: #cdd4e6; border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 16px; }
.visit-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(212,169,90,.35), transparent 65%); pointer-events: none; }
.visit-card__row { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.visit-card__ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--gold-2); display: grid; place-items: center; }
.visit-card__ic svg { width: 19px; height: 19px; }
.visit-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.visit-card b { color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.45; }
.visit-card .btn-row { position: relative; margin-top: 4px; }
.visit-card .btn { padding: 13px 20px; }
@media (max-width: 1100px) { .who__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .who__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .who__grid { grid-template-columns: repeat(2, 1fr); } .visit-card { padding: 22px 20px; } .visit-card .btn { flex: 1 1 auto; } }
.split--top > div:first-child h2 { margin-bottom: 26px; }

/* ================= Footer (rebuilt) ================= */
.ft { padding: clamp(56px, 7vw, 88px) 0 0; color: #b9c1d6; font-size: .95rem; }
.ft a { color: inherit; transition: color .2s; }
.ft a:hover { color: #fff; }
.ft__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 48px; align-items: start; }
.ft__brand p { margin: 0 0 22px; max-width: 34ch; line-height: 1.65; }
.ft__logo { display: inline-block; background: var(--ivory); border-radius: 20px; padding: 14px 18px; margin-bottom: 22px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.7); }
.ft__logo img { width: 168px; height: auto; display: block; }
.ft__social { display: flex; flex-wrap: wrap; gap: 10px; }
.ft__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: #dfe4ef; transition: background .2s, border-color .2s, color .2s; }
.ft__social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.ft__social svg { width: 18px; height: 18px; }
.ft h4 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin: 6px 0 20px; line-height: 1.2; }
.ft__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ft__col ul a { display: inline-block; line-height: 1.4; }
.ft__col ul a:hover { transform: translateX(3px); }
.ft__contact { gap: 16px !important; }
.ft__contact li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.55; }
.ft__contact svg { width: 18px; height: 18px; margin-top: 2px; color: var(--gold-2); }
.ft__contact a:hover { transform: none; }
.ft__contact a, .ft__contact span { overflow-wrap: anywhere; }
.ft__modes { color: var(--gold-2); }
.ft__bottom { position: relative; margin-top: clamp(44px, 6vw, 64px); padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; align-items: center; font-size: .84rem; color: #97a1ba; }
.ft__bottom p { margin: 0; }
.ft__tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-2); text-align: center; }
.ft__credit { text-align: right; }
.ft__credit a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(212,169,90,.6); padding-bottom: 1px; }
.ft__credit a:hover { color: var(--gold-2); border-color: var(--gold-2); }
@media (max-width: 1100px) {
  .ft__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .ft__bottom { grid-template-columns: 1fr; text-align: center; }
  .ft__credit, .ft__tag { text-align: center; }
  .ft__tag { order: -1; }
}
@media (max-width: 600px) {
  .ft__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .ft__brand, .ft__grid > .ft__col:last-child { grid-column: 1 / -1; }
  .ft__brand { text-align: center; }
  .ft__brand p { margin-inline: auto; }
  .ft__social { justify-content: center; }
  .ft__logo img { width: 150px; }
  .ft__col ul { gap: 11px; font-size: .92rem; }
  .ft__bottom { padding-bottom: 96px; }
}
