/* ==========================================================================
   Yuzu Talent Agency · Concept 10 "Good Trouble"
   Goodform's palette and soft serif, pasted into an Offscript-style zine:
   torn paper, masking tape, halftone, ransom-note letters, peelable stickers
   and a pin board you can rearrange.
   ========================================================================== */

:root {
  /* palette (Goodform base, Offscript cobalt as a small accent) */
  --forest: #123D32;
  --forest-deep: #0C2C24;
  --forest-soft: #2E6B58;
  --butter: #F4E8B2;
  --butter-hi: #FAF2CF;
  --bone: #F7F5EF;
  --paper: #FFFDF7;
  --tomato: #F15A45;
  --tomato-ink: #B8321F;          /* 5.4:1 on bone, for small text */
  --cobalt: #315BFF;              /* bone text on cobalt: 4.7:1 */
  --sky: #E1E7FF;
  --sage: #DCE8DF;
  --blush: #FCE0D9;

  --ink: var(--forest);
  --ink-muted: #3F5A51;           /* 7:1 on bone */
  --on-forest: #F7F5EF;
  --on-forest-muted: #C9D3C8;
  --focus: var(--cobalt);

  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;

  /* layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --section-y: clamp(80px, 10vw, 150px);
  --nav-h: 76px;
  --hand-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);

  /* paper shadow */
  --drop: drop-shadow(5px 7px 0 rgba(18, 61, 50, .18));
  --drop-lg: drop-shadow(10px 14px 0 rgba(18, 61, 50, .2));

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.24 0 0 0 0 0.2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background-image: var(--grain);
  opacity: .1;
}
img, svg, canvas { max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 300;
  background: var(--forest); color: var(--bone); padding: .7rem 1.1rem;
  font-weight: 700; text-decoration: none; border-radius: var(--hand-radius);
}
.skip:focus { top: 12px; }

/* ---------- torn edges between sections (path drawn in JS) ---------- */
.rip {
  position: absolute; left: 0; right: 0; height: 22px;
  z-index: 3; pointer-events: none; color: var(--bone);
}
.rip svg { display: block; width: 100%; height: 100%; }
.rip--top { top: -21px; }
.rip--bottom, .rip--under { bottom: -21px; }

/* ---------- masking tape ---------- */
.tape {
  --tape-bg: rgba(244, 232, 178, .92);
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .18) 0 3px, transparent 3px 9px),
    var(--tape-bg);
  clip-path: polygon(0 8%, 3% 0, 6% 10%, 9% 0, 91% 0, 94% 10%, 97% 0, 100% 8%, 100% 92%, 97% 100%, 94% 90%, 91% 100%, 9% 100%, 6% 90%, 3% 100%, 0 92%);
}
.tape--label, .tape--kicker {
  display: inline-block;
  padding: .5rem 1.1rem;
  font: 700 .74rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
  transform: rotate(-2deg);
}
.tape--kicker { margin-bottom: 1.1rem; }
.tape--butter { --tape-bg: var(--butter); }
.tape--strip {
  position: absolute; width: 96px; height: 28px; z-index: 4;
  --tape-bg: rgba(247, 245, 239, .78);
  box-shadow: 0 1px 0 rgba(18, 61, 50, .08);
}
.tape--tomato { --tape-bg: rgba(241, 90, 69, .78); }
.tape--cobalt { --tape-bg: rgba(49, 91, 255, .7); }

/* ---------- ransom-note letters (built in JS) ---------- */
.ransom { display: inline; }
.rw { display: inline-block; white-space: nowrap; }
.rl {
  display: inline-block;
  padding: .04em .1em .02em;
  margin: 0 .025em;
  line-height: 1;
  transform: translateY(var(--ry, 0)) rotate(var(--rr, 0deg));
  transition: transform .3s var(--bounce);
  font-family: var(--sans);
  font-weight: 800;
}
.rl.is-pop { animation: pop .35s var(--bounce); }
@keyframes pop { 40% { transform: translateY(-.08em) rotate(calc(var(--rr) * -1.6)) scale(1.12); } }
.r-forest { background: var(--forest); color: var(--bone); }
.r-butter { background: var(--butter); color: var(--forest); font-family: var(--serif); font-style: italic; font-weight: 800; }
.r-tomato { background: var(--tomato); color: var(--forest-deep); font-weight: 900; }
.r-cobalt { background: var(--cobalt); color: var(--bone); font-family: var(--mono); font-weight: 700; font-size: .86em; }
.r-paper { background: var(--paper); color: var(--forest); font-family: var(--serif); font-weight: 900; box-shadow: .04em .05em 0 rgba(18, 61, 50, .3); }
.r-outline { color: transparent; -webkit-text-stroke: .035em var(--forest); font-family: var(--serif); font-weight: 900; }
.r-soft { font-family: var(--serif); font-style: italic; font-weight: 600; font-variation-settings: "SOFT" 100; }
.r-hand { font-family: var(--hand); font-weight: 700; color: var(--tomato-ink); font-size: 1.18em; }
.r-dots {
  background: var(--butter-hi) radial-gradient(circle, rgba(241, 90, 69, .55) 1.2px, transparent 1.7px) 0 0 / 6px 6px;
  color: var(--forest); font-family: var(--serif); font-weight: 900;
}

