/* ChatterChimpz Labs — design system "Chatter". Tokens per DESIGN.md: this :root block is the only
   place colours, fonts, sizes and spacing are set; components below use the tokens only. */
:root {
  --cream: #FBF4E6;
  --paper: #FFFDF7;
  --ink: #16301F;
  --ink-soft: #3C5646;
  --jungle: #1E5B3B;
  --jungle-deep: #154530;
  --leaf: #6FB26F;
  --mint: #DCEFD6;
  --coral: #FF7A5C;
  --coral-deep: #F2603F;
  --danger: #B3261E;

  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --fs-hero: clamp(2.6rem, 6vw + 0.5rem, 5.5rem);
  --fs-h2: clamp(1.9rem, 3vw + 0.6rem, 3rem);
  --fs-h3: clamp(1.35rem, 1.2vw + 0.9rem, 1.75rem);
  --fs-body: clamp(1.125rem, 0.25vw + 1.06rem, 1.25rem);
  --fs-lede: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-small: 1rem;
  --fs-btn: 1.125rem;
  --fs-btn-xl: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-cta: clamp(2.2rem, 4vw + .6rem, 3.5rem);
  --fs-page-hero: clamp(2.4rem, 5vw + .5rem, 4.6rem);
  --tilt: 1.2deg;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --r-bubble: 28px;
  --r-pill: 999px;
  --r-band: 48px;
  --r-tail: 10px;
  --band-inset: clamp(8px, 2vw, 32px);
  --shadow-bubble: 0 6px 0 rgb(30 91 59 / 0.15);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--paper); padding: var(--s3) var(--s4); z-index: 10; border-radius: var(--r-pill); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* dark grounds: cream focus ring (ink on jungle is under 3:1) */
.band-jungle :focus-visible, .site-foot :focus-visible { outline-color: var(--cream); }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 3; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--jungle); }
.brand svg { width: 38px; height: 32px; flex: none; }
.brand small { font-weight: 500; color: var(--ink-soft); }
.menu { display: flex; white-space: nowrap; gap: clamp(var(--s4), 3vw, var(--s6)); list-style: none; margin: 0; padding: 0; font-weight: 700; }
.menu a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s1); }
.menu a[aria-current="page"] { text-decoration: underline dotted 3px; text-underline-offset: 7px; text-decoration-color: var(--coral); }
.menu a:hover { color: var(--jungle); }

/* ---------- Bubbles (signature) ---------- */
.say {
  position: relative;
  display: inline-block;
  background: var(--paper);
  border-radius: var(--r-bubble);
  padding: 0.38em 0.6em 0.42em;
  box-shadow: var(--shadow-bubble);
}
.say::after {
  content: "";
  position: absolute;
  left: 0.9em; bottom: -14px;
  width: 30px; height: 22px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.say--mint { background: var(--mint); }
/* the visitor's reply: paper bubble, tail bottom-right (coral stays for the action itself) */
.say--you { background: var(--paper); color: var(--ink); }
.say--you::after { left: auto; right: 0.9em; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.say--ondark { background: var(--paper); color: var(--ink); }

.typing { display: inline-flex; gap: 7px; align-items: center; background: var(--paper); border-radius: var(--r-pill); padding: 16px 20px; box-shadow: var(--shadow-bubble); }
.typing i { width: 10px; height: 10px; border-radius: 50%; background: var(--jungle); animation: dot 0.9s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }

/* section headline pop (small transition) */
html.ready .pop { transform: scale(.92); opacity: 0; transform-origin: 10% 100%; transition: transform 320ms var(--pop), opacity 200ms ease-out; }
html.ready .pop.in { transform: none; opacity: 1; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s6);
  border-radius: var(--r-pill); border: 0;
  background: var(--coral); color: var(--ink);
  font: 700 var(--fs-btn)/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--coral-deep);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--coral-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-deep); }
