@layer reset, base, layout, components, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ol, ul { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, a { font: inherit; }
}

@layer base {
  :root {
    --cream: #f6f1e4;
    --paper: #fffdf7;
    --ink: #173d2a;
    --muted: #52665a;
    --green: #2f7047;
    --leaf: #59b866;
    --leaf-light: #a7cf62;
    --bark: #6a321a;
    --sun: #f0d891;
    --peach: #e39a76;
    --line: #d9d3c3;
    --display: Georgia, 'Times New Roman', serif;
    --body: 'Trebuchet MS', 'Segoe UI', sans-serif;
    --wrap: min(1180px, calc(100% - 48px));
    color-scheme: light;
  }
  html { scroll-padding-top: 88px; }
  body {
    min-width: 320px;
    overflow-x: clip;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .22em; }
  :focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #0b2418; border-radius: 4px; }
  h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .98; text-wrap: balance; }
  h1 { font-size: clamp(3.75rem, 8vw, 7.7rem); letter-spacing: -.07em; }
  h2 { font-size: clamp(3rem, 6vw, 6.2rem); letter-spacing: -.055em; }
  h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.035em; }
  section[id] { scroll-margin-top: 88px; }
}

@layer layout {
  .wrap { width: var(--wrap); margin-inline: auto; }
  .section { padding-block: clamp(5.5rem, 11vw, 10rem); }
  .intro-grid, .parent-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .78fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; }
  .hero-grid { min-height: calc(100svh - 82px); display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(410px, .8fr); align-items: center; gap: 4vw; padding-block: clamp(4rem, 8vh, 7rem) 7rem; }
  .moments-heading { display: grid; grid-template-columns: 1.2fr .65fr; align-items: end; gap: 3rem; margin-bottom: 4rem; }
  .moment-mosaic { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; }
  .moment-large { grid-row: span 2; }
  .moment-wide { display: grid; grid-template-columns: 1fr 1.2fr; }
}