/* on forest backgrounds */
.how .r-outline { -webkit-text-stroke-color: var(--butter); }
.how .r-soft { color: var(--bone); }
.how .r-hand { color: var(--butter); }

/* ---------- headings ---------- */
.head { max-width: 760px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "opsz" 120;
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.h2 .ransom { font-size: .9em; }
.head__sub { margin-top: 1rem; font-size: 1.05rem; color: var(--ink-muted); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border: 2.5px solid var(--forest);
  border-radius: var(--hand-radius);
  font: 700 1rem/1.1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--forest);
  transition: transform .2s var(--bounce), box-shadow .2s var(--ease), background-color .2s;
  background: var(--bone);
  color: var(--forest);
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 6px 6px 0 var(--forest); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--forest); }
.btn--forest { background: var(--forest); color: var(--bone); box-shadow: 4px 4px 0 var(--tomato); }
.btn--forest:hover { box-shadow: 6px 6px 0 var(--tomato); }
.btn--paper { background: var(--paper); }
.btn--sticker { background: var(--cobalt); color: var(--bone); border-color: var(--forest); }
.btn--small { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--big { padding: 1.05rem 1.9rem; font-size: 1.15rem; }
.wave { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.btn:hover .wave { animation: wiggle .5s ease-in-out; }

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
}

/* ---------- logomark ---------- */
.mark { display: block; flex: none; }
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.m-disk { fill: var(--butter); }
.m-peel { fill: none; stroke: var(--forest); stroke-width: 5; stroke-linejoin: round; }
.m-piece { fill: var(--tomato); }
.m-core { fill: var(--forest); }

/* ================= NAV ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
}
.nav__inner {
  display: flex; align-items: center; gap: 1.1rem;
  min-height: var(--nav-h);
  position: relative;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.mark--nav { width: 48px; transition: transform .3s var(--bounce); }
.brand:hover .mark--nav { transform: rotate(-12deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font: 900 1.6rem/0.9 var(--serif);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.02em;
}
.brand__sub { font: 700 .66rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; }
.nav__desc {
  margin-right: auto;
  padding-left: 1rem;
  border-left: 2px dashed rgba(18, 61, 50, .35);
  font: 400 .72rem/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__links { list-style: none; padding: 0; display: flex; gap: 1.5rem; }
.nav__links a {
  font-weight: 700; text-decoration: none; font-size: .98rem;
  text-underline-offset: 7px;
}
.nav__links a:hover { text-decoration: underline wavy var(--tomato) 2px; }
.nav__toggle {
  display: none; align-items: center; gap: .55rem;
  margin-left: auto;
  background: var(--paper); border: 2.5px solid var(--forest);
  border-radius: var(--hand-radius);
  padding: .5rem .9rem; font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 var(--forest);
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 18px; height: 2.5px; background: var(--forest); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ================= HERO ================= */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 130px); overflow-x: clip; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1em;
  margin: 1.4rem 0 1.6rem;
  font-weight: 400;
}
.ransom--xl { font-size: clamp(2.9rem, 1.3rem + 6.2vw, 6.4rem); line-height: 1.12; }
.ransom--xl .rw { margin-right: .18em; }
.hero__soft {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(2.7rem, 1.2rem + 5.6vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  padding-bottom: .12em;
}
.hero__dot { color: var(--tomato); }
.scrawl {
  position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .3em;
  fill: none; stroke: var(--tomato); stroke-width: 5; stroke-linecap: round;
  overflow: visible;
}
.scrawl path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .5s var(--ease) forwards; }
.scrawl path + path { stroke-width: 3; animation-delay: .95s; }
.no-js .scrawl path { stroke-dashoffset: 0; animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); max-width: 34ch; line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- collage ---------- */
.collage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.02;
  justify-self: center;
  container-type: inline-size;
}
.collage__sheet-wrap {
  position: absolute; inset: 7% 5% 10% 9%;
  transform: rotate(-3deg);
  filter: var(--drop-lg);
}
.collage__sheet { width: 100%; height: 100%; background: var(--butter); }
.halftone { display: block; width: 100%; height: 100%; }
.tape--tl { top: -10px; left: 6%; transform: rotate(-12deg); }
.tape--br { bottom: -8px; right: 4%; transform: rotate(-8deg); --tape-bg: rgba(241, 90, 69, .72); }

.stamp {
  position: absolute; top: -3%; left: -3%; width: 31%;
  overflow: visible; z-index: 2;
  animation: spin 40s linear infinite;
  mix-blend-mode: multiply;
}
.stamp__rings path { fill: none; stroke: var(--tomato-ink); stroke-width: 1.6; opacity: .75; }
.stamp__text { font: 700 15px var(--mono); letter-spacing: 1px; fill: var(--tomato-ink); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

.note-wrap {
  position: absolute; left: -1%; bottom: 1%; width: 49%;
  transform: rotate(5deg); filter: var(--drop); z-index: 3;
}
.note {
  background: var(--paper);
  padding: 11% 9%;
  font: 700 max(1.05rem, 5.2cqi)/1.08 var(--hand);
  color: var(--forest);
}
.tape--note { top: -12px; left: 32%; width: 34%; transform: rotate(-4deg); }

.doodle { position: absolute; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.doodle--arrow { left: 42%; bottom: 19%; width: 18%; stroke: var(--forest); stroke-width: 3.5; z-index: 3; }
.doodle--arrow path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s 1.2s var(--ease) forwards; }
.doodle--star { top: 1%; left: 44%; width: 9%; fill: var(--butter); stroke: var(--forest); stroke-width: 3; z-index: 3; animation: twinkle 3.4s ease-in-out infinite; }
.doodle--squiggle { right: 8%; bottom: 1%; width: 24%; stroke: var(--cobalt); stroke-width: 4; z-index: 1; }
.no-js .doodle--arrow path { stroke-dashoffset: 0; animation: none; }
@keyframes twinkle { 50% { transform: rotate(18deg) scale(1.15); } }

.collage__hint {
  position: absolute; top: -2%; right: 27%;
  font: 700 max(1rem, 3.9cqi)/1 var(--hand);
  color: var(--tomato-ink);
  transform: rotate(5deg);
  z-index: 4;
}
.collage__found {
  position: absolute; left: 0; right: 0; bottom: -9%;
  text-align: center;
  font: 700 max(1.15rem, 4.4cqi)/1.1 var(--hand);
  color: var(--tomato-ink);
}

/* ---------- peelable stickers ---------- */
.peel {
  position: absolute; z-index: 5;
  padding: 0; margin: 0; border: 0; background: none;
  cursor: pointer;
  aspect-ratio: 1;
  -webkit-tap-highlight-color: transparent;
}
.peel:focus-visible { outline-offset: 6px; border-radius: 50%; }
.peel__face, .peel__under {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  pointer-events: none;
}
.peel__face {
  transform-origin: 20% 15%;
  filter: drop-shadow(3px 4px 0 rgba(18, 61, 50, .3));
  transition: transform .3s var(--bounce), filter .3s;
}
.peel__face > span { position: relative; z-index: 1; }
.peel:hover .peel__face,
.peel:focus-visible .peel__face {
  transform: perspective(420px) rotate3d(1, -1, 0, 22deg) translate(-2%, -3%);
  filter: drop-shadow(7px 9px 0 rgba(18, 61, 50, .22));
}
.peel__under {
  opacity: 0;
  transition: opacity .3s .35s;
  font: 700 max(1rem, 4.4cqi)/1 var(--hand);
  color: var(--forest);
}
.peel.is-peeled .peel__under { opacity: 1; }
.peel.is-peeled .peel__face { animation: peel-off .75s cubic-bezier(.5, 0, .75, .3) forwards; }
.peel.is-stuck .peel__face { animation: slap .45s var(--bounce); }
@keyframes peel-off {
  0% { transform: none; opacity: 1; }
  35% { transform: perspective(420px) rotate3d(1, -1, 0, 62deg) translate(-4%, -10%); opacity: 1; }
  100% { transform: perspective(420px) rotate3d(1, -1, 0, 82deg) translate(30%, 140%) rotate(48deg); opacity: 0; }
}
@keyframes slap {
  0% { transform: scale(1.35) rotate(-10deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* circle: cobalt, rotating the gentle wiggle */
.peel--circle { top: 5%; right: 0; width: 25%; transform: rotate(10deg); }
.peel--circle .peel__face {
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: inset 0 0 0 .35rem var(--cobalt), inset 0 0 0 .5rem var(--bone);
  color: var(--bone);
  font: 800 max(1rem, 4.4cqi)/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.peel--circle .peel__under { border-radius: 50%; border: 2px dashed rgba(18, 61, 50, .4); background: rgba(255, 255, 255, .5); }

/* starburst: tomato */
.peel--burst { bottom: 22%; right: -2%; width: 23%; transform: rotate(-8deg); }
.peel--burst .peel__face,
.peel--burst .peel__under {
  clip-path: polygon(50% 0%, 58.9% 11%, 71.7% 5%, 74.9% 18.7%, 89.1% 18.8%, 86% 32.6%, 98.7% 38.9%, 90% 50%, 98.7% 61.1%, 86% 67.4%, 89.1% 81.2%, 74.9% 81.3%, 71.7% 95%, 58.9% 89%, 50% 100%, 41.1% 89%, 28.3% 95%, 25.1% 81.3%, 10.9% 81.2%, 14% 67.4%, 1.3% 61.1%, 10% 50%, 1.3% 38.9%, 14% 32.6%, 10.9% 18.8%, 25.1% 18.7%, 28.3% 5%, 41.1% 11%);
}
.peel--burst .peel__face {
  background: var(--tomato);
  color: var(--forest-deep);
  font: italic 900 max(1.9rem, 9cqi)/1 var(--serif);
  font-variation-settings: "SOFT" 100;
  filter: none;
}
.peel--burst .peel__under { background: rgba(18, 61, 50, .1); font-size: max(.95rem, 3.7cqi); }

/* label: butter rectangle */
.peel--label { top: 45%; left: -3%; width: 31%; aspect-ratio: 1.55; transform: rotate(-9deg); }
.peel--label .peel__face {
  background: var(--butter-hi);
  border: 2.5px solid var(--forest);
  border-radius: 10px;
  box-shadow: inset 0 0 0 4px var(--butter-hi), inset 0 0 0 5.5px rgba(18, 61, 50, .5);
  color: var(--forest);
  padding: 8%;
  font: 700 clamp(.7rem, 3.3cqi, 1rem)/1.2 var(--mono);
  text-transform: uppercase;
}
.peel--label .peel__under { border: 2px dashed rgba(18, 61, 50, .4); border-radius: 10px; background: rgba(255, 255, 255, .5); }

/* ================= WHAT WE DO ================= */
.what { position: relative; padding: var(--section-y) 0; overflow-x: clip; }
.rings-bg {
  position: absolute; right: -14%; top: 2%; width: min(760px, 70vw);
  pointer-events: none; opacity: .55;
}
.rings-bg path { fill: none; stroke: var(--forest); stroke-width: 1.2; opacity: .2; }
.rings-bg path:nth-child(3n) { stroke: var(--tomato); opacity: .35; }

.offers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.offer { position: relative; filter: var(--drop-lg); }
.offer--creator { rotate: -1.2deg; }
.offer--brand { rotate: 1.4deg; margin-top: clamp(0px, 6vw, 4.5rem); }
.offer__paper {
  position: relative;
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 3.5vw, 2.8rem) clamp(2.2rem, 4vw, 3.2rem);
}
.offer--brand .offer__paper { background: var(--butter); }
.offer__paper::before {
  content: ""; position: absolute; right: 0; top: 0; width: 55%; height: 45%;
  background: radial-gradient(circle, rgba(241, 90, 69, .5) 1.3px, transparent 1.8px) 0 0 / 8px 8px;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
  pointer-events: none;
}
.offer--brand .offer__paper::before {
  background-image: radial-gradient(circle, rgba(49, 91, 255, .45) 1.3px, transparent 1.8px);
}
.offer__tag {
  display: inline-block;
  background: var(--forest); color: var(--butter);
  font: 700 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .7rem;
  transform: rotate(-3deg);
  margin-bottom: 1.1rem;
}
.offer__title {
  font-family: var(--serif); font-weight: 800;
  font-variation-settings: "SOFT" 100;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);
  line-height: 1; letter-spacing: -.02em;
}
.offer__lede { margin: .9rem 0 1.4rem; font-size: 1.15rem; color: var(--ink-muted); }
.checks { list-style: none; padding: 0; margin-bottom: 2rem; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 2.1rem; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem;
  background: var(--tomato-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13 C6 15 8 18 9 20 C12 13 16 7 22 3' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13 C6 15 8 18 9 20 C12 13 16 7 22 3' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.offer--brand .checks li::before { background: var(--cobalt); }
.tape--a { top: -12px; left: 12%; transform: rotate(-7deg); }
.tape--b { top: -12px; right: 14%; transform: rotate(6deg); }
.offer__doodle {
  position: absolute; right: -14px; top: -26px; width: 66px;
  overflow: visible; fill: var(--butter); stroke: var(--forest); stroke-width: 3; stroke-linejoin: round;
  transition: transform .5s var(--bounce);
}
.offer__doodle--loop { width: 96px; right: auto; left: -20px; top: auto; bottom: -28px; fill: none; stroke: var(--tomato); stroke-width: 4; stroke-linecap: round; }
.offer:hover .offer__doodle { transform: rotate(45deg) scale(1.15); }
.offer:hover .offer__doodle--loop { transform: translateX(10px) rotate(-6deg); }

/* ================= HOW IT WORKS ================= */
.how {
  --focus: var(--butter);
  position: relative;
  background: var(--forest);
  color: var(--on-forest);
  padding: var(--section-y) 0;
}
.how .rip { color: var(--forest); }
.how .wrap { position: relative; }
.head--light .h2 { color: var(--bone); }
.steps {
  list-style: none; padding: 0;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3.2rem);
}
.step { position: relative; filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, .25)); }
.step:nth-child(1) { rotate: -2deg; }
.step:nth-child(2) { rotate: 1.6deg; margin-top: 2.2rem; }
.step:nth-child(3) { rotate: -1deg; margin-top: .8rem; }
.step__paper {
  background: var(--bone); color: var(--forest);
  padding: 2.4rem 1.7rem 2rem;
  transition: transform .3s var(--bounce);
}
.step:hover .step__paper { transform: rotate(-1.5deg) translateY(-4px); }
.step__num {
  display: grid; place-items: center;
  width: 4.4rem; height: 4.4rem; margin-bottom: 1.2rem;
  background: var(--butter);
  border-radius: 48% 52% 44% 56% / 56% 44% 52% 48%;
  font: 900 2.3rem/1 var(--serif);
  font-variation-settings: "SOFT" 100;
  animation: blob 7s ease-in-out infinite alternate;
}
.step:nth-child(2) .step__num { background: var(--tomato); color: var(--forest-deep); animation-delay: -2s; }
.step:nth-child(3) .step__num { background: var(--cobalt); color: var(--bone); animation-delay: -4s; }
@keyframes blob {
  50% { border-radius: 60% 40% 55% 45% / 42% 58% 42% 58%; rotate: 8deg; }
  100% { border-radius: 42% 58% 48% 52% / 50% 50% 60% 40%; rotate: -6deg; }
}
.step h3 { font: 800 1.65rem/1.1 var(--serif); font-variation-settings: "SOFT" 100; margin-bottom: .6rem; }
.step p { color: var(--ink-muted); }
.pin {
  position: absolute; top: -11px; left: 50%; width: 24px; height: 24px; margin-left: -12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #FFB3A6 0 18%, var(--tomato) 40%, #B8321F 100%);
  box-shadow: 2px 4px 0 rgba(0, 0, 0, .25);
  z-index: 3;
}
.pin--cobalt { background: radial-gradient(circle at 35% 32%, #B9C8FF 0 18%, var(--cobalt) 45%, #1D3BB8 100%); }
.pin--butter { background: radial-gradient(circle at 35% 32%, #FFFBE6 0 18%, var(--butter) 45%, #C9B864 100%); }
.how__path {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 64%;
  width: calc(100% - 2 * var(--gutter)); height: 80px;
  fill: none; stroke: var(--butter); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round;
  opacity: .6; z-index: 0;
}

/* ================= NICHES ================= */
.niches {
  position: relative;
  padding: calc(var(--section-y) + 10px) 0 var(--section-y);
  background:
    radial-gradient(circle, rgba(18, 61, 50, .1) 1.3px, transparent 1.8px) 0 0 / 16px 16px,
    var(--butter);
  overflow-x: clip;
}
.niches .head__sub { color: var(--ink-muted); }
.board {
  position: relative; /* offsetParent for the drag bounds in main.js */
  list-style: none; padding: 1rem 0 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.6rem);
}
.tile {
  --dx: 0px; --dy: 0px; --rot: 0deg;
  position: relative;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
  transition: transform .35s var(--bounce), filter .25s;
  filter: var(--drop);
  cursor: grab;
  touch-action: auto;
  -webkit-user-select: none; user-select: none;
  border-radius: 4px;
}
.tile:nth-child(1) { --rot: -2.5deg; }
.tile:nth-child(2) { --rot: 1.8deg; }
.tile:nth-child(3) { --rot: -1deg; }
.tile:nth-child(4) { --rot: 2.4deg; }
.tile:nth-child(5) { --rot: -1.8deg; }
.tile:nth-child(6) { --rot: 2deg; }
.tile:hover { animation: tile-wiggle .5s ease-in-out; }
.tile:focus-visible { outline-offset: 6px; }
.tile.is-dragging {
  cursor: grabbing;
  transition: filter .2s;
  filter: drop-shadow(14px 18px 0 rgba(18, 61, 50, .18));
  animation: none;
}
.tile.is-dragging .tile__paper { transform: scale(1.03) rotate(1deg); }
@keyframes tile-wiggle {
  0%, 100% { rotate: 0deg; }
  30% { rotate: -2deg; }
  65% { rotate: 1.5deg; }
}
.tile__paper {
  background: var(--paper);
  padding: 1.2rem 1.3rem 1.6rem;
  transition: transform .2s var(--ease);
  height: 100%;
}
.tile--butter .tile__paper { background: var(--paper); }
.tile--sky .tile__paper { background: var(--sky); }
.tile--sage .tile__paper { background: var(--sage); }
.tile--bone .tile__paper { background: var(--bone); }
.tile--blush .tile__paper { background: var(--blush); }
.tile__art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: visible; }
.tile__title { margin: .7rem 0 .45rem; line-height: 1; }
.tile__title span {
  display: inline-block;
  background: var(--forest); color: var(--butter);
  font: italic 800 1.55rem/1 var(--serif);
  font-variation-settings: "SOFT" 100;
  padding: .2em .5em .25em;
  transform: rotate(-2deg);
  clip-path: polygon(0 8%, 5% 0, 100% 4%, 97% 92%, 3% 100%);
}
.tile p { font-size: 1.02rem; line-height: 1.45; }
.tile__pin { cursor: grab; touch-action: none; }
.tile__pin::before { content: ""; position: absolute; inset: -14px; }

/* the card's own ring sits outside it on the butter board, so it keeps the
   default cobalt; only the link inside the forest paper switches to butter */
.tile__paper--invite {
  --focus: var(--butter);
  background: var(--forest) !important;
  color: var(--bone);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 100%;
  padding: 2.2rem 1.6rem;
  background-image: radial-gradient(circle, rgba(244, 232, 178, .14) 1.3px, transparent 1.8px) !important;
  background-size: 9px 9px !important;
}
.tile__title--hand { font: 700 2.4rem/1 var(--hand); color: var(--butter); margin-top: 0; }
.tile__paper--invite p { font-size: 1.1rem; margin-bottom: 1rem; }
.link-hand {
  font: 700 1.7rem/1 var(--hand);
  color: var(--butter);
  text-decoration: underline wavy var(--tomato) 2px;
  text-underline-offset: 7px;
}
.link-hand:hover { color: var(--bone); }

/* ================= SAY HI ================= */
.hello { position: relative; padding: var(--section-y) 0 calc(var(--section-y) + 20px); overflow-x: clip; }
.hello__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: start;
}
.hello__head { position: relative; }
.hello__sub { margin-top: 1.1rem; font-size: 1.15rem; max-width: 30ch; color: var(--ink-muted); }
.doodle--hello { position: relative; display: block; width: 150px; margin-top: 2rem; stroke: var(--tomato); stroke-width: 3.5; }

.pad { position: relative; filter: var(--drop-lg); rotate: .8deg; }
.pad__paper {
  --line: 2.25rem;
  background:
    linear-gradient(90deg, transparent 2.4rem, rgba(241, 90, 69, .5) 2.4rem, rgba(241, 90, 69, .5) calc(2.4rem + 2px), transparent calc(2.4rem + 2px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(49, 91, 255, .16) calc(var(--line) - 1px) var(--line)),
    var(--paper);
  padding: 2.8rem clamp(1.2rem, 3vw, 2.4rem) 2.4rem clamp(3.2rem, 5vw, 4rem);
}
.tape--pad { top: -14px; left: 50%; width: 120px; transform: translateX(-50%) rotate(-3deg); }

.form { display: grid; gap: .3rem; }
.form[hidden] { display: none; }
.toggle { border: 0; padding: 0; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.toggle legend {
  font: 700 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 0; margin-bottom: .9rem;
}
.toggle__opt { position: relative; cursor: pointer; }
.toggle__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle__opt span {
  display: inline-block;
  padding: .6rem 1.4rem;
  border: 2.5px solid var(--forest);
  border-radius: var(--hand-radius);
  background: var(--bone);
  font: 800 1.2rem/1 var(--serif);
  font-variation-settings: "SOFT" 100;
  transition: transform .25s var(--bounce), background-color .2s, color .2s, box-shadow .2s;
}
.toggle__opt:hover span { transform: rotate(-2deg) translateY(-2px); }
.toggle__opt input:checked + span { background: var(--forest); color: var(--butter); transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--tomato); }
.toggle__opt--brand input:checked + span { background: var(--cobalt); color: var(--bone); transform: rotate(3deg); box-shadow: 3px 3px 0 var(--forest); }
.toggle__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.field { display: grid; gap: .3rem; margin-top: .6rem; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: 1rem; }
.opt { font-weight: 400; color: var(--ink-muted); font-size: .9rem; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2.5px solid var(--forest);
  padding: .45rem .2rem;
  font-size: 1.1rem;
  border-radius: 0;
  transition: border-color .2s, background-color .2s;
}
.field textarea {
  border: 2.5px solid var(--forest);
  border-radius: 14px 4px 14px 4px;
  background: rgba(255, 255, 255, .6);
  padding: .6rem .7rem;
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}
.field input::placeholder { color: #6E8079; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--cobalt); outline-offset: 2px;
  background-color: rgba(49, 91, 255, .05);
}
.field.has-error input, .field.has-error textarea { border-color: var(--tomato-ink); }
.field-error { color: var(--tomato-ink); font-weight: 700; font-size: .92rem; min-height: 0; }
.field-error:not(:empty) { padding-left: 1.4rem; position: relative; animation: nudge .35s ease-in-out; }
.field-error:not(:empty)::before {
  content: "!"; position: absolute; left: 0; top: .05em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--tomato-ink); color: var(--paper);
  font: 800 .75rem/1.05rem var(--sans); text-align: center;
}
@keyframes nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn--big { justify-self: start; margin-top: 1.3rem; }
.plane {
  width: 1.5rem; height: auto; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round;
  transition: transform .3s var(--bounce);
}
.btn:hover .plane { transform: translate(4px, -4px) rotate(-8deg); }
.form.is-sending .plane { animation: fly 1s var(--ease) forwards; }
.form.is-sending .btn--big { pointer-events: none; opacity: .85; }
@keyframes fly { to { transform: translate(260px, -180px) rotate(-20deg) scale(.6); opacity: 0; } }
.form__status { font-weight: 600; min-height: 1.4em; margin-top: .4rem; }

.sent { text-align: center; padding: 1rem 0 .6rem; position: relative; }
.sent[hidden] { display: none; }
.sent__stamp {
  display: inline-block;
  font: italic 900 clamp(2rem, 1.4rem + 2.4vw, 3rem)/1 var(--serif);
  font-variation-settings: "SOFT" 100;
  text-transform: uppercase;
  color: var(--tomato-ink);
  border: 5px solid var(--tomato-ink);
  border-radius: 12px 4px 14px 6px;
  padding: .25em .55em .3em;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  animation: stamp .55s var(--bounce) both;
}
@keyframes stamp { from { transform: rotate(-20deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.mark--big { width: 120px; margin: 1.6rem auto 1.2rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(4deg); } }
.sent__title { font: 800 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1.1 var(--serif); font-variation-settings: "SOFT" 100; }
.sent__title:focus { outline: none; }
.sent__body { margin: .6rem auto 1.6rem; max-width: 34ch; font-size: 1.1rem; color: var(--ink-muted); }

/* ================= FOOTER ================= */
.foot {
  --focus: var(--butter);
  position: relative;
  background: var(--forest);
  color: var(--on-forest);
  padding: clamp(56px, 8vw, 110px) 0 2rem;
  overflow-x: clip;
}
.foot .rip { color: var(--forest); }
.foot__word {
  position: relative;
  font: 900 clamp(6rem, 1rem + 25vw, 21rem)/.82 var(--serif);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -.045em;
  color: transparent;
  background: radial-gradient(circle, var(--butter) 2.2px, transparent 2.8px) 0 0 / 7px 7px;
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: .08em;
  width: max-content;
  max-width: 100%;
}
.foot__word::before {
  content: "Yuzu";
  position: absolute; left: .05em; top: .04em; z-index: -1;
  color: transparent;
  background: radial-gradient(circle, var(--tomato) 1.8px, transparent 2.4px) 0 0 / 7px 7px;
  -webkit-background-clip: text;
  background-clip: text;
}
.foot__inner { position: relative; z-index: 0; }
.foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 2px dashed rgba(244, 232, 178, .35);
  font-size: .95rem;
}
.foot__desc { font: 700 .78rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--butter); }
.foot__copy { color: var(--on-forest-muted); }

/* ================= REVEALS ================= */
.js .reveal { opacity: 0; translate: 0 26px; scale: .97; }
.js .reveal.is-in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .6s var(--ease), translate .7s var(--bounce), scale .7s var(--bounce);
}

/* infinite loops rest while their section is off-screen (class set in main.js) */
.is-offscreen .stamp,
.is-offscreen .doodle--star,
.is-offscreen .step__num { animation-play-state: paused; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1120px) {
  .nav__desc { display: none; }
  .nav__menu { margin-left: auto; }
}

@media (max-width: 899px) {
  :root { --nav-h: 66px; }
  .nav__toggle { display: inline-flex; }
  .no-js .nav__toggle { display: none; }
  html:not(.no-js) .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    padding: 1.2rem var(--gutter) 1.8rem;
    background: var(--bone);
    border-bottom: 2.5px dashed rgba(18, 61, 50, .3);
  }
  html:not(.no-js) .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: .9rem; }
  .nav__links a { font-size: 1.2rem; }
  .no-js .nav__inner { flex-wrap: wrap; padding-block: .8rem; }

  .hero__inner { grid-template-columns: 1fr; }
  .collage { max-width: 470px; margin-top: 1rem; }

  .offers { grid-template-columns: 1fr; }
  .offer--brand { margin-top: 0; }

  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .step:nth-child(n) { margin-top: 0; }
  .how__path { display: none; }

  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hello__inner { grid-template-columns: 1fr; }
  .doodle--hello { display: none; }
}

