/* ==========================================================================
   Little & Mighty — little studio, mighty results
   ========================================================================== */

:root {
  --ink: #0B1E1C;
  --ink-2: #12302C;
  --ink-3: #1C433E;
  --paper: #F3F6F2;
  --paper-2: #E2EBE6;
  --white: #FFFFFF;
  --brand: #0B7A6E;
  --brand-2: #35A596;
  --brand-tint: #CDEBE5;
  --accent: #FF6B1A;
  --accent-deep: #E2540A;
  --pop: #C8F542;
  --muted: #5B6B67;
  --muted-on-dark: #9FB8B1;
  --line: rgba(11, 30, 28, .12);
  --line-on-dark: rgba(243, 246, 242, .14);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.3, 1.6, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.dark { background: var(--ink); color: var(--paper); }
.bold { background: var(--accent); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); padding: 8px 12px; }

/* Type ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(52px, 9.5vw, 148px); text-transform: uppercase; }
h2 { font-size: clamp(40px, 6.4vw, 92px); text-transform: uppercase; }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; max-width: 40ch; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 107, 26, .25); }
.bold .eyebrow::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(11, 30, 28, .15); }
.hl { color: var(--accent); }
.bold .hl, .paper-hl { background: var(--ink); color: var(--accent); padding: 0 .12em; }
.strike { position: relative; white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; background: var(--pop); transform: rotate(-3deg); }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-on-dark); }

/* Buttons --------------------------------------------------------------- */
.btn {
  --bg: var(--accent); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; padding: 18px 26px; border-radius: 999px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { box-shadow: none; background: rgba(255, 107, 26, .12); }
.dark .btn { border-color: var(--accent); box-shadow: 4px 4px 0 var(--pop); }
.dark .btn:hover { box-shadow: 6px 6px 0 var(--pop); }
.dark .btn--ghost { border-color: var(--paper); box-shadow: none; }
.btn--ink { --bg: var(--ink); --fg: var(--accent); box-shadow: 4px 4px 0 var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 246, 242, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: -.02em; }
.brand-word { font-size: 17px; line-height: .92; }
.brand img { width: 42px; height: 42px; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 3px; background: var(--accent-deep); transition: right .25s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 12px 20px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); color: var(--paper); padding: 16px var(--gutter) 32px; transform: translateY(-120%); transition: transform .35s var(--ease); height: calc(100dvh - 76px); }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 40px; text-transform: uppercase; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line-on-dark); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 28px; font-size: 17px; padding: 18px 26px; box-shadow: 4px 4px 0 var(--pop); }
}

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 28px; font-size: clamp(52px, 7.2vw, 124px); }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hero-proof span::before { content: "✓ "; color: var(--ink); font-weight: 700; }

