
:root{--blue:#2563EB;--navy:#071A3A;--ink:#0B1220;--muted:#64748B;--line:#E2E8F0;--soft:#F5F8FC;--white:#fff;--radius:20px;--shadow:0 20px 50px rgba(15,23,42,.09)}
*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:"DM Sans",sans-serif;color:var(--ink);line-height:1.65;background:#fff}h1,h2,h3,h4{font-family:Manrope,sans-serif;line-height:1.12}h1{font-size:clamp(3rem,6vw,5.7rem);letter-spacing:-.055em}h2{font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.04em}h3{font-size:1.3rem}p{color:var(--muted)}a{text-decoration:none;color:inherit}.container{width:min(1160px,calc(100% - 40px));margin:auto}.site-header{height:82px;background:#fff;border-bottom:1px solid rgba(226,232,240,.75);position:sticky;top:0;z-index:20}.nav-wrap{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--blue);color:#fff;font:800 1.4rem Manrope,"Segoe UI",Arial,sans-serif;box-shadow:0 8px 20px rgba(37,99,235,.22)}.brand-text{display:flex;flex-direction:column;line-height:1}.brand-text strong{font:800 .93rem Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:.07em}.brand-text small{margin-top:5px;color:var(--muted);font-size:.65rem;letter-spacing:.1em}.site-nav{display:flex;align-items:center;gap:30px;font-weight:600;font-size:.9rem}.site-nav a{transition:.25s}.site-nav a:hover{color:var(--blue)}.site-nav .nav-cta{padding:11px 18px;background:var(--blue);color:#fff;border-radius:10px}.menu-toggle{display:none;border:0;background:none;font-size:1.6rem}.hero{position:relative;overflow:hidden;background:var(--navy);color:#fff;padding:100px 0 85px}.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(37,99,235,.24),transparent 32%);pointer-events:none}.hero-grid{display:grid;grid-template-columns:1fr;gap:0;align-items:center;position:relative;z-index:1}.eyebrow{display:block;color:var(--blue);font-size:.73rem;font-weight:800;letter-spacing:.17em;margin-bottom:16px}.eyebrow.light{color:#93B4FF}.hero h1{margin-bottom:24px}.hero h1 span{color:#76A2FF}.hero-lead{color:#C9D5E8;font-size:1.1rem;max-width:650px}.button-row{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0 38px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:11px;padding:13px 20px;font-weight:700;cursor:pointer;transition:.25s}.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(37,99,235,.3)}.btn-outline-light{border:1px solid rgba(255,255,255,.3);color:#fff}.btn-outline-light:hover{background:rgba(255,255,255,.08)}.btn-dark{background:var(--ink);color:#fff}.hero-proof{display:flex;gap:34px}.hero-proof div{display:flex;flex-direction:column}.hero-proof strong{font:800 1.35rem Manrope,"Segoe UI",Arial,sans-serif}.hero-proof span{font-size:.78rem;color:#9FB0C7}.hero-visual{position:relative;min-height:500px;display:grid;place-items:center}.portrait-placeholder{width:min(410px,90%);height:500px;border-radius:28px;background:linear-gradient(145deg,#173665,#0C2347);border:1px solid rgba(255,255,255,.15);display:flex;flex-direction:column;justify-content:flex-end;padding:30px;color:#fff;box-shadow:0 30px 80px rgba(0,0,0,.3);text-align:left}.portrait-placeholder span{font:800 1.5rem Manrope,"Segoe UI",Arial,sans-serif}.portrait-placeholder small{color:#9FB0C7;margin-top:4px}.portrait-placeholder.large{height:570px;width:100%;max-width:480px}.floating-card{position:absolute;right:0;bottom:30px;width:210px;background:#fff;color:var(--ink);padding:17px 19px;border-radius:14px;box-shadow:var(--shadow);display:flex;flex-direction:column}.floating-card strong{font-family:Manrope}.floating-card span{font-size:.76rem;color:var(--muted);margin-top:4px}.section{padding:100px 0}.section-soft{background:var(--soft)}.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}.lead{font-size:1.1rem}.split-grid p+p{margin-top:18px}.text-link{display:inline-block;color:var(--blue);font-weight:700;margin-top:22px}.center-heading{text-align:center;max-width:760px;margin:0 auto 55px}.center-heading p{font-size:1.05rem}.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.info-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;transition:.25s}.info-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.card-number{font:800 .78rem Manrope,"Segoe UI",Arial,sans-serif;color:var(--blue);display:block;margin-bottom:50px}.info-card h3{margin-bottom:12px}.approach-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:100px}.steps{display:flex;flex-direction:column;gap:0}.step{display:grid;grid-template-columns:55px 1fr;gap:20px;padding:0 0 35px;margin-bottom:35px;border-bottom:1px solid var(--line)}.step:last-child{border:0}.step>b{font:800 1rem Manrope,"Segoe UI",Arial,sans-serif;color:var(--blue)}.step p{margin-top:7px}.dark-section{background:var(--navy);color:#fff}.dark-section p{color:#B9C7DB}.tutor-feature{display:grid;grid-template-columns:1fr .8fr;gap:90px;align-items:center}.tutor-feature h2{margin-bottom:20px}.tutor-feature .btn{margin-top:28px}.quote-card{border:1px solid rgba(255,255,255,.15);padding:40px;border-radius:25px;background:rgba(255,255,255,.04)}.quote-card span{font:800 5rem Manrope,"Segoe UI",Arial,sans-serif;line-height:.6;color:#76A2FF}.quote-card p{font:600 1.35rem Manrope,"Segoe UI",Arial,sans-serif;color:#fff}.cta-section{padding:100px 0}.page-hero{background:var(--navy);color:#fff;padding:85px 0}.page-hero h1{font-size:clamp(2.8rem,6vw,5rem);max-width:850px;margin-bottom:18px}.page-hero p{color:#B9C7DB;font-size:1.1rem;max-width:700px}.about-intro{display:grid;grid-template-columns:.8fr 1.2fr;gap:90px;align-items:center}.placeholder-note{margin-top:25px;padding:16px 18px;background:#EFF6FF;border-left:3px solid var(--blue);font-size:.9rem}.philosophy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat-highlight{display:flex;align-items:center;gap:20px;margin-bottom:20px}.stat-highlight strong{font:800 4.5rem Manrope,"Segoe UI",Arial,sans-serif;color:var(--blue);letter-spacing:-.06em}.stat-highlight span{max-width:220px;font-weight:600}.service-list{display:flex;flex-direction:column;gap:15px}.service-card{display:grid;grid-template-columns:60px 1fr 30px;gap:25px;align-items:start;padding:30px;border:1px solid var(--line);border-radius:18px;background:#fff;transition:.25s}.service-card:hover{border-color:#BDD0F8;transform:translateX(5px);box-shadow:var(--shadow)}.service-card>span{font:800 1rem Manrope,"Segoe UI",Arial,sans-serif;color:var(--blue)}.service-card h3{margin-bottom:8px}.service-card small{display:inline-block;margin-top:10px;color:#94A3B8}.service-card>b{color:var(--blue);font-size:1.3rem}.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.timeline>div{border-top:2px solid var(--blue);padding-top:20px}.timeline b{color:var(--blue);font:800 .8rem Manrope,"Segoe UI",Arial,sans-serif}.timeline h3{margin:18px 0 8px}.tutor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.tutor-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden}.tutor-photo{height:280px;background:linear-gradient(145deg,#E8EEF8,#CBD8EB);display:grid;place-items:center;color:#60718C;font:800 .8rem Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:.12em}.tutor-content{padding:27px}.tutor-content h3{margin:4px 0 4px}.tutor-content .eyebrow{font-size:.62rem;margin-bottom:7px}.tag-row{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.tag-row span{font-size:.7rem;background:#EFF6FF;color:#315EA9;padding:5px 8px;border-radius:6px}.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:90px}.contact-details{margin-top:35px;display:flex;flex-direction:column;gap:18px}.contact-details div{display:flex;flex-direction:column}.contact-details span{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;font-weight:700}.contact-details strong{font-family:Manrope}.social-placeholder{display:flex;gap:10px;margin-top:30px}.social-placeholder span{padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:.8rem;font-weight:700}.contact-form{padding:35px;background:var(--soft);border:1px solid var(--line);border-radius:22px;display:flex;flex-direction:column;gap:17px}.contact-form label{display:flex;flex-direction:column;gap:7px;font-size:.82rem;font-weight:700}.contact-form input,.contact-form select,.contact-form textarea{font:inherit;border:1px solid var(--line);border-radius:9px;background:#fff;padding:12px 13px;outline:none;resize:vertical}.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.1)}.form-note{font-size:.72rem}.form-success{background:#DCFCE7;color:#166534;padding:12px;border-radius:8px;font-size:.85rem}.site-footer{background:#050E1F;color:#C4D0E0;padding:65px 0 25px}.footer-grid{display:grid;grid-template-columns:1.5fr .7fr .8fr;gap:70px;padding-bottom:50px}.footer-brand{color:#fff}.site-footer p{max-width:360px;margin-top:18px;color:#8EA0B8}.site-footer h4{color:#fff;margin-bottom:15px}.site-footer>div a,.site-footer>div span{display:block;margin:7px 0;font-size:.88rem}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:20px;display:flex;justify-content:space-between;gap:20px;font-size:.72rem;color:#71829A}.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}.reveal.visible{opacity:1;transform:none}@media(max-width:900px){.site-nav{gap:16px}.hero-grid,.about-intro,.contact-grid,.tutor-feature,.approach-grid,.split-grid{grid-template-columns:1fr;gap:45px}.hero-visual{min-height:400px}.cards-4{grid-template-columns:repeat(2,1fr)}.tutor-grid{grid-template-columns:1fr 1fr}.timeline{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}}@media(max-width:680px){.container{width:min(100% - 28px,1160px)}.site-header{height:72px}.menu-toggle{display:block}.site-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:15px;flex-direction:column;align-items:stretch;border-bottom:1px solid var(--line);box-shadow:0 15px 25px rgba(15,23,42,.08)}.site-nav.open{display:flex}.site-nav a{padding:10px}.hero{padding:70px 0}.hero h1{font-size:3.4rem}.hero-visual{min-height:360px}.portrait-placeholder{height:360px}.floating-card{right:4px;bottom:10px}.hero-proof{gap:20px}.cards-4,.philosophy-grid,.tutor-grid,.timeline,.footer-grid{grid-template-columns:1fr}.section{padding:70px 0}.page-hero{padding:65px 0}.service-card{grid-template-columns:35px 1fr}.service-card>b{display:none}.footer-bottom{flex-direction:column}.brand-text strong{font-size:.8rem}}


/* Website updates: AI visual galleries and revised profile panel */
.reference-profile-card{width:min(410px,90%);height:500px;border-radius:28px;background:linear-gradient(145deg,#173665,#0C2347);border:1px solid rgba(255,255,255,.15);display:flex;align-items:flex-end;padding:30px;color:#fff;box-shadow:0 30px 80px rgba(0,0,0,.3);text-align:left;position:relative;overflow:hidden}

.reference-profile-content{position:relative;z-index:1}.reference-profile-content span{font:800 1.5rem Manrope,"Segoe UI",Arial,sans-serif;display:block}.reference-profile-content small{color:#9FB0C7;margin-top:6px;display:block;max-width:270px;line-height:1.5}
.service-card{grid-template-columns:180px 1fr 30px}.service-image{height:120px;border-radius:14px;overflow:hidden;background:#E8EEF8}.service-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.service-card:hover .service-image img{transform:scale(1.05)}
.tutors-gallery-section{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}.tutors-gallery-copy p{max-width:520px}.tutors-scroll-gallery{overflow:hidden;border-radius:24px;position:relative}.tutor-gallery-track{display:flex;gap:18px;width:max-content;animation:tutorScroll 24s linear infinite}.tutor-gallery-track:hover{animation-play-state:paused}.tutor-gallery-track img{width:320px;height:420px;object-fit:cover;border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow);flex:0 0 auto}@keyframes tutorScroll{0%{transform:translateX(0)}100%{transform:translateX(calc(-338px * 3))}}
@media(max-width:900px){.tutors-gallery-section{grid-template-columns:1fr;gap:40px}.service-card{grid-template-columns:140px 1fr 30px}.tutor-gallery-track img{width:280px;height:360px}}
@media(max-width:680px){.service-card{grid-template-columns:1fr}.service-image{height:190px}.reference-profile-card{height:360px}.tutor-gallery-track img{width:250px;height:320px}}


/* Homepage hero profile box: keep the blue profile panel and remove no content from it. */
.hero-grid{grid-template-columns:1fr .9fr;gap:70px}
.hero-grid .reference-profile-card{justify-self:end;width:min(410px,100%);height:500px}

/* The white floating Personalized card is intentionally not used on the homepage. */
.hero-grid .floating-card{display:none !important}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:45px}
  .hero-grid .reference-profile-card{justify-self:center;width:min(410px,90%)}
}

/* Final spacing and alignment refinements */
.split-grid{
  column-gap:120px;
  row-gap:55px;
}

.about-intro{
  column-gap:110px;
}

.center-heading{
  max-width:820px;
}

.center-heading h2{
  max-width:780px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:16px;
}

.center-heading p{
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}

.philosophy-grid{
  gap:24px;
}

.info-card{
  padding:34px;
}

.approach-grid{
  column-gap:120px;
}

.step{
  column-gap:28px;
}

.tutor-feature{
  column-gap:120px;
}

.quote-card{
  padding:42px;
}

.service-card{
  column-gap:32px;
}

.timeline{
  gap:28px;
}

.contact-grid{
  column-gap:110px;
}

.footer-grid{
  column-gap:90px;
}

@media(max-width:1100px){
  .split-grid,
  .approach-grid,
  .tutor-feature,
  .contact-grid{
    column-gap:70px;
  }
}

@media(max-width:900px){
  .split-grid,
  .about-intro,
  .approach-grid,
  .tutor-feature,
  .contact-grid{
    column-gap:0;
    row-gap:45px;
  }

  .info-card{
    padding:30px;
  }
}

@media(max-width:680px){
  .center-heading h2{
    max-width:100%;
  }

  .center-heading p{
    max-width:100%;
  }

  .info-card{
    padding:26px;
  }
}

/* =========================================================
   RESPONSIVE LAYOUT SYSTEM
   Keeps the site aligned across desktops, laptops, tablets,
   and phones without changing the visual identity.
   ========================================================= */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 48px));
}