.btn svg { width: 20px; height: 20px; }
/* XL: the closing action, the strongest thing in its section */
.btn--xl { min-height: 68px; padding: 0 var(--s7); font-size: var(--fs-btn-xl); box-shadow: 0 7px 0 var(--coral-deep), 0 18px 32px -12px rgb(242 96 63 / .55); }
.btn--xl:hover { box-shadow: 0 9px 0 var(--coral-deep), 0 22px 36px -12px rgb(242 96 63 / .6); }
.btn--xl svg { width: 26px; height: 26px; }
/* waiting for its page: full look, no target, a note says when it opens (a page job adds the href) */
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { transform: none; }
.soon { font-size: var(--fs-small); color: var(--ink-soft); font-weight: 600; }
.ask { display: inline-flex; gap: var(--s2); align-items: center; font-weight: 700; color: var(--jungle); text-decoration: underline dotted 2px; text-underline-offset: 5px; }
.ask:hover { text-decoration-style: solid; }
.ask[aria-disabled="true"] { cursor: not-allowed; color: var(--ink-soft); text-decoration: none; }
.ask[aria-disabled="true"]:hover { text-decoration: none; }
.ask .soon { font-weight: 600; }
.ondark .ask { color: var(--paper); }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(var(--s6), 6vw, var(--s8)) clamp(var(--s8), 9vw, var(--s9)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: center; min-height: min(68vh, 640px); }
.hero-copy { position: relative; z-index: 2; }
.hero-thread { display: grid; gap: var(--s5); justify-items: start; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; color: var(--ink); }
.hero h1.say { padding: 0.28em 0.5em 0.34em; border-radius: 40px; }
.hero h1.say::after { bottom: -20px; width: 40px; height: 28px; }
.hero .lede { max-width: 34ch; font-size: var(--fs-lede); color: var(--ink-soft); margin-top: var(--s4); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
.family { font-size: var(--fs-small); font-weight: 700; color: var(--jungle); display: inline-flex; gap: var(--s2); align-items: center; }
.family::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.hero .typing { position: absolute; left: 0; top: 0; }
html.js .hero-thread > * { opacity: 0; }
html.js .hero-thread > h1 { transform: scale(.85); transform-origin: 8% 100%; }
html.js .hero.talk .hero-thread > * { opacity: 1; transform: none; transition: opacity 260ms ease-out, transform 420ms var(--pop); }
html.js .hero.talk .hero-thread > :nth-child(2) { transition-delay: 220ms; }
html.js .hero.talk .hero-thread > :nth-child(3) { transition-delay: 420ms; }
.hero .typing { transition: opacity 180ms ease-out, transform 180ms ease-out; }
html:not(.js) .hero .typing, .hero.talk .typing { opacity: 0; transform: scale(.8); pointer-events: none; visibility: hidden; transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s 180ms; }
.hero.talk .typing i, html:not(.js) .typing i { animation: none; }
/* safety net: if the script never marks the hero as talking, show the words anyway */
html.js .hero:not(.talk) .hero-thread > * { animation: show-anyway 1ms 2.6s forwards; }
@keyframes show-anyway { to { opacity: 1; transform: none; } }

.field { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; }
.field svg { width: 100%; height: 100%; overflow: visible; }
.bob { animation: bob var(--d, 2s) ease-in-out var(--delay, 0s) 2 both; transform-box: fill-box; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.blink circle { animation: blink 1.2s ease-in-out 4; }
.blink circle:nth-child(2) { animation-delay: .2s; }
.blink circle:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }

/* ---------- Section shells ---------- */
.band-jungle { background: var(--jungle); color: var(--paper); }
.band-mint { background: var(--mint); }
.sec-head { display: grid; gap: var(--s5); justify-items: start; margin-bottom: clamp(var(--s6), 5vw, var(--s8)); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { max-width: 46ch; color: inherit; margin-top: var(--s2); font-size: var(--fs-lede); }
.ondark .sec-head p { font-weight: 600; color: var(--paper); }

/* home #2 areas: staggered thread */
.areas { padding-block: clamp(var(--s8), 9vw, var(--s9)); position: relative; overflow: hidden; }
.thread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); list-style: none; margin: 0; padding: 0; }
/* message bubbles: three variants so the thread reads as a real chat, not three equal boxes */
.msg { display: grid; grid-template-columns: 96px 1fr; gap: var(--s5); align-items: center; border-radius: var(--r-bubble); padding: var(--s5) var(--s6) var(--s5) var(--s5); position: relative; box-shadow: 0 6px 0 rgb(0 0 0 / .14); }
.msg::after { content: ""; position: absolute; bottom: -14px; left: 32px; width: 28px; height: 20px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.msg h3 { font-size: var(--fs-h3); }
.msg p { margin-top: var(--s2); font-size: var(--fs-body); font-weight: 600; }
.glyph { width: 96px; height: 96px; background: var(--paper); border-radius: 24px; padding: 10px; }
/* variant 1 — paper: a wide bubble, tilted left, glyph on mint */
.msg--paper { background: var(--paper); color: var(--ink); border-radius: 36px 36px 36px 10px; transform: rotate(calc(-1 * var(--tilt))); }
.msg--paper .glyph { background: var(--mint); }
.msg--paper p { color: var(--ink-soft); }
/* variant 2 — mint: rounder, glyph on the right, tail further in, tilted right */
.msg--mint { background: var(--mint); color: var(--ink); grid-template-columns: 1fr 96px; border-radius: 48px; transform: rotate(var(--tilt)); }
.msg--mint .glyph { order: 2; background: var(--paper); border-radius: 50%; }
.msg--mint::after { left: 64px; }
.msg--mint p { color: var(--ink-soft); }
/* variant 3 — deep: a dark bubble with a dotted leaf edge, glyph tilted like a sticker */
.msg--deep { background: var(--jungle-deep); color: var(--paper); border: 3px dotted var(--leaf); border-radius: 28px 28px 28px 6px; }
.msg--deep::after { bottom: -12px; left: 28px; }
.msg--deep .glyph { background: var(--cream); transform: rotate(-6deg); }
.msg--deep p { color: var(--paper); }
.msg:nth-child(1) { grid-column: 1 / span 7; }
.msg:nth-child(2) { grid-column: 3 / span 6; margin-top: var(--s4); }
.msg:nth-child(3) { grid-column: 2 / span 8; margin-top: var(--s4); }
.areas .more { margin-top: var(--s7); }
.areas-deco { position: absolute; right: -60px; top: 40px; width: 260px; opacity: .14; pointer-events: none; }

/* glyph one-shot motion */
.g-line { transform-box: fill-box; transform-origin: left center; }
html.ready .glyph-host .g-line { transform: scaleX(0); }
html.ready .glyph-host.in .g-line { transform: scaleX(1); transition: transform 380ms var(--ease-out); }
html.ready .glyph-host.in .g-line:nth-of-type(2) { transition-delay: 200ms; }
html.ready .glyph-host.in .g-line:nth-of-type(3) { transition-delay: 400ms; }
html.ready .glyph-host.in .g-line:nth-of-type(4) { transition-delay: 600ms; }
.g-scribble, .g-tidy { transition: opacity 400ms ease-out 500ms; }
html.ready .glyph-host .g-tidy { opacity: 0; }
html.ready .glyph-host.in .g-tidy { opacity: 1; }
html.ready .glyph-host.in .g-scribble { opacity: 0; }
.g-gear { transform-box: fill-box; transform-origin: center; }
html.ready .glyph-host.in .g-gear { animation: turn 1.2s var(--ease-out) 1; }
html.ready .glyph-host.in .g-gear--b { animation-direction: reverse; }
@keyframes turn { to { transform: rotate(180deg); } }
.g-tick { stroke-dasharray: 20; stroke-dashoffset: 0; }
html.ready .glyph-host .g-tick { stroke-dashoffset: 20; }
html.ready .glyph-host.in .g-tick { stroke-dashoffset: 0; transition: stroke-dashoffset 300ms ease-out 400ms; }
html.ready .glyph-host.in .g-tick + .g-tick { transition-delay: 550ms; }

/* home #3 steps: hopping dotted line */
.steps { padding-block: clamp(var(--s8), 9vw, var(--s9)); }
.hops { position: relative; }
.hops-line { position: absolute; inset: 0 0 auto; height: 120px; width: 100%; pointer-events: none; }
.hops-line path { stroke-dasharray: 2 14; }
.hop-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); list-style: none; margin: 0; padding: 0; position: relative; }
.hop { padding-top: 0; }
.hop:nth-child(2) { margin-top: var(--s8); }
.hop:nth-child(3) { margin-top: var(--s4); }
.stop { width: 64px; height: 64px; border-radius: 50% 50% 50% 8px; display: grid; place-items: center; background: var(--jungle); color: var(--paper); font: 700 1.6rem/1 var(--font-display); margin-bottom: var(--s4); }
.hop:nth-child(3) .stop { background: var(--coral); color: var(--ink); }
.hop h3 { font-size: var(--fs-h3); }
.hop p { color: var(--ink-soft); margin-top: var(--s2); max-width: 28ch; font-size: var(--fs-body); }
html.ready .draw { clip-path: inset(0 100% 0 0); }
html.ready .draw.draw--v { clip-path: inset(0 0 100% 0); }
html.ready .draw.in { clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { html.ready .draw, html.ready .draw.draw--v { clip-path: none; } }

/* closing CTA: reply bubble */
.reply { padding-block: clamp(var(--s8), 9vw, var(--s9)); }
.reply .wrap { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s5); text-align: right; }
.reply h2 { font-size: var(--fs-cta); }
.reply .them { align-self: flex-start; text-align: left; font-size: var(--fs-lede); font-weight: 600; }
.reply .them.say { font-family: var(--font-body); background: var(--jungle); color: var(--paper); box-shadow: none; }
.reply .btn--xl { margin-top: var(--s5); }

