:root {
  --petrol: #006b68;
  --petrol-dark: #004e4c;
  --teal: #08a7a6;
  --mint: #ddf9df;
  --mint-edge: #a8dfae;
  --green: #55bb63;
  --pink: #f7357d;
  --blue: #159ed9;
  --orange: #ff8516;
  --paper: #fffefa;
  --ink: #102726;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-x: hidden; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; background: #fff; color: var(--petrol-dark); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #ffb431; outline-offset: 4px; }

.demo-label { position: fixed; z-index: 100; top: 9px; left: 50%; translate: -50% 0; padding: 4px 12px 3px; border: 1px solid color-mix(in srgb, var(--petrol) 35%, white); border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--petrol); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.site-header { position: relative; z-index: 30; background: #fff; }
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 230px; }
.brand-mark { position: relative; width: 41px; height: 34px; border: 3px solid var(--petrol); border-radius: 50% 50% 47% 52%; rotate: -4deg; }
.brand-mark::after { content: ""; position: absolute; right: -4px; bottom: -5px; width: 12px; height: 12px; border-right: 3px solid var(--petrol); transform: skew(-28deg); }
.brand-mark span { position: absolute; width: 8px; height: 8px; left: 8px; top: 10px; border-radius: 50%; background: var(--pink); box-shadow: 11px 0 0 var(--teal); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--petrol-dark); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.brand-copy small { margin-top: 4px; color: #4e6564; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.main-menu { display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 2.5vw, 38px); font-size: 14px; font-weight: 500; }
.main-menu > a:not(.button) { text-decoration: none; position: relative; }
.main-menu > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--teal); transition: right .25s ease; }
.main-menu > a:not(.button):hover::after { right: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 46px; padding: 0 24px; border-radius: 3px 6px 4px 5px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 10px rgb(0 91 89 / .13); transition: transform .2s ease, background .2s ease; }
.button:hover { background: var(--petrol); transform: translateY(-2px); }
.button-small { min-height: 40px; padding-inline: 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle i { display: block; height: 2px; margin: 5px 0; background: var(--petrol); transition: .25s; }
.notice { display: grid; place-items: center; min-height: 52px; padding: 10px 20px; background: var(--petrol); color: #fff; text-align: center; }
.notice p { margin: 0; font-size: 13px; }
.notice a { font-weight: 700; text-underline-offset: 3px; }

.hero { position: relative; min-height: 680px; background: var(--paper); isolation: isolate; overflow: hidden; }
.hero-inner { min-height: 580px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; padding-block: 52px 100px; }
.hero-copy { padding-left: 8px; }
.eyebrow { width: fit-content; margin: 0 0 22px; color: var(--petrol-dark); font-size: 13px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
h1 { margin: 0; color: #0c1313; font-size: clamp(38px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
h1 span { display: block; white-space: nowrap; }
.hero-lead { max-width: 500px; margin: 25px 0 26px; font-size: 18px; line-height: 1.46; }

.photo-collage { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr .98fr .92fr; grid-template-rows: 190px 132px; gap: 12px; width: 100%; max-width: 630px; height: 370px; }
.brush-photo { --frame: var(--teal); position: relative; padding: 5px; background: var(--frame); overflow: hidden; border-radius: 10px 7px 11px 6px; clip-path: polygon(1% 2%, 98% 0, 100% 4%, 99% 97%, 96% 100%, 2% 99%, 0 95%, 1% 5%); opacity: 0; transform: translateY(18px) rotate(var(--tilt)); animation: photo-in .7s cubic-bezier(.2,.7,.2,1) forwards; }
.brush-photo::after { content: ""; position: absolute; inset: 2px; border: 2px solid rgb(255 255 255 / .33); border-radius: inherit; pointer-events: none; }
.brush-photo img { border-radius: 6px; }
.photo-one { --frame: #08a8a2; --tilt: -1deg; grid-area: 1 / 1 / 2 / 2; animation-delay: .15s; }
.photo-two { --frame: #f43a7b; --tilt: .7deg; grid-area: 1 / 2 / 3 / 3; animation-delay: .28s; }
.photo-three { --frame: #089bd0; --tilt: 1deg; grid-area: 1 / 3 / 2 / 4; animation-delay: .4s; }
.photo-four { --frame: #ff9a23; --tilt: .7deg; grid-area: 2 / 1 / 3 / 2; animation-delay: .52s; }
.photo-five { --frame: #50ba64; --tilt: -1deg; grid-area: 2 / 3 / 3 / 4; animation-delay: .64s; }
.hero-scribble { position: absolute; z-index: -1; width: 500px; height: 500px; right: max(2vw, calc((100vw - 1260px)/2)); top: 42px; border: 52px solid #f1f2ef; border-radius: 47% 53% 56% 44%; opacity: .72; rotate: 18deg; }
.hero-scribble::after { content: ""; position: absolute; inset: 68px -42px -42px 70px; border: 26px solid #f3f4f1; border-radius: 63% 37% 45% 55%; }
.organic-divider { position: absolute; z-index: -1; width: 100%; height: 210px; left: 0; bottom: -1px; overflow: visible; }
.divider-edge { fill: var(--mint-edge); }
.divider-fill { fill: var(--mint); }

.services { position: relative; min-height: 820px; margin-top: -1px; padding: 18px 0 62px; background: var(--mint); }
.down-arrow { height: 64px; color: var(--petrol-dark); font-family: var(--serif); font-size: 42px; line-height: 1; text-align: center; animation: arrow-bob 1.8s ease-in-out infinite; }
.services-intro { width: min(760px, calc(100% - 40px)); margin: 12px auto 42px; text-align: center; }
.services-intro h2 { margin: 0; color: var(--petrol-dark); font-family: var(--serif); font-size: clamp(25px, 2.7vw, 36px); line-height: 1.27; font-weight: 500; }
.services-intro p { margin: 18px auto 0; max-width: 720px; font-size: 15px; line-height: 1.55; }
.service-grid { max-width: 890px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 210px 170px; grid-template-areas: "speech speech music feeding" "motor education occupation occupation"; gap: 12px; }
.service-card { --card: var(--teal); position: relative; min-width: 0; padding: 18px 18px 42px; overflow: hidden; color: #fff; background: var(--card); border: 5px solid rgb(255 255 255 / .4); border-radius: 9px 6px 10px 7px; clip-path: polygon(1% 1%, 99% 0, 100% 3%, 99% 98%, 96% 100%, 2% 99%, 0 96%, 1% 4%); opacity: 0; transform: translateY(24px); transition: transform .25s ease, filter .25s ease, opacity .55s ease; }
.service-card::before { content: ""; position: absolute; inset: 1px; border: 2px dashed rgb(255 255 255 / .25); border-radius: inherit; pointer-events: none; }
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-4px) rotate(.25deg); filter: saturate(1.08); }
.service-card h3 { position: relative; z-index: 2; margin: 0 0 14px; font-family: var(--serif); font-size: clamp(22px, 2vw, 29px); font-weight: 500; line-height: 1.12; }
.service-card p { position: relative; z-index: 2; max-width: 390px; margin: 0; font-size: 13px; line-height: 1.5; }
.service-card > a { position: absolute; z-index: 3; right: 18px; bottom: 12px; font-size: 30px; line-height: 1; text-decoration: none; transition: translate .2s; }
.service-card > a:hover { translate: 4px 0; }
.service-icon { position: absolute; right: 14px; bottom: 4px; color: rgb(255 255 255 / .2); font-size: 138px; font-weight: 700; line-height: 1; }
.speech { --card: var(--green); grid-area: speech; }
.music { --card: var(--pink); grid-area: music; }
.feeding { --card: var(--teal); grid-area: feeding; }
.motor { --card: #079b9d; grid-area: motor; }
.education { --card: var(--orange); grid-area: education; }
.occupation { --card: var(--blue); grid-area: occupation; }
.speech-icon { width: 130px; height: 90px; top: 22px; right: 22px; border-radius: 16px; background: rgb(255 255 255 / .2); }
.speech-icon::after { content: ""; position: absolute; right: 17px; bottom: -20px; border: 22px solid transparent; border-top-color: rgb(255 255 255 / .2); rotate: -30deg; }
.music-icon { right: -1px; top: -16px; font-family: Georgia, serif; font-size: 178px; }
.feeding-icon { font-size: 0; width: 128px; height: 100px; right: 2px; }
.feeding-icon::before { content: ""; position: absolute; left: 12px; top: 10px; width: 36px; height: 84px; border-radius: 50% 50% 42% 42%; background: rgb(255 255 255 / .2); box-shadow: 56px 0 0 -8px rgb(255 255 255 / .2); }
.motor-icon { right: -8px; bottom: -18px; font-size: 175px; rotate: -22deg; }
.education-icon { width: 130px; height: 130px; right: -28px; bottom: -38px; rotate: 45deg; background: rgb(255 255 255 / .18); border-radius: 18px; }
.occupation-icon { right: 20px; bottom: -18px; font-size: 170px; }
.contact-anchor { height: 1px; }

.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s .05s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes photo-in { to { opacity: 1; transform: translateY(0) rotate(var(--tilt)); } }
@keyframes arrow-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 960px) {
  .navbar { gap: 16px; }
  .main-menu { gap: 15px; font-size: 12px; }
  .brand { min-width: 205px; }
  .hero-inner { gap: 30px; padding-top: 42px; }
  .photo-collage { height: 335px; grid-template-rows: 172px 116px; }
  .service-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 205px); grid-template-areas: "speech music" "feeding motor" "education occupation"; max-width: 720px; }
}

@media (max-width: 760px) {
  .demo-label { top: 61px; }
  .navbar { min-height: 92px; padding-bottom: 22px; }
  .brand-copy strong { font-size: 13px; }
  .brand-mark { width: 36px; height: 31px; }
  .menu-toggle { display: block; z-index: 2; }
  .main-menu { position: absolute; top: 92px; left: 0; right: 0; display: grid; padding: 18px 24px 24px; background: #fff; border-top: 1px solid #e1edeb; box-shadow: 0 12px 22px rgb(0 47 45 / .08); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .22s ease; }
  .main-menu.open { transform: none; opacity: 1; visibility: visible; }
  .main-menu .button { width: 100%; }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  .notice { min-height: 60px; }
  .notice p { max-width: 470px; font-size: 12px; line-height: 1.45; }
  .hero { min-height: 925px; }
  .hero-inner { min-height: 820px; grid-template-columns: 1fr; align-content: start; gap: 46px; padding: 60px 0 140px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(35px, 9vw, 42px); }
  .hero-lead { font-size: 17px; }
  .photo-collage { justify-self: center; width: min(100%, 560px); height: 340px; }
  .hero-scribble { right: -100px; top: 390px; }
  .organic-divider { height: 150px; }
  .services { padding-top: 12px; }
}

@media (max-width: 540px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .brand { min-width: 0; }
  .brand-copy small { font-size: 8px; }
  .hero { min-height: 865px; }
  .hero-inner { min-height: 780px; padding-top: 48px; gap: 38px; }
  .eyebrow { font-size: 11px; }
  .hero-lead { font-size: 16px; }
  .photo-collage { grid-template-columns: .9fr 1.05fr .9fr; grid-template-rows: 150px 100px; height: 280px; gap: 7px; }
  .brush-photo { padding: 3px; }
  .services-intro { width: calc(100% - 28px); margin-bottom: 30px; }
  .services-intro h2 br { display: none; }
  .services-intro p { font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: none; }
  .service-card, .speech, .music, .feeding, .motor, .education, .occupation { grid-area: auto; min-height: 190px; }
  .service-card h3 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .service-card, .brush-photo, .reveal { opacity: 1; transform: none; }
}