/* Header */
.site-header {
  width: 100%;
}

.nav-wrap {
  min-width: 0;
}

.brand {
  min-width: 0;
  flex-shrink: 1;
}

.brand-text {
  min-width: 0;
}

.site-nav {
  flex-wrap: nowrap;
  min-width: 0;
}

/* Homepage hero */
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: clamp(45px, 7vw, 90px);
}

.hero-copy,
.reference-profile-card,
.split-grid > *,
.approach-grid > *,
.tutor-feature > *,
.contact-grid > *,
.about-intro > * {
  min-width: 0;
}

.hero-lead {
  width: 100%;
  max-width: 650px;
}

.reference-profile-card {
  width: 100%;
  max-width: 410px;
}

.hero-grid .reference-profile-card {
  justify-self: end;
}

/* Keep all two-column sections balanced */
.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(45px, 8vw, 120px);
}

.about-intro {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(45px, 8vw, 110px);
}

.approach-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(45px, 8vw, 120px);
}

.tutor-feature {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: clamp(45px, 8vw, 120px);
}

.contact-grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(45px, 8vw, 110px);
}

/* Text never forces a column wider than its container */
h1, h2, h3, h4, p, a, small, span {
  overflow-wrap: break-word;
}

.center-heading h2,
.section-heading h2,
.approach-intro h2,
.tutor-feature h2,
.page-hero h1 {
  text-wrap: balance;
}