.mascot { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

.sticker {
  position: absolute; z-index: 2; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px;
  font-family: var(--mono); font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; box-shadow: 4px 4px 0 var(--ink);
  animation: float 6s ease-in-out infinite;
}
.sticker b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -.01em; font-weight: 400; }
.sticker--1 { top: 8%; left: -4%; transform: rotate(-6deg); }
.sticker--2 { bottom: 14%; right: -6%; transform: rotate(5deg); animation-delay: -2s; background: var(--ink); color: var(--paper); }
.sticker--2 b { color: var(--accent); }
.sticker--3 { bottom: 2%; left: 6%; transform: rotate(-3deg); animation-delay: -4s; background: var(--pop); color: var(--ink); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Desktop: whole hero fits above the fold */
@media (min-width: 901px) {
  .hero { min-height: calc(100svh - 76px); display: flex; align-items: center; padding: clamp(20px, 4vh, 56px) 0; }
  .hero .wrap { width: 100%; }
  .hero .eyebrow { margin-bottom: clamp(10px, 2vh, 24px); }
  .hero h1 { font-size: clamp(48px, min(7.2vw, 11.5vh), 106px); margin-bottom: clamp(14px, 2.5vh, 28px); }
  .hero .lede { font-size: clamp(17px, min(1.6vw, 2.4vh), 22px); margin-bottom: clamp(18px, 3vh, 36px); }
  .hero .btn { padding-block: clamp(12px, 1.8vh, 18px); }
  .hero-proof { margin-top: clamp(14px, 3vh, 36px); }
  .mascot { max-width: min(520px, calc(100svh - 76px - 10vh)); }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mascot { max-width: 360px; margin-top: 16px; }
  .sticker--1 { left: 0; }
  .sticker--2 { right: 0; }
}

/* Marquee --------------------------------------------------------------- */
.marquee { background: var(--ink); color: var(--paper); border-block: 3px solid var(--ink); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 18px; height: 18px; background: var(--accent); transform: rotate(45deg); }
.marquee--bold .marquee-track span::after { background: var(--ink); }
.marquee--bold { background: var(--accent); color: var(--ink); transform: rotate(-1.5deg); margin: -12px -20px 0; }
.tilt-wrap { overflow: hidden; padding: 12px 0 24px; margin-top: -12px; }
.tilt-wrap .marquee--bold { margin: 0 -20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Logos ----------------------------------------------------------------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.logos div { background: var(--paper); display: grid; place-items: center; padding: 28px 20px; min-height: 110px; }
@media (max-width: 700px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logos img { max-height: 46px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.logos div:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.logos .logo-bbc { max-height: 36px; }
.logos .logo-tall { max-height: 78px; }

/* Versus ---------------------------------------------------------------- */
.versus-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.versus-head p { max-width: 46ch; }
.versus { border: 2px solid var(--paper); border-radius: var(--radius); overflow: hidden; }
.versus-row { display: grid; grid-template-columns: .8fr 1fr 1fr; border-top: 1px solid var(--line-on-dark); }
.versus-row:first-child { border-top: 0; }
.versus-row > div { padding: 22px 24px; }
.versus-row .label { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-on-dark); display: flex; align-items: center; }
.versus-row .them { color: var(--muted-on-dark); }
.versus-row .them::before { content: "✕"; color: var(--pop); font-weight: 700; margin-right: 10px; }
.versus-row .us { background: rgba(255, 107, 26, .08); border-left: 2px solid var(--accent); font-weight: 600; }
.versus-row .us::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.versus-row.head > div { font-family: var(--display); font-size: 22px; text-transform: uppercase; padding-block: 26px; }
.versus-row.head .them::before, .versus-row.head .us::before { content: none; }
.versus-row.head .us { background: var(--accent); color: var(--ink); display: flex; align-items: center; gap: 12px; }
.versus-row.head .us img { width: 34px; height: 34px; }
@media (max-width: 760px) {
  .versus-head { grid-template-columns: 1fr; gap: 8px; }
  .versus-row { grid-template-columns: 1fr 1fr; }
  .versus-row .label { grid-column: 1 / -1; padding-bottom: 0; }
  .versus-row.head .label { display: none; }
  .versus-row > div { padding: 14px 16px; font-size: 15px; }
  .versus-row.head > div { font-size: 16px; }
}

/* Stats ----------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); }
.stat { padding: 32px 24px 8px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat .num { font-family: var(--display); font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.03em; }
.stat .num small { font-size: .5em; vertical-align: top; color: var(--accent-deep); }
.bold .stat .num small { color: var(--pop); }
.stat p { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 12px 16px 0 !important; }
}

/* Services cards -------------------------------------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 42ch; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 14px; position: relative; min-height: 320px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 700; }
.card h3 { margin: 6px 0 0; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card ul { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.card--feature { background: var(--ink); color: var(--paper); grid-row: span 2; }
.card--feature:hover { background: var(--ink-2); box-shadow: 8px 8px 0 var(--accent); }
.card--feature p { color: var(--muted-on-dark); }
.card--feature li { border-color: var(--line-on-dark); }
.card--feature .num { color: var(--muted-on-dark); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } .card--feature { grid-row: auto; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* Process --------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 24px 0 0; position: relative; }
.step .week { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: inline-block; background: var(--ink); color: var(--accent); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.step .bar { height: 6px; background: var(--ink); margin: 0 0 28px; border-radius: 6px; position: relative; overflow: hidden; }
.step .bar::after { content: ""; position: absolute; inset: 0; background: var(--pop); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.process.is-in .step .bar::after { transform: scaleX(1); }
.process.is-in .step:nth-child(2) .bar::after { transition-delay: .3s; }
.process.is-in .step:nth-child(3) .bar::after { transition-delay: .6s; }
.process.is-in .step:nth-child(4) .bar::after { transition-delay: .9s; }
.step h3 { font-size: clamp(32px, 3.4vw, 48px); text-transform: uppercase; }
.step p { font-size: 16px; }
.step .ai { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; color: var(--muted); }
.step .ai b { color: var(--ink); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .step { padding: 0; } }

/* Split / AI ------------------------------------------------------------ */
.split h2 { font-size: clamp(40px, 5vw, 76px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo > div { border: 1px solid var(--line-on-dark); border-radius: var(--radius); padding: 26px; }
.duo > div:last-child { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.duo h4 { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 18px; line-height: 1.3; }
.duo ul { list-style: none; margin: 0; padding: 0; }
.duo li { padding: 10px 0; border-top: 1px solid var(--line-on-dark); font-size: 16px; }
.duo > div:last-child li { border-color: rgba(11, 30, 28, .15); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }

/* Work ------------------------------------------------------------------ */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.work { grid-column: span 4; text-decoration: none; display: block; }
.work:nth-child(6n+1), .work:nth-child(6n+5) { grid-column: span 8; }
.work:nth-child(6n+2), .work:nth-child(6n+6) { grid-column: span 4; }
.work-thumb {
  aspect-ratio: 16 / 10; border-radius: var(--radius); border: 2px solid var(--ink); overflow: hidden; position: relative;
  background: var(--tone, var(--ink)); color: var(--fg, var(--paper)); display: flex; align-items: flex-end; padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work:nth-child(6n+1) .work-thumb, .work:nth-child(6n+5) .work-thumb { aspect-ratio: auto; height: 100%; min-height: 320px; }
.work:hover .work-thumb { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.work-thumb .big { font-family: var(--display); font-size: clamp(30px, 4vw, 60px); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; max-width: 12ch; position: relative; z-index: 1; }
.work-thumb::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--accent, var(--accent)); opacity: .9; transition: transform .6s var(--ease); }
.work:hover .work-thumb::before { transform: scale(1.15) translate(-6%, 6%); }
.work-meta { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px 0; font-size: 15px; }
.work-meta strong { font-weight: 700; }
.work-meta span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .work, .work:nth-child(n) { grid-column: 1 / -1; } .work:nth-child(n) .work-thumb { min-height: 0; aspect-ratio: 16 / 10; height: auto; } }

/* Testimonials ---------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { border: 2px solid var(--ink); border-radius: var(--radius); padding: 30px; background: var(--paper); display: flex; flex-direction: column; gap: 22px; }
.quote:nth-child(2) { background: var(--ink); color: var(--paper); transform: translateY(28px); }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--display); font-size: 80px; line-height: .6; color: var(--accent-deep); margin-bottom: 8px; }
.quote figcaption { margin-top: auto; font-size: 15px; }
.quote figcaption strong { display: block; }
.quote figcaption span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.quote:nth-child(2) figcaption span { color: var(--muted-on-dark); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } .quote:nth-child(2) { transform: none; } }

/* CTA ------------------------------------------------------------------- */
.cta { text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(48px, 9vw, 140px); margin-bottom: 24px; }
.cta .lede { margin: 0 auto 40px; }
.cta .btn-row { justify-content: center; }

/* Forms ----------------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; transition: box-shadow .2s, transform .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 4px 4px 0 var(--accent-deep); transform: translate(-2px, -2px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { margin: 0; cursor: pointer; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--body); font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 600; transition: background .2s; }
.chips input:checked + label { background: var(--ink); color: var(--accent); }
.chips input:focus-visible + label { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-done { display: none; padding: 28px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--accent); }
.form.is-sent { display: none; }
.form.is-sent + .form-done { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Page hero (inner pages) ---------------------------------------------- */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); border-bottom: 3px solid var(--ink); }
.page-hero h1 { font-size: clamp(52px, 10vw, 150px); }

/* Desktop: inner page heroes fit above the fold, like the homepage */
@media (min-width: 901px) {
  .page-hero { min-height: calc(100svh - 76px); display: flex; align-items: center; padding: clamp(20px, 4vh, 56px) 0; }
  .page-hero .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
  .page-hero .hero-copy { container-type: inline-size; }
  .page-hero .mascot { max-width: min(520px, calc(100svh - 76px - 10vh)); }
  .page-hero .eyebrow { margin-bottom: clamp(10px, 2vh, 24px); }
  .page-hero h1 { font-size: clamp(44px, min(7.2vw, 11.5vh, 11.8cqi), 106px); margin-bottom: clamp(14px, 2.5vh, 28px); }
  .page-hero .lede { font-size: clamp(17px, min(1.6vw, 2.4vh), 22px); margin-bottom: 0; }
}

/* Feature list (services page) ------------------------------------------ */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.feature-item { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.feature-item .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.feature-item h3 { font-size: 22px; margin-bottom: 8px; }
.feature-item p { font-size: 16px; color: var(--muted); margin: 0; }
.dark .feature-item { border-color: var(--line-on-dark); }
.dark .feature-item p { color: var(--muted-on-dark); }
@media (max-width: 800px) { .feature-list { grid-template-columns: 1fr; } }

.pricing-note { border: 2px dashed var(--ink); border-radius: var(--radius); padding: 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: 56px; }
.pricing-note p { margin: 0; max-width: 60ch; }

/* Timeline (about) ------------------------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--ink); }
.timeline li { padding: 0 0 40px 32px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); }
.timeline .yr { font-family: var(--display); font-size: 32px; line-height: 1; display: block; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--muted); max-width: 52ch; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { border-top: 3px solid var(--accent); padding-top: 22px; }
.value h3 { text-transform: uppercase; }
.value p { color: var(--muted-on-dark); font-size: 16px; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

/* Contact page ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact-ways { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-ways li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-ways span { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-ways a { font-family: var(--display); font-size: 22px; text-decoration: none; }
.contact-ways a:hover { color: var(--accent-deep); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 32px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-top h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-on-dark); margin-bottom: 18px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--accent); }
.footer-word { font-family: var(--display); font-size: clamp(56px, 14vw, 210px); line-height: .84; text-transform: uppercase; letter-spacing: -.04em; color: var(--accent); margin: 0 0 32px -.04em; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line-on-dark); padding-top: 24px; font-size: 14px; color: var(--muted-on-dark); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* Hero entrance: the mascot arrives ---------------------------------- */
.hero .eyebrow { animation: slide-in .5s var(--ease) .05s both; }
.hero h1 .line { transform-origin: 0 100%; animation: slam .55s cubic-bezier(.3, 1.4, .5, 1) both; }
.hero h1 .line:nth-child(1) { animation-delay: .15s; }
.hero h1 .line:nth-child(2) { animation-delay: .27s; }
.hero h1 .line:nth-child(3) { animation-delay: .39s; }
.hero h1 .line:nth-child(4) { animation-delay: .51s; }
.hero h1 .paper-hl { animation: hl-text .35s steps(6, end) .62s both; }
.hero h1 .paper-hl::before { animation: hl-grow .35s steps(6, end) .62s both; }
.hero .lede { animation: rise .6s var(--ease) .8s both; }
.hero .btn-row { animation: rise .6s var(--ease) .92s both; }
.hero-proof { animation: rise .6s var(--ease) 1.04s both; }

.mascot { cursor: pointer; }
.hero > .wrap { animation: shake .4s linear 1.07s both; }

.sticker--1 { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1) 1.5s both, float 6s ease-in-out 2s infinite; }
.sticker--2 { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1) 1.62s both, float 6s ease-in-out 2.12s infinite; }
.sticker--3 { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1) 1.74s both, float 6s ease-in-out 2.24s infinite; }

.stamp {
  position: absolute; z-index: 3; top: 0; right: -2%; rotate: 9deg;
  font-family: var(--display); font-size: clamp(15px, 1.4vw, 20px); line-height: .95; text-transform: uppercase; text-align: center;
  color: var(--pop); background: var(--paper); border: 3px solid var(--pop); border-radius: 10px; padding: 8px 12px;
  box-shadow: 0 0 0 3px var(--paper), 4px 4px 0 3px var(--ink);
  animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) 1.15s both;
}
@media (max-width: 900px) { .stamp { right: 0; } }

