:root {
    --cream-50: #fffdf8;
    --cream-100: #fff7e8;
    --cream-200: #f6ead4;
    --ink: #173f43;
    --ink-soft: #4c6666;
    --teal: #0e5e62;
    --teal-dark: #0b494d;
    --coral: #e66b48;
    --coral-soft: #f9d7c8;
    --mustard: #e5a92f;
    --mustard-soft: #f9e9b8;
    --sage: #8ca58b;
    --white: #fff;
    --border: rgba(23, 63, 67, .13);
    --shadow: 0 22px 60px rgba(46, 70, 60, .12);
    --shadow-sm: 0 10px 30px rgba(46, 70, 60, .09);
    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 38px;
    --container: 1180px;
    --display: Georgia, 'Times New Roman', serif;
    --sans: ui-rounded, 'Avenir Next', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--cream-50); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.is-admin-editing { padding-top: 48px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 104px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; border: 0; overflow: hidden; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 999; padding: 12px 18px; background: var(--ink); color: white; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, .88); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); }
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgba(22, 63, 67, .05); }
.is-admin-editing .site-header { top: 48px; }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50% 50% 42% 58%; background: var(--teal); color: white; font-family: var(--display); font-weight: 700; transform: rotate(-4deg); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18); }
.brand > span:last-child { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--display); font-size: 1.22rem; }
.brand small { margin-top: 4px; color: var(--ink-soft); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { position: relative; font-size: .92rem; font-weight: 650; text-decoration: none; }
.main-nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--coral); transition: right .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 10px 18px; border-radius: 999px; color: white; background: var(--teal); box-shadow: 0 8px 18px rgba(14, 94, 98, .18); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: var(--cream-100); }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--ink); }

.hero { position: relative; min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); display: grid; align-items: center; overflow: hidden; padding-top: 64px; }
.hero::before { content: ''; position: absolute; width: 600px; height: 600px; left: -300px; top: -230px; border-radius: 50%; background: var(--mustard-soft); filter: blur(2px); opacity: .48; }
.hero::after { content: ''; position: absolute; width: 280px; height: 280px; right: -90px; bottom: -100px; border-radius: 50%; background: var(--coral-soft); opacity: .55; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); align-items: center; gap: 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--coral); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 30px; height: 2px; border-radius: 10px; background: currentColor; }
.hero h1, h2 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 { max-width: 650px; font-size: clamp(3rem, 5.2vw, 5.25rem); }
.hero h1 em { display: block; margin-top: 6px; color: var(--coral); font-weight: 400; }
.hero-lead { max-width: 620px; margin: 28px 0; color: var(--ink-soft); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--teal); box-shadow: 0 12px 28px rgba(14, 94, 98, .21); }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 15px 34px rgba(14, 94, 98, .28); }
.text-link { font-weight: 750; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--ink-soft); font-size: .82rem; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row b { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: #dcebea; font-size: .7rem; }
.hero-visual { position: relative; padding: 15px; background: white; border: 1px solid rgba(23, 63, 67, .09); border-radius: 48% 52% 38% 62% / 42% 41% 59% 58%; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-visual::before { content: ''; position: absolute; inset: -10px 40px 20px -18px; z-index: -1; background: #d8e7df; border-radius: inherit; transform: rotate(-4deg); }
.hero-visual img { aspect-ratio: 1200 / 630; object-fit: cover; border-radius: inherit; }
.hero-sticker { position: absolute; right: -15px; bottom: 12px; padding: 14px 20px; color: var(--ink); background: var(--mustard-soft); border: 2px solid white; border-radius: 18px; box-shadow: var(--shadow-sm); font-family: var(--display); transform: rotate(-3deg); line-height: 1.1; }
.hero-sticker b { display: block; font-size: 1.15rem; }
.doodle-star { position: absolute; top: -28px; right: 10%; z-index: 2; color: var(--mustard); font-size: 3rem; transform: rotate(12deg); }

h2 { font-size: clamp(2.25rem, 4.1vw, 4rem); }
.section-copy > p:not(.eyebrow), .section-heading > p:not(.eyebrow), .family-copy > p:not(.eyebrow), .contact-card > div > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.06rem; }
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); align-items: center; gap: 96px; }
.portrait-card { position: relative; min-height: 460px; display: grid; place-content: center; overflow: hidden; padding: 30px; border-radius: var(--radius-lg); background: var(--teal); color: white; text-align: center; box-shadow: var(--shadow); }
.portrait-card::before, .portrait-card::after { content: ''; position: absolute; border: 3px solid rgba(255,255,255,.18); border-radius: 50%; }
.portrait-card::before { width: 230px; height: 230px; top: -80px; left: -75px; }
.portrait-card::after { width: 180px; height: 180px; right: -35px; bottom: -60px; }
.portrait-initials { position: relative; z-index: 1; width: 170px; height: 170px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 44% 56% 60% 40%; color: var(--teal); background: var(--cream-100); font-family: var(--display); font-size: 4rem; font-weight: 700; transform: rotate(-3deg); }
.portrait-card p { position: relative; z-index: 1; margin: 0; font-family: var(--display); font-size: 1.4rem; line-height: 1.35; }
.portrait-pencil { position: absolute; top: 35px; right: 42px; color: var(--mustard-soft); font-size: 3.2rem; transform: rotate(15deg); }
.section-copy h2 { margin-bottom: 28px; }
.section-copy > p:not(.eyebrow) { max-width: 690px; }
blockquote { position: relative; display: flex; align-items: center; gap: 14px; margin: 34px 0 0; padding: 20px 24px; border-left: 0; border-radius: var(--radius-sm); background: var(--cream-100); }
blockquote span { color: var(--coral); font-family: var(--display); font-size: 3.5rem; line-height: .7; }
blockquote p { margin: 0; font-family: var(--display); font-size: 1.23rem; font-style: italic; }

.approach { background: var(--cream-100); }
.centered { max-width: 860px; margin: 0 auto 55px; text-align: center; }
.centered .eyebrow { justify-content: center; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { position: relative; min-height: 330px; overflow: hidden; padding: 34px 30px; border-radius: var(--radius); background: white; border: 1px solid var(--border); box-shadow: 0 14px 38px rgba(46,70,60,.06); transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: var(--shadow-sm); }
.feature-card::after { content: ''; position: absolute; width: 110px; height: 110px; right: -45px; bottom: -45px; border-radius: 50%; background: var(--card-soft); }
.feature-card.coral { --card-color: var(--coral); --card-soft: var(--coral-soft); }
.feature-card.mustard { --card-color: #c1840c; --card-soft: var(--mustard-soft); }
.feature-card.teal { --card-color: var(--teal); --card-soft: #d8e7df; }
.feature-number { position: absolute; top: 20px; right: 24px; color: rgba(23,63,67,.25); font-family: var(--display); }
.feature-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 40px; border-radius: 22px 18px 24px 16px; color: white; background: var(--card-color); font-size: 1.65rem; transform: rotate(-4deg); }
.feature-card h3, .material-card h3 { margin: 0 0 12px; font-family: var(--display); font-size: 1.55rem; }
.feature-card p, .material-card p { margin: 0; color: var(--ink-soft); }

.materials { background: white; }
.section-heading.split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; margin-bottom: 55px; }
.section-heading.split > p { max-width: 490px; margin: 0 0 6px; }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.material-card { padding: 26px; border-radius: var(--radius); background: var(--cream-50); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.material-card:hover { border-color: rgba(230,107,72,.48); transform: translateY(-4px); }
.material-icon { height: 190px; display: grid; place-items: center; margin-bottom: 25px; overflow: hidden; border-radius: 18px; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
.material-icon.letters { color: var(--teal); background: #dcebea; }
.material-icon.numbers { color: #a56b00; background: var(--mustard-soft); }
.material-icon.explore { color: #bd4b2e; background: var(--coral-soft); }
.tiny-label { display: block; margin-bottom: 5px; color: var(--coral); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.family { padding-top: 30px; background: white; }
.family-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; overflow: hidden; padding: 72px; border-radius: var(--radius-lg); color: white; background: var(--teal); box-shadow: var(--shadow); }
.family-card::before { content: '✦'; position: absolute; right: 45%; top: 24px; color: var(--mustard); font-size: 4rem; opacity: .7; transform: rotate(14deg); }
.family-copy .eyebrow { color: var(--mustard-soft); }
.family-copy .eyebrow::before { background: currentColor; }
.family-copy h2 { font-size: clamp(2.25rem, 4vw, 3.8rem); }
.family-copy > p:not(.eyebrow) { color: rgba(255,255,255,.78); }
.tip-list { display: grid; gap: 12px; align-content: center; margin: 0; padding: 0; list-style: none; }
.tip-list li { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 15px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); }
.tip-list span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--mustard-soft); font-family: var(--display); font-weight: 700; }
.tip-list p { margin: 0; }

.faq { background: var(--cream-50); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.faq .section-heading { position: sticky; top: 120px; align-self: start; }
.faq .section-heading > p:last-child { max-width: 360px; }
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: 18px; background: white; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(46,70,60,.05); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.22rem; font-weight: 700; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary b { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--teal); font-family: var(--sans); transition: transform .2s; }
.accordion details[open] summary b { transform: rotate(45deg); }
.answer { padding: 0 24px 22px; color: var(--ink-soft); }
.answer p { margin: 0; }

.contact { padding-top: 35px; }
.contact-card { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 80px; padding: 58px 64px; border-radius: var(--radius-lg); background: var(--mustard-soft); }
.contact-card h2 { max-width: 760px; }
.contact-actions { display: grid; justify-items: start; gap: 12px; }
.contact-actions > span { color: var(--ink-soft); font-size: .83rem; word-break: break-all; }
.contact-phone { font-weight: 750; }

.site-footer { margin-top: 70px; padding: 60px 0 25px; color: white; background: #12383c; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.25fr .55fr; align-items: center; gap: 60px; }
.footer-brand .brand-mark { background: var(--mustard); color: var(--ink); }
.footer-brand small { color: rgba(255,255,255,.58); }
.footer-grid > p { max-width: 520px; margin: 0; color: rgba(255,255,255,.67); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: .76rem; }

.editor-bar { position: fixed; inset: 0 0 auto; z-index: 100; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; color: white; background: #102f33; font-size: .82rem; }
.editor-bar > div { display: flex; align-items: center; gap: 10px; }
.editor-dot { width: 9px; height: 9px; border-radius: 50%; background: #57d28b; box-shadow: 0 0 0 4px rgba(87,210,139,.12); }
.editor-actions a, .editor-actions button { color: white; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
[data-edit-key] { border-radius: 5px; outline: 1px dashed transparent; transition: outline-color .15s, background .15s; }
.is-admin-editing [data-edit-key]:hover, [data-edit-key]:focus { outline: 2px dashed var(--coral); outline-offset: 5px; background: rgba(255,255,255,.55); cursor: text; }
.is-admin-editing .family [data-edit-key]:hover, .is-admin-editing .family [data-edit-key]:focus, .is-admin-editing .site-footer [data-edit-key]:hover { background: rgba(255,255,255,.13); }
[data-edit-key].is-saving { opacity: .55; }
[data-image-key] { position: relative; }
.image-edit-button { position: absolute; left: 50%; top: 50%; z-index: 5; opacity: 0; transform: translate(-50%, -40%); padding: 12px 17px; border: 0; border-radius: 999px; color: white; background: rgba(16,47,51,.92); box-shadow: var(--shadow-sm); cursor: pointer; transition: opacity .2s, transform .2s; }
[data-image-key]:hover .image-edit-button, .image-edit-button:focus { opacity: 1; transform: translate(-50%, -50%); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; max-width: min(90vw, 440px); padding: 12px 18px; border-radius: 999px; color: white; background: #102f33; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #9d3728; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 40px; text-align: center; background: var(--cream-100); }
.error-page > div { max-width: 650px; }
.error-page > div > span { color: var(--coral); font-family: var(--display); font-size: 7rem; font-weight: 700; line-height: 1; }
.error-page h1 { margin: 15px 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; }
.error-page p { margin-bottom: 28px; color: var(--ink-soft); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 1020px) {
    .section-pad { padding: 84px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero { min-height: auto; }
    .hero-copy { max-width: 800px; }
    .hero-visual { width: min(100%, 760px); margin: auto; }
    .about-grid { gap: 60px; }
    .approach-grid, .materials-grid { grid-template-columns: 1fr 1fr; }
    .approach-grid article:last-child, .materials-grid article:last-child { grid-column: 1 / -1; }
    .materials-grid article:last-child { display: grid; grid-template-columns: .7fr 1.3fr; gap: 25px; }
    .materials-grid article:last-child .material-icon { margin: 0; }
    .family-card { gap: 50px; padding: 55px; }
    .faq-grid { gap: 60px; }
    .contact-card { gap: 45px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 780px) {
    html { scroll-padding-top: 75px; }
    body.is-admin-editing { padding-top: 58px; }
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section-pad { padding: 70px 0; }
    .site-header { top: 0; }
    .is-admin-editing .site-header { top: 58px; }
    .nav-wrap { min-height: 68px; }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: calc(100% + 1px); left: 14px; right: 14px; display: none; align-items: stretch; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--cream-50); box-shadow: var(--shadow); }
    .main-nav.open { display: grid; gap: 4px; }
    .main-nav a { padding: 10px 12px; }
    .main-nav a::after { display: none; }
    .nav-cta { text-align: center; }
    .hero { padding-top: 48px; }
    .hero-grid { gap: 46px; }
    .hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
    .hero-visual { border-radius: 32px; transform: none; }
    .hero-visual::before { border-radius: 32px; }
    .hero-sticker { right: 6px; bottom: -27px; }
    .about-grid, .family-card, .faq-grid, .contact-card, .section-heading.split { grid-template-columns: 1fr; gap: 40px; }
    .portrait-card { min-height: 380px; }
    .approach-grid, .materials-grid { grid-template-columns: 1fr; }
    .approach-grid article:last-child, .materials-grid article:last-child { grid-column: auto; }
    .materials-grid article:last-child { display: block; }
    .materials-grid article:last-child .material-icon { margin-bottom: 25px; }
    .material-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; }
    .material-icon { height: 150px; margin: 0; }
    .family { padding-top: 0; }
    .family-card { padding: 42px 26px; border-radius: 26px; }
    .faq .section-heading { position: static; }
    .contact-card { padding: 42px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-links { grid-column: auto; }
    .copyright { display: grid; }
    .editor-bar { height: 58px; padding: 6px 12px; }
    .editor-bar > div:first-child span:last-child { display: none; }
}

@media (max-width: 540px) {
    .brand small { display: none; }
    .hero-actions { align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-actions .text-link { margin: auto; }
    .trust-row { display: grid; grid-template-columns: 1fr 1fr; }
    .hero-visual { padding: 8px; }
    .doodle-star { font-size: 2.2rem; }
    .material-card { display: block; }
    .material-icon { height: 140px; margin-bottom: 22px; }
    .accordion summary { padding: 19px; font-size: 1.08rem; }
    .answer { padding: 0 19px 19px; }
    .editor-actions button { display: none; }
}

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

@media print {
    .site-header, .editor-bar, .hero-actions, .site-footer, .image-edit-button { display: none !important; }
    body { color: #000; background: #fff; }
    .section-pad { padding: 30px 0; }
    .reveal { opacity: 1; transform: none; }
}