/* Service rows */
.service-card {
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) 30px;
}

.service-card > div:nth-child(2) {
  min-width: 0;
}

.service-image {
  width: 100%;
}

/* Tutor gallery */
.tutors-gallery-section {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 80px);
}

.tutors-scroll-gallery {
  width: 100%;
  min-width: 0;
}

.tutor-gallery-track img {
  max-width: none;
}

/* Large laptops / small desktops */
@media (max-width: 1100px) {
  .container {
    width: min(100% - 40px, 1040px);
  }

  .site-nav {
    gap: 20px;
    font-size: .86rem;
  }

  .hero {
    padding: 85px 0 75px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
    gap: 55px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 7vw, 5rem);
  }

  .reference-profile-card,
  .hero-grid .reference-profile-card {
    max-width: 390px;
  }

  .section {
    padding: 85px 0;
  }

  .split-grid,
  .approach-grid,
  .tutor-feature,
  .contact-grid {
    gap: 60px;
  }

  .about-intro {
    gap: 65px;
  }

  .tutors-gallery-section {
    gap: 50px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .container {
    width: min(100% - 36px, 760px);
  }

  .site-header {
    height: 76px;
  }

  .site-nav {
    gap: 14px;
  }

  .hero-grid,
  .split-grid,
  .about-intro,
  .approach-grid,
  .tutor-feature,
  .contact-grid,
  .tutors-gallery-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding: 75px 0 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-lead {
    max-width: 700px;
  }

  .hero-grid .reference-profile-card,
  .reference-profile-card {
    justify-self: center;
    width: min(100%, 410px);
  }

  .split-grid > *,
  .about-intro > *,
  .approach-grid > *,
  .tutor-feature > *,
  .contact-grid > * {
    width: 100%;
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .philosophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
  }

  .tutors-gallery-copy {
    max-width: 720px;
  }
}

