/* ---------- Tokens ---------- */
:root {
  --paper: #FFFFFF;
  --ink: #141010;
  --coral: #E0605F;
  --cocoa: #2E1B1C;
  --snooze: #C9DDF0;
  --muted: #5A4C4C;

  --font-display: "Darumadrop One", "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 5vw, 3.5rem);
  --step-4: clamp(3rem, 8vw, 5.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --radius-lg: 28px;
  --radius-sm: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }

a { color: inherit; }

::selection { background: var(--coral); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  line-height: .95;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem;
  border: 2.5px solid var(--ink); border-radius: 999px;
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--coral); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--coral); }
.btn--ink:active { box-shadow: 1px 1px 0 var(--coral); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--coral { background: var(--coral); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--max); margin: 0 auto;
  padding: 1.25rem var(--gutter);
}
.site-nav {
  display: flex; align-items: center; gap: 1.5rem;
  margin: 0 0 0 auto; padding: 0; list-style: none;
}
.site-header nav { margin-left: auto; }
.site-nav a { font-weight: 600; text-decoration: none; }
.site-nav a:not(.site-nav__cta):hover { text-decoration: underline wavy var(--coral) 2px; text-underline-offset: 6px; }
.site-nav__cta {
  display: inline-block; padding: .55rem 1.1rem;
  border: 2.5px solid var(--ink); border-radius: 999px;
}
.site-nav__cta:hover { background: var(--coral); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: end;
  gap: 2rem;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem) var(--gutter) 0;
}
.hero__copy { padding-bottom: clamp(2rem, 6vw, 5rem); }
/* ---------- The sleeping logo ---------- */
.hero__logo {
  grid-column: 1 / -1;
  position: relative;
  justify-self: start;
  margin: clamp(1rem, 4vw, 2.5rem) 0 0;
}
.logo-sleep {
  display: block; padding: 0;
  background: none; border: 0; cursor: pointer;
  transform-origin: 30% 100%;
  animation: breathe 4.8s ease-in-out infinite;
}

/* Handwritten wordmark with a pencil scribble trailing off underneath */
.doodle {
  display: inline-block;
  font-family: "Kalam", cursive;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  color: var(--cocoa);
  transform: rotate(-4deg);
}
.doodle__dot {
  display: inline-block;
  width: .16em; height: .16em;
  margin-left: .05em;
  border-radius: 50%;
  background: var(--coral);
}
.doodle__scribble {
  display: block;
  width: 100%;
  height: clamp(2.25rem, 5.5vw, 4rem);
  margin-top: -.25rem;
  overflow: visible;
}
.doodle__scribble path {
  fill: none;
  stroke: #8A8282;
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: scribble 1.8s .3s cubic-bezier(.4, 0, .2, 1) backwards;
}
/* Drawn once on load, right to left, like he started and lost interest */
@keyframes scribble { from { stroke-dashoffset: 1; } }

/* Woken up: the full stop bounces */
.hero__logo.is-awake .doodle__dot { animation: dot-bounce .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes dot-bounce { 40% { transform: translateY(-.35em) scale(1.2); } }

/* Slow in-and-out, like someone napping */
@keyframes breathe {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  45% { transform: scale(1.012, 1.045) rotate(-0.6deg); }
}

/* Zzz drifting up from the end of the word */
.zzz {
  position: absolute;
  right: -1%; top: 6%;   /* drifting off the end of the word */
  width: 0; height: 0;
  pointer-events: none;
}
.zzz span {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1;
  font-family: "Kalam", cursive;
  font-weight: 700;
  color: var(--coral);   /* matches the full stop */
  text-shadow: none;
  opacity: 0;
  animation: drift 4.2s ease-out infinite;
}
.zzz span:nth-child(2) { animation-delay: 1.4s; font-size: clamp(1.9rem, 4.5vw, 3.5rem); }
.zzz span:nth-child(3) { animation-delay: 2.8s; font-size: clamp(2.3rem, 5.5vw, 4.25rem); }

@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0) scale(.6) rotate(-10deg); }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(clamp(2rem, 5vw, 4.5rem), calc(-1 * clamp(4.5rem, 10vw, 8rem))) scale(1.1) rotate(12deg); }
}

