@font-face {
  font-family: Inter;
  src: url('InterVariable-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #282c26;
  --paper: #f5f1e4;
  --white: #fffef9;
  --green: #95d664;
  --thread-green: #91d264;
  --line: #d5d1c3;
  --gutter: clamp(1rem, 3.5vw, 3.5rem);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { position: relative; isolation: isolate; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-weight: 520; line-height: .98; letter-spacing: -.058em; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid #3257be; outline-offset: 4px; }
::selection { background: #f6dc64; color: var(--ink); }
[id] { scroll-margin-top: 7rem; }

.shell { width: min(100% - var(--gutter) * 2, 76rem); margin-inline: auto; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 20; padding: .75rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.masthead {
  position: fixed;
  inset: clamp(.75rem, 1.4vw, 1.5rem) 0 auto;
  z-index: 10;
  display: flex;
  width: min(84%, 79rem);
  gap: clamp(.5rem, 1.45vw, 1.35rem);
  align-items: stretch;
}

.nav-bar, .nav-contact {
  min-height: 4.1rem;
  background: var(--white);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-bar { flex: 1; justify-content: space-between; padding: .55rem .65rem .55rem .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; font-size: clamp(1.2rem, 2.15vw, 1.7rem); font-weight: 620; letter-spacing: -.06em; }
.brand img { flex: none; width: 2.35rem; height: 2.35rem; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.8vw, 2.9rem); }
.desktop-nav a, .menu-panel a { font-weight: 520; }
.desktop-nav a:hover, .menu-panel a:hover, .footer-top:hover { text-decoration: underline; text-underline-offset: .25em; }
.menu { position: relative; }
.menu > summary { display: grid; align-content: center; justify-content: center; gap: .28rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--green); }
.menu > summary span { width: 1.05rem; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s; }
.menu[open] > summary span:first-child { transform: translateY(.20rem) rotate(45deg); }
.menu[open] > summary span:last-child { transform: translateY(-.20rem) rotate(-45deg); }
.menu-panel { position: absolute; inset: calc(100% + 1.15rem) -.65rem auto auto; width: min(17rem, 85vw); background: var(--white); padding: .55rem; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 10px 32px #282c2616; }
.menu-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 2.85rem; padding: .6rem .8rem; }
.menu-panel a:last-child { background: #e0f3cc; border-radius: .55rem; }
.nav-contact { justify-content: space-between; padding: .5rem .6rem .5rem 1.25rem; font-size: 1rem; font-weight: 560; transition: background .2s; }
.nav-contact:hover { background: #eaf7da; }
.contact-icon { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; background: #55aeec; border-radius: 50%; font-size: 1.4rem; transition: transform .25s cubic-bezier(.2,.85,.4,1.35); }
.nav-contact:hover .contact-icon { transform: rotate(12deg) scale(1.08); }
.contact-eyes { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .12s; }

.hero { position: relative; z-index: 1; display: grid; justify-items: center; min-height: min(50rem, 100svh); padding-top: clamp(7.2rem, 12.1vw, 11rem); overflow: hidden; text-align: center; background: var(--green); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 9.7vw, 11.6rem); }
.hero h1 span { display: block; }
.hero-copy p { max-width: 37ch; margin: clamp(1rem, 2.1vw, 1.9rem) auto 0; font-size: clamp(1rem, 2.05vw, 1.85rem); line-height: 1.28; letter-spacing: -.036em; }
.hero .hero-art { width: min(98%, 75rem); aspect-ratio: 1200 / 426; align-self: end; margin: clamp(.4rem, 1vw, .95rem) 0 -1.5rem; }
.scroll-link { position: absolute; z-index: 2; right: var(--gutter); bottom: 1.15rem; display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; background: var(--white); font-size: 1.4rem; transition: transform .2s; }
.scroll-link:hover { transform: translateY(.2rem); }

.introduction, .services, .method, .faq, .contact { position: relative; z-index: 1; }
.introduction { padding-block: clamp(5.5rem, 11vw, 10.5rem) clamp(3.5rem, 7.5vw, 7rem); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; color: #414a3d; font-size: .8rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { width: .68rem; height: .68rem; flex: none; border-radius: 50%; background: #6eae47; }
h2 { font-size: clamp(2.55rem, 6.4vw, 6.55rem); }
.introduction h2 { max-width: 14ch; margin-inline: auto; }
.introduction > p:last-child, .contact > .shell > p:not(.eyebrow) { max-width: 47ch; margin: 1.45rem auto 0; font-size: clamp(1.03rem, 1.65vw, 1.36rem); line-height: 1.47; }

.services { display: grid; gap: clamp(3.7rem, 8vw, 8.5rem); padding-bottom: clamp(5.25rem, 9vw, 9rem); }
.service { display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); gap: clamp(2rem, 6vw, 6.7rem); align-items: center; }
.service-reverse { grid-template-columns: minmax(0, 1.11fr) minmax(0, .89fr); }
.service-reverse .scene { order: -1; }
.service-copy { padding: 1.1rem clamp(.9rem, 2.1vw, 2rem) 1.25rem; border-radius: 1.4rem; background: var(--paper); }
.service h3 { max-width: 13ch; font-size: clamp(2.3rem, 4.8vw, 5.4rem); }
.service-copy > p:not(.eyebrow) { max-width: 38ch; margin-top: 1.25rem; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.5; }
.service-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; margin-top: 1rem; font-weight: 580; text-decoration: underline; text-underline-offset: .27em; }
.service-link span { display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border-radius: 50%; background: #d9ecc4; transition: transform .2s; }
.service-link:hover span { transform: translate(.12rem, -.12rem); }
.scene { display: grid; place-items: center; overflow: hidden; border-radius: clamp(1.55rem, 3.2vw, 3.1rem); aspect-ratio: 1.52; }
.scene-blue { background: #87c4fa; }
.scene-peach { background: #ffa487; }
.scene-lilac { background: #e8c9fb; }
.scene-art { display: block; width: 100%; }

.method { padding-block: clamp(4.6rem, 8vw, 8.1rem); background: #e3efcf; }
.method h2 { max-width: 13ch; }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin-top: 3rem; list-style: none; }
.method-steps li { min-height: 15rem; padding: clamp(1.3rem, 2.4vw, 2rem); background: var(--white); border-radius: 1.45rem; }
.method-steps li > span { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: 50%; background: #d6edbc; font-weight: 640; }
.method-steps li:nth-child(2) > span { background: #efccfc; }
.method-steps li:nth-child(3) > span { background: #f9df71; }
.method-steps h3 { margin-top: 1.4rem; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.method-steps p { margin-top: .7rem; max-width: 32ch; line-height: 1.55; }

.faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4.8rem, 9.5vw, 9rem); }
.faq-items { padding: .1rem clamp(.6rem, 1vw, 1.1rem); border-radius: 1.3rem; background: var(--paper); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items details:first-child { border-top: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-size: clamp(1.02rem, 1.5vw, 1.25rem); font-weight: 570; }
.faq-items summary::after { content: '+'; display: grid; flex: 0 0 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #dbecc9; font-size: 1.25rem; }
.faq-items details[open] summary::after { content: '−'; }
.faq-items p { padding: 0 2rem 1.25rem 0; line-height: 1.6; }

.contact { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--green); text-align: center; }
.contact .eyebrow span { background: var(--ink); }
.contact h2 { font-size: clamp(3.3rem, 9vw, 9.6rem); }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: 1rem; padding: .75rem 1.1rem; border: 0; border-radius: .65rem; color: var(--white); background: var(--ink); font-weight: 600; transition: background .2s; }
.button:hover { background: #3a4738; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.15rem; margin-top: 1.65rem; }
.contact-actions > a:last-child { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-underline-offset: .25em; font-weight: 570; }

.project-dialog {
  width: min(33rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #d7ddcb;
  border-radius: 1.4rem;
  background: #fffdf6;
  color: var(--ink);
  box-shadow: 0 .8rem 3rem #282c2633;
}
.project-dialog::backdrop { background: #282c2673; }
html:has(.project-dialog[open]) { overflow: hidden; }
.project-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.project-dialog h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.05; }
.project-dialog > p { margin-top: .75rem; line-height: 1.45; }
.project-close { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 1.55rem; line-height: 1; }
.project-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 1.2rem; }
.project-form label { display: grid; min-width: 0; gap: .35rem; font-weight: 570; }
.project-form input:not([type="hidden"]), .project-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .62rem .7rem;
  border: 1px solid #848b7a;
  border-radius: .6rem;
  background: #f6f8ee;
  color: var(--ink);
  font: inherit;
  font-weight: 430;
  line-height: 1.45;
}
.project-form input[type="tel"] { max-width: 24rem; }
.project-form textarea { min-height: 6rem; resize: vertical; }
.project-form textarea::placeholder { color: #565d51; }
.project-privacy { color: #565d51; font-size: .82rem; line-height: 1.45; }
.project-privacy a, .legal-page a { text-decoration: underline; text-underline-offset: .2em; }
.project-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.project-submit { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; }
.project-submit button { max-width: 100%; gap: .6rem; }
.project-submit button:disabled { opacity: .68; cursor: wait; }
.project-status:empty { display: none; }
.project-status { flex: 1 1 15ch; min-width: 0; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.project-status[data-kind="error"] { color: #923027; }
.project-status[data-kind="success"] { color: #325423; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.45rem; }
.footer p, .footer-top { font-size: .92rem; }
.footer-top { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .6rem; }

.legal-page { max-width: 54rem; padding-block: clamp(7rem, 12vw, 11rem) 3rem; }
.legal-page h1 { font-size: clamp(2.7rem, 7vw, 6rem); }
.legal-page section { margin-top: 2rem; scroll-margin-top: 7rem; }
.legal-page h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.legal-page p + p, .legal-page h2 + p { margin-top: .75rem; }
.legal-page section p { line-height: 1.6; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: title-entrance .6s cubic-bezier(.23,1,.32,1) both; }
  .hero h1 span + span { animation-delay: .07s; }
  [data-reveal].will-reveal { opacity: 0; transform: translateY(1.1rem); transition: opacity .52s ease, transform .65s cubic-bezier(.2,.7,.3,1); }
  [data-reveal].will-reveal.in-view { opacity: 1; transform: none; }
  .scene.in-view .scene-art { animation: settle .85s cubic-bezier(.23,1,.32,1) both; }
  .project-dialog[open] { animation: project-form-open .24s cubic-bezier(.23,1,.32,1) both; }
  @keyframes title-entrance { from { opacity: .2; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(.92) rotate(-3deg); } to { transform: none; } }
  @keyframes project-form-open { from { opacity: .74; transform: translateY(.55rem); } to { opacity: 1; transform: none; } }
}

@media (max-width: 55rem) {
  .masthead { width: calc(100% - var(--gutter) * 2); }
  .desktop-nav { gap: 1.2rem; }
  .desktop-nav a { font-size: .92rem; }
}

@media (max-width: 43rem) {
  .masthead { width: calc(100% - var(--gutter) * 2); }
  .nav-bar { min-height: 3.55rem; padding: .35rem .45rem .35rem .6rem; }
  .desktop-nav, .nav-contact { display: none; }
  .hero { min-height: min(32rem, 100svh); padding-top: clamp(6.7rem, 21vw, 8rem); }
  .hero h1 { font-size: clamp(2.5rem, 10.7vw, 4.55rem); }
  .hero-copy p { max-width: 23ch; }
  .hero .hero-art { width: 100%; aspect-ratio: 1.78; margin-bottom: 0; }
  .hero .hero-art .art-scene { width: 128%; max-width: none; }
  .scroll-link { bottom: .75rem; width: 2.75rem; height: 2.75rem; }
  .service, .service-reverse, .faq { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .service-reverse .scene { order: 0; }
  .service-copy { padding: .75rem; }
  .service-copy > p:not(.eyebrow) { margin-top: .8rem; }
  .method-steps { grid-template-columns: 1fr; margin-top: 1.8rem; }
  .method-steps li { min-height: auto; }
  .faq-items { padding-inline: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