.shards { position: absolute; left: 50%; bottom: 10%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.shards i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--ink); opacity: 0; animation: shard .7s cubic-bezier(.1, .7, .3, 1) 1.07s both; }
.shards i:nth-child(even) { background: var(--accent-deep); width: 9px; height: 9px; }
.shards i:nth-child(3n) { background: var(--pop); }

.pulse { position: absolute; inset: 6%; border-radius: 50%; border: 3px solid var(--pop); opacity: 0; pointer-events: none; }
.mascot.is-thumping { animation: thump-now .5s ease-in-out; }
.mascot.is-thumping .pulse { animation: ring .7s ease-out; }

@keyframes slide-in { from { opacity: 0; translate: -24px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes slam {
  0% { opacity: 0; translate: 0 -70px; scale: 1 1.5; }
  55% { opacity: 1; translate: 0 6px; scale: 1.04 .84; }
  78% { translate: 0 -3px; scale: .99 1.04; }
  100% { opacity: 1; translate: 0 0; scale: 1 1; }
}
/* Highlight wipe: the orange box (a separate layer behind the word) grows from the left, then the word appears.
   Nothing is clipped or animated on the word's own background, which Safari renders unreliably. */
@keyframes hl-grow { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes hl-text { 0%, 70% { color: transparent; } 100% { color: var(--ink); } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes disc-in { from { scale: 0; } to { scale: 1; } }
@keyframes drop { from { translate: 0 -120vh; scale: .9 1.15; } to { translate: 0 0; scale: 1 1; } }
@keyframes land {
  0% { scale: 1.2 .78; }
  35% { scale: .94 1.08; }
  65% { scale: 1.03 .97; }
  100% { scale: 1 1; }
}
@keyframes shake {
  0%, 100% { translate: 0 0; }
  15% { translate: -7px 5px; }
  30% { translate: 6px -4px; }
  45% { translate: -4px 3px; }
  60% { translate: 3px -2px; }
  80% { translate: -1px 1px; }
}
@keyframes ring { 0% { opacity: 0; scale: 1; } 8% { opacity: .9; scale: 1.02; } 100% { opacity: 0; scale: 1.38; } }
@keyframes pop { 0% { opacity: 0; scale: .2; } 100% { opacity: 1; scale: 1; } }
@keyframes stamp {
  0% { opacity: 0; scale: 3; rotate: -14deg; }
  60% { opacity: 1; scale: .92; rotate: 11deg; }
  100% { opacity: 1; scale: 1; rotate: 9deg; }
}
@keyframes shard {
  0% { opacity: 0; translate: 0 0; rotate: 0deg; scale: 1; }
  6% { opacity: 1; }
  100% { opacity: 0; translate: var(--x) var(--y); rotate: var(--r); scale: .4; }
}
@keyframes thump {
  0%, 90%, 100% { scale: 1 1; }
  92% { scale: 1.05 .94; }
  94% { scale: .98 1.02; }
  96% { scale: 1.05 .94; }
  98% { scale: 1 1; }
}
@keyframes thump-now {
  0%, 100% { scale: 1; }
  25% { scale: 1.06 .94; }
  50% { scale: .98 1.02; }
  75% { scale: 1.04 .96; }
}

/* Inner page heroes: same arrival, own stamp ----------------------------- */
.page-hero .eyebrow { animation: slide-in .5s var(--ease) .05s both; }
.page-hero h1 .line { display: block; transform-origin: 0 100%; animation: slam .55s cubic-bezier(.3, 1.4, .5, 1) both; }
.page-hero h1 .line:nth-child(1) { animation-delay: .12s; }
.page-hero h1 .line:nth-child(2) { animation-delay: .24s; }
.page-hero h1 .line:nth-child(3) { animation-delay: .36s; }
.page-hero h1 .line:nth-child(4) { animation-delay: .48s; }
.page-hero h1 .paper-hl { animation: hl-text .35s steps(6, end) .7s both; }
.page-hero h1 .paper-hl::before { animation: hl-grow .35s steps(6, end) .7s both; }
.page-hero .lede { animation: rise .6s var(--ease) .72s both; }
.page-hero > .wrap { animation: shake .4s linear 1.07s both; }

/* ==========================================================================
   Little & Mighty theme: softer, rounder, cobalt + tangerine
   ========================================================================== */

/* Type */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.045em; line-height: .9; text-transform: none; }
h1 { font-size: clamp(56px, 10vw, 156px); }
h2 { font-size: clamp(42px, 6.6vw, 96px); }
h3 { letter-spacing: -.03em; line-height: 1; }
.hl { color: var(--accent); }
.paper-hl, .bold .hl { display: inline-block; position: relative; isolation: isolate; background: none; color: var(--ink); padding: 0 .2em .04em .14em; border-radius: .14em; rotate: -2deg; }
.paper-hl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit; transform-origin: 0 50%; }
.bold .hl { background: var(--accent); }
.strike::after { background: var(--accent); }
.eyebrow::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 107, 26, .22); }