/* Phones */
@media (max-width: 680px) {
  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 72px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: #fff;
    padding: 12px 14px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 25px rgba(15,23,42,.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 10px;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 5px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: .8rem;
  }

  .brand-text small {
    font-size: .58rem;
  }

  .hero {
    padding: 62px 0 60px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
    line-height: 1.04;
    margin-bottom: 20px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .button-row {
    margin: 25px 0 32px;
    gap: 10px;
  }

  .btn {
    padding: 12px 17px;
  }

  .hero-proof {
    gap: clamp(16px, 6vw, 28px);
    flex-wrap: wrap;
  }

  .reference-profile-card,
  .hero-grid .reference-profile-card {
    width: min(100%, 410px);
    height: clamp(340px, 90vw, 430px);
    padding: 24px;
    border-radius: 24px;
    justify-self: center;
  }

  .reference-profile-content span {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  .reference-profile-content small {
    max-width: 100%;
    font-size: .82rem;
  }

  .section,
  .cta-section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 60px 0;
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .center-heading {
    margin-bottom: 38px;
  }

  .center-heading p,
  .page-hero p {
    font-size: .98rem;
  }

  .cards-4,
  .philosophy-grid,
  .tutor-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 26px;
  }

  .card-number {
    margin-bottom: 32px;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .service-card > b {
    display: none;
  }

  .service-image {
    height: clamp(180px, 48vw, 230px);
  }

  .tutor-gallery-track {
    gap: 14px;
  }

  .tutor-gallery-track img {
    width: min(78vw, 280px);
    height: min(105vw, 360px);
  }

  .quote-card {
    padding: 30px;
  }

  .quote-card p {
    font-size: 1.1rem;
  }

  .stat-highlight strong {
    font-size: 3.5rem;
  }

  .footer-grid {
    gap: 35px;
  }

  .footer-bottom {
    gap: 8px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .container {
    width: calc(100% - 22px);
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-proof strong {
    font-size: 1.1rem;
  }

  .hero-proof span {
    font-size: .68rem;
  }

  .reference-profile-card,
  .hero-grid .reference-profile-card {
    height: 330px;
    padding: 20px;
  }

  .section,
  .cta-section {
    padding: 58px 0;
  }

  .page-hero {
    padding: 52px 0;
  }

  .service-card {
    padding: 20px;
  }
}

/* Very wide screens: prevent text from becoming excessively stretched */
@media (min-width: 1600px) {
  .container {
    width: min(1240px, calc(100% - 80px));
  }

  .hero {
    padding-top: 115px;
    padding-bottom: 100px;
  }
}


/* Page hero visuals: right-side imagery for Services and Tutors.
   This is additive only; the rest of the existing layout is unchanged. */
.page-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,430px);
  gap:clamp(50px,7vw,90px);
  align-items:center;
}
.page-hero-copy{
  min-width:0;
}
.page-hero-copy h1{
  max-width:780px;
}
.page-hero-copy p{
  max-width:680px;
}
.page-hero-visual{
  width:100%;
  height:430px;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:#173665;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
}
.page-hero-visual img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
@media(max-width:1100px){
  .page-hero-grid{
    grid-template-columns:minmax(0,1fr) minmax(280px,380px);
    gap:55px;
  }
  .page-hero-visual{
    height:390px;
  }
}
@media(max-width:900px){
  .page-hero-grid{
    grid-template-columns:1fr;
    gap:42px;
  }
  .page-hero-copy{
    max-width:760px;
  }
  .page-hero-visual{
    width:min(100%,430px);
    height:420px;
    justify-self:center;
  }
}
@media(max-width:680px){
  .page-hero-grid{
    gap:32px;
  }
  .page-hero-visual{
    width:100%;
    height:clamp(300px,78vw,390px);
    border-radius:24px;
  }
}
@media(max-width:420px){
  .page-hero-visual{
    height:300px;
    border-radius:20px;
  }
}


/* ===== SERVICES & TUTORS HERO — RESPONSIVE RIGHT-SIDE IMAGE ===== */
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  min-height: 430px;
}

.page-hero-copy {
  min-width: 0;
  max-width: 760px;
}

.page-hero-copy h1 {
  max-width: 780px;
  margin-bottom: 18px;
}

.page-hero-copy p {
  max-width: 700px;
}

.page-hero-visual {
  width: 100%;
  height: 430px;
  justify-self: end;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  background: #173665;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.page-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The tutor hero uses a landscape image; keep the subject centered. */
.page-hero-visual img[src*="tutor-1"] {
  object-position: center center;
}

/* Keep the service portrait visually balanced inside the same hero frame. */
.page-hero-visual img[src*="service-1"] {
  object-position: center center;
}

@media (max-width: 1100px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 48px;
  }

  .page-hero-visual {
    height: 390px;
  }
}

@media (max-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: 0;
  }

  .page-hero-copy {
    max-width: 760px;
  }

  .page-hero-visual {
    width: min(100%, 430px);
    height: 400px;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .page-hero-grid {
    gap: 30px;
  }

  .page-hero-copy h1 {
    max-width: 100%;
  }

  .page-hero-visual {
    width: 100%;
    height: clamp(300px, 78vw, 390px);
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .page-hero-visual {
    height: 300px;
    border-radius: 20px;
  }
}


/* Active navigation tab
   Only the page currently being viewed receives the blue active treatment. */
.site-nav a.nav-cta{
  padding:0;
  background:transparent;
  color:inherit;
  border-radius:10px;
  box-shadow:none;
}
.site-nav a.active{
  color:#fff !important;
  background:var(--blue);
  padding:11px 18px;
  border-radius:10px;
  box-shadow:0 7px 20px rgba(37,99,235,.28);
}
.site-nav a.active:hover{
  color:#fff !important;
  background:#1d4ed8;
  transform:translateY(-1px);
  box-shadow:0 9px 24px rgba(37,99,235,.34);
}
@media(max-width:680px){
  .site-nav a.nav-cta{padding:10px}
  .site-nav a.active{padding:10px 13px}
}

/* About page - story section spacing */
.about-intro h2{margin-bottom:22px}
.about-intro p+p{margin-top:18px}
/* Tutor Network section - balanced alignment */
.split-center{align-items:center}
.split-center h2{font-size:clamp(1.9rem,3.2vw,2.8rem)}

/* Profile photo inside the hero card */
.reference-profile-card > img{display:block;width:100%;flex:1 1 auto;min-height:0;object-fit:cover;object-position:center 30%;filter:none}

/* Keep name/title above the photo fade */
.reference-profile-card,.hero-grid .reference-profile-card{flex-direction:column;align-items:stretch;padding:0}
.reference-profile-card .reference-profile-content{position:static;flex:0 0 auto;padding:16px 22px;background:#0C2347}

/* Gallery page */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.gallery-item{margin:0;border-radius:24px;overflow:hidden;aspect-ratio:1/1;background:var(--navy);box-shadow:0 14px 34px rgba(8,27,61,.12)}
.gallery-item img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .5s ease}
.gallery-item:hover img{transform:scale(1.05)}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(2,1fr);gap:18px}}
@media(max-width:560px){.gallery-grid{grid-template-columns:1fr;gap:16px}}
/* Contact links */
.contact-details a,.site-footer a[href^="mailto"],.site-footer a[href^="tel"]{color:inherit}
.contact-details a:hover{color:var(--blue)}