/* ---------- Footer ---------- */
.site-foot { background: var(--jungle); color: var(--paper); padding-block: var(--s7); font-size: var(--fs-small); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s5); }
.site-foot .brand { color: var(--paper); }
.site-foot .brand small { color: var(--mint); }
.site-foot ul { display: flex; flex-wrap: wrap; column-gap: var(--s5); row-gap: 0; list-style: none; padding: 0; margin: 0; font-weight: 700; }
.site-foot a { text-decoration: none; }
.site-foot ul a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s1); }
.site-foot a:hover { text-decoration: underline; }

/* ---------- What we do ---------- */
.page-hero { padding-block: clamp(var(--s6), 5vw, var(--s8)) clamp(var(--s7), 7vw, var(--s9)); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s6); align-items: center; }
.page-hero h1 { font-size: var(--fs-page-hero); font-weight: 700; }
.page-hero .lede { max-width: 36ch; font-size: var(--fs-lede); color: var(--ink-soft); margin-top: var(--s6); }
.page-hero .field { max-width: 360px; justify-self: end; }

.chapters { padding-bottom: clamp(var(--s8), 8vw, var(--s9)); }
.chapter { padding-block: clamp(var(--s7), 6vw, var(--s8)); }
.chapter .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--s6), 6vw, var(--s9)); align-items: center; }
.chapter--flip .art { order: 2; }
.chapter--mint { background: var(--mint); border-radius: var(--r-band); margin-inline: var(--band-inset); }
/* area panel: the drawing is sized from the panel's own box (both sides), so it stays inside at every width */
.art { background: var(--paper); border-radius: 40px 40px 40px 10px; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; display: grid; place-items: center; box-shadow: var(--shadow-bubble); container-type: size; overflow: hidden; }
.chapter--mint .art { background: var(--cream); }
.chapter--flip .art { border-radius: 40px 40px 10px 40px; }
.art svg { width: 72%; height: auto; }
@supports (width: 1cqmin) { .art svg { width: 78cqmin; height: 78cqmin; } }
.art .glyph { background: none; padding: 0; border-radius: 0; }
.chapter h2 { font-size: var(--fs-h2); }
.chapter .txt { display: grid; gap: var(--s5); justify-items: start; }
.chapter .label { font: 700 var(--fs-small)/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--jungle); }
.chapter p { max-width: 48ch; }
.gets { border-left: 4px dotted var(--coral-deep); padding: var(--s1) 0 var(--s1) var(--s4); }
.gets strong { display: block; font-size: var(--fs-small); color: var(--jungle); letter-spacing: .02em; }