/* Buttons */
.btn {
  font-family: var(--body); font-weight: 700; font-size: 17px; text-transform: none; letter-spacing: 0;
  border: 0; box-shadow: none; padding: 18px 28px;
  transition: transform .25s var(--bounce), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 28px -12px rgba(255, 107, 26, .8); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn--ghost { border: 2px solid currentColor; }
.btn--ghost:hover { box-shadow: none; background: rgba(11, 122, 110, .08); }
.dark .btn, .dark .btn:hover { border: 0; }
.dark .btn { box-shadow: none; }
.dark .btn:hover { box-shadow: 0 14px 28px -12px rgba(255, 107, 26, .8); }
.dark .btn--ghost { border: 2px solid var(--paper); }
.dark .btn--ghost:hover { box-shadow: none; background: rgba(243, 246, 242, .08); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); box-shadow: none; }
.nav .btn { padding: 12px 20px; font-size: 15px; }

/* Header */
.brand { font-family: var(--display); font-weight: 800; text-transform: none; letter-spacing: -.04em; }
.brand-word { display: flex; flex-direction: column; font-size: 25px; line-height: .8; }
.brand-word small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--brand); margin-left: 1px; }
.brand img { width: 46px; height: 46px; }
.brand:hover img { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.nav a:not(.btn)::after { background: var(--accent); border-radius: 3px; }
.menu-toggle { font-family: var(--mono); }
@media (max-width: 900px) {
  .nav a:not(.btn) { font-family: var(--display); font-weight: 800; text-transform: none; letter-spacing: -.03em; }
  .nav .btn { box-shadow: none; }
}

/* Coloured sections */
.bold { background: var(--brand); color: var(--paper); }
.bold .eyebrow::before { background: var(--pop); box-shadow: 0 0 0 4px rgba(200, 245, 66, .25); }
.bold .muted { color: rgba(243, 246, 242, .75); }
.bold .step .week { background: var(--paper); color: var(--brand); }
.bold .step .bar { background: rgba(243, 246, 242, .22); }
.step .bar::after { background: var(--pop); }
.bold .step .ai { color: rgba(243, 246, 242, .75); border-color: rgba(243, 246, 242, .25); }
.bold .step .ai b { color: var(--pop); }
.bold .stats { border-top-color: var(--paper); }
.bold .stat { border-color: rgba(243, 246, 242, .25); }
.bold .stat .num small { color: var(--pop); }
.bold .btn--ink { --bg: var(--paper); --fg: var(--brand); }
.step h3 { text-transform: none; }
.stat .num { font-weight: 800; letter-spacing: -.05em; }
.stat .num small { color: var(--brand); }

/* Marquee */
.marquee { border-block: 0; }
.marquee-track span { font-weight: 800; text-transform: none; letter-spacing: -.03em; }
.marquee-track span::after { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); transform: none; }
.marquee--bold { background: var(--pop); color: var(--ink); }
.marquee--bold .marquee-track span::after { background: var(--brand); }