/* Services list alignment */
.service-card{align-items:center}
.service-image img{object-position:center}

/* Contact - LinkedIn link */
.social-placeholder a{padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:.8rem;font-weight:700;color:inherit;transition:.25s}
.social-placeholder a:hover{border-color:var(--blue);color:var(--blue);transform:translateY(-2px)}

.brand{gap:14px !important}

/* Contact page: cards layout (form removed) */
.contact-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;max-width:1000px;margin:0 auto}
.contact-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:36px 24px;background:#fff;border:1px solid var(--line);border-radius:20px;color:inherit;box-shadow:0 10px 30px rgba(7,26,58,.06);transition:.25s}
a.contact-card:hover{border-color:var(--blue);transform:translateY(-4px);box-shadow:0 16px 38px rgba(37,99,235,.14)}
.contact-icon{width:56px;height:56px;border-radius:16px;background:var(--soft);color:var(--blue);display:grid;place-items:center;font-size:1.5rem;margin-bottom:6px}
.contact-label{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;font-weight:700}
.contact-card strong{font-family:Manrope;font-size:1.05rem;overflow-wrap:anywhere}
.contact-social{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:40px}
@media(max-width:900px){.contact-cards{grid-template-columns:1fr;max-width:480px}}

/* About page - Books section */
.books-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;max-width:960px;margin:0 auto}
.book-card{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:24px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;transition:.25s}
.book-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.book-cover img{display:block;width:100%;height:auto;border-radius:6px;box-shadow:0 14px 30px rgba(8,27,61,.18);border:1px solid var(--line)}
.book-tag{display:inline-block;font:800 .68rem Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:.14em;color:var(--blue);background:#EFF6FF;padding:5px 9px;border-radius:6px;margin-bottom:12px}
.book-info h3{margin-bottom:10px}
.book-info p{font-size:.92rem}
.book-meta{list-style:none;margin-top:16px;display:flex;flex-direction:column;gap:8px;font-size:.84rem;color:var(--muted)}
.book-meta b{display:block;font:800 .66rem Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--ink)}
@media(max-width:900px){.books-grid{grid-template-columns:1fr;max-width:560px}}
@media(max-width:480px){.book-card{grid-template-columns:1fr}.book-cover{max-width:260px;margin:0 auto}}