.photo-steps { padding-block: clamp(var(--s8), 9vw, var(--s9)); }
.photo-steps .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--s6), 6vw, var(--s9)); align-items: center; }
.photo-bubble { position: relative; border-radius: 48px 48px 48px 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--jungle-deep); }
.photo-bubble img { width: 100%; height: 100%; object-fit: cover; }
.photo-bubble .field { position: absolute; inset: 8%; width: auto; }
.vsteps { list-style: none; margin: 0; padding: 0 0 0 var(--s2); position: relative; display: grid; gap: var(--s6); }
.vsteps-line { position: absolute; left: 31px; top: 20px; bottom: 20px; width: 4px; height: calc(100% - 40px); }
.vsteps li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s5); align-items: start; position: relative; }
.vsteps .stop { margin: 0; background: var(--paper); color: var(--jungle); }
.vsteps li:last-child .stop { background: var(--coral); color: var(--ink); }
.vsteps h3 { font-size: var(--fs-h3); color: var(--paper); padding-top: var(--s3); }
.vsteps p { color: var(--paper); margin-top: var(--s2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .page-hero .wrap, .chapter .wrap, .photo-steps .wrap { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; }
  .hero .field { display: none; }
  .hero .field-band { display: block; }
  .page-hero .field { display: none; }
  .chapter--flip .art { order: 0; }
  .art { aspect-ratio: 16 / 10; }
  .thread-scroll { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; border-radius: 8px; }
  .thread { display: flex; align-items: flex-start; scroll-snap-type: x mandatory; gap: var(--s4); padding-block: var(--s3) var(--s6); padding-inline: var(--gutter); width: max-content; }
  .msg { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; grid-template-columns: 1fr; margin: 0 !important; }
  .msg--mint { grid-template-columns: 1fr; margin-top: var(--s5) !important; }
  .msg--mint .glyph { order: 0; }
  .msg .glyph { width: 72px; height: 72px; }
  .hop-list { grid-template-columns: 1fr; gap: var(--s5); padding-left: var(--s2); }
  .hop { display: grid; grid-template-columns: 64px 1fr; gap: var(--s4); margin: 0 !important; }
  .hop .stop { margin: 0; }
  .hops-line { display: none; }
  .photo-bubble { aspect-ratio: 4 / 3; }
}
/* tablet: narrower bubbles so the third one visibly peeks in and the row reads as swipeable */
@media (min-width: 601px) and (max-width: 900px) {
  .msg { flex-basis: calc((100vw - 2 * var(--gutter)) / 2.3); }
}
@media (max-width: 480px) {
  .menu { gap: var(--s4); font-size: 0.95rem; }
  .brand { font-size: 1.1rem; gap: var(--s2); }
  .brand svg { width: 32px; height: 27px; }
  .site-head .wrap { gap: var(--s3); flex-wrap: wrap; }
  .hero h1.say { border-radius: 28px; }
  .reply .wrap { align-items: flex-start; text-align: left; }
  .btn--xl { width: 100%; justify-content: center; padding: 0 var(--s5); font-size: var(--fs-btn); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.ready .pop, html.js .hero-thread > *, html.js .hero-thread > h1 { opacity: 1; transform: none; }
  .hero .typing { display: none; }
  html.ready .glyph-host .g-line { transform: none; }
  html.ready .glyph-host .g-tidy { opacity: 1; }
  html.ready .glyph-host .g-scribble { opacity: 0; }
  html.ready .glyph-host .g-tick { stroke-dashoffset: 0; }
  .btn:hover { transform: none; }
}

/* photo slot stand-in (coded bubble field until the studio photo is placed) */
.photo-bubble--stand-in { background: var(--mint); margin: 0; }
.vsteps-box { position: relative; }
.vsteps-box .vsteps-line { left: 38px; }

/* narrow-screen hero band: a small row of whole bubbles under the words */
.field-band { display: none; position: relative; z-index: 1; width: 100%; max-width: 440px; margin-top: var(--s6); }
.field-band svg { width: 100%; height: auto; overflow: visible; }
.thread-scroll:focus-visible { outline-offset: -3px; }

/* What we do photo slot: a still placeholder until the studio-desk photo is placed */
.photo-still { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; }
.photo-still svg { width: 100%; height: auto; }

/* ---------- Contact components (used by the Contact page job; see DESIGN.md, Components) ---------- */
/* contact-bubble: the form sits inside one big Labs bubble */
.form-bubble { position: relative; background: var(--paper); border-radius: 40px 40px 40px 12px; padding: clamp(var(--s5), 4vw, var(--s7)); box-shadow: var(--shadow-bubble); max-width: 720px; }
.form-bubble::after { content: ""; position: absolute; left: 40px; bottom: -20px; width: 40px; height: 28px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.form { display: grid; gap: var(--s5); }
.f-row { display: grid; gap: var(--s2); }
.f-row label { font-weight: 700; }
.f-row .opt { font-weight: 600; color: var(--ink-soft); }
.f-row input, .f-row select, .f-row textarea { font: inherit; font-size: var(--fs-body); color: var(--ink); background: var(--cream); border: 2px solid var(--jungle); border-radius: 18px; padding: var(--s3) var(--s4); min-height: 52px; width: 100%; }
.f-row textarea { min-height: 160px; resize: vertical; }
.f-row [aria-invalid="true"] { border-color: var(--danger); }
.f-error { color: var(--danger); font-weight: 700; font-size: var(--fs-small); }
.f-note { font-size: var(--fs-small); color: var(--ink-soft); }
.f-note a { color: var(--jungle); font-weight: 700; }
.f-status { border-radius: var(--r-bubble); padding: var(--s4) var(--s5); font-weight: 600; }
.f-status--ok { background: var(--mint); }
.f-status--fail { background: var(--paper); border: 2px solid var(--danger); }

/* Contact page layout around the contact components */
.page-hero--solo { padding-bottom: clamp(var(--s7), 6vw, var(--s8)); }
.enquiry { padding-block: clamp(var(--s8), 8vw, var(--s9)); border-radius: var(--r-band); margin-inline: var(--band-inset); }
.enquiry .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(var(--s6), 6vw, var(--s9)); align-items: start; }
.enquiry .sec-head p { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 34ch; }
.form-bubble { width: 100%; justify-self: end; }
.form-bubble .typing { position: absolute; top: calc(-1 * var(--s5)); right: var(--s7); }
.form-bubble .typing i { animation-iteration-count: 4; }
.f-actions { padding-top: var(--s2); }
.btn[aria-busy="true"] svg { animation: nudge 600ms ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.f-status p + .btn { margin-top: var(--s4); }
.f-status strong { display: block; }
.f-actions { display: grid; gap: var(--s3); justify-items: start; }
.f-how { font-size: var(--fs-body); color: var(--ink); }
.f-how strong { white-space: nowrap; }
.f-hint { font-size: var(--fs-small); color: var(--ink-soft); font-weight: 600; }
.f-closed { background: var(--mint); }
.f-set { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s5); }
/* closed: fields read as switched off (dashed, no fill), the send line is hidden, the button is an outline */
.f-set:disabled .f-row label { opacity: .6; }
.f-set:disabled .f-row input, .f-set:disabled .f-row select, .f-set:disabled .f-row textarea { opacity: .6; background: transparent; border-style: dashed; border-color: var(--ink-soft); cursor: not-allowed; }
.f-set:disabled .f-row ::placeholder { color: transparent; }
.f-set:disabled .f-how { display: none; }
.f-set:disabled .btn { background: transparent; color: var(--ink-soft); border: 2px dashed var(--ink-soft); box-shadow: none; transform: none; cursor: not-allowed; }
.f-set:disabled .btn svg { display: none; }
.f-closed a { color: var(--jungle); font-weight: 700; }
.f-copytext { font: inherit; font-size: var(--fs-small); color: var(--ink); background: var(--cream); border: 2px solid var(--jungle); border-radius: 18px; padding: var(--s3) var(--s4); width: 100%; min-height: 160px; margin-top: var(--s4); }
@media (max-width: 900px) {
  .enquiry .wrap { grid-template-columns: 1fr; }
  .enquiry .sec-head { margin-bottom: var(--s5); }
}
@media (max-width: 480px) {
  .form-bubble { border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) var(--r-tail); padding: var(--s5) var(--s4); }
  .form-bubble .typing { right: var(--s5); }
}
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
/* privacy notice: a plain reading column, the two languages one after the other */
.notice { padding-block: clamp(var(--s8), 8vw, var(--s9)); }
.notice .wrap { max-width: 68ch; }
.notice h2 { font-size: var(--fs-h2); margin-bottom: var(--s5); }
.notice h3 { font-size: var(--fs-h3); margin-top: var(--s6); }
.notice p, .notice li { margin-top: var(--s3); }
.notice .notice-h { font-size: var(--fs-h2); margin-bottom: var(--s5); }
.notice .wrap > p:first-of-type { font-size: var(--fs-lede); color: var(--ink-soft); }
.notice [lang="ms"] { border-top: 3px dotted var(--leaf); margin-top: var(--s7); padding-top: var(--s6); }
/* the notice's parts sit in two columns on wide screens, so it reads as a short sheet, not a stack */
.notice .wrap { max-width: var(--max); }
.notice .wrap > p:first-of-type { max-width: 46ch; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(var(--s6), 5vw, var(--s8)); }
.notice-part p { max-width: 60ch; }
@media (max-width: 900px) {
  .notice .wrap { max-width: none; }
  .notice-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.lost { padding-block: clamp(var(--s8), 10vw, var(--s9)); }
.lost .wrap { display: grid; gap: var(--s6); justify-items: start; }
.lost h1 { font-size: var(--fs-page-hero); }
.lost .typing i { animation-iteration-count: 4; }
.lost .lede { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 40ch; }
.lost ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; }