/* Woken up: jolt, an exclamation mark, and the z's stop */
.wake-mark {
  position: absolute; right: -6%; top: -35%;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--coral);
  text-shadow: -4px 4px 0 var(--ink);
  opacity: 0; transform: scale(.3);
  pointer-events: none;
}
.hero__logo.is-awake .logo-sleep { animation: startle .6s cubic-bezier(.3, 1.8, .5, 1); }
.hero__logo.is-awake .zzz { visibility: hidden; }
.hero__logo.is-awake .wake-mark { animation: pop-in .35s ease-out forwards; }

@keyframes startle {
  0% { transform: none; }
  20% { transform: translateY(-14px) rotate(-3deg) scale(1.04); }
  40% { transform: translateX(-10px) rotate(2deg); }
  60% { transform: translateX(8px) rotate(-1.5deg); }
  80% { transform: translateX(-4px); }
  100% { transform: none; }
}
@keyframes pop-in { to { opacity: 1; transform: scale(1) rotate(8deg); } }
/* The pitch is the loudest thing in the hero */
.hero__lede {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: #3B3030;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__art {
  position: relative; align-self: end;
  /* The work section's top border is the horizon: hide the sun below it */
  clip-path: inset(-60% -60% 0 -60%);
}

/* The sun: Sunny, setting behind the lazy one */
.sun {
  position: absolute;
  right: 4%; top: -14%;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--snooze);   /* pale blue so the coral jacket stands out */
  z-index: -1;
}
.sun::after {   /* horizon stripes cutting through the sun */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(to bottom,
    transparent 0 58%, var(--paper) 58% 61%, transparent 61% 67%,
    var(--paper) 67% 71%, transparent 71% 78%, var(--paper) 78% 83%, transparent 83% 100%);
}