@media (max-width: 599px) {
  .brand__name { font-size: 1.4rem; }
  .mark--nav { width: 42px; }

  /* hero: "Real people." won't fit one line at phone size, so stack it on
     purpose ("Real" / "people.") and size both lines off the viewport */
  .ransom--xl { font-size: clamp(2.5rem, 13.5vw, 4.4rem); line-height: 1.1; }
  .ransom--xl .rw { display: block; width: max-content; margin-right: 0; }
  .hero__soft { font-size: clamp(2.4rem, 13vw, 4.2rem); }

  /* niches: a compact two-up board instead of six full-width cards */
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem .9rem; padding-top: .6rem; }
  .tile__paper { padding: .75rem .7rem 1rem; }
  .tile__title { margin: .5rem 0 .35rem; }
  .tile__title span { font-size: 1.15rem; padding: .2em .4em .25em; }
  .tile p { font-size: .92rem; line-height: 1.35; }
  .tile__paper--invite { padding: 1.3rem .85rem; }
  .tile__title--hand { font-size: 1.75rem; margin-top: 0; }
  .tile__paper--invite p { font-size: .95rem; margin-bottom: .7rem; }
  .link-hand { font-size: 1.4rem; }

  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .pad { rotate: 0deg; }
  .pad__paper { padding-left: 3rem; }
  .pad__paper { background-position: -.6rem 0, 0 0, 0 0; }
  .peel--label { left: 0; }
  .peel--burst { right: 0; }
  .note-wrap { left: 1%; }
  .stamp { left: 0; top: -1%; }
  .collage__found { bottom: -11%; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .stamp, .doodle--star, .step__num, .mark--big { animation: none !important; }
  .js .reveal { opacity: 1; translate: none; scale: none; }
  .tile:hover { animation: none; }
}