/* Logos, versus, cards */
.logos { border: 0; background: transparent; gap: 12px; }
.logos div { background: var(--white); border-radius: 20px; }
.versus { border: 0; background: var(--ink-2); }
.versus-row.head > div { font-weight: 800; text-transform: none; letter-spacing: -.03em; font-size: 24px; }
.versus-row .them::before { color: var(--accent); }
.versus-row .us { background: rgba(11, 122, 110, .22); border-left: 2px solid var(--brand-2); }
.versus-row .us::before { color: var(--pop); }
.versus-row.head .us { background: var(--brand); color: var(--paper); }

.card { border: 0; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(11, 30, 28, .35); transition: transform .3s var(--bounce), box-shadow .3s var(--ease); }
.card:hover { background: var(--white); transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 50px -28px rgba(11, 122, 110, .45); }
.card .icon { background: var(--brand-tint); color: var(--brand); border: 0; border-radius: 50%; }
.card--feature, .card--feature:hover { background: var(--brand); color: var(--paper); }
.card--feature:hover { box-shadow: 0 30px 50px -24px rgba(11, 122, 110, .7); }
.card--feature p, .card--feature .num { color: rgba(243, 246, 242, .8); }
.card--feature .icon { background: var(--accent); color: var(--ink); }

/* Work, quotes, duo */
.work-thumb { border: 0; }
.work:hover .work-thumb { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(11, 30, 28, .5); }
.work-thumb .big { font-weight: 800; text-transform: none; letter-spacing: -.04em; }
.quote { border: 0; background: var(--white); border-radius: var(--radius); }
.quote:nth-child(2) { background: var(--brand); color: var(--paper); }
.quote:nth-child(2) figcaption span { color: rgba(243, 246, 242, .75); }
.quote blockquote::before { color: var(--accent); font-weight: 800; }
.duo > div:last-child { background: var(--accent); border-color: var(--accent); }