.poke {
  display: block; width: 100%; padding: 0;
  background: none; border: 0; cursor: pointer;
  transform-origin: 75% 60%;
}
.poke img {
  width: 100%;
  /* Soften the cropped edge of the desk */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%);
}
.poke.is-poked { animation: jolt .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jolt {
  0% { transform: rotate(0); }
  30% { transform: rotate(-2.5deg) translateY(-6px); }
  60% { transform: rotate(1.2deg); }
  100% { transform: rotate(0); }
}

.bubble {
  position: absolute;
  right: 30%; top: -4%;
  max-width: 16rem;
  padding: .8rem 1.1rem;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 22px 22px 22px 4px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 600;
  line-height: 1.3;
}
.bubble::after {
  content: ""; position: absolute; left: 18px; bottom: -14px;
  width: 18px; height: 18px; background: var(--paper);
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: skewY(-35deg) rotate(20deg);
}
.bubble.is-new { animation: pop .3s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.poke-hint {
  position: absolute; left: 2%; bottom: calc(100% + .6rem);   /* just above the raised sneakers */
  margin: 0; white-space: nowrap;
  font-family: var(--font-display); font-size: var(--step-1);
  transform: rotate(-8deg);
  color: var(--muted);
}
/* Curly hand-drawn arrow, same style as the work-section callouts */
.poke-hint__arrow {
  display: inline-block;
  width: 2.1em; height: 1.9em;
  margin-left: .2em;
  vertical-align: top;
  transform: translateY(.45em) rotate(8deg);
  fill: none; stroke: var(--ink); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}

/* ---------- Brown hero (homepage) ----------
   A full-width cocoa band behind the header and hero, ending in "z" teeth that cut
   through the band, the illustration and the blue circle alike. */
html, body { overflow-x: clip; }
.home .hero::before {
  content: ""; position: absolute; z-index: -2;
  top: -12rem; bottom: -22px; left: calc(50% - 50vw); width: 100vw;
  background: var(--cocoa);
}
/* Illustration and blue circle drop 22px into the teeth zone */
.home .hero__art { margin-bottom: -22px; }
/* White gaps between the teeth, laid over everything so the desk, drawers and circle run into the zigzag */
.home .hero::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  bottom: -22px; left: calc(50% - 50vw); width: 100vw; height: 22px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22' shape-rendering='crispEdges'%3E%3Cpath d='M0 -1 L45 -1 L45 0 L0 22 Z'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22' shape-rendering='crispEdges'%3E%3Cpath d='M0 -1 L45 -1 L45 0 L0 22 Z'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat-x;
  transform: scale(-1, -1);
}
.home .work { border-top: 0; }
/* The circle's stripes are real cut-outs, so the brown shows through cleanly */
.home .sun::after { display: none; }
.home .sun {
  -webkit-mask: linear-gradient(to bottom, #000 0 58%, transparent 58% 61%, #000 61% 67%, transparent 67% 71%, #000 71% 78%, transparent 78% 83%, #000 83% 100%);
          mask: linear-gradient(to bottom, #000 0 58%, transparent 58% 61%, #000 61% 67%, transparent 67% 71%, #000 71% 78%, transparent 78% 83%, #000 83% 100%);
}

/* Text and buttons recoloured for the brown */
.home .site-header .site-nav a { color: var(--paper); }
.home .site-header .site-nav__cta { border-color: var(--paper); }
.home .site-header .site-nav__cta:hover { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.home .site-header .site-nav a:not(.site-nav__cta):hover { text-decoration-color: var(--coral); }
.home .site-header :focus-visible, .home .hero :focus-visible { outline-color: var(--snooze); }
.home .doodle { color: #F6F0E6; }
.home .doodle__scribble path { stroke: #B9A9A6; }
.home .hero .wake-mark { text-shadow: -4px 4px 0 #000; }
.home .hero__lede { color: #FFFFFF; }
.home .hero__sub { color: #E4D8D6; }
.home .hero .btn--ink { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--coral); }
.home .hero .btn--ink:hover { box-shadow: 6px 6px 0 var(--coral); }
.home .hero .btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 4px 4px 0 #000; }
.home .hero .btn--ghost:hover { box-shadow: 6px 6px 0 #000; }
.home .poke-hint { color: #E4D8D6; }
.home .poke-hint__arrow { stroke: #E4D8D6; }

/* ---------- Work ---------- */
.work {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  border-top: 2.5px solid var(--ink);
}
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head p { margin-top: 1rem; font-size: var(--step-1); color: var(--muted); max-width: 46ch; }

/* Screenshot and copy side by side */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature__copy { display: grid; gap: 1.75rem; }
/* Fitzsimmons sits below the featured band with its video on the right */
@media (min-width: 901px) {
  .feature--flip .feature__media { order: 2; }
}

/* Phone frame: outline, coral offset shadow and a slight tilt */
.phone {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 40px 12px 14px;   /* deeper top bezel holds the notch, clear of the screen */
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 46px;
  box-shadow: 10px 10px 0 var(--coral);
  transform: rotate(-1deg);
}
.phone__notch {
  position: absolute; z-index: 1;
  top: 13px; left: 50%;
  width: 78px; height: 16px; margin-left: -39px;
  border-radius: 999px;
  background: var(--ink);
}
.phone__screen {
  display: block; width: 100%; height: auto;
  border-radius: 10px 10px 32px 32px;
  background: #0d0d0d;
}
.phone__video { aspect-ratio: 434 / 992; object-fit: cover; }
.feature__copy h3 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; }
.feature__copy p { margin-top: 1rem; max-width: 52ch; }
.feature__copy .btn { margin-top: 1.75rem; }

.facts { margin: 0; display: grid; gap: .9rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-top: .9rem; border-top: 1.5px dashed var(--ink); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* Browser window, sitting in a monitor. The monitor is pulled out by its bezel width
   so the screen stays the same size it was before the monitor went round it. */
.feature--flip { --site: var(--snooze); --fz-blue: #7FA8D1; }
.feature--flip .monitor { transform: rotate(-1deg); margin: 0 -16.5px; }
.browser {
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  margin: 0;
}
.feature--flip .btn--ink { box-shadow: 4px 4px 0 var(--snooze); }
.feature--flip .btn--ink:hover { box-shadow: 6px 6px 0 var(--snooze); }
.feature--flip .btn--ink:active { box-shadow: 1px 1px 0 var(--snooze); }
@media (max-width: 900px) { .feature--flip .monitor { margin: 0 -12.5px; } }

/* Handwritten callouts above and below the video, synced to what it's showing */
.callouts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: .5rem .6rem;
}
.callouts--top { margin-bottom: .35rem; }
.callouts--bottom { margin-top: .9rem; }
.callout {
  display: flex; flex-direction: column; align-items: center;
  transform: rotate(var(--tilt, -1deg));
}
.callouts--bottom .callout { flex-direction: column-reverse; }
.callout span {
  padding: .25em .7em;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Kalam", cursive;
  font-weight: 700;
  font-size: clamp(.75rem, 1.15vw, 1.05rem);
  line-height: 1.2;
  white-space: nowrap;
  transition: background .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.callout__arrow {
  width: 26px; height: 30px; margin-top: .15rem;
  fill: none; stroke: var(--ink); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .25s ease;
}
.callouts--bottom .callout__arrow { margin: 0 0 .15rem; transform: rotate(180deg); }
/* The one the video is currently showing */
.callout.is-active span { background: var(--snooze); box-shadow: 3px 3px 0 var(--ink); transform: scale(1.1); }
.callout.is-active .callout__arrow { stroke: var(--fz-blue); }

/* Screen recording, swapped for the annotated screenshot when motion is reduced */
.shot-video { display: block; width: 100%; height: auto; background: #1F2A33; }
.shot--still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .shot-video { display: none; }
  .shot--still { display: block; }
  .callouts { display: none; }   /* the still screenshot has its own notes */
}

/* Screenshot with handwritten markup notes */
.shot { position: relative; container-type: inline-size; }
.shot img { width: 100%; }
.shot__notes { position: absolute; inset: 0; pointer-events: none; }
.shot__notes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shot__notes svg > path {
  fill: none; stroke: var(--fz-blue); stroke-width: 3;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.markup {
  position: absolute;
  padding: .3em .7em;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--snooze);
  font-family: "Kalam", cursive;
  font-weight: 700;
  font-size: clamp(.6rem, 2.6cqi, 1rem);   /* scales with the screenshot */
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(var(--tilt, 0deg));
}
.browser__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem 1rem;
  border-bottom: 2.5px solid var(--ink);
}
.browser__bar span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.browser__bar em {
  margin-left: .75rem; font-style: normal; font-size: var(--step--1);
  padding: .15rem .8rem; border-radius: 999px; background: #F1EEEE; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* CSS mock-ups standing in for screenshots */
.mock { position: relative; overflow: hidden; }
.mock strong { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.02em; }

.mock--build { aspect-ratio: 16 / 10; background: #1F2A33; color: #fff; padding: 5%; display: grid; grid-template-rows: auto 1fr auto; gap: 6%; }
.mock__nav { display: flex; align-items: center; gap: 4%; }
.mock__nav i { width: 18%; height: 10px; background: #F2B630; border-radius: 3px; }
.mock__nav b { width: 9%; height: 6px; background: #8DA0AE; border-radius: 3px; }
.mock__nav b:first-of-type { margin-left: auto; }
.mock__hero { display: flex; align-items: center; justify-content: space-between; gap: 6%; }
.mock__hero strong { font-size: clamp(1rem, 3vw, 2.2rem); line-height: 1.05; }
.mock__hero i { flex: 0 0 38%; aspect-ratio: 4 / 3; border-radius: 8px;
  background: repeating-linear-gradient(-45deg, #F2B630 0 14px, #1F2A33 14px 28px); }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mock__grid span { aspect-ratio: 3 / 2; border-radius: 6px; background: #3A4A57; }

/* Monitor frame: same build as the phone (outline, paper bezel, solid offset shadow, tilt).
   The shadow is box-shadows on each part rather than a filter, so nothing flickers on phones
   while the Bonnie thistle sways. --site sets the shadow colour. */
.monitor { display: block; margin: 0; color: inherit; transform: rotate(-1.25deg); transition: transform .2s ease; }
.monitor__body {
  position: relative;
  padding: 22px 14px 34px;          /* deeper chin, like a real monitor */
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  box-shadow: 10px 10px 0 var(--site);
}
.monitor__body::before {            /* webcam */
  content: ""; position: absolute; top: 8px; left: 50%;
  width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ink);
}
.monitor__body::after {             /* power light in the chin */
  content: ""; position: absolute; bottom: 12px; left: 50%;
  width: 34px; height: 6px; margin-left: -17px; border-radius: 999px; background: var(--ink);
}
.monitor__screen { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #0d0d0d; }
.monitor__neck {
  position: relative; z-index: -1;  /* tucks under the body's outline */
  width: 16%; height: clamp(18px, 3vw, 34px); margin: -2.5px auto 0;
  background: var(--paper); border: 2.5px solid var(--ink); border-top: 0; border-bottom: 0;
  box-shadow: 10px 10px 0 var(--site);
}
.monitor__base {
  position: relative;
  width: 40%; height: 14px; margin: 0 auto;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 10px 10px 6px 6px;
  box-shadow: 10px 10px 0 var(--site);
}

/* ---------- Featured band ----------
   Full-width light blue band with "z" teeth top and bottom, two smaller projects side by side */
.showcase {
  --band: var(--snooze);
  position: relative;
  width: 100vw; margin: clamp(5rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 8rem) calc(50% - 50vw);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--band); color: #3B2E2E;
}
.showcase::before, .showcase::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background: var(--band);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 22 L44 0 L44 22 Z'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 22 L44 0 L44 22 Z'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat-x;
}
.showcase::before { bottom: calc(100% - 1px); }
.showcase::after  { top: calc(100% - 1px); transform: scale(-1, -1); }
/* A little wider than the rest of the page so the two stills can be bigger */
.showcase__inner { max-width: calc(var(--max) + 8rem - 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.showcase__pair {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start;
}
.showcase__row { display: grid; gap: clamp(2rem, 4vw, 2.75rem); align-content: start; }
.showcase__row--bonnie { --site: #5F8CBF; }       /* deeper blue so it shows on the light blue band */
.showcase__row--pool   { --site: var(--coral); }
/* The stills themselves: outline, rounded corners and an offset shadow in each site's colour */
/* Kept straight: a rotated image gets resampled and looks soft until it straightens on hover */
.showcase__shot { display: block; transition: transform .2s ease; }
.showcase__row:hover .showcase__shot { transform: translateY(-4px); }
.showcase__img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 2.5px solid var(--ink); border-radius: 18px;
  box-shadow: 10px 10px 0 var(--site);
}
.showcase .bonnie-logo { background: #fff; }
.showcase__copy h3 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.showcase__copy h3 a { color: inherit; text-decoration: none; }
/* On hover the logo squiggle draws itself in under the title (only "Swimming Pool" for the pool, never across two lines) */
.squiggle-under { position: relative; display: inline-block; white-space: nowrap; }
.squiggle-under::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.42em; height: .42em;
  background: url("../Images/squiggle.svg") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .5s cubic-bezier(.4, 0, .2, 1);
}
.showcase__row:hover .squiggle-under::after, .showcase__copy h3 a:focus-visible .squiggle-under::after { clip-path: inset(0 0 0 0); }
.showcase__copy p { margin-top: clamp(1.6rem, 2.6vw, 2.1rem); max-width: 52ch; }   /* room for the squiggle */
.showcase__copy .btn {
  margin-top: 1.75rem;
  background: var(--ink); color: var(--paper);
  box-shadow: 4px 4px 0 var(--site);
}
.showcase__copy .btn:hover { box-shadow: 6px 6px 0 var(--site); }
.showcase__copy .btn:active { box-shadow: 1px 1px 0 var(--site); }
/* The squiggle from under the logo, standing upright between the two */
.showcase__split { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.showcase__divider { display: block; overflow: visible; }
.showcase__divider path { fill: none; stroke: #7A6C6C; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.showcase__divider--down { width: clamp(2rem, 3.5vw, 3rem); height: 100%; min-height: 20rem; }
.showcase__divider--across { display: none; width: min(70%, 34rem); height: clamp(2.25rem, 5vw, 3.5rem); margin: 3.5rem auto; }
@media (max-width: 900px) {
  .showcase__pair { grid-template-columns: 1fr; gap: 0; }
  .showcase__divider--down { display: none; }
  .showcase__divider--across { display: block; }
  .showcase__img { border-radius: 14px; box-shadow: 7px 7px 0 var(--site); }
  .monitor__body { padding: 16px 10px 26px; border-radius: 20px; box-shadow: 7px 7px 0 var(--site); }
  .monitor__body::before { top: 5px; width: 6px; height: 6px; margin-left: -3px; }
  .monitor__body::after { bottom: 9px; width: 26px; height: 5px; margin-left: -13px; }
  .monitor__neck, .monitor__base { box-shadow: 7px 7px 0 var(--site); }
}
@media (prefers-reduced-motion: reduce) { .monitor { transition: none; } }

/* Bonnie Stays logo with a thistle that sways in the breeze */
.bonnie-logo { display: grid; place-items: center; background: #fff; overflow: hidden; }
/* Sized by width (= 74% of the 16:9 box's height) so Firefox centres it like Chrome */
.bonnie-logo__mark { position: relative; width: 43.57%; aspect-ratio: 965 / 922; margin: auto; }
.bonnie-logo__mark img { position: absolute; display: block; }
.bonnie-logo__base { inset: 0; width: 100%; height: 100%; }
.bonnie-logo__thistle {
  /* exactly where it sits in the original logo */
  left: 64.041%; top: 35.358%; width: 18.446%; height: 26.573%;
  mix-blend-mode: multiply;               /* its white background disappears */
  transform-origin: 39.6% 100%;           /* hinge at the base of the stem */
  animation: breeze 5s ease-in-out infinite;
}
/* Gentle, uneven gusts rather than a metronome swing */
@keyframes breeze {
  0%, 100% { transform: rotate(0deg); }
  18%      { transform: rotate(4deg); }
  32%      { transform: rotate(1.5deg); }
  45%      { transform: rotate(5deg); }
  62%      { transform: rotate(-1.5deg); }
  78%      { transform: rotate(2deg); }
}
/* ---------- Contact ---------- */
.contact {
  background: var(--cocoa);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 10vw, 8rem) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  position: relative;
}
/* Jagged "z" edges: a slope up then a sharp drop, repeated, like the strokes of a Z */
.contact::before,
.contact::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 22px;
  background: var(--cocoa);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 22 L44 0 L44 22 Z'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 22 L44 0 L44 22 Z'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat-x;
  pointer-events: none;
}
.contact::before { bottom: calc(100% - 1px); }                       /* teeth rise into the white above */
.contact::after  { top: calc(100% - 1px); transform: scale(-1, -1); } /* mirrored, hanging into the footer */
.contact__intro .display { color: var(--coral); text-shadow: -5px 5px 0 #000; }
.contact__intro p { margin-top: 1.5rem; font-size: var(--step-1); max-width: 30ch; }

.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 50px;
  padding: .75rem 1rem;
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); }
.field__error { color: #FFB3AE; font-size: var(--step--1); min-height: 0; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .45rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .6rem 1.1rem; min-height: 44px;
  border: 2.5px solid var(--paper); border-radius: 999px;
  font-weight: 600; transition: background .15s ease, color .15s ease;
}
.chip input:checked + span { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--snooze); outline-offset: 2px; }

.form .btn { justify-self: start; box-shadow: 4px 4px 0 #000; }
.form .btn:hover { box-shadow: 6px 6px 0 #000; }
.form .btn[disabled] { opacity: .5; cursor: progress; }
.form__status { font-weight: 600; }
.form__privacy { font-size: var(--step--1); color: #D9CCCC; }
.form__privacy a { color: var(--paper); text-decoration-color: var(--coral); text-underline-offset: 3px; }
.form__status.is-error { color: #FFB3AE; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) 2rem;
  font-size: var(--step--1); color: var(--muted);
}
.site-footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.site-footer__links { display: flex; align-items: center; gap: 1rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;   /* comfy tap target around the 22px icon */
  transition: transform .15s ease;
}
.social-link:hover { transform: translateY(-2px) rotate(-6deg); }
.social-link svg { display: block; }

/* ---------- Inner pages (privacy, 404) ---------- */
.page-logo {
  display: inline-block; white-space: nowrap;
  font-family: "Kalam", cursive; font-weight: 700;
  font-size: 1.9rem; line-height: 1;
  color: var(--cocoa); text-decoration: none;
  transform: rotate(-4deg);
}
.page-logo .doodle__dot { width: .16em; height: .16em; }
.site-footer--slim { padding-top: 0; }
.site-footer--slim .site-footer__bar { margin-top: 0; border-top: 2.5px solid var(--ink); padding-top: 1.5rem; }
.site-footer__links a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Privacy */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem); }
.legal__intro { margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.legal .display { font-size: clamp(2.75rem, 7vw, 4.5rem); }
.legal__aside {
  display: block; margin-top: .6rem; line-height: 1.2;
  font-family: "Kalam", cursive; font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--coral);
  transform: rotate(-2deg); transform-origin: left;
}
.legal__lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: #3B3030; }
.legal__updated { margin-top: .9rem; font-size: var(--step--1); color: var(--muted); }
.legal__list { list-style: none; margin: 0; padding: 0; counter-reset: item; display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
.legal__list > li { counter-increment: item; position: relative; padding-left: 3.25rem; }
.legal__list > li::before {
  content: counter(item);
  position: absolute; left: 0; top: -.15rem;
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--snooze); border: 2.5px solid var(--ink);
  font-weight: 800; font-size: .95rem;
}
.legal h2 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.legal p, .legal li li { line-height: 1.6; max-width: 62ch; }
.legal p { margin-top: .75rem; }
.legal ul { margin: .75rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal ul li::marker { color: var(--coral); }
.legal a:not(.btn) { text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal__back { margin-top: clamp(2.5rem, 6vw, 3.5rem); }

/* 404 */
.lost {
  max-width: 44rem; margin: 0 auto; min-height: 62vh;
  padding: clamp(2.5rem, 8vw, 5rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.lost__eyes { position: relative; }
.lost__eyes .snooze__eyes { width: clamp(170px, 32vw, 260px); }
.lost .lost__lid { animation: none; transform: translateY(24px); }   /* fast asleep: just the curved lash showing */
.lost__zzz { right: -18%; top: 0; }
.lost__code {
  margin-top: 1.75rem;
  font-family: "Kalam", cursive; font-weight: 700; font-size: var(--step-1);
  color: var(--coral); transform: rotate(-3deg);
}
.lost__title { margin-top: .5rem; font-size: clamp(2.75rem, 8vw, 5rem); max-width: 12ch; }
.lost__text { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: #3B3030; max-width: 36ch; }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* ---------- Sleepy eyes ---------- */
.snooze {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.snooze__eyes { width: clamp(180px, 30vw, 280px); height: auto; overflow: visible; }
.eye__white { fill: var(--paper); }
.eye__rim { fill: none; stroke: var(--ink); stroke-width: 4; }
.eye__pupil { fill: var(--ink); transition: transform .25s ease-out; }
.eye__glint { fill: var(--paper); }
.eye__lid-skin { fill: var(--coral); }
.eye__lash { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.eye__lid {
  transform: translateY(6px);
  animation: droop 6.5s ease-in-out infinite;
}
.eye:nth-of-type(2) .eye__lid { animation-delay: .08s; }   /* lazy eye lags a touch */

/* Heavy lids slowly sinking, a slow blink, a jolt back up */
@keyframes droop {
  0%   { transform: translateY(4px); }
  35%  { transform: translateY(14px); }
  50%  { transform: translateY(20px); }
  58%  { transform: translateY(38px); }   /* asleep */
  66%  { transform: translateY(38px); }
  70%  { transform: translateY(-4px); }   /* jolt awake */
  80%  { transform: translateY(6px); }
  100% { transform: translateY(4px); }
}

/* Woken up: lids fly open */
.snooze.is-awake .eye__lid {
  animation: none;
  transform: translateY(-34px);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.snooze__caption {
  margin: 0;
  font-family: "Kalam", cursive; font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .feature, .contact { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero__art { margin-top: 4rem; }
}

@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .site-nav a { white-space: nowrap; }
  .bubble { right: 0; top: -30%; max-width: 11rem; font-size: var(--step--1); }
  .poke-hint { left: 0; font-size: var(--step-0); }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  .shot__notes { display: none; }   /* too small to read on phones; the copy covers it */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eye__lid { transform: translateY(14px); }   /* sleepy, but still */
  /* Keep the z's visible, just still */
  .zzz span { opacity: 1; }
  .zzz span:nth-child(2) { transform: translate(1.5rem, -2.25rem); }
  .zzz span:nth-child(3) { transform: translate(3.25rem, -5rem); }
  .hero__logo.is-awake .wake-mark { opacity: 1; transform: none; }
}
