@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --coral: #ee7868;
  --chalk: #f5f5f5;
  --ink: #263445;
  --ivory: #fff8f3;
  --blush: #f7d4cc;
  --deep: #a83f39;
  --teal: #246b68;
  --sage: #dceae2;
  --sand: #f1c875;
  --line: #e2d4cf;
  --muted: #4f5d6b;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font: 1rem/1.6 var(--body); }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand { font-family: var(--display); letter-spacing: -.055em; font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--width)); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .7rem 1rem; background: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header, .site-footer { background: var(--ivory); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 82px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 1.65rem; white-space: nowrap; }
.brand img { margin-right: .6rem; object-fit: contain; }
.brand span, .accent { color: var(--deep); }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header nav a, .site-footer nav a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.site-header nav a:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { background: var(--deep); color: var(--chalk); padding: .7rem 1rem; }
.nav-contact[aria-current] { text-decoration: underline; text-underline-offset: .25em; }

.hero { background: var(--coral); overflow: hidden; }
.hero-grid { min-height: 600px; display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; gap: clamp(30px, 6vw, 86px); padding-block: 78px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .73rem; }
.hero h1 { font-size: clamp(3.25rem, 7.1vw, 6.75rem); line-height: .99; letter-spacing: -.078em; margin-block: 19px 24px; }
.hero h1 span, .contact-band h2 span { color: var(--chalk); }
.hero-copy > p:not(.eyebrow) { max-width: 39ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-bottom: 29px; }
.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: .85rem 1.1rem; min-height: 48px; text-decoration: none; font-weight: 800; line-height: 1.25; text-align: left; }
.button span { font-size: 1.12rem; font-weight: 500; }
.button-ivory { background: var(--ivory); color: var(--ink); }
.button-ivory:hover { background: var(--blush); }
.button-ink { background: var(--ink); color: var(--chalk); }
.button-ink:hover { background: var(--teal); }
.button:disabled { cursor: wait; opacity: .72; }