.reference-profile-content .profile-quals{font:600 .9rem Manrope,"Segoe UI",Arial,sans-serif;color:#DCE7F7;margin-top:6px;line-height:1.4;max-width:none}

.page-hero p.hero-quals{font:700 clamp(1rem,2vw,1.2rem) Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:.02em;color:#DCE7F7;margin:14px 0 10px}

/* Services hero: show the whole 16:9 collage with no cropping */
.page-hero-visual.hero-visual-fit{height:auto!important;aspect-ratio:16/9;align-self:center;background:transparent}
.page-hero-visual.hero-visual-fit img{object-fit:contain;object-position:center}

/* Services hero: larger collage */
.page-hero-grid.hero-grid-wide{grid-template-columns:minmax(0,1fr) minmax(360px,620px);gap:clamp(36px,5vw,64px)}
@media(max-width:1100px){.page-hero-grid.hero-grid-wide{grid-template-columns:minmax(0,1fr) minmax(300px,500px)}}
@media(max-width:900px){.page-hero-grid.hero-grid-wide{grid-template-columns:1fr}.hero-grid-wide .page-hero-visual.hero-visual-fit{width:min(100%,640px)}}
@media(max-width:680px){.hero-grid-wide .page-hero-visual.hero-visual-fit{width:100%}}

/* Footer copyright line: keep symbol, year and text on one line */
.site-footer>.footer-bottom span{display:inline;margin:0;font-size:inherit}
.site-footer>.footer-bottom{font-size:.8rem;justify-content:flex-start}

/* Social icons */
.social-icons{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.social-icons a,.site-footer .social-icons a{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:#fff;transition:.25s}
.social-icons svg{width:20px;height:20px;display:block}
.social-icons a:hover{transform:translateY(-3px);background:#2563EB;border-color:#2563EB;color:#fff}
.site-footer .social-icons{margin-top:20px}
.social-icons-hero{margin-top:26px}
.social-icons-dark a{border-color:#D5DEEC;background:#fff;color:#0C2347}
.social-icons-lg a{width:54px;height:54px}
.social-icons-lg svg{width:24px;height:24px}
.contact-social{flex-direction:column;align-items:center;gap:18px}
.contact-social p,.social-follow p{margin:0;font:700 .95rem Manrope,"Segoe UI",Arial,sans-serif;color:#0C2347}
.social-follow{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:44px}
.social-follow .social-icons{justify-content:center}

/* New AB logo + brand name */
.site-header .brand-mark{display:flex;align-items:center;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;width:auto!important;height:50px!important;overflow:visible}
.site-header .brand-mark img{width:auto;height:100%;object-fit:contain}
.site-footer .brand .brand-mark{display:flex;align-items:center;justify-content:center;margin:0;background:#fff!important;border:0!important;box-shadow:none!important;border-radius:12px;width:86px!important;height:56px!important;padding:7px;overflow:hidden}
.site-footer .brand .brand-mark img{width:100%;height:100%;object-fit:contain}
.brand-text strong{font:800 1.25rem Manrope,"Segoe UI",Arial,sans-serif;letter-spacing:.06em;background:linear-gradient(90deg,#0A2A7A 0%,#1260E6 55%,#16A8F2 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.site-footer .brand-text strong{background:linear-gradient(90deg,#8CBBFF 0%,#36B8FF 100%);-webkit-background-clip:text;background-clip:text}
.site-footer .brand-text{display:flex;flex-direction:column}
.site-footer .brand-text strong,.site-footer .brand-text small{display:block;margin:0}
.site-footer .brand-text small{margin-top:5px}
@media(max-width:680px){.site-header .brand-mark{height:42px!important}.brand-text strong{font-size:1.05rem}}

/* ---- Responsive hardening (mobile / tablet / laptop / desktop) ---- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
img,svg,video{max-width:100%}
img{height:auto}
.gallery-item img,.service-image img,.brand-mark img,.reference-profile-card>img,.book-cover img,.page-hero-visual img{height:100%}
.book-cover img{height:auto}
.contact-card strong,.site-footer a,.footer-grid a{overflow-wrap:anywhere;word-break:break-word}
.social-icons-hero{margin-bottom:22px}
.page-hero .social-icons-hero{margin-bottom:0}
.menu-toggle{min-width:44px;min-height:44px}
.site-nav a,.btn{min-height:44px}
/* phones: taller, uncropped profile photo with caption below it */
@media(max-width:680px){
  .reference-profile-card,.hero-grid .reference-profile-card,.large-reference{height:auto!important;width:min(420px,100%)}
  .reference-profile-card>img{flex:none;height:auto;aspect-ratio:1/1}
  .social-icons a{width:44px;height:44px}
  .footer-grid{text-align:left}
}
/* very small phones */
@media(max-width:360px){
  .brand-text strong{font-size:.95rem;letter-spacing:.04em}
  .brand-text small{display:none}
  .site-header .brand-mark{height:36px!important}
}
/* large desktops / TVs: keep line lengths comfortable and scale content gently */
@media(min-width:1920px){html{font-size:112.5%}}
@media(min-width:2400px){html{font-size:125%}}
/* landscape phones: don't let the sticky header eat the screen */
@media(max-height:480px) and (orientation:landscape){.site-header{position:static}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reveal{opacity:1!important;transform:none!important}}

/* Tablets (<=900px): use the compact hamburger menu so the header never feels cramped */
@media(max-width:900px){
  .menu-toggle{display:block}
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:12px 20px 16px;flex-direction:column;align-items:stretch;gap:2px;border-bottom:1px solid var(--line);box-shadow:0 15px 25px rgba(15,23,42,.08)}
  .site-nav.open{display:flex}
  .site-nav a{padding:12px 10px;display:flex;align-items:center}
  .site-nav a.nav-cta{justify-content:center;margin-top:6px}
}

/* Logo: transparent, uncropped, no box */
.site-header .brand-mark{background:transparent!important;border:0!important;box-shadow:none!important;padding:0;border-radius:0}
.site-header .brand-mark img{width:auto;height:100%;object-fit:contain;display:block}
.site-footer .brand .brand-mark{background:#fff!important}

.site-footer .brand{display:flex;align-items:center;gap:14px}

/* Phones: show the profile photo first, above the hero text and buttons */
@media(max-width:680px){
  .hero-grid{display:flex;flex-direction:column;gap:32px}
  .hero-grid .reference-profile-card{order:-1;align-self:center;margin:0 auto}
  .hero-grid .hero-copy{order:0}
}

/* AI/ML R&D page + service card link */
.inline-link{color:inherit;font-weight:700;border-bottom:2px solid currentColor;transition:.2s}
.inline-link:hover{color:var(--blue)}
.page-hero .inline-link{color:#9CC1FF}.page-hero .inline-link:hover{color:#fff}
.section .inline-link{color:var(--blue)}.section .inline-link:hover{color:#0B3FAE}
.crumb{display:inline-block;margin-bottom:18px;font-size:.85rem;font-weight:700;color:#9FB0C7}
.crumb:hover{color:#fff}
.btn-outline-dark{border:1px solid #C9D5E8;color:var(--ink);background:transparent}
.btn-outline-dark:hover{background:#EEF3FB}
.cta-actions{justify-content:center;margin:26px 0 0}
a.service-card-link{color:inherit;cursor:pointer}
a.service-card-link .card-more{color:var(--blue);font-weight:700;margin-top:12px}

/* Services page structure */
html{scroll-padding-top:96px}
.service-jump{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.service-jump a{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:#fff;font-weight:600;font-size:.86rem;background:rgba(255,255,255,.06);transition:.25s}
.service-jump a:hover{background:var(--blue);border-color:var(--blue);transform:translateY(-2px)}
.dark-section .inline-link{color:#9CC1FF}.dark-section .inline-link:hover{color:#fff}
.ai-ml-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(36px,6vw,80px);align-items:center}
.ai-ml-grid h2{margin-bottom:20px}
.ai-ml-grid .lead{color:#fff;font-size:1.2rem;margin-bottom:12px}
.ai-ml-grid .button-row{margin:28px 0 8px}
.ai-ml-more{color:#9CC1FF;margin-top:14px}
.ai-ml-visual{border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.16);box-shadow:0 30px 70px rgba(0,0,0,.3);aspect-ratio:3/2;background:#0C2347}
.ai-ml-visual img{display:block;width:100%;height:100%;object-fit:cover}
.ai-ml-pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:56px}
.ai-ml-pillars article{border:1px solid rgba(255,255,255,.15);border-radius:20px;padding:26px;background:rgba(255,255,255,.04)}
.ai-ml-pillars .card-number{margin-bottom:28px}
.ai-ml-pillars h3{color:#fff;margin-bottom:10px}
@media(max-width:900px){.ai-ml-grid{grid-template-columns:1fr}.ai-ml-pillars{grid-template-columns:1fr;margin-top:40px}}

/* AI/ML section sits right under the hero: give it its own brand-blue band so the two dark sections don't merge */
.dark-section.ai-ml-first,#ai-ml{background:linear-gradient(135deg,#0B2A66 0%,#0F43A3 100%)}
#ai-ml .eyebrow.light{color:#BCD5FF}
#ai-ml .ai-ml-pillars article{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22)}
#ai-ml .card-number{color:#9CC1FF}
#ai-ml p{color:#D3E1F7}
#ai-ml .ai-ml-grid .lead{color:#fff}
#ai-ml .ai-ml-pillars p{color:#CFE0F8}
#ai-ml .btn-primary{background:#fff;color:#0B2A66}
#ai-ml .btn-primary:hover{box-shadow:0 12px 25px rgba(0,0,0,.28)}

/* AI/ML section picture: show the whole 16:9 image (title text is near the left edge) and give it more room */
.ai-ml-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.ai-ml-visual{aspect-ratio:16/9}
.ai-ml-visual img{object-fit:contain}
@media(max-width:900px){.ai-ml-grid{grid-template-columns:1fr}}

/* Home: linked "What we do" cards */
a.info-card-link{display:flex;flex-direction:column;color:inherit}
a.info-card-link p{flex:1}
a.info-card-link .card-more{display:block;margin-top:18px;color:var(--blue);font-weight:700;font-size:.9rem}
a.info-card-link:hover .card-more{text-decoration:underline}

.section-heading h2,.center-heading h2{text-wrap:balance}
