/* about page: own rules from home-sample/about-sample-6 */
/* =================== About page (sample 1) =================== */
  .nav ul a[aria-current="page"] { color: var(--current); }
  .nav ul a[aria-current="page"]::after { transform: scaleX(1); }

  /* Hero */
  .hero--about .wrap { min-height: min(620px, calc(100vh - 86px)); padding-bottom: 72px; }
  .hero--about .hero-actions { gap: 26px; align-items: center; flex-wrap: wrap; }
  .hero-shot { position: relative; margin: 0; justify-self: center; width: min(100%, 520px); }
  .hero-shot .frame {
    border-radius: 30px; overflow: hidden; background: var(--glide); rotate: 2deg;
    border: 8px solid var(--white); box-shadow: 0 0 0 2px var(--glide), 0 34px 60px -38px rgba(76,28,8,.6);
  }
  .hero-shot img { width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; }
  .hero-shot .chip {
    position: absolute; z-index: 2; left: -22px; bottom: 30px; rotate: -3deg;
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
    background: var(--pulse); color: var(--white); font-weight: 700; font-size: .95rem; line-height: 1.2;
    box-shadow: 0 14px 26px -14px rgba(76,28,8,.55);
  }
  .hero-shot .chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--swell); flex: none; }

  /* Doctor */
  .doc { padding: 112px 0; }
  .doc .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center; }
  .portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
  .portrait::before {
    content: ""; position: absolute; z-index: 0; inset: -6% -10% auto -10%; aspect-ratio: 1;
    border-radius: 50%; background: var(--glide);
  }
  .portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: 999px 999px 24px 24px; }
  /* Badge: wrapper turns with scroll (rotate) and floats (translate); the art inside handles entrance + hover spin */
  .portrait .badge { position: absolute; z-index: 2; right: -34px; bottom: -30px; width: 156px; rotate: var(--rot, 0deg); transition: rotate 1.2s var(--ease-out); filter: drop-shadow(0 14px 20px rgba(76,28,8,.22)); }
  .badge-art { display: block; width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
  .badge-art .pupil { transform-box: fill-box; transition: transform .35s var(--ease-out); }
  .motion .portrait .badge-art { opacity: 0; transform: scale(.3) rotate(-60deg); transition: opacity .8s ease .5s, transform 2.2s var(--ease-out) .5s; }
  .motion .portrait.in .badge-art { opacity: 1; transform: none; }
  .motion .portrait.in .badge { animation: badge-float 9s ease-in-out 2.8s infinite; }
  .portrait .badge.spin .badge-art { animation: badge-spin 3.2s cubic-bezier(.45, 0, .2, 1); }
  @keyframes badge-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
  @keyframes badge-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  #doc-title { white-space: nowrap; font-size: min(clamp(2.1rem, 3.8vw, 3.2rem), 8.4vw); margin-bottom: 22px; }
  .cred {
    display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%;
    margin: 0 0 28px; padding: 14px 20px 14px 16px; border-radius: 16px;
    background: var(--white); box-shadow: 0 0 0 1px var(--line);
  }
  .cred svg { width: 30px; height: 30px; flex: none; color: var(--current); }
  .cred span { display: block; font-size: .85rem; line-height: 1.35; }
  .cred strong { display: block; color: var(--deep); font-size: 1rem; }
  .doc .lead { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 500; font-size: 1.5rem; line-height: 1.4; color: var(--deep); margin: 0 0 20px; max-width: 34ch; }
  .doc p { margin: 0 0 18px; font-size: 1.1rem; max-width: 60ch; }

  /* Why families choose us */
  .values { background: var(--glide-soft); padding: 100px 0; }
  .sec-head { max-width: 660px; margin-bottom: 44px; }
  .sec-head p { margin: 16px 0 0; font-size: 1.1rem; }
  .vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .vgrid li { background: var(--cream); border-radius: 22px; padding: 28px 24px 30px; display: grid; gap: 14px; align-content: start; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
  .vgrid li:hover { transform: translateY(-5px); box-shadow: 0 20px 36px -26px rgba(76,28,8,.5); }
  .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--deep); color: var(--swell); }
  .ico svg { width: 28px; height: 28px; }
  .vgrid h3 { font-family: var(--body); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
  .vgrid p { margin: 0; }

  /* Care that grows with your child */
  .stages { padding: 100px 0; }
  .sgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .sgrid li { border-radius: 26px; padding: 30px 28px 34px; display: grid; gap: 10px; align-content: start; }
  .sgrid .s1 { background: var(--swell); color: var(--deep); }
  .sgrid .s2 { background: var(--coral); color: var(--deep); }
  .sgrid .s3 { background: var(--current); color: var(--white); }
  .sgrid .age { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
  .sgrid h3 { color: inherit; font-size: clamp(1.6rem, 2.4vw, 2rem); }
  .sgrid p { margin: 0; font-size: 1.05rem; }

  /* First visit band */
  .fv-band { position: relative; overflow: hidden; background: var(--pulse); color: var(--white); padding: 84px 0; }
  .fv-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 360'%3E%3Cg fill='%23F8CC48'%3E%3Ccircle cx='1180' cy='60' r='5'/%3E%3Ccircle cx='1320' cy='250' r='4'/%3E%3Ccircle cx='1010' cy='300' r='3.5'/%3E%3Ccircle cx='1400' cy='120' r='3'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='1250' cy='170' r='3.5'/%3E%3Ccircle cx='1090' cy='120' r='3'/%3E%3Ccircle cx='1380' cy='320' r='4.5'/%3E%3Ccircle cx='950' cy='40' r='3'/%3E%3C/g%3E%3Cg fill='%23FF876A'%3E%3Ccircle cx='1140' cy='220' r='4'/%3E%3Ccircle cx='1300' cy='40' r='3.5'/%3E%3C/g%3E%3C/svg%3E") right center / 1440px auto no-repeat;
  }
  .fv-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
  .fv-band h2 { color: var(--white); font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
  .fv-band h2 u { text-decoration: underline; text-decoration-color: var(--swell); text-decoration-thickness: .1em; text-underline-offset: .14em; }
  .fv-band p { margin: 16px 0 0; font-size: 1.2rem; font-weight: 700; max-width: 52ch; color: var(--white); }
  .btn--light { background: var(--white); color: var(--deep); }
  .btn--light:hover { background: var(--swell); }

  /* Office mosaic */
  .office { padding: 100px 0 90px; }
  .mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 16px; }
  .mosaic .wide { grid-column: span 2; }
  .mosaic figure { margin: 0; position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: var(--glide-soft); }
  .mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
  .mosaic figure:hover img { transform: scale(1.04); }
  .mosaic figcaption {
    position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--deep);
    font-weight: 700; font-size: .92rem; line-height: 1; padding: 10px 15px; border-radius: 999px;
    box-shadow: 0 8px 20px -10px rgba(76,28,8,.4);
  }

  /* Visit info */
  .visit-info { padding: 0 0 100px; }
  .irow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .irow li { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); padding: 24px 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
  .irow .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--glide-soft); color: var(--current); margin-bottom: 6px; }
  .irow .ico svg { width: 22px; height: 22px; }
  .irow h3 { font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--current); line-height: 1.3; }
  .irow p { margin: 0; color: var(--deep); line-height: 1.5; }
  .irow a { color: var(--deep); text-decoration-color: var(--glide); text-underline-offset: 4px; }
  .irow a:hover { text-decoration-color: var(--current); }

  /* About-page entrance for the hero image */
  .motion .hero-shot { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity 1s var(--ease-out) .3s, transform 1.2s var(--ease-out) .3s; }
  .motion .hero-shot .chip { opacity: 0; transform: translateX(-16px); transition: opacity .8s var(--ease-out) 1.1s, transform .9s var(--ease-out) 1.1s; }
  .hero-in .hero-shot, .hero-in .hero-shot .chip { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .vgrid li, .mosaic img { transition: none; } .vgrid li:hover, .mosaic figure:hover img { transform: none; } }

  @media (max-width: 1000px) {
    .doc .wrap { grid-template-columns: 1fr; gap: 64px; }
    .portrait { width: min(80%, 380px); }
    .vgrid { grid-template-columns: repeat(2, 1fr); }
    .irow { grid-template-columns: repeat(2, 1fr); }
    .fv-band .wrap { grid-template-columns: 1fr; gap: 28px; }
  }
  @media (max-width: 820px) {
    .hero-shot { width: min(92%, 480px); }
    .sgrid { grid-template-columns: 1fr; }
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
    .mosaic .wide { grid-column: span 2; }
  }
  @media (max-width: 560px) {
    .hero--about .wrap { padding-bottom: 56px; }
    .hero--about .hero-actions { gap: 18px; }
    .hero-shot .chip { left: -6px; bottom: 18px; font-size: .85rem; padding: 10px 14px; }
    .doc, .values, .stages, .office { padding: 72px 0; }
    .fv-band { padding: 64px 0; }
    .portrait { width: 82%; }
    .portrait .badge { width: 112px; right: -14px; bottom: -22px; }
    .vgrid, .irow { grid-template-columns: 1fr; }
    /* phones: icon beside the words, so the four reasons don't each fill a screen */
    .vgrid { gap: 12px; }
    .vgrid li { grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 20px 20px 22px; }
    .vgrid .ico { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px; }
    .vgrid .ico svg { width: 24px; height: 24px; }
    .vgrid h3 { margin-top: 2px; }
    .mosaic { grid-template-columns: 1fr; grid-auto-rows: 210px; gap: 12px; }
    .mosaic .wide { grid-column: auto; }
    .visit-info { padding-bottom: 72px; }
    .fv-band .btn { width: 100%; }
  }