@layer components {
  .skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 99px; }
  .skip-link:focus { transform: translateY(0); }
  .site-header { position: sticky; z-index: 40; top: 0; background: color-mix(in srgb, var(--cream) 94%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--bark) 18%, transparent); backdrop-filter: blur(12px); }
  .header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .brand { min-height: 54px; display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--display); font-size: 1.08rem; line-height: 1.05; letter-spacing: -.02em; }
  .brand img { width: 52px; height: 52px; border-radius: 50%; mix-blend-mode: multiply; }
  .brand small { color: var(--green); font-family: var(--body); font-size: .62rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
  .primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .88rem; font-weight: 700; }
  .primary-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
  .primary-nav a:not(.nav-cta) { background-image: linear-gradient(var(--leaf), var(--leaf)); background-position: 0 85%; background-repeat: no-repeat; background-size: 0 2px; transition: background-size .2s ease; }
  .primary-nav a:not(.nav-cta):hover { background-size: 100% 2px; }
  .nav-cta { padding: .55rem 1.15rem; background: var(--ink); color: #fff; border-radius: 99px; }
  .nav-toggle { display: none; min-width: 72px; min-height: 44px; padding: .5rem .75rem; align-items: center; justify-content: space-between; gap: .65rem; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 99px; cursor: pointer; font-weight: 700; }
  .nav-toggle-lines { display: grid; gap: 5px; }
  .nav-toggle-lines i { width: 16px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }

  .hero { position: relative; min-height: calc(100svh - 82px); isolation: isolate; overflow: hidden; }
  .hero::after { content: ''; position: absolute; z-index: -2; inset: auto -8% -18rem 36%; height: 36rem; border-radius: 50%; background: #e7e4c3; transform: rotate(-5deg); }
  .hero-grain { position: absolute; z-index: -1; inset: 0; opacity: .26; background-image: radial-gradient(color-mix(in srgb, var(--bark) 34%, transparent) .65px, transparent .7px); background-size: 8px 8px; mask-image: linear-gradient(to bottom, transparent 10%, #000 55%, transparent); }
  .eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  .eyebrow span { width: 2.6rem; height: 1px; background: currentColor; }
  .eyebrow.light { color: #cce8c9; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy h1 em { display: inline; color: var(--green); font-weight: 400; }
  .evergreen { display: inline-block; width: clamp(.85rem, 1.7vw, 1.55rem); height: clamp(1.2rem, 2.4vw, 2.2rem); margin-left: .2em; background: linear-gradient(to bottom, var(--green) 0 78%, var(--bark) 78%); clip-path: polygon(50% 0, 76% 30%, 65% 30%, 90% 59%, 67% 59%, 96% 84%, 58% 84%, 58% 100%, 42% 100%, 42% 84%, 4% 84%, 33% 59%, 10% 59%, 35% 30%, 24% 30%); font-size: 0; letter-spacing: 0; vertical-align: .2em; }
  .hero-intro { max-width: 38rem; margin-top: 2rem; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
  .button-row { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.4rem; flex-wrap: wrap; }
  .button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .7rem 1.35rem; border: 2px solid var(--ink); border-radius: 99px; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
  .button:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--bark); }
  .button-primary { background: var(--ink); color: white; }
  .text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; }
  .hero-tree { position: relative; width: min(100%, 570px); justify-self: end; filter: drop-shadow(0 30px 35px rgb(23 61 42 / .05)); }
  .hero-tree svg { overflow: visible; }
  .sun-shape { fill: var(--sun); }
  .ground-shape { fill: #d9d69d; }
  .trunk { fill: var(--bark); }
  .branch, .roots { fill: none; stroke: var(--bark); stroke-width: 18; stroke-linecap: round; }
  .roots { stroke-width: 7; opacity: .72; }
  .leaf { filter: url(#softShadow); transform-box: fill-box; transform-origin: center; }
  .leaf-a { fill: var(--leaf-light); }
  .leaf-b { fill: var(--leaf); }
  .leaf-c { fill: #3f9158; }
  .fruit { fill: var(--peach); }
  .sprout { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
  .tree-note { position: absolute; right: -1rem; bottom: 3.8rem; display: grid; padding: .85rem 1.2rem; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 32px rgb(23 61 42 / .09); transform: rotate(-3deg); }
  .tree-note span { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; }
  .tree-note strong { font-family: var(--display); font-size: 1.25rem; }
  .scroll-cue { position: absolute; left: 50%; bottom: 1.7rem; translate: -50% 0; min-height: 44px; display: inline-flex; gap: .6rem; align-items: center; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
  .scroll-cue span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid currentColor; border-radius: 50%; }

  .intro { background: var(--paper); }
  .intro h2 { max-width: 12ch; }
  .intro-copy { border-left: 1px solid var(--line); padding-left: clamp(2rem, 4vw, 4rem); color: var(--muted); }
  .intro-copy .lead { margin-bottom: 1.5rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.35rem); line-height: 1.2; }

  .growth-path { position: relative; background: var(--ink); color: #f8f4e8; overflow: hidden; }
  .growth-path::before { content: ''; position: absolute; width: 38rem; height: 38rem; right: -15rem; top: 8rem; border: 1px solid rgb(255 255 255 / .12); border-radius: 46% 54% 60% 40%; box-shadow: 0 0 0 5rem rgb(255 255 255 / .025), 0 0 0 10rem rgb(255 255 255 / .02); }
  .section-heading { position: relative; max-width: 54rem; margin-bottom: 5rem; }
  .section-heading > p:last-child { max-width: 35rem; margin-top: 1.5rem; color: #bdd0c1; }
  .growth-list { position: relative; list-style: none; padding: 0; border-top: 1px solid rgb(255 255 255 / .22); }
  .growth-list::before { content: ''; position: absolute; left: 5.3rem; top: 0; bottom: 0; width: 1px; background: rgb(255 255 255 / .2); }
  .growth-list li { position: relative; min-height: 150px; display: grid; grid-template-columns: 7.5rem 1fr 12rem; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid rgb(255 255 255 / .22); }
  .growth-number { color: var(--leaf-light); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
  .growth-list h3 { margin-bottom: .55rem; }
  .growth-list p { max-width: 35rem; color: #bdd0c1; }
  .growth-mark { justify-self: center; display: block; width: 72px; height: 72px; }
  .root-mark { border: 2px solid var(--leaf-light); border-radius: 50% 50% 10% 50%; rotate: 45deg; }
  .seed-mark { width: 54px; height: 72px; background: var(--sun); border-radius: 70% 30% 65% 35%; rotate: -26deg; }
  .branch-mark { width: 75px; height: 8px; border-radius: 99px; background: var(--peach); rotate: -26deg; box-shadow: 25px -18px 0 -2px var(--peach); }
  .leaf-mark { background: var(--leaf); border-radius: 80% 0 80% 0; rotate: -12deg; }

  .moments { background: #e9e5cf; }
  .moments-heading h2 { max-width: 11ch; }
  .moments-heading > p { color: var(--muted); }
  .moment { min-height: 25rem; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; }
  .moment-art { position: relative; flex: 1; min-height: 16rem; overflow: hidden; }
  .moment-copy { padding: 1.6rem; }
  .moment-copy > span { color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
  .moment-copy h3 { margin: .5rem 0 .7rem; font-size: clamp(1.8rem, 3vw, 3rem); }
  .moment-copy p { color: var(--muted); }
  .make-art { min-height: 32rem; background: #d8ab8f; }
  .make-art::before { content: ''; position: absolute; inset: 15% 13%; border: 14px solid var(--paper); background: #e9d987; rotate: -4deg; box-shadow: 0 14px 0 rgb(106 50 26 / .15); }
  .make-art i { position: absolute; z-index: 2; width: 70px; height: 90px; border-radius: 64% 36% 54% 46%; background: var(--leaf); }
  .make-art i:nth-child(1) { left: 30%; top: 23%; rotate: 24deg; }
  .make-art i:nth-child(2) { left: 48%; top: 37%; width: 105px; background: var(--peach); rotate: -17deg; }
  .make-art i:nth-child(3) { right: 25%; top: 20%; width: 55px; background: var(--green); rotate: 50deg; }
  .make-art span { position: absolute; z-index: 3; left: 24%; bottom: 20%; width: 52%; height: 15px; background: var(--bark); rotate: 12deg; }
  .story-art { background: #eedc9f; }
  .story-art::before, .story-art::after { content: ''; position: absolute; bottom: 22%; width: 35%; height: 45%; background: var(--paper); border: 3px solid var(--bark); }
  .story-art::before { left: 15%; transform: skewY(-10deg); }
  .story-art::after { right: 15%; transform: skewY(10deg); }
  .story-art i { position: absolute; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: var(--leaf); }
  .story-art i:first-child { left: 29%; top: 27%; }
  .story-art i:nth-child(2) { right: 28%; top: 36%; background: var(--peach); }
  .story-art span { position: absolute; z-index: 3; left: 49.5%; bottom: 22%; width: 3px; height: 45%; background: var(--bark); }
  .outside-art { min-height: 18rem; background: #b8d890; }
  .outside-art::before { content: ''; position: absolute; inset: auto -10% -35% -10%; height: 70%; border-radius: 50%; background: var(--green); opacity: .75; }
  .outside-art i { position: absolute; z-index: 2; width: 70px; height: 95px; border: 7px solid var(--bark); border-bottom: 0; border-radius: 50% 50% 0 0; }
  .outside-art i:nth-child(1) { left: 18%; bottom: 19%; }
  .outside-art i:nth-child(2) { left: 46%; bottom: 8%; width: 45px; height: 63px; }
  .outside-art i:nth-child(3) { right: 17%; bottom: 23%; width: 90px; height: 118px; }
  .outside-art span { position: absolute; right: 10%; top: 10%; width: 75px; height: 75px; background: var(--sun); border-radius: 50%; }

  .parent-section { background: var(--paper); }
  .parent-grid { grid-template-columns: minmax(330px, .8fr) minmax(0, 1fr); }
  .parent-tree { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--sun); overflow: hidden; }
  .parent-tree i { width: 15%; height: 68%; background: var(--bark); border-radius: 60% 40% 8% 8%; clip-path: polygon(20% 100%, 35% 48%, 0 20%, 11% 14%, 42% 35%, 45% 0, 58% 0, 59% 34%, 91% 13%, 100% 20%, 65% 49%, 84% 100%); }
  .ring { position: absolute; border: 1px solid rgb(106 50 26 / .28); border-radius: 50%; }
  .ring-1 { width: 46%; height: 46%; }
  .ring-2 { width: 72%; height: 72%; }
  .ring-3 { width: 96%; height: 96%; }
  .parent-copy h2 { max-width: 12ch; margin-bottom: 1.8rem; }
  .parent-copy > p:not(.eyebrow) { max-width: 39rem; color: var(--muted); font-size: 1.15rem; }
  .question-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 2.2rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
  .question-list li { padding: .9rem 0 .9rem 1.4rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 4px 1.55rem, var(--leaf) 0 4px, transparent 5px); }
  .arrow-link { gap: 1.5rem; color: var(--green); }

  .visit { background: var(--paper); padding-top: 0; }
  .visit-card { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(3rem, 8vw, 8rem); padding: clamp(3rem, 6vw, 6rem); background: var(--green); color: #fff; border-radius: 1.5rem; }
  .visit-heading h2 { font-size: clamp(3rem, 5.2vw, 5.5rem); }
  .contact-list { font-style: normal; border-top: 1px solid rgb(255 255 255 / .32); }
  .contact-list a { min-height: 106px; display: grid; grid-template-columns: 6rem 1fr auto; align-items: center; gap: 1rem; border-bottom: 1px solid rgb(255 255 255 / .32); text-decoration: none; }
  .contact-list span { color: #d9efd8; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
  .contact-list strong { min-width: 0; font-size: clamp(1rem, 1.5vw, 1.25rem); overflow-wrap: anywhere; }
  .contact-list i { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; font-style: normal; transition: background .2s ease, color .2s ease; }
  .contact-list a:hover i { background: white; color: var(--green); }

  .site-footer { padding: 5rem 0 2rem; background: var(--bark); color: #f9eee1; }
  .footer-main { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2rem; align-items: center; padding-bottom: 4rem; }
  .footer-brand { display: flex; align-items: center; gap: .8rem; font-family: var(--display); line-height: 1.1; }
  .footer-brand img { width: 58px; height: 58px; border-radius: 50%; mix-blend-mode: screen; }
  .footer-line { text-align: center; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 3.4rem); letter-spacing: -.04em; }
  .footer-line span { color: var(--leaf-light); }
  .footer-links { display: flex; justify-content: flex-end; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; font-weight: 800; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-note { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .25); color: #ead5c7; font-size: .72rem; }
  .footer-note p:first-child { max-width: 48rem; }
}

@layer motion {
  .js [data-reveal] { transform: translateY(14px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].is-visible { transform: none; }
  .leaf { animation: leaf-breathe 6s ease-in-out infinite alternate; }
  .leaf-b { animation-delay: -2s; }
  .leaf-c { animation-delay: -4s; }
  @keyframes leaf-breathe { to { transform: rotate(2deg) scale(1.015); } }
}

@media (max-width: 900px) {
  :root { --wrap: min(100% - 36px, 760px); }
  .hero-grid { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-tree { width: min(85%, 520px); justify-self: center; }
  .hero-copy { max-width: 700px; }
  .intro-grid, .parent-grid, .moments-heading, .visit-card { grid-template-columns: 1fr; }
  .moments-heading { align-items: start; }
  .parent-tree { width: min(75%, 500px); justify-self: center; }
  .visit-card { gap: 3rem; }
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
  .growth-list li { grid-template-columns: 5rem 1fr 7rem; }
  .growth-list::before { left: 3.3rem; }
}

@media (max-width: 720px) {
  :root { --wrap: min(100% - 28px, 620px); }
  html { scroll-padding-top: 72px; }
  section[id] { scroll-margin-top: 72px; }
  .header-inner { min-height: 72px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .primary-nav { flex-wrap: wrap; }
  .js .primary-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 1rem 1.2rem 1.3rem; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgb(23 61 42 / .12); }
  .js .primary-nav[data-open] { display: grid; }
  .js .primary-nav a { width: 100%; padding-inline: .3rem; }
  .js .primary-nav .nav-cta { width: max-content; padding-inline: 1rem; }
  .hero-grid { min-height: auto; padding-block: 4rem 7rem; }
  .hero-copy h1 { font-size: clamp(3.8rem, 18vw, 6.4rem); }
  .hero-intro { font-size: 1.05rem; }
  .scroll-cue { display: none; }
  .tree-note { right: 0; bottom: 2rem; }
  .intro-grid { gap: 2.5rem; }
  .intro-copy { padding-left: 0; border-left: 0; }
  .growth-list li { grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 2rem 0; }
  .growth-list::before { left: 1.4rem; }
  .growth-mark { display: none; }
  .moment-mosaic { grid-template-columns: 1fr; }
  .moment-large { grid-row: auto; }
  .moment-wide { grid-template-columns: 1fr; }
  .moment-wide .moment-copy { order: 2; }
  .make-art { min-height: 23rem; }
  .question-list { grid-template-columns: 1fr; }
  .parent-tree { width: 90%; }
  .visit-card { width: calc(100% - 16px); padding: 2.2rem 1.35rem; border-radius: 1.1rem; }
  .visit-card > *, .contact-list, .contact-list a { min-width: 0; }
  .contact-list a { grid-template-columns: 1fr auto; align-content: center; gap: .25rem 1rem; padding-block: 1rem; }
  .contact-list span { grid-column: 1; }
  .contact-list strong { grid-column: 1; }
  .contact-list i { grid-column: 2; grid-row: 1 / 3; }
  .footer-note { flex-direction: column; }
}

@media (max-width: 430px) {
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button, .button-row .text-link { width: 100%; justify-content: center; }
  .hero-tree { width: 104%; margin-left: -2%; }
  .tree-note { font-size: .85rem; }
}

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