/* ==========================================================================
   Sitely Studio: the napkin zine
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/permanent-marker-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Shantell Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/shantell-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Shantell Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/shantell-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #fcfbf7;
  --paper-2: #f4f2ea;
  --ink: #141414;
  --ink-2: #3b3934;
  --ink-3: #6a665d;
  --rule: #141414;

  --yellow: #ffe84d;
  --pink: #ff6fae;
  --teal: #2dd4bf;
  --yellow-soft: #fff4a8;
  --pink-soft: #ffd3e6;
  --teal-soft: #bff3ea;
  /* text-safe tints on paper */
  --teal-ink: #0b6e62;
  --pink-ink: #b0145a;

  --display: "Permanent Marker", "Shantell Sans", cursive;
  --hand: "Shantell Sans", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.0875rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.75vw, 2.95rem);
  --step-4: clamp(2.5rem, 1.9rem + 3vw, 4.25rem);
  --step-5: clamp(2.9rem, 2rem + 4.6vw, 5.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --space-10: 10rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --nav-h: 4.75rem;

  /* hand-drawn box radii */
  --wobble: 14px 5px 12px 6px / 6px 13px 5px 14px;
  --wobble-2: 6px 14px 5px 12px / 13px 6px 14px 5px;
  --stroke: 2.5px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-paper: 0 1px 1px rgba(20, 20, 20, 0.06), 0 10px 24px -8px rgba(20, 20, 20, 0.18), 0 28px 60px -24px rgba(20, 20, 20, 0.22);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 20, 20, 0.075) 0.7px, transparent 0.9px);
  background-size: 7px 7px;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
[hidden] {
  display: none !important;
}

/* ---------- Browser surfaces ---------- */
::selection {
  background: var(--yellow);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
html {
  scrollbar-color: var(--ink) var(--paper-2);
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--paper-2);
}
::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 3px solid var(--paper-2);
  border-radius: 10px;
}
input,
textarea {
  caret-color: var(--pink-ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
  font-family: var(--hand);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - 2 * var(--gutter), 52rem);
  margin-inline: auto;
}
.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
  position: relative;
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.field-yellow {
  background-color: var(--yellow);
}
.field-pink {
  background-color: var(--pink);
}
.field-teal {
  background-color: var(--teal);
}
.field-ink {
  background-color: var(--ink);
  color: var(--paper);
}
[class*="field-"]:not(.field-ink) {
  background-image: radial-gradient(rgba(20, 20, 20, 0.09) 0.7px, transparent 0.9px);
  background-size: 7px 7px;
}
/* torn / marker edge between fields */
.edge-top,
.edge-bottom {
  position: relative;
}
.edge-top::before,
.edge-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18V9c40-4 70 3 110-1s80-6 120-2 70 5 115 1 90-7 130-3 60 6 105 2 85-6 125-2 75 5 120 1 80-5 125-1 70 4 115 0 50-3 135 1V18z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18V9c40-4 70 3 110-1s80-6 120-2 70 5 115 1 90-7 130-3 60 6 105 2 85-6 125-2 75 5 120 1 80-5 125-1 70 4 115 0 50-3 135 1V18z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.edge-top::before {
  top: -17px;
}
.edge-bottom::after {
  bottom: -17px;
  transform: scaleY(-1);
}

/* ---------- Type ---------- */
.display,
h1,
.h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2,
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3,
.h3 {
  font-family: var(--hand);
  font-weight: 750;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h4,
.h4 {
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.prose p {
  max-width: 66ch;
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 1em;
}
.hand {
  font-family: var(--hand);
}
.note {
  font-family: var(--hand);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  justify-items: center;
  text-align: center;
}
.section-head--center .lede {
  margin-inline: auto;
}

/* Highlighter swipe: grows on reveal */
.hl {
  --hl: var(--yellow);
  position: relative;
  white-space: nowrap;
  padding-inline: 0.12em;
  margin-inline: -0.06em;
  background-image: linear-gradient(100deg, transparent 0 0.4%, var(--hl) 1.2% 98%, transparent 99.4%);
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 72%;
  transition: background-size 0.9s var(--ease-out) 0.25s;
  border-radius: 0.18em 0.32em 0.22em 0.4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--pink {
  --hl: var(--pink);
}
.hl--teal {
  --hl: var(--teal);
}
.hl--wrap {
  white-space: normal;
}
.is-in .hl,
.hl.is-in {
  background-size: 100% 72%;
}

/* doodle underline drawn under a word */
.scribble {
  position: relative;
  display: inline-block;
}
.scribble > svg {
  position: absolute;
  left: -2%;
  width: 104%;
  bottom: -0.22em;
  height: 0.35em;
  overflow: visible;
  pointer-events: none;
}

/* ---------- Doodle helpers ---------- */
.doodle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-draw] {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.1s var(--ease-out) var(--delay, 0s);
}
.is-in [data-draw],
[data-draw].is-in {
  stroke-dashoffset: 0;
}
.icon {
  width: 1.5em;
  height: 1.5em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm {
  width: 1.15em;
  height: 1.15em;
}
.icon--lg {
  width: 2.75rem;
  height: 2.75rem;
}

/* sketched box */
.sketch-box {
  isolation: isolate;
  position: relative;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
  background: var(--paper);
}
.sketch-box::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-2);
  transform: translate(5px, 5px) rotate(0.25deg);
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
}
.sketch-box--flat::after {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--hand);
  font-weight: 750;
  font-size: var(--step-1);
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--btn-fg);
  text-decoration: none;
  background: var(--btn-bg);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1.75px solid var(--ink);
  border-radius: var(--wobble-2);
  transform: translate(5px, 5px);
  transition: transform 0.25s var(--ease-out);
  z-index: -1;
}
.btn .icon {
  transition: transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover {
    transform: translate(-2px, -2px) rotate(-0.6deg);
  }
  .btn:hover::after {
    transform: translate(8px, 8px);
  }
  .btn:hover .icon--arrow {
    transform: translateX(4px);
  }
}
.btn:active {
  transform: translate(3px, 3px);
  transition-duration: 0.08s;
}
.btn:active::after {
  transform: translate(2px, 2px);
  transition-duration: 0.08s;
}
.btn--ghost {
  --btn-bg: var(--paper);
}
.btn--pink {
  --btn-bg: var(--pink);
}
.btn--teal {
  --btn-bg: var(--teal);
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
.btn--sm {
  min-height: 2.65rem;
  padding: 0.5rem 1.05rem;
  font-size: var(--step-0);
}
.btn--lg {
  min-height: 3.75rem;
  padding: 0.9rem 1.9rem;
  font-size: var(--step-2);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn.is-loading {
  color: transparent;
  pointer-events: none;
}
.btn.is-loading::before {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border: 3px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link {
  font-family: var(--hand);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-size: 100% 0.28em;
  background-position: 0 92%;
  background-repeat: no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.3s var(--ease-out);
}
.link:hover {
  background-size: 100% 0.9em;
}
.link .icon {
  transition: transform 0.3s var(--ease-out);
}
.link:hover .icon {
  transform: translateX(3px);
}
.prose a,
.inline-link {
  text-decoration-line: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--teal);
}

/* ---------- Chips (radio / checkbox) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.chip {
  position: relative;
  display: inline-flex;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip span,
button.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step-0);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px 900px 980px 920px / 900px 980px 920px 999px;
  transition: background-color 0.2s, transform 0.25s var(--ease-snap), box-shadow 0.25s var(--ease-out);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.chip span .icon {
  width: 1.2em;
  height: 1.2em;
}
.chip input:checked + span,
button.chip[aria-pressed="true"],
button.chip[aria-selected="true"] {
  background: var(--yellow);
  transform: rotate(-1.5deg) translateY(-2px);
  box-shadow: 0 6px 14px -8px rgba(20, 20, 20, 0.5);
}
.chip--pink input:checked + span {
  background: var(--pink);
}
.chip--teal input:checked + span {
  background: var(--teal);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
@media (hover: hover) {
  .chip:hover span,
  button.chip:hover {
    background: var(--yellow-soft);
  }
  .chip input:checked:hover + span {
    background: var(--yellow);
  }
}
.chip .tick {
  display: none;
}
.chip input:checked + span .tick {
  display: inline;
}

/* ---------- Stamp (CONCEPT label) ---------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.22rem 0.6rem 0.18rem;
  font-family: var(--hand);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-ink);
  border: 2px solid currentColor;
  border-radius: 4px 7px 5px 6px;
  transform: rotate(-4deg);
  background: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  transition: box-shadow 0.3s;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3c80-1.5 150 1.4 240 .2s170-1.6 260-.1 190 1.3 280-.2 160-1.2 250 .1 120 1 170-.2' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.is-scrolled::after {
  opacity: 1;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand__pip {
  width: 2.6rem;
  height: 2.6rem;
  transition: transform 0.5s var(--ease-snap);
}
.brand:hover .brand__pip {
  transform: rotate(-10deg) scale(1.06);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.nav__link:hover {
  background: var(--yellow-soft);
}
.nav__link .ring {
  position: absolute;
  inset: -4px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 8px);
  pointer-events: none;
  color: var(--pink);
  opacity: 0;
}
.nav__link[aria-current="page"] .ring {
  opacity: 1;
}
.nav__link[aria-current="page"] .ring path {
  stroke-dashoffset: 0;
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--hand);
  font-weight: 700;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--wobble);
}
.menu-btn__lines {
  width: 1.4rem;
  height: 1.4rem;
}
.menu-btn__lines path {
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}
.menu-btn[aria-expanded="true"] .l1 {
  transform: translateY(5px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .l2 {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .l3 {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background-color: var(--yellow);
  background-image: radial-gradient(rgba(20, 20, 20, 0.09) 0.7px, transparent 0.9px);
  background-size: 7px 7px;
  padding: var(--space-6) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.55s var(--ease-out), visibility 0s;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.35rem 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 11vw, 3.5rem);
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px) rotate(-1deg);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open a:not(.btn) {
  opacity: 1;
  transform: none;
}
.mobile-menu li:nth-child(1) a { transition-delay: 0.08s; }
.mobile-menu li:nth-child(2) a { transition-delay: 0.13s; }
.mobile-menu li:nth-child(3) a { transition-delay: 0.18s; }
.mobile-menu li:nth-child(4) a { transition-delay: 0.23s; }
.mobile-menu li:nth-child(5) a { transition-delay: 0.28s; }
.mobile-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
}
.mobile-menu > .btn {
  align-self: flex-start;
}
body.menu-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .nav__list,
  .nav > .btn {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}
@media (min-width: 961px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- Pip (mascot) ---------- */
.pip {
  overflow: visible;
}
.pip .pip-mouth,
.pip .pip-eyes {
  transition: opacity 0.2s;
}
.pip [data-face] {
  opacity: 0;
}
.pip[data-mood="happy"] [data-face="happy"],
.pip[data-mood="wow"] [data-face="wow"],
.pip[data-mood="think"] [data-face="think"],
.pip[data-mood="wink"] [data-face="wink"] {
  opacity: 1;
}
.pip-bob {
  animation: bob 4s var(--ease-in-out) infinite;
  transform-origin: 50% 100%;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}
.speech {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.95rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step-0);
  line-height: 1.3;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px;
  max-width: 17rem;
}
.speech::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  bottom: -11px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
}

/* ---------- Reveal ----------
   Blocks are always visible. [data-reveal] only marks the moment a block's own
   ink arrives: highlighter swipes and pen strokes inside it draw on (.is-in). */
[data-reveal] {
  transform: rotate(var(--tilt, 0deg));
}
.no-js [data-draw] {
  stroke-dashoffset: 0;
}
.no-js .hl {
  background-size: 100% 72%;
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
}
.hero__copy {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  padding-block: var(--space-6);
}
.hero__title {
  font-size: clamp(2.5rem, 0.6rem + 3.7vw, 4.75rem);
  line-height: 1;
}
.hero__title .line {
  display: block;
  white-space: nowrap;
}
.hero__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 27em;
}
.picker {
  display: grid;
  gap: 0.7rem;
  border: 0;
  margin: 0;
  padding: 0;
}
.picker legend {
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--step-0);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.picker legend .icon {
  color: var(--pink-ink);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: var(--space-2);
}
.hero__scene {
  height: 290vh;
}
.hero__sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  min-height: 34rem;
  display: grid;
  place-items: center;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--ink-2);
  opacity: calc(1 - var(--p, 0) * 8);
  pointer-events: none;
}
.scroll-hint .icon {
  animation: nudge 1.6s var(--ease-in-out) infinite;
}
@keyframes nudge {
  50% {
    transform: translateY(5px);
  }
}

/* The napkin stage */
.stage {
  --p: 0;
  position: relative;
  width: min(100%, 44rem);
  aspect-ratio: 4 / 3.6;
  container-type: inline-size;
}
.napkin {
  position: absolute;
  inset: 3.5% 3% 15% 3%;
  transform: rotate(calc(-3.5deg * (1 - var(--flat, 0)))) scale(calc(1 + 0.05 * var(--flat, 0)));
  transform-origin: 50% 55%;
  will-change: transform;
}
.napkin__paper {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  opacity: calc(1 - var(--chrome, 0));
}
.napkin__edge {
  /* scalloped embossed edge + one fold crease, drawn as line */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(1 - var(--flat, 0));
}

/* scroll-0 intro: Pip points at the napkin */
.stage__intro {
  position: absolute;
  left: -4%;
  bottom: 1%;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: var(--a0, 1);
  transform: translateY(calc((1 - var(--a0, 1)) * 16px));
  pointer-events: none;
}
.stage__intro .pip {
  width: clamp(3.25rem, 11cqi, 5rem);
  transform: rotate(-8deg);
}
.stage__intro-note {
  font-family: var(--hand);
  font-weight: 750;
  font-size: clamp(0.9rem, 2.5cqi, 1.15rem);
  line-height: 1.2;
  color: var(--pink-ink);
  transform: rotate(-4deg);
  margin-bottom: 2.6rem;
  white-space: nowrap;
}
.stage__intro-arrow {
  position: absolute;
  left: 22%;
  bottom: 86%;
  width: clamp(3.5rem, 13cqi, 5.5rem);
  color: var(--pink-ink);
  overflow: visible;
}
.hero__title {
  position: relative;
}
.hero__spark {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.12em;
  vertical-align: 0.6em;
  color: var(--pink-ink);
  overflow: visible;
}
.hero__spark .doodle {
  stroke-width: 3.4;
}
.hero__swoosh {
  display: block;
  width: min(100%, 9.5em);
  height: 0.28em;
  margin-top: 0.08em;
  overflow: visible;
}
.browser {
  position: absolute;
  inset: 0;
  border: var(--stroke) solid var(--ink);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  opacity: var(--chrome, 0);
  box-shadow: 0 30px 70px -30px rgba(20, 20, 20, 0.45);
}
.browser__bar {
  height: 7.5%;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 2.2%;
  padding-inline: 2.6%;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.browser__dot {
  width: 1.6cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.browser__dot:nth-child(1) { background: var(--pink); }
.browser__dot:nth-child(2) { background: var(--yellow); }
.browser__dot:nth-child(3) { background: var(--teal); }
.browser__url {
  flex: 1;
  margin-left: 2%;
  padding: 0.4cqi 1.6cqi;
  font-family: var(--hand);
  font-size: max(9px, 1.9cqi);
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.canvas {
  position: absolute;
  inset: 0;
  transition: inset 0s;
}
.napkin .canvas {
  inset: calc(7.5% * var(--chrome, 0)) 0 0 0;
}
.sketch-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  overflow: visible;
}
.sketch-layer .doodle {
  stroke-width: 2;
}
.sketch-layer .s-part {
  transition: opacity 0.35s var(--ease-out);
}
/* drawn by default; the draw-on is an enhancement that never leaves it blank */
.sketch-layer .doodle.loading {
  stroke-dasharray: var(--len);
  stroke-dashoffset: 0;
}
.sketch-layer.is-drawing .doodle.loading {
  animation: draw 1.1s var(--ease-out) backwards;
  animation-delay: var(--delay, 0s);
}
@keyframes draw {
  from {
    stroke-dashoffset: var(--len);
  }
}

/* The real mini-site inside the napkin */
.mini {
  --brand: #7a3b1d;
  --brand-bg: #f7e6cc;
  --brand-accent: #e0703a;
  --brand-font: Georgia, "Times New Roman", serif;
  position: absolute;
  inset: 0;
  color: var(--brand);
  font-family: var(--body);
  pointer-events: none;
}
.mini__part {
  position: absolute;
  clip-path: inset(0 calc(100% - 100% * var(--r, 0)) 0 0 round 4px);
  will-change: clip-path;
}
.mini__bg {
  inset: 0;
  background: var(--brand-bg);
}
.mini__nav {
  left: 5%;
  right: 5%;
  top: 4.5%;
  height: 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.mini__logo {
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 3.1cqi;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 1.2cqi;
}
.mini__logo i {
  width: 3.4cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-accent);
  display: block;
}
.mini__links {
  display: flex;
  gap: 3cqi;
  font-size: 1.9cqi;
  font-weight: 600;
  opacity: 0.8;
}
.mini__head {
  left: 6%;
  top: 21%;
  width: 46%;
}
.mini__h {
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 5.6cqi;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.mini__p {
  margin-top: 2cqi;
  font-size: 2.1cqi;
  line-height: 1.45;
  opacity: 0.85;
}
.mini__cta {
  left: 6%;
  top: 63%;
  height: 8.5%;
  padding-inline: 3.2cqi;
  display: flex;
  align-items: center;
  font-size: 2.15cqi;
  font-weight: 700;
  color: #fff;
  background: var(--brand-accent);
  border-radius: 999px;
}
.mini__img {
  left: 56%;
  top: 18%;
  width: 38%;
  height: 50%;
  border-radius: 2cqi;
  background: color-mix(in srgb, var(--brand-accent) 22%, #fff);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mini__img svg {
  width: 78%;
  height: 78%;
}
.mini__tiles {
  left: 6%;
  right: 6%;
  top: 78%;
  height: 15%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4cqi;
}
.mini__tile {
  background: #fff;
  border-radius: 1.6cqi;
  padding: 1.4cqi 1.8cqi;
  font-size: 1.75cqi;
  line-height: 1.3;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 18%, transparent);
}
.mini__tile b {
  display: block;
  font-size: 2cqi;
  margin-bottom: 0.4cqi;
}

/* annotations around the finished site */
.annot {
  position: absolute;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.3cqi, 1.1rem);
  line-height: 1.15;
  color: var(--ink);
  opacity: var(--a, 0);
  transform: translateY(calc((1 - var(--a, 0)) * 10px)) rotate(var(--rot, -3deg));
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.annot svg {
  position: absolute;
  overflow: visible;
  color: var(--ink);
}
.annot--1 {
  right: 1%;
  top: -2.5%;
  --rot: 3deg;
  padding-left: 52px;
}
.annot--1 svg {
  left: 0;
  top: 30%;
  width: 46px;
  height: 40px;
}
.annot--2 {
  left: 4%;
  bottom: 2%;
  --rot: -3deg;
}
.annot--2 svg {
  left: 62%;
  bottom: 100%;
  width: 40px;
  height: 44px;
}
.annot mark {
  background: var(--yellow);
  padding: 0 0.2em;
  border-radius: 3px;
  color: inherit;
}
.stage__stamp {
  position: absolute;
  left: 4%;
  top: -5%;
  z-index: 4;
}
.stage__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.scrub {
  position: relative;
  width: 7rem;
  height: 6px;
  border-radius: 99px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  overflow: hidden;
}
.scrub i {
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.stage__pip {
  position: absolute;
  right: 1%;
  bottom: -1%;
  width: 12.5%;
  z-index: 4;
  opacity: var(--a3, 0);
  transform: translateY(calc((1 - var(--a3, 0)) * 30px)) rotate(8deg);
}
.stage__pip .speech {
  position: absolute;
  right: 112%;
  bottom: 34%;
  white-space: nowrap;
  font-size: clamp(0.85rem, 2.3cqi, 1.05rem);
}

/* concept palettes */
.mini[data-kind="local"] {
  --brand: #6b2f12;
  --brand-bg: #f8e7cf;
  --brand-accent: #d7642c;
  --brand-font: Georgia, "Times New Roman", serif;
}
.mini[data-kind="startup"] {
  --brand: #1c1f6b;
  --brand-bg: #eef0ff;
  --brand-accent: #4a4ff0;
  --brand-font: var(--body);
}
.mini[data-kind="store"] {
  --brand: #22422b;
  --brand-bg: #e6efe2;
  --brand-accent: #3f7d4f;
  --brand-font: Georgia, "Times New Roman", serif;
}
.mini[data-kind="company"] {
  --brand: #0e2a45;
  --brand-bg: #e9eef3;
  --brand-accent: #e2552d;
  --brand-font: var(--body);
}

/* ---------- Statement (word-by-word) ---------- */
.statement {
  height: 230vh;
  position: relative;
}
.statement__sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
}
.statement__text {
  font-family: var(--display);
  font-size: clamp(2rem, 1.1rem + 3.6vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  max-width: 21ch;
  text-wrap: balance;
}
.statement__text .w {
  color: rgba(20, 20, 20, 0.14);
  transition: color 0.25s;
}
.statement__text .w.on {
  color: var(--ink);
}
.statement__text .w.mark {
  background-image: linear-gradient(100deg, transparent 0 0.4%, var(--pink) 1.2% 98%, transparent 99.4%);
  background-repeat: no-repeat;
  background-position: 0 60%;
  background-size: 0% 70%;
  transition: background-size 0.6s var(--ease-out), color 0.25s;
  padding-inline: 0.08em;
  border-radius: 0.2em;
}
.statement__text .w.mark.on {
  background-size: 100% 70%;
}
.statement__aside {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------- Spread (what we make) ---------- */
.spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  text-decoration: none;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
  background: var(--paper);
  transition: transform 0.45s var(--ease-out);
}
.panel::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-2);
  transform: translate(6px, 6px);
  z-index: -1;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  a.panel:hover {
    transform: translate(-3px, -4px) rotate(-0.4deg);
  }
  a.panel:hover::after {
    transform: translate(10px, 10px);
  }
  a.panel:hover .panel__go .icon {
    transform: translateX(5px);
  }
}
.panel__art {
  width: 100%;
  max-width: 16rem;
  height: auto;
  margin-bottom: var(--space-2);
  color: var(--ink);
}
.panel__go {
  margin-top: auto;
  padding-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hand);
  font-weight: 750;
}
.panel__go .icon {
  transition: transform 0.35s var(--ease-out);
}
.panel p {
  color: var(--ink-2);
  max-width: 36ch;
}
.panel--a {
  grid-column: span 7;
  grid-row: span 2;
  background: var(--teal);
}
.panel--a p {
  color: var(--ink);
}
.panel--a .panel__art {
  max-width: 24rem;
  margin-inline: auto 0;
}
.panel--b {
  grid-column: span 5;
  --tilt: 0.8deg;
}
.panel--c {
  grid-column: span 5;
  --tilt: -0.6deg;
  background: var(--pink-soft);
}
.panel--d {
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  background: var(--yellow-soft);
}
.panel--d .panel__art {
  width: 9rem;
  margin: 0;
}
.panel--d .panel__go {
  margin: 0;
  padding: 0;
}

/* ---------- Horizontal process track ---------- */
.track {
  height: 340vh;
  position: relative;
}
.track__sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
}
.track__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
}
.track__rail {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
  width: max-content;
  transform: translate3d(calc(var(--tx, 0) * -1px), 0, 0);
  will-change: transform;
}
.frame {
  position: relative;
  width: clamp(17rem, 30vw, 24rem);
  min-height: clamp(20rem, 52vh, 27rem);
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
}
.frame:nth-child(even) {
  transform: rotate(0.9deg) translateY(14px);
}
.frame:nth-child(odd) {
  transform: rotate(-0.7deg);
}
.frame__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
}
.frame__art {
  width: 100%;
  height: clamp(6rem, 16vh, 9rem);
  margin-block: var(--space-2);
  color: var(--ink);
}
.frame p {
  color: var(--ink-2);
  font-size: var(--step-0);
}
.frame__out {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 2px dashed rgba(20, 20, 20, 0.25);
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step--1);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.frame__out .icon {
  color: var(--teal-ink);
}
.frame--end {
  background: var(--yellow);
  justify-content: center;
  align-items: flex-start;
}
.track__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step--1);
}
.track__progress .scrub {
  width: 12rem;
}

/* ---------- Sketcher ---------- */
.sketcher {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.sketcher__controls {
  display: grid;
  gap: var(--space-5);
}
.sketcher__group {
  display: grid;
  gap: 0.75rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.sketcher__group legend {
  font-family: var(--hand);
  font-weight: 750;
  font-size: var(--step-1);
  margin-bottom: 0.75rem;
}
.sketcher__board {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #fff;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
  min-height: 34rem;
}
.sketcher__devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: 1.5rem;
  align-items: start;
}
.device {
  border: var(--stroke) solid var(--ink);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.device--phone {
  border-radius: 22px;
  padding-top: 0.6rem;
}
.device--phone::before {
  content: "";
  display: block;
  width: 38%;
  height: 6px;
  margin: 0 auto 0.5rem;
  border-radius: 6px;
  background: var(--ink);
}
.device__bar {
  display: flex;
  gap: 6px;
  padding: 0.5rem 0.7rem;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.device__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.device__body {
  display: grid;
  gap: 8px;
  padding: 10px;
}
.blk {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  min-height: 2.6rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: 0.85rem;
  line-height: 1.2;
  border: 2px solid var(--ink);
  border-radius: 6px 9px 7px 8px;
  background: #fff;
  animation: blk-in 0.55s var(--ease-snap) both;
}
.blk .icon {
  width: 1.15rem;
  height: 1.15rem;
}
.blk--hero {
  min-height: 6.5rem;
  align-items: flex-end;
  background: var(--yellow-soft);
}
.blk--nav {
  min-height: 2.1rem;
  background: var(--paper-2);
  justify-content: space-between;
}
.blk--foot {
  min-height: 2.1rem;
  background: var(--ink);
  color: var(--paper);
}
.blk--half {
  min-height: 4rem;
}
.device--phone .blk {
  font-size: 0.68rem;
  min-height: 2rem;
  padding: 0.35rem 0.45rem;
}
.device--phone .blk .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.device--phone .blk--hero {
  min-height: 4.5rem;
}
.device--phone .device__body {
  padding: 6px;
  gap: 5px;
}
@keyframes blk-in {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
  }
}
.sketcher__summary {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.sketcher__pip {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
.sketcher__pip .pip {
  width: 4.5rem;
  flex: none;
}
.sketcher__pip .speech::after {
  left: -9px;
  bottom: 14px;
  transform: rotate(135deg) skew(8deg, 8deg);
}

/* ---------- Note paper (honest section) ---------- */
.notepaper {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent calc(clamp(2.5rem, 6vw, 4.5rem) - 1px), rgba(255, 111, 174, 0.75) calc(clamp(2.5rem, 6vw, 4.5rem) - 1px), rgba(255, 111, 174, 0.75) calc(clamp(2.5rem, 6vw, 4.5rem) + 1px), transparent calc(clamp(2.5rem, 6vw, 4.5rem) + 1px)),
    repeating-linear-gradient(transparent 0 calc(2.1rem - 1px), rgba(45, 120, 200, 0.18) calc(2.1rem - 1px) 2.1rem);
  background-position: 0 0, 0 1.2rem;
  box-shadow: var(--shadow-paper);
  transform: rotate(-0.6deg);
}
.tape {
  position: absolute;
  width: 7.5rem;
  height: 2rem;
  background: rgba(255, 232, 77, 0.72);
  border-left: 2px dotted rgba(20, 20, 20, 0.12);
  border-right: 2px dotted rgba(20, 20, 20, 0.12);
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.08);
}
.tape--tl {
  left: -1.5rem;
  top: 1rem;
  transform: rotate(-32deg);
}
.tape--tr {
  right: -1.5rem;
  top: 1rem;
  transform: rotate(28deg);
}
.honest-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  gap: var(--space-5);
}
.honest-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}
.honest-list .icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--teal-ink);
}
.honest-list h3 {
  font-size: var(--step-1);
  margin-bottom: 0.2rem;
}
.honest-list p {
  color: var(--ink-2);
  max-width: 58ch;
}

/* ---------- Close (CTA field) ---------- */
.close {
  text-align: center;
  overflow: hidden;
}
.close__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}
.close__title {
  font-size: clamp(2.8rem, 1.6rem + 5.4vw, 6rem);
  line-height: 0.98;
  max-width: 13ch;
}
.close__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: var(--space-3);
}
.close__doodle {
  position: absolute;
  width: clamp(6rem, 14vw, 11rem);
  color: var(--ink);
  pointer-events: none;
}
.close__doodle--l {
  left: 4%;
  top: 18%;
  transform: rotate(-12deg);
}
.close__doodle--r {
  right: 5%;
  bottom: 14%;
  transform: rotate(10deg);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  background: var(--ink);
  color: var(--paper);
}
.site-footer ::selection {
  background: var(--pink);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand .brand {
  color: var(--paper);
  font-size: 1.9rem;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 30ch;
  color: rgba(252, 251, 247, 0.78);
}
.footer-col h2 {
  font-family: var(--hand);
  font-weight: 750;
  font-size: var(--step-0);
  color: var(--yellow);
  margin-bottom: 0.8rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.footer-col a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  text-decoration: none;
  color: rgba(252, 251, 247, 0.85);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--yellow);
}
.footer-bottom {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1.5px dashed rgba(252, 251, 247, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: rgba(252, 251, 247, 0.65);
}
.footer-big {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--display);
  font-size: clamp(3.2rem, 12vw, 10.5rem);
  line-height: 0.9;
  color: var(--paper);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.footer-big span {
  color: var(--yellow);
}
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 1.5rem + 4.6vw, 5.4rem);
}
.page-hero .lede {
  margin-top: var(--space-5);
}
.page-hero__art {
  color: var(--ink);
  width: 100%;
  max-width: 26rem;
  justify-self: end;
}
.page-hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* ---------- Tabs (services) ---------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-6);
}
.tabs__list .chip {
  font-size: var(--step-1);
  min-height: 3.1rem;
  padding-inline: 1.25rem;
}
.tabpanel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  animation: panel-in 0.5s var(--ease-out);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.tabpanel h2 {
  font-size: var(--step-3);
}
.tabpanel .lede {
  margin-top: var(--space-4);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: 0.75rem;
}
.ticks li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  align-items: start;
}
.ticks .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--teal-ink);
  margin-top: 0.05rem;
}
.ideal {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--yellow-soft);
  border: 2px dashed var(--ink);
  border-radius: var(--wobble);
}
.ideal h3 {
  font-size: var(--step-1);
  margin-bottom: 0.75rem;
}
.ideal ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.ideal .tabpanel__art {
  width: 100%;
  max-width: 15rem;
  margin: 0 auto 1.5rem;
  color: var(--ink);
}

.includes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
}
.include {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}
.include .icon {
  width: 2.75rem;
  height: 2.75rem;
}
.include h3 {
  font-size: var(--step-1);
  margin-bottom: 0.3rem;
}
.include p {
  color: var(--ink-2);
  font-size: var(--step-0);
}
.field-teal .include p,
.field-pink .include p,
.field-yellow .include p,
.field-teal .lede,
.field-pink .lede,
.field-yellow .lede,
.field-pink .principle p,
.field-teal .frame__out,
.field-yellow .faq .faq__a {
  color: var(--ink);
}

.addons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.addon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem;
}
.addon .icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--pink-ink);
}
.addon h3 {
  font-size: var(--step-1);
}
.addon p {
  color: var(--ink-2);
  margin-top: 0.25rem;
}

/* ---------- Services: drawn checklist ---------- */
.checklist-sheet {
  position: relative;
  max-width: 62rem;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem);
  background: #fff;
  box-shadow: var(--shadow-paper);
  transform: rotate(-0.5deg);
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 22rem;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.checklist li {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-block: 1rem;
  border-bottom: 1.5px dashed rgba(20, 20, 20, 0.22);
}
.checklist .checkbox {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--ink);
  overflow: visible;
}
.checklist .tick-mark {
  color: var(--teal-ink);
  stroke-width: 3.6;
}
.checklist li:nth-child(1) .tick-mark { --delay: 0.05s; }
.checklist li:nth-child(2) .tick-mark { --delay: 0.2s; }
.checklist li:nth-child(3) .tick-mark { --delay: 0.35s; }
.checklist li:nth-child(4) .tick-mark { --delay: 0.5s; }
.checklist li:nth-child(5) .tick-mark { --delay: 0.65s; }
.checklist li:nth-child(6) .tick-mark { --delay: 0.8s; }
.checklist h3 {
  font-size: var(--step-1);
}
.checklist p {
  color: var(--ink-2);
  margin-top: 0.15rem;
}

/* ---------- Services: sticky notes ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.note-card {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 1px 1px rgba(20, 20, 20, 0.08), 0 14px 28px -14px rgba(20, 20, 20, 0.35);
}
.note-card .tape {
  left: 50%;
  top: -0.9rem;
  width: 6rem;
  height: 1.7rem;
  transform: translateX(-50%) rotate(-3deg);
}
.note-card .icon {
  width: 2.4rem;
  height: 2.4rem;
}
.note-card h3 {
  font-size: var(--step-2);
}
.note-card p {
  max-width: 40ch;
}
.note--yellow {
  grid-column: span 7;
  background: var(--yellow);
  min-height: 13rem;
}
.note--pink {
  grid-column: span 5;
  background: var(--pink-soft);
  margin-top: 2.5rem;
}
.note--teal {
  grid-column: span 5;
  background: var(--teal-soft);
}
.note--paper {
  grid-column: span 7;
  background: #fff;
  margin-top: -1rem;
  border: 2px dashed rgba(20, 20, 20, 0.35);
}
@media (max-width: 720px) {
  .note-card {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

/* ---------- Work (concept gallery) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-6);
}
.concepts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.concept {
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.concept.is-hidden {
  display: none;
}
.concept__shot {
  position: relative;
  aspect-ratio: 25 / 21;
  container-type: inline-size;
  border: var(--stroke) solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.5s var(--ease-out);
}
.concept:nth-child(odd) .concept__shot {
  transform: rotate(-0.8deg);
}
.concept:nth-child(even) .concept__shot {
  transform: rotate(0.7deg);
}
@media (hover: hover) {
  .concept:hover .concept__shot {
    transform: rotate(0deg) translateY(-4px);
  }
}
.concept__shot .mini {
  top: 7.5%;
}
.concept__shot .mini__part {
  --r: 1;
}
.concept__shot .browser__bar {
  position: absolute;
  inset: 0 0 auto 0;
}
.concept__shot .stamp {
  position: absolute;
  right: 5%;
  top: 22%;
  z-index: 2;
}
.concept__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.concept__meta h2 {
  font-family: var(--hand);
  font-weight: 750;
  font-size: var(--step-2);
}
.concept__kind {
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.concept p {
  color: var(--ink-2);
  max-width: 52ch;
}
.disclose {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  font-family: var(--hand);
  font-weight: 750;
  background: none;
  border: 0;
  min-height: 2.75rem;
}
.disclose .icon {
  transition: transform 0.35s var(--ease-out);
}
.disclose[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}
.concept__detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.concept__detail > div {
  overflow: hidden;
}
.concept__detail.is-open {
  grid-template-rows: 1fr;
}
.concept__detail dl {
  margin: 0.25rem 0 0;
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  background: var(--paper-2);
  border: 2px dashed rgba(20, 20, 20, 0.4);
  border-radius: var(--wobble);
}
.concept__detail dt {
  font-family: var(--hand);
  font-weight: 750;
}
.concept__detail dd {
  margin: 0.15rem 0 0;
  color: var(--ink-2);
}
.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 1rem;
}
.empty-state .pip {
  width: 6rem;
}

/* ---------- Process page ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(3rem, 8vw, 6rem);
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: calc(2.25rem - 1.5px);
  top: 2rem;
  bottom: 2rem;
  border-left: 3px dashed rgba(20, 20, 20, 0.3);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
}
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  font-family: var(--display);
  font-size: 2.1rem;
  background: var(--teal);
  border: var(--stroke) solid var(--ink);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
}
.step:nth-child(2) .step__num { background: var(--yellow); }
.step:nth-child(3) .step__num { background: var(--pink); }
.step:nth-child(5) .step__num { background: var(--yellow); }
.step:nth-child(6) .step__num { background: var(--pink); }
.step h2 {
  font-size: var(--step-3);
}
.step .lede {
  margin-top: 0.75rem;
  font-size: var(--step-0);
}
.step__you {
  margin-top: var(--space-5);
  display: grid;
  gap: 0.5rem;
}
.step__you h3 {
  font-size: var(--step-0);
  font-weight: 750;
}
.step__art {
  width: 100%;
  max-width: 18rem;
  color: var(--ink);
  justify-self: center;
}

/* FAQ accordion */
.faq {
  display: grid;
  gap: 1rem;
}
.faq details {
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
  background: var(--paper);
  transition: background-color 0.25s;
}
.faq details[open] {
  background: #fff;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 1.4rem;
  font-family: var(--hand);
  font-weight: 750;
  font-size: var(--step-1);
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  transition: transform 0.35s var(--ease-out);
  flex: none;
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq .faq__a {
  padding: 0 1.4rem 1.4rem;
  color: var(--ink-2);
  max-width: 68ch;
}
.faq details[open] .faq__a {
  animation: panel-in 0.4s var(--ease-out);
}

/* ---------- About ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
}
.principle h3 {
  font-size: var(--step-2);
  margin-block: 0.75rem 0.5rem;
}
.principle p {
  color: var(--ink-2);
  max-width: 44ch;
}
.principle .icon {
  width: 3rem;
  height: 3rem;
}
.wont {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.wont li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step-1);
}
.wont .x {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  top: 0.25rem;
  color: var(--pink-ink);
}
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* ==========================================================================
   CONTACT: the brief dialogue
   ========================================================================== */
.brief {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.brief__side {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: grid;
  gap: var(--space-5);
}
.brief__side .pip {
  width: 6.5rem;
}
.progress-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.progress-path li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  font-family: var(--hand);
  font-weight: 650;
  color: var(--ink-3);
  transition: color 0.3s;
}
.progress-path .dot {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.85rem;
  font-weight: 800;
  border: 2px solid currentColor;
  border-radius: 50% 46% 52% 48%;
  transition: background-color 0.3s, color 0.3s;
  flex: none;
}
.progress-path li.is-current {
  color: var(--ink);
}
.progress-path li.is-current .dot {
  background: var(--yellow);
  border-color: var(--ink);
}
.progress-path li.is-done {
  color: var(--ink-2);
}
.progress-path li.is-done .dot {
  background: var(--teal);
  border-color: var(--ink);
  color: var(--ink);
}
.brief__form {
  padding: clamp(1.5rem, 4vw, 3rem);
}
.brief__step {
  display: grid;
  gap: var(--space-5);
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.brief__step[hidden] {
  display: none;
}
.brief__step.is-entering {
  animation: step-in 0.5s var(--ease-out);
}
.brief__step.is-entering-back {
  animation: step-in-back 0.5s var(--ease-out);
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}
@keyframes step-in-back {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
}
.brief__q {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1.08;
  padding: 0;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.brief__hint {
  color: var(--ink-2);
  margin-top: -0.5rem;
}
.brief__nav {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 2px dashed rgba(20, 20, 20, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brief__nav .count {
  font-family: var(--hand);
  font-weight: 650;
  color: var(--ink-2);
  font-size: var(--step--1);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--hand);
  font-weight: 700;
  background: none;
  border: 0;
  border-radius: 8px;
}
.back-btn:hover {
  background: var(--paper-2);
}
.back-btn[hidden] {
  display: none;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.fields .full {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label,
.field .label {
  font-family: var(--hand);
  font-weight: 700;
}
.field .opt {
  font-weight: 500;
  color: var(--ink-3);
}
.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  font-size: 1.0625rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px 6px 9px 7px / 7px 9px 6px 10px;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease-out), background-color 0.2s;
}
textarea.input {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}
.input::placeholder {
  color: #77736a;
}
.input:hover {
  background: #fffef5;
}
.input:focus {
  border-color: var(--ink);
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  background: #fff;
}
.input[aria-invalid="true"] {
  border-color: var(--pink-ink);
  background: #fff7fa;
}
.input[aria-invalid="true"]:focus {
  outline-color: var(--pink-ink);
}
.error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--hand);
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--pink-ink);
  min-height: 0;
}
.error:empty {
  display: none;
}
.error::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%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' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.group-error {
  margin-top: -0.5rem;
}
.counter {
  justify-self: end;
  font-family: var(--hand);
  font-size: var(--step--1);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.review {
  display: grid;
  gap: 0;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: var(--wobble);
  overflow: hidden;
  background: #fff;
}
.review > div {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  border-bottom: 1.5px dashed rgba(20, 20, 20, 0.25);
}
.review > div:last-child {
  border-bottom: 0;
}
.review dt {
  font-family: var(--hand);
  font-weight: 750;
}
.review dd {
  margin: 0;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.review .edit {
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--step--1);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.2em;
  min-height: 2.25rem;
  padding: 0 0.25rem;
}
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.consent input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  accent-color: var(--ink);
  flex: none;
}
.sent {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
}
.sent .pip {
  width: 8rem;
}
.sent h2 {
  font-size: var(--step-4);
}
.sent p {
  max-width: 44ch;
  color: var(--ink-2);
}
.sent.is-in {
  animation: panel-in 0.6s var(--ease-out);
}
.sketch-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--teal-soft);
  border: 2px dashed var(--ink);
  border-radius: var(--wobble);
  font-family: var(--hand);
  font-weight: 650;
}
.sketch-chip button {
  background: none;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  min-height: 2.25rem;
}
.direct {
  display: grid;
  gap: 0.35rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.direct a {
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--ink);
}

/* ---------- 404 ---------- */
.lost {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-8);
}
.lost__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}
.lost .pip {
  width: 9rem;
}
.lost h1 {
  font-size: clamp(4rem, 2rem + 10vw, 9rem);
  line-height: 0.9;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 960px) {
  :root {
    --nav-h: 4.25rem;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__copy {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding-block: clamp(2rem, 7vw, 3.5rem) var(--space-4);
  }
  .hero__scene {
    height: 210vh;
  }
  .hero__sticky {
    top: calc(var(--nav-h) + 6svh);
    height: auto;
    min-height: 0;
    padding-block: 1.5rem 4rem;
  }
  .stage {
    width: min(100%, 36rem);
  }
  .scroll-hint {
    bottom: 0.25rem;
  }
  .spread .panel--a,
  .spread .panel--b,
  .spread .panel--c {
    grid-column: span 12;
    grid-row: auto;
  }
  .panel--d {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .sketcher,
  .page-hero__grid,
  .tabpanel,
  .brief,
  .duo {
    grid-template-columns: 1fr;
  }
  .page-hero__art {
    justify-self: start;
    max-width: 18rem;
  }
  .includes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }
  .step__art {
    grid-column: 2;
    justify-self: start;
    max-width: 13rem;
  }
  .brief__side {
    position: static;
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 1.25rem;
  }
  .brief__side .pip {
    width: 4rem;
  }
  .brief__side .speech::after {
    left: -9px;
    bottom: 12px;
    transform: rotate(135deg) skew(8deg, 8deg);
  }
  .brief__side .progress-path,
  .brief__side .direct {
    display: none;
  }
}
@media (max-width: 720px) {
  .concepts,
  .addons,
  .principles,
  .includes,
  .fields {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sketcher__devices {
    grid-template-columns: minmax(0, 1fr) 7rem;
    gap: 0.9rem;
  }
  .review > div {
    grid-template-columns: 1fr auto;
  }
  .review dd {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .track__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .frame {
    width: min(80vw, 20rem);
  }
  .stage__pip .speech {
    display: none;
  }
  .stage__pip {
    width: 15%;
    bottom: 0;
  }
  .annot--1 {
    top: -5%;
  }
  .stage__stamp {
    top: -7%;
  }
  .steps::before {
    left: calc(1.75rem - 1.5px);
  }
  .step {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem;
  }
  .step__num {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.6rem;
  }
  .close__doodle {
    display: none;
  }
}
@media (max-width: 420px) {
  .btn--lg {
    font-size: var(--step-1);
    padding-inline: 1.3rem;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }
  [data-draw] {
    stroke-dashoffset: 0;
  }
  .hl {
    background-size: 100% 72%;
  }
  .hero__scene,
  .statement,
  .track {
    height: auto;
  }
  .hero__sticky,
  .statement__sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding-block: 3rem 4rem;
  }
  .statement__text .w {
    color: var(--ink);
  }
  .statement__text .w.mark {
    background-size: 100% 70%;
  }
  .track__sticky {
    position: relative;
    height: auto;
    overflow: visible;
    padding-block: 2rem;
  }
  .track__rail {
    width: auto;
    transform: none;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
  }
  .frame {
    flex: none;
    scroll-snap-align: start;
  }
  .scroll-hint,
  .track__progress {
    display: none;
  }
  .pip-bob {
    animation: none;
  }
}

/* ---------- Owner-supplied mascot art (assets/mascot.webp) ---------- */
.mascot-art {
  width: clamp(8rem, 16vw, 12rem);
  height: auto;
  flex: none;
}