.hero-visual { display: grid; place-items: center; position: relative; isolation: isolate; min-width: 0; padding: 14px 18px 18px 0; }
.hero-ring { position: absolute; z-index: -1; width: 620px; aspect-ratio: 1; border: 1px solid #26344536; border-radius: 50%; left: 50%; top: 50%; transform: translate(-41%, -50%); box-shadow: 0 0 0 64px var(--coral), 0 0 0 65px #26344527, 0 0 0 139px var(--coral), 0 0 0 140px #26344522; }
.example-card { position: relative; width: min(100%, 450px); background: var(--ivory); padding: clamp(18px, 2.5vw, 30px); transform: rotate(-2deg); box-shadow: 14px 14px 0 var(--coral), 15px 15px 0 var(--deep); }
.example-card figcaption { font-weight: 800; font-size: .78rem; color: var(--teal); border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.example-card h2 { font-size: clamp(1.4rem, 2.7vw, 2.1rem); margin-block: 1.1rem; }
.fraction-demo { padding: 1rem; background: var(--sage); }
.fraction-demo p { font-size: .83rem; margin-top: .85rem; }
.fraction-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: .65rem; font-size: 1.13rem; font-weight: 800; }
.fraction-row + .fraction-row { margin-top: .55rem; }
.fraction-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 23px; }
.fraction-bar i { background: var(--chalk); border: 1px solid #246b685a; }
.thirds i:nth-child(-n+2), .sixths i:nth-child(-n+4) { background: var(--teal); border-color: var(--teal); }
.example-note { font-size: .84rem; font-weight: 700; margin-top: 1.1rem; }
.example-note span { color: var(--deep); margin-right: .3rem; }

.section { padding-block: clamp(64px, 8.5vw, 118px); }
.section-heading { display: grid; grid-template-columns: 1fr .78fr; align-items: end; gap: clamp(30px, 7vw, 100px); }
.section-heading .eyebrow, .principles .eyebrow, .product-content .eyebrow { color: var(--teal); margin-bottom: 15px; }
.section-heading > p { color: var(--muted); font-size: 1.12rem; max-width: 45ch; }
.principles { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(32px, 5.5vw, 66px); border-block: 1px solid var(--line); }
.principles article { padding: clamp(22px, 4vw, 48px) clamp(15px, 4vw, 50px) clamp(22px, 4vw, 48px) 0; }
.principles article + article { border-left: 1px solid var(--line); padding-left: clamp(15px, 4vw, 50px); }
.principles h3 { max-width: 24ch; font-size: clamp(1.4rem, 2.4vw, 2.05rem); }

.products { background: var(--chalk); border-block: 1px solid var(--line); }
.product-grid, .team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 34px); margin-top: clamp(25px, 4vw, 50px); }
.product { border: 1px solid var(--line); background: var(--ivory); min-width: 0; display: flex; flex-direction: column; }
.product-art { height: clamp(195px, 21vw, 260px); position: relative; overflow: hidden; display: grid; place-items: center; padding: 16px; }
.core-art { background: var(--sage); }
.core-orbit { width: 160px; aspect-ratio: 1; position: relative; border: 1px solid var(--teal); border-radius: 50%; display: grid; place-items: center; }
.core-orbit::before { content: ''; position: absolute; inset: -32px; border: 1px dashed #246b6861; border-radius: 50%; }
.core-orbit::after { content: ''; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; aspect-ratio: 1; border-radius: 50%; background: var(--deep); }
.core-orbit div { display: grid; place-content: center; text-align: center; border-radius: 50%; width: 92px; aspect-ratio: 1; font-weight: 800; line-height: 1.2; background: var(--teal); color: var(--chalk); }
.orbit-note { background: var(--ivory); border: 1px solid var(--teal); padding: .25rem .5rem; font-weight: 700; font-size: .71rem; position: absolute; }
.lesson-goals { left: 7%; top: 33%; }
.learner-responses { right: 6%; bottom: 27%; }
.aster-art { background: var(--blush); }
.aster-preview { width: min(90%, 345px); padding: 16px 20px 19px; background: var(--ink); color: var(--chalk); box-shadow: 9px 9px 0 var(--coral); }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #f5f5f54c; padding-bottom: .4rem; }
.aster-preview p { margin-top: .65rem; font-size: 1.1rem; font-weight: 800; }
.aster-preview > span, .preview-top span { font-size: .75rem; }
.aster-preview .fraction-row { margin-block: .55rem; }
.quarters i { background: #f5f5f523; border-color: #f5f5f57a; }
.quarters i:nth-child(-n+3) { background: var(--sand); border-color: var(--sand); }
.product-content { padding: clamp(20px, 3.2vw, 40px); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.product-content .eyebrow { margin-bottom: 10px; }
.product-content p:not(.eyebrow) { color: var(--muted); margin-top: 14px; max-width: 53ch; }
.product-cta { margin-top: auto; }
.product-content:has(.product-cta) p:last-of-type { margin-bottom: 22px; }

.team-grid article { display: grid; grid-template-columns: auto 1fr; gap: clamp(15px, 2.5vw, 28px); border-top: 1px solid var(--ink); padding-top: 25px; }
.initials { display: grid; place-items: center; width: clamp(58px, 8vw, 104px); aspect-ratio: 1; align-self: start; font: 800 clamp(1.15rem, 2.4vw, 2rem)/1 var(--display); background: var(--blush); color: var(--deep); }
.team-grid h3 { font-size: 1.4rem; }
.team-grid .eyebrow { color: var(--teal); margin-block: .4rem; }
.team-grid p:last-child { color: var(--muted); }
.contact-band { background: var(--coral); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(32px, 5.5vw, 70px); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1rem; }
.footer-inner small { color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: 44% 56%; }
.contact-side, .contact-form { padding: clamp(48px, 8vw, 100px) var(--gutter); }
.contact-side { background: var(--ink); color: var(--chalk); padding-left: max(var(--gutter), (100vw - var(--width)) / 2); }
.contact-side h1, .pilot-layout h1 { font-size: clamp(2.85rem, 5.5vw, 5.5rem); }
.contact-side h1 span { color: var(--coral); }
.contact-side p, .pilot-layout p { font-size: 1.12rem; margin-top: 20px; max-width: 34ch; }
.contact-form { padding-right: max(var(--gutter), (100vw - var(--width)) / 2); }
.contact-form h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); margin-bottom: 1.7rem; }
form label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.optional { color: var(--muted); font-weight: 500; }
form input, form select, form textarea { width: 100%; display: block; margin-top: .4rem; padding: .75rem; border: 1px solid #7c8a8d; border-radius: 0; background: #fffdfb; color: var(--ink); font-weight: 500; }
textarea { resize: vertical; }
form .form-status:not(:empty) { margin-top: 1.15rem; max-width: none; padding: .8rem; background: var(--sage); font-size: .95rem; }
form .form-status[data-state="error"] { background: var(--blush); }
.pilot-page { background: var(--sage); }
.pilot-layout { min-height: 490px; display: grid; align-items: center; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 7vw, 100px); padding-block: clamp(55px, 8vw, 110px); }
.pilot-layout h1 span { color: var(--deep); }
.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 700; text-underline-offset: .2em; }
.pilot-form { background: var(--ivory); border: 1px solid var(--line); padding: clamp(22px, 4vw, 45px); }

@media (max-width: 760px) {
  .header-inner { min-height: 71px; gap: .8rem; }
  .brand { font-size: 1.33rem; }
  .brand img { width: 31px; height: auto; margin-right: .4rem; }
  .site-header nav { gap: clamp(.4rem, 2.6vw, 1.2rem); }
  .site-header nav a { font-size: .79rem; }
  .nav-contact { padding: .55rem .55rem; }
  .hero-grid, .section-heading, .contact-layout, .pilot-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; min-height: 0; padding-block: 62px 52px; }
  .hero-visual { width: min(100%, 480px); margin-inline: auto; }
  .hero-ring { opacity: .55; width: 430px; }
  .section-heading { gap: 18px; }
  .product-grid, .team-grid { grid-template-columns: 1fr; }
  .contact-side, .contact-form { padding-inline: var(--gutter); }
  .pilot-layout { min-height: 0; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .header-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: .65rem; }
  .site-header nav { margin-left: auto; }
  .band-inner, .footer-inner { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lesson-goals { left: 3%; }
  .learner-responses { right: 3%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