/* Inner page bits */
.page-hero { border-bottom: 1px solid var(--line); }
.feature-item .tick { background: var(--brand-tint); color: var(--brand); border: 0; }
.dark .feature-item .tick { background: var(--brand); color: var(--paper); }
.pricing-note { border: 2px dashed var(--brand-2); }
.timeline { border-left: 4px solid var(--brand-tint); }
.timeline li::before { background: var(--accent); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--accent); }
.timeline .yr { font-weight: 800; letter-spacing: -.04em; }
.value { border-top-color: var(--accent); }
.value h3 { text-transform: none; }
.contact-ways a { font-weight: 800; letter-spacing: -.03em; }
.contact-ways a:hover { color: var(--brand); }
.cta-mark { width: clamp(110px, 13vw, 170px); margin: 0 auto 28px; animation: hop 3.2s ease-in-out infinite; }

/* Forms */
.field input, .field textarea, .field select { border: 2px solid var(--line); background: var(--white); border-radius: 16px; }
.field input:focus, .field textarea:focus, .field select:focus { transform: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 122, 110, .22); }
.chips label { border: 2px solid var(--line); background: var(--white); }
.chips input:checked + label { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.form-done { border: 0; background: var(--pop); }

/* Footer: tiny "little", huge "MIGHTY" */
.footer-word { font-weight: 800; text-transform: none; letter-spacing: -.06em; color: var(--accent); line-height: .78; }
.footer-word small { display: block; font-size: .3em; letter-spacing: -.03em; color: var(--brand-2); margin: 0 0 .06em .06em; }
.footer-top a:hover { color: var(--accent); }

/* Stickers + stamp */
.sticker { border: 0; border-radius: 18px; background: var(--white); box-shadow: 0 16px 30px -18px rgba(11, 30, 28, .55); }
.sticker b { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.sticker--2 { background: var(--ink); color: var(--paper); }
.sticker--2 b { color: var(--accent); }
.sticker--3 { background: var(--pop); color: var(--ink); }
.sticker--3 b { color: var(--ink); }
.stamp {
  font-family: var(--display); font-weight: 800; text-transform: none; letter-spacing: -.02em;
  color: var(--brand); border-color: var(--brand); background: var(--paper); border-radius: 14px;
  box-shadow: 0 0 0 3px var(--paper), 0 14px 26px -14px rgba(11, 122, 110, .6);
}
.page-hero { overflow-x: clip; }
.page-hero .stamp { top: 4%; right: 2%; }

/* Four services: the last card spans the gap beside the feature card */
@media (min-width: 1001px) { .cards .card:nth-child(4):last-child { grid-column: span 2; min-height: 0; } }

/* Work grid: one wide lead tile, then rows of three (5 or 8 tiles fill cleanly) */
.work-grid .work, .work-grid .work:nth-child(n) { grid-column: span 4; }
.work-grid .work:nth-child(n) .work-thumb { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
.work-grid .work:first-child { grid-column: span 8; }
.work-grid .work:first-child { display: flex; flex-direction: column; }
.work-grid .work:first-child .work-thumb { aspect-ratio: auto; height: auto; flex: 1; min-height: 320px; }
@media (max-width: 800px) { .work-grid .work:nth-child(n) { grid-column: 1 / -1; } .work-grid .work:first-child .work-thumb { aspect-ratio: 16 / 10; height: auto; min-height: 0; } }

/* Invite tile: room for the first Bath & Bristol clients */
.logo-word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--muted); text-align: center; }
.work--invite .work-thumb { outline: 3px dashed rgba(11, 30, 28, .35); outline-offset: -12px; }
.work--invite .work-meta span { color: var(--brand); font-weight: 700; }

/* Hero location: Bath & Bristol up front */
.eyebrow--place { gap: 14px; flex-wrap: wrap; }
.eyebrow--place::before { content: none; }
.place-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--brand); color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-transform: none;
  box-shadow: 0 10px 24px -14px rgba(11, 122, 110, .9);
}
.place-pin { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.place-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2.4s ease-out 1.6s infinite; }
@keyframes ping { 0% { opacity: .9; scale: 1; } 70%, 100% { opacity: 0; scale: 1.9; } }
.place-mark { background: linear-gradient(transparent 58%, rgba(255, 107, 26, .45) 58%); color: var(--ink); font-weight: 700; padding: 0 .08em; }

/* Stage: the mascot and its giant shadow --------------------------- */
.stage { aspect-ratio: 400 / 440; }
.stage svg.art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform .6s var(--ease); }
.stage .shadow * { fill: currentColor !important; stroke: currentColor !important; }
.stage .shadow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .65s var(--bounce) 1s both, breathe 6s ease-in-out 2.6s infinite; }
.stage .littl { transform-box: fill-box; transform-origin: 50% 100%; animation: littl-in .6s var(--bounce) .45s both, hop 4.5s ease-in-out 3s infinite; }
.stage .eyes { transition: transform .25s var(--ease); }
.stage .shards { bottom: 12%; }
.stage .shards i { animation-delay: 1.32s; }
.stage .stamp { animation-delay: 1.45s; }
.hero > .wrap, .page-hero > .wrap { animation-delay: 1.32s; }
@media (min-width: 901px) {
  /* Two wide headline lines that fill the text column, not four thin ones */
  .hero .wrap, .page-hero .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero .wrap > div:first-child { container-type: inline-size; }
  .hero h1, .page-hero h1 { font-size: clamp(48px, min(15.8cqi, 13vh), 150px); }
  .hero h1 .line, .page-hero h1 .line { white-space: nowrap; }
  .hero .stage, .page-hero .stage { max-width: min(500px, calc((100svh - 76px - 10vh) / 1.1)); }
}
@media (max-width: 900px) {
  .stage { max-width: 320px; margin: 24px auto 0; }
}

.stage .prop, .stage .flag, .stage .wave, .stage .twinkle { transform-box: fill-box; transform-origin: center; }
.stage .prop-press { transform-origin: 27% 100%; animation: press 1.8s ease-in-out 2.2s infinite; }
.twinkle { animation: twinkle 1.8s ease-in-out 2s infinite; }
.twinkle:nth-child(2) { animation-delay: 2.6s; }
.twinkle:nth-child(3) { animation-delay: 3.1s; }
.stage .flag { transform-origin: 0 50%; animation: flag 2.4s ease-in-out 2s infinite; }
.wave { opacity: 0; transform-origin: 0 50% !important; animation: wave 1.5s ease-out 2s infinite; }
.wave:nth-child(4) { animation-delay: 2.2s; }
.wave:nth-child(5) { animation-delay: 2.4s; }

@keyframes littl-in { 0% { opacity: 0; translate: 0 80px; scale: .5; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes grow { 0% { opacity: 0; scale: .34; } 40% { opacity: 1; } 100% { opacity: 1; scale: 1; } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.015 1.03; } }
@keyframes hop {
  0%, 78%, 100% { translate: 0 0; scale: 1; }
  84% { translate: 0 -18px; scale: .96 1.05; }
  90% { translate: 0 0; scale: 1.08 .92; }
  95% { scale: .98 1.02; }
}
@keyframes press { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }
@keyframes twinkle { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: .55; rotate: 45deg; } }
@keyframes flag { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-7deg) scaleX(.94); } }
@keyframes wave { 0% { opacity: 0; scale: .7; } 30% { opacity: 1; } 100% { opacity: 0; scale: 1.15; } }


/* Reveal ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* Background device: a faint outline of the mascot's bolt ------------------ */
.site-footer { position: relative; isolation: isolate; overflow: hidden; }
.site-footer::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 62 / 82;
  background: url("../img/bolt-line-light.svg?v=2") no-repeat center / contain;
}
.site-footer::after { opacity: .16; width: min(46vw, 520px); right: -4%; top: -8%; }

/* Home stage: keep the stickers on the shadow, clear of the mascot */
@media (min-width: 1200px) { .stage--home .sticker--3 { left: -10%; } }
@media (max-width: 1199px) {
  .stage--home .sticker--1 { top: 2%; left: -2%; right: auto; bottom: auto; }
  .stage--home .sticker--2 { top: 20%; right: -2%; left: auto; bottom: auto; }
  .stage--home .sticker--3 { top: 37%; left: -2%; right: auto; bottom: auto; }
}
@media (max-width: 900px) {
  .stage--home .sticker { font-size: 12px; padding: 10px 12px; }
  .stage--home .sticker b { font-size: 20px; }
  .stage--home .sticker--2 { top: 19.5%; right: -6%; }
  .stage--home .sticker--3 { top: 40%; left: -5%; }
}
@media (max-width: 420px) {
  .stage--home .sticker--2 { display: none; }
  .stage--home .sticker--3 { top: 28%; }
}

/* The giant shadow hops in step with the mascot (same timing, scaled to its size) */
.stage .shadow { animation: grow .65s var(--bounce) 1s both, hop-shadow 4.5s ease-in-out 3s infinite; }
@keyframes hop-shadow {
  0%, 78%, 100% { translate: 0 0; scale: 1; }
  84% { translate: 0 -40px; scale: .97 1.04; }
  90% { translate: 0 0; scale: 1.05 .95; }
  95% { scale: .99 1.01; }
}

/* Work: the podium stays put while the mascot and its shadow hop */
.stage .shadow-base { animation: grow .65s var(--bounce) 1s both; }
.stage .podium { transform-box: fill-box; transform-origin: 50% 100%; animation: littl-in .6s var(--bounce) .45s both; }

/* Company details */
.footer-address { font-style: normal; margin-top: 18px; color: var(--muted-on-dark); line-height: 1.5; }
.contact-ways address { font-style: normal; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.contact-ways a, .footer-top a { overflow-wrap: anywhere; }

/* Legal page */
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 7vw, 88px); margin: 16px 0 20px; }
.legal h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 12px; scroll-margin-top: 100px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--brand); }
.legal-date { margin-top: 48px; font-size: 14px !important; }

/* Client tiles that open the live site */
.work[target="_blank"] .work-meta strong::after { content: " ↗"; color: var(--brand); }

/* Contact form states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 14px 18px; border-radius: 14px; background: #FFE3D6; color: var(--ink); font-size: 15px; }
.form-error a { color: var(--accent-deep); font-weight: 700; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form-note a { color: inherit; }

/* Section links land below the sticky header */
[id] { scroll-margin-top: 96px; }
