/* art431.com — the Sketchbook design.
   Hand-made and personal, like the pencil-and-ink "Art." of the logo: dotted sketchbook paper,
   ink headings, handwritten notes, red-pen marks and photos taped onto the page. */

:root {
  --paper: #f4efe4;
  --paper-deep: #ebe3d3;
  --card: #fffdf7;
  --ink: #1e1b18;        /* 15:1 on paper */
  --pencil: #57524b;     /* 6.8:1 on paper */
  --bronze: #7a6440;     /* the "431" bronze, 4.9:1 on paper */
  --navy: #2d3550;       /* the black keys */
  --red: #b3261e;        /* red pen, 5.7:1 on paper */
  --tape: rgba(214, 196, 150, 0.68);
  --highlight: #f5d96b;

  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --sketchy: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(30, 27, 24, 0.16) 1px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--card);
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--card); }

/* ---------- Handwriting helpers ---------- */
.scribble {
  display: block;
  width: min(100%, 260px);
  height: 16px;
  margin-top: 4px;
  overflow: visible;
}
.scribble path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.highlight {
  padding: 0 0.12em;
  margin: 0 -0.06em;
  background: linear-gradient(100deg, rgba(245, 217, 107, 0) 0.6%, var(--highlight) 2.5%, rgba(245, 217, 107, 0.85) 96%, rgba(245, 217, 107, 0) 99%);
  background-size: 100% 0.62em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter) 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 52px; height: auto; mix-blend-mode: multiply; }
.brand__name { font-family: var(--slab); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  display: block;
  padding: 6px 10px 8px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 0;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 30 2, 60 9, 88 4 S 112 5, 118 3' fill='none' stroke='%23b3261e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav a:hover::after { opacity: 0.45; }
.nav a[aria-current="page"]::after { opacity: 1; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--flush { padding-top: 0; }

h1, h2, h3 { margin: 0; font-family: var(--slab); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

.note {
  margin: 0;
  color: var(--pencil);
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.more:hover { color: var(--red); }

/* Sketchy outlined buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--sketchy);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.buttons li:nth-child(even) .btn { border-radius: 18px 225px 18px 255px / 255px 18px 225px 18px; }

/* Tape + polaroids */
.taped { position: relative; }
.taped::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  width: clamp(80px, 30%, 128px);
  height: 30px;
  background: var(--tape);
  transform: translateX(-50%) rotate(var(--tape-r, -3deg));
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 2%, 20% 9%, 100% 0, 97% 12%, 100% 24%, 96% 38%, 100% 52%, 97% 66%, 100% 80%, 96% 100%, 0 92%, 3% 78%, 0 64%, 4% 50%, 0 36%, 3% 22%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.polaroid {
  display: block;
  margin: 0;
  padding: 12px 12px 16px;
  background: var(--card);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 14px 24px -14px rgba(30, 27, 24, 0.55);
  transform: rotate(var(--r, -1.5deg));
}
.polaroid__pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #222; }
.polaroid__pic img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__caption {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- Home: hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}
.hero__logo { display: grid; justify-items: center; margin: 0; }
.hero__logo h1 { width: 100%; max-width: 440px; }
.hero__logo img { width: 100%; mix-blend-mode: multiply; }
.doodle {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--red);
  font-family: var(--hand);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transform: rotate(-6deg);
}
.doodle svg { width: 64px; height: 40px; flex: none; overflow: visible; }
.doodle svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.doodle:hover { color: var(--ink); }
.hero__doodle { justify-self: end; margin: 6px 0 0; }

.hero__quote {
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-family: var(--slab);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.platforms-title {
  margin: 0 0 14px;
  color: var(--pencil);
  font-family: var(--hand);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Waveform drawn in ink */
.wave {
  height: clamp(44px, 6vw, 80px);
  background: var(--ink);
  opacity: 0.85;
  -webkit-mask: url("img/waveform.png") center / 100% 100% no-repeat;
  mask: url("img/waveform.png") center / 100% 100% no-repeat;
}

/* ---------- Home: songs ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.snaps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(18px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.snaps li:nth-child(1) { --r: -2.2deg; --tape-r: 4deg; }
.snaps li:nth-child(2) { --r: 1.6deg; --tape-r: -5deg; }
.snaps li:nth-child(3) { --r: -1deg; --tape-r: 2deg; }
.snaps li:nth-child(4) { --r: 2.2deg; --tape-r: -3deg; }
.snap { display: block; color: inherit; text-decoration: none; }
.snap .polaroid { transition: transform 0.2s ease; }
.snap:hover .polaroid { transform: rotate(0deg) scale(1.02); }
.snap:hover .polaroid__caption { color: var(--red); }

/* ---------- Home: about teaser ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
.about-teaser .polaroid { --r: -1.4deg; padding-bottom: 12px; }
.about-teaser .polaroid img { width: 100%; }
.statement {
  margin: 8px 0 26px;
  font-family: var(--slab);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
}

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(3rem, 8vw, 5.6rem); }
.page-head .scribble { width: min(100%, 320px); height: 18px; }
.page-head .note { margin-top: 18px; }
.page-head .buttons { margin-top: 14px; }

/* Songs: scrapbook */
.scrapbook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 64px);
  margin: 0;
  padding: clamp(16px, 2vw, 24px) 0 clamp(72px, 10vw, 120px);
  list-style: none;
}
.scrapbook > li { position: relative; scroll-margin-top: 24px; }
.scrapbook > li:nth-child(1) { --r: -1.6deg; --tape-r: -4deg; }
.scrapbook > li:nth-child(2) { --r: 1.3deg; --tape-r: 3deg; margin-top: clamp(0px, 6vw, 72px); }
.scrapbook > li:nth-child(3) { --r: 1deg; --tape-r: -2deg; }
.scrapbook > li:nth-child(4) { --r: -1.4deg; --tape-r: 5deg; margin-top: clamp(0px, 6vw, 72px); }
.scrapbook .polaroid { padding: 14px 14px 20px; }
.song__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.song__no {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  color: var(--red);
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M27 4 C 12 3, 3 14, 5 27 C 7 41, 22 48, 35 43 C 47 38, 49 22, 41 12 C 36 6, 28 5, 20 8' fill='none' stroke='%23b3261e' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.song__title { font-family: var(--hand); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.05; }

/* Video player (click to play) */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}
.video > img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.video__play:focus-visible { outline: 3px solid var(--red); outline-offset: -6px; }
.video__icon {
  display: grid;
  place-items: center;
  width: clamp(58px, 7vw, 80px);
  aspect-ratio: 1;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.2s ease;
}
.video__icon svg { width: 36%; height: 36%; margin-left: 8%; fill: var(--ink); }
.video__play:hover .video__icon { transform: rotate(-6deg) scale(1.06); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.about-grid .polaroid { --r: 1.6deg; --tape-r: -4deg; padding-bottom: 12px; }
.lined {
  position: relative;
  padding: 34px 28px 30px 64px;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 46px, rgba(179, 38, 30, 0.45) 46px, rgba(179, 38, 30, 0.45) 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(45, 53, 80, 0.2) 39px 40px);
  background-position: 0 0, 0 22px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 16px 26px -16px rgba(30, 27, 24, 0.5);
  transform: rotate(-0.8deg);
}
.lined h2 { color: var(--pencil); font-family: var(--hand); font-size: 1.9rem; font-weight: 700; line-height: 40px; }
.lined p {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 40px;
}

.law { padding: 0 0 clamp(72px, 10vw, 120px); }
.law__wrap { position: relative; max-width: 860px; margin: 0 auto; }
.law__note {
  position: absolute;
  top: -44px;
  left: -6px;
  z-index: 2;
  color: var(--red);
  font-family: var(--hand);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-8deg);
}
.clipping {
  --tear-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 8 L4 3 L9 6 L14 1 L19 5 L24 2 L24 8 Z'/%3E%3C/svg%3E");
  --tear-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 0 L24 0 L24 6 L19 3 L14 7 L9 2 L4 5 L0 6 Z'/%3E%3C/svg%3E");
  position: relative;
  padding: clamp(36px, 6vw, 60px) clamp(24px, 6vw, 64px);
  background: var(--card);
}
/* The shadow sits on a wrapper: a mask on the clipping itself would cut its own shadow off. */
.clipping-shadow {
  filter: drop-shadow(0 10px 14px rgba(30, 27, 24, 0.25));
  transform: rotate(0.6deg);
}
.clipping {
  -webkit-mask:
    linear-gradient(#000 0 0) center / 100% calc(100% - 14px) no-repeat,
    var(--tear-top) top left / 24px 8px repeat-x,
    var(--tear-bottom) bottom left / 24px 8px repeat-x;
  mask:
    linear-gradient(#000 0 0) center / 100% calc(100% - 14px) no-repeat,
    var(--tear-top) top left / 24px 8px repeat-x,
    var(--tear-bottom) bottom left / 24px 8px repeat-x;
}
.clipping p {
  margin: 0;
  font-family: var(--slab);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.38;
}
.circled { position: relative; display: inline-block; margin: 0 0.3em 0 0.12em; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.circled svg {
  position: absolute;
  left: -9%;
  top: -24%;
  width: 118%;
  height: 150%;
  overflow: visible;
  pointer-events: none;
}
.circled svg path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; }

/* Contact: postcard */
.postcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  background: var(--card);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 22px 36px -22px rgba(30, 27, 24, 0.55);
  transform: rotate(-1deg);
}
.postcard__at {
  margin: 0;
  color: var(--bronze);
  font-family: var(--hand);
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 0.8;
}
.postcard__lines { display: grid; gap: 6px; margin-top: 14px; }
.postcard__mail {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(45, 53, 80, 0.25);
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.postcard__mail:hover { color: var(--red); }
.postcard__cta { color: var(--pencil); font-size: 0.9375rem; font-weight: 700; }
.stamp {
  align-self: start;
  width: clamp(76px, 14vw, 112px);
  transform: rotate(4deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.stamp__paper {
  display: block;
  padding: 7px;
  background: var(--card);
  /* perforated edge: solid centre + a grid of holes that only shows along the edges */
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat,
    radial-gradient(circle at 5px 5px, transparent 3px, #000 3.5px) -5px -5px / 10px 10px round;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat,
    radial-gradient(circle at 5px 5px, transparent 3px, #000 3.5px) -5px -5px / 10px 10px round;
}
.stamp img { border: 1px solid rgba(30, 27, 24, 0.2); mix-blend-mode: multiply; }
.contact-more { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.contact-more .buttons { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 8px;
  background: var(--paper-deep);
  border-top: 2px dashed rgba(30, 27, 24, 0.25);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
}
.site-footer p { margin: 0; color: var(--pencil); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink); font-family: var(--hand); font-size: 1.45rem; font-weight: 700; text-decoration: none; }
.site-footer a:hover,
.site-footer a[aria-current="page"] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .snaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero__grid,
  .about-teaser,
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__logo { max-width: 340px; margin: 0 auto; }
  .scrapbook { grid-template-columns: minmax(0, 1fr); }
  .scrapbook > li:nth-child(2),
  .scrapbook > li:nth-child(4) { margin-top: 0; }
  .site-header__inner { justify-content: center; }
  .nav ul { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { width: 44px; }
  .brand__name { font-size: 1.35rem; }
  .nav ul { gap: 0 2px; }
  .nav a { font-size: 1.3rem; padding: 4px 6px 7px; }
  .hero__logo { max-width: 260px; }
  .doodle { font-size: 1.6rem; }
  .doodle svg { width: 46px; height: 30px; }
  .btn { padding: 9px 14px; font-size: 0.9375rem; }
  .snaps { gap: 30px 16px; }
  .polaroid { padding: 8px 8px 12px; }
  .polaroid__caption { font-size: 1.4rem; }
  .scrapbook .polaroid { padding: 10px 10px 14px; }
  .lined { padding: 28px 18px 24px 58px; }
  .law__note { top: -38px; font-size: 2rem; }
  .postcard { grid-template-columns: minmax(0, 1fr); }
  .stamp { position: absolute; top: -18px; right: 14px; width: 72px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@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;
  }
  .snap:hover .polaroid { transform: rotate(var(--r, -1.5deg)); }
  .btn:hover { transform: none; }
  .video__play:hover .video__icon { transform: none; }
}


/* ==========================================================================
   Listening, release, songs, links page and press kit, drawn with the same pen.
   ========================================================================== */

/* Header: the "Listen on Spotify" button sits after the menu */
.brand { margin-right: auto; }
.btn--header { padding: 8px 14px; font-size: 0.9375rem; }

/* Listen buttons: "Listen on Spotify" is marked with the yellow highlighter */
.btn--spotify { background: var(--highlight); }
.btn--spotify:hover { color: var(--ink); }
.btn--big { padding: 12px 22px; font-size: 1.0625rem; }
.follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.follow:hover { color: var(--red); }
.follow svg { width: 18px; height: 18px; flex: none; fill: var(--red); }

/* Home: the newest release, taped in at the top */
.release { padding: clamp(28px, 4vw, 52px) 0 clamp(8px, 2vw, 20px); }
.release__state {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  max-width: 1000px;
  margin: 0 auto;
}
.release__photo { position: relative; --r: -2.5deg; --tape-r: 4deg; }
.release__photo .polaroid { padding: 12px 12px 44px; }
.release__photo img { width: 100%; }
.release__out {
  position: absolute;
  right: -40px;
  bottom: 2px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0;
  color: var(--red);
  font-family: var(--hand);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-7deg);
}
.release__out svg { width: 50px; height: 34px; flex: none; overflow: visible; }
.release__out svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.release__title { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: -0.03em; }
.release__extra { display: block; margin-top: 6px; color: var(--pencil); font-family: var(--hand); font-size: 0.5em; font-weight: 700; letter-spacing: 0; }
.release__meta { margin: 10px 0 20px; color: var(--pencil); }
.release .buttons { padding: 0 4px 4px 0; }

/* Home: the logo keeps its place and size; the page's h1 now opens <main> (visually hidden) */
.hero__logo .hero__mark { width: 100%; max-width: 440px; margin: 0; font-family: var(--slab); font-size: 2em; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

/* Home: small Spotify link under each song photo */
.snap__listen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}
.snap__listen svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* Mailing list: a lined notebook page */
.signup {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 48px) 30px 76px;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 52px, rgba(179, 38, 30, 0.45) 52px, rgba(179, 38, 30, 0.45) 54px, transparent 54px),
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(45, 53, 80, 0.2) 39px 40px);
  background-position: 0 0, 0 22px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 16px 26px -16px rgba(30, 27, 24, 0.5);
  transform: rotate(-0.6deg);
}
.signup__title { font-family: var(--hand); font-size: clamp(2.2rem, 4.6vw, 3rem); font-weight: 700; line-height: 1.1; }
.signup__promise { margin: 8px 0 20px; font-size: 1.125rem; }
.signup .btn { justify-content: center; }

/* Songs: release line, listen buttons, click-to-load Spotify player and the story page */
.song__release { margin: 6px 0 0 60px; color: var(--pencil); font-size: 0.9375rem; }
.song__listen { margin-top: 22px; padding: 0 4px 4px 0; gap: 12px; }
.song__listen .btn { padding: 8px 14px; font-size: 0.9375rem; }
.song__listen .btn svg { width: 20px; height: 20px; }
.spotify-slot { margin-top: 22px; }
.spotify-slot__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px 16px;
  border: 2px dashed rgba(30, 27, 24, 0.4);
  border-radius: 14px 6px 16px 8px / 8px 16px 6px 14px;
  background: rgba(255, 253, 247, 0.75);
}
.spotify-slot__logo { grid-row: span 2; width: 34px; height: 34px; fill: var(--ink); }
.spotify-slot__title { margin: 0; font-family: var(--hand); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.spotify-slot__note { margin: 0; color: var(--pencil); font-size: 0.875rem; line-height: 1.4; }
.spotify-slot__note[hidden] { display: none; }
.spotify-slot__button { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.spotify-slot iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }
.story { margin-top: 26px; padding: 22px 20px 22px 62px; transform: rotate(0.5deg); }
.story h3 { color: var(--pencil); font-family: var(--hand); font-size: 1.7rem; font-weight: 700; line-height: 40px; }
.story .story-empty__title { margin: 0; font-family: var(--hand); font-size: 1.9rem; font-weight: 500; line-height: 40px; color: var(--pencil); }

/* Links page: one narrow page for social bios */
.links-top { padding: 16px var(--gutter) 0; text-align: center; }
.links-top a { color: var(--ink); font-family: var(--hand); font-size: 1.5rem; font-weight: 700; }
.links { max-width: 480px; margin: 0 auto; padding: 14px 20px 56px; }
.links__head { text-align: center; }
.links__logo { width: 150px; margin: 0 auto; mix-blend-mode: multiply; }
.links h1 { margin-top: 4px; font-size: 2.4rem; }
.links__tagline { margin: 8px 0 30px; font-family: var(--slab); font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.links__card { margin-bottom: 36px; }
.links__release { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 20px; }
.links__release .polaroid { --r: -3deg; --tape-r: 5deg; padding: 7px 7px 12px; }
.links__release .polaroid img { width: 100%; }
.links__release p { margin: 0; }
.links__kicker { color: var(--red); font-family: var(--hand); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.links__release h2 { font-size: 1.6rem; }
.links__date { color: var(--pencil); font-size: 0.9375rem; }
.links .buttons { flex-direction: column; padding: 0 4px 4px 0; }
.links .buttons .btn { width: 100%; justify-content: center; }
.links__h { margin-bottom: 14px; font-family: var(--hand); font-size: 2rem; }
.links__video { --r: 1.2deg; --tape-r: -3deg; }
.links__video .polaroid { padding-bottom: 12px; }
.links__video .polaroid__caption { font-size: 1.35rem; }
.links .signup { padding: 26px 18px 26px 62px; transform: rotate(-0.8deg); }

/* Press kit */
.press { display: grid; gap: clamp(56px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); }
.press h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 2.8rem); }
.press__bio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.press__bio .lined h2 { margin-bottom: 0; }
.press__bio .lined p { margin: 0 0 40px; font-family: var(--sans); font-size: 1.1875rem; font-weight: 400; line-height: 40px; }
.press__bio .lined p:last-child { margin-bottom: 0; }
.press__bio .polaroid { --r: 2deg; --tape-r: -4deg; }
.press__bio .polaroid img { width: 100%; mix-blend-mode: multiply; }
.press-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; margin: 0; padding: 0; list-style: none; }
.press-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.press-grid li:nth-child(odd) { --r: -1.4deg; --tape-r: 3deg; }
.press-grid li:nth-child(even) { --r: 1.2deg; --tape-r: -3deg; }
.press-grid .polaroid { padding-bottom: 14px; }
.press-grid .polaroid img { width: 100%; }
.press-grid h3 { margin-top: 10px; font-family: var(--hand); font-size: 1.5rem; line-height: 1.1; }
.press-grid p { margin: 2px 0 10px; color: var(--pencil); font-size: 0.875rem; }
.press-grid .btn { padding: 8px 14px; font-size: 0.9375rem; }
.press-grid .snap__listen { margin-top: 0; }
.download__preview { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.download__preview img { height: 100%; object-fit: contain; }
.press__sub { margin: 40px 0 22px; color: var(--pencil); font-family: var(--hand); font-size: 2rem; }
.press__small { margin: 24px 0 0; color: var(--pencil); font-size: 0.9375rem; }
.press__contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.press__email { margin: 0; font-family: var(--slab); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; overflow-wrap: anywhere; }
.press__email a { color: var(--ink); }
.press .law__wrap { margin: 56px 0 0; }

/* Contact: pointer to the press kit */
.postcard__press { margin: 18px 0 0; color: var(--pencil); }

/* Footer: the accounts that exist, as small sketchy buttons */
.site-footer__social { flex: 1 1 100%; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0 4px 4px 0; list-style: none; }
.site-footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--sketchy);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
}
.site-footer .social li:nth-child(even) a { border-radius: 18px 225px 18px 255px / 255px 18px 225px 18px; }
.site-footer .social a:hover { color: var(--ink); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.social svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

@media (max-width: 1100px) {
  .site-header .nav { order: 3; flex-basis: 100%; }
  .site-header .nav ul { justify-content: center; }
}

@media (max-width: 1000px) {
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header__inner { justify-content: space-between; }
  .press__bio,
  .press__contact { grid-template-columns: minmax(0, 1fr); }
  .press-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release__state { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .brand img { width: 38px; }
  .brand__name { font-size: 1.2rem; }
  .btn--header { padding: 7px 11px; font-size: 0.875rem; }
  .btn--header svg { width: 18px; height: 18px; }
  .release__state { grid-template-columns: 112px minmax(0, 1fr); gap: 16px 18px; }
  .release__body { display: contents; }
  .release__text { grid-column: 2; }
  .release .buttons,
  .release .follow { grid-column: 1 / -1; }
  .release .buttons { flex-direction: column; }
  .release .buttons .btn { width: 100%; justify-content: center; }
  .release .follow { margin-top: 0; }
  .release__photo .polaroid { padding: 7px 7px 12px; }
  .release__out { display: none; }
  .release__title { font-size: 2.4rem; }
  .release__meta { margin: 6px 0 0; font-size: 0.9375rem; }
  .signup { padding: 26px 18px 26px 62px; }
  .song__listen .btn { padding: 9px 12px; }
  .story { padding: 20px 14px 20px 58px; }
  .press-grid { gap: 36px 16px; }
  .press-grid--three { grid-template-columns: minmax(0, 1fr); }
  .press-grid h3 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .social a:hover { transform: none; }
}


/* ==========================================================================
   The studio photo (About page, press kit).
   ========================================================================== */
.studio-shot { --r: -1.2deg; --tape-r: 3deg; max-width: 900px; margin: 0 auto clamp(76px, 10vw, 128px); padding-bottom: 14px; }
.studio-shot img { width: 100%; }
.press-main { --r: 1deg; --tape-r: -3deg; max-width: 800px; margin: 8px 0 60px; }
.press-main .polaroid { padding-bottom: 16px; }
.press-main img { width: 100%; }
.press-main h3 { margin-top: 10px; font-family: var(--hand); font-size: 1.8rem; line-height: 1.1; }
.press-main p { margin: 2px 0 10px; color: var(--pencil); font-size: 0.9375rem; }
.press-main .btn { padding: 8px 14px; font-size: 0.9375rem; }


/* ==========================================================================
   A more playful About page (all scoped to .about-play, so the other pages
   are not affected).
   ========================================================================== */
.about-play .scrawl { display: block; overflow: visible; pointer-events: none; }
.about-play .scrawl path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.about-play .scrawl .ink { stroke: var(--ink); stroke-width: 2.4; }
.about-play .scrawl .fill { fill: var(--ink); stroke: none; }
.about-play .hand-label { margin: 0; color: var(--red); font-family: var(--hand); font-weight: 700; line-height: 1; pointer-events: none; }
.about-play .hand-label svg { flex: none; overflow: visible; }
.about-play .hand-label svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Page head: a little piano-keys doodle, like the keys in the logo */
.about-head { position: relative; }
.scrawl--keys { position: absolute; right: 3%; top: 50%; width: 150px; transform: rotate(-7deg); }

/* About me: the lined note with the motto on a sticky note */
.about-grid--play { position: relative; }
.about-note { display: grid; }
.sticky {
  position: relative;
  z-index: 2;
  max-width: 320px;
  padding: 24px 22px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0 14px, transparent 14px), linear-gradient(165deg, #f9e389, #f5d96b 55%, #efcd55);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 14px 20px -12px rgba(30, 27, 24, 0.5);
  transform: rotate(var(--sr, -3deg));
}
.sticky p { margin: 0; color: var(--ink); font-family: var(--hand); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.sticky--motto { --sr: 3deg; margin: -22px 4% 0 auto; }

/* The console photo, taped at an angle with two strips, and a red-pen "turn it up" */
.about-console { position: relative; }
.about-play .about-console .polaroid { --r: 2.8deg; --tape-r: -8deg; }
.taped--two::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -6px;
  width: 96px;
  height: 28px;
  background: var(--tape);
  transform: rotate(-38deg);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 2%, 20% 9%, 100% 0, 97% 12%, 100% 24%, 96% 38%, 100% 52%, 97% 66%, 100% 80%, 96% 100%, 0 92%, 3% 78%, 0 64%, 4% 50%, 0 36%, 3% 22%);
}
.hand-label--turn { position: absolute; left: 4%; bottom: -54px; display: flex; align-items: flex-start; gap: 2px; font-size: 1.9rem; transform: rotate(-4deg); }
.hand-label--turn svg { width: 54px; height: 46px; margin-top: -30px; }

/* The studio photo, tilted a little */
.studio-play { position: relative; max-width: 900px; margin: 30px auto 34px; }
.about-play .studio-shot { --r: -2deg; margin-bottom: 0; }

/* A sound wave drawn with the red pen, between the photos and the Law */
.scrawl--wave { width: min(100%, 720px); height: auto; margin: 0 auto clamp(76px, 9vw, 110px); }
.scrawl--wave path { stroke: var(--red); stroke-width: 2.2; }

/* The Law: the clipping, scribbled on, with a sticky note on its corner */
.law--play { padding-bottom: clamp(150px, 15vw, 190px); }
.wavy { text-decoration: underline wavy var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.24em; text-decoration-skip-ink: none; }
.sticky--loud { --sr: -4deg; position: absolute; right: -28px; bottom: -104px; max-width: 290px; }

@media (max-width: 860px) {
  .scrawl--keys { width: 110px; top: auto; bottom: 22px; right: 0; }
  .sticky--motto { margin: -14px 0 0 auto; }
  .taped--two::after { right: -4px; bottom: -10px; width: 64px; height: 22px; }
  .about-play .about-grid--play { padding-bottom: 96px; }
  .law--play { padding-bottom: 72px; }
  .sticky--loud { position: relative; right: auto; bottom: auto; margin: -18px 3% 0 auto; }
}

@media (max-width: 560px) {
  .scrawl--keys { width: 76px; bottom: 56px; }
  .sticky { max-width: 270px; padding: 20px 18px 16px; }
  .sticky p { font-size: 1.4rem; }
  .hand-label--turn { font-size: 1.6rem; bottom: -50px; }
  .sticky--loud { margin: -14px 2% 0 auto; max-width: 240px; }
}

/* Small touches; switched off when the visitor asks for reduced motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-play .polaroid { transition: transform 0.35s ease; }
  .about-play .polaroid:hover { transform: rotate(0deg) scale(1.015); }
  .about-play .sticky { transition: transform 0.3s ease; }
  .about-play .sticky:hover { transform: rotate(calc(var(--sr) * -0.4)) translateY(-3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .scrawl--wave path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease-out; }
  .js .scrawl--wave.is-drawn path { stroke-dashoffset: 0; }
}


/* ==========================================================================
   The studio photo with gear pop-ups, and "The software"
   (About page). Labels and pictures are taped-in notes, like the rest of the
   Sketchbook; they show on hover, keyboard focus or a tap.
   ========================================================================== */
.gear-photo__frame { position: relative; overflow: hidden; }   /* labels always stay inside the photo */
.gear-photo__frame > img { width: 100%; }
.gear { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
/* Gear positions, in % of the photo: --ax/--ay/--aw/--ah = the item's area (left, top, width, height),
   --x/--y = the marker, --z = which area is on top where two overlap. One rule per <li> in about.html. */
.gear__item--scarlett { --ax: 18.59%; --ay: 65.56%; --aw: 10.16%; --ah: 10.28%; --x: 23.44%; --y: 70.56%; --z: 1; }
.gear__item--apc-key { --ax: 29.53%; --ay: 62.78%; --aw: 12.03%; --ah: 11.39%; --x: 35.31%; --y: 68.33%; --z: 2; }
.gear__item--mpk { --ax: 28.59%; --ay: 74.31%; --aw: 25.47%; --ah: 15.97%; --x: 40.62%; --y: 83.33%; --z: 2; }
.gear__item--apc-mini { --ax: 41.41%; --ay: 68.61%; --aw: 12.66%; --ah: 7.50%; --x: 47.81%; --y: 72.36%; --z: 3; }
.gear__item--kef-left { --ax: 35.62%; --ay: 32.78%; --aw: 6.33%; --ah: 8.89%; --x: 38.75%; --y: 37.22%; --z: 1; }
.gear__item--macbook { --ax: 35.78%; --ay: 41.11%; --aw: 10.00%; --ah: 16.67%; --x: 40.62%; --y: 47.92%; --z: 2; }
.gear__item--headphones { --ax: 42.19%; --ay: 55.28%; --aw: 6.72%; --ah: 8.06%; --x: 45.39%; --y: 59.31%; --z: 3; }
.gear__item--monitor { --ax: 45.78%; --ay: 25.97%; --aw: 24.84%; --ah: 22.08%; --x: 58.20%; --y: 36.39%; --z: 1; }
.gear__item--amp { --ax: 64.53%; --ay: 50.83%; --aw: 2.50%; --ah: 6.39%; --x: 65.86%; --y: 54.17%; --z: 3; }
.gear__item--ipad { --ax: 66.41%; --ay: 46.39%; --aw: 11.88%; --ah: 18.89%; --x: 72.50%; --y: 55.28%; --z: 2; }
.gear__item--kef-right { --ax: 77.27%; --ay: 40.00%; --aw: 11.72%; --ah: 23.33%; --x: 82.97%; --y: 51.67%; --z: 1; }
.gear__area {
  position: absolute;
  left: var(--ax); top: var(--ay); width: var(--aw); height: var(--ah);
  z-index: var(--z, 1);
  pointer-events: auto;
}
.gear__dot {
  position: absolute;
  left: var(--x); top: var(--y);
  z-index: 10;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.gear__dot::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 0 0 3px rgba(30, 27, 24, 0.38), 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.gear__dot:focus-visible { outline: 2px solid var(--card); outline-offset: 1px; }
.gear__label {
  position: absolute;
  left: var(--x); top: var(--y);
  z-index: 20;
  padding: 2px 11px 3px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 8px 14px -8px rgba(0, 0, 0, 0.75);
  transform: translate(-50%, calc(-100% - 20px)) rotate(var(--lr, -2deg));   /* without JavaScript: above the marker */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.gear__item:nth-child(even) .gear__label { --lr: 1.8deg; }
.gear__label::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 38px; height: 14px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 2%, 20% 9%, 100% 0, 97% 12%, 100% 24%, 96% 38%, 100% 52%, 97% 66%, 100% 80%, 96% 100%, 0 92%, 3% 78%, 0 64%, 4% 50%, 0 36%, 3% 22%);
}
.gear__line {
  position: absolute;
  left: 0; top: 0;
  z-index: 15;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.gear__line.is-shown { opacity: 1; }
/* Shown: with JavaScript the script places the label beside the item; without it, CSS shows it on hover and focus. */
.js .gear__label { transform: rotate(var(--lr, -2deg)); }
.gear__item.is-open .gear__label,
html:not(.js) .gear__area:hover ~ .gear__label,
html:not(.js) .gear__dot:hover ~ .gear__label,
html:not(.js) .gear__dot:focus-visible ~ .gear__label {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease, visibility 0s;
}
.gear__item.is-open .gear__dot::before,
.gear__dot:hover::before,
.gear__dot:focus-visible::before {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--card), 0 1px 6px rgba(0, 0, 0, 0.6);
  transform: scale(1.2);
}
/* The interactive photo stays still, so the labels are easy to read */
.about-play .gear-photo:hover { transform: rotate(var(--r)); }

/* Under the photo: the handwritten hint and the software list */
.studio-notes {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px 40px;
  margin-top: 26px;
}
.hand-label--gear {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 300px;
  margin: 4px 0 0 2% !important;
  font-size: 1.75rem;
  transform: rotate(-3deg);
}
.hand-label--gear svg { width: 44px; height: 42px; margin-top: -26px; transform: scaleX(-1); }
.gear-hint--touch { display: none; }
@media (hover: none) {
  .gear-hint--hover { display: none; }
  .gear-hint--touch { display: inline; }
}

.software { flex: 0 1 380px; }
.software__card { --soft-x: 11.4rem; padding: 26px 24px 18px 64px; transform: rotate(1.2deg); }
.software__card h2 { margin: 0; color: var(--red); line-height: 40px; }
.software__list { margin: 0; padding: 0; list-style: none; }
.software__item { position: relative; }
.software__name {
  position: relative;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 40px;
  text-align: left;
  text-decoration: underline dotted rgba(30, 27, 24, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.software__name:hover,
.software__name[aria-expanded="true"] { color: var(--red); text-decoration-color: var(--red); }
.software__pop {
  position: absolute;
  left: var(--soft-x);
  top: 50%;
  z-index: 30;
  width: 128px;
  padding: 7px 7px 9px;
  background: var(--card);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 14px 22px -12px rgba(30, 27, 24, 0.7);
  transform: translateY(-50%) rotate(var(--pr, 3deg));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.software__item:nth-child(even) .software__pop { --pr: -3deg; }
.software__pop::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  width: 52px; height: 18px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-5deg);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 2%, 20% 9%, 100% 0, 97% 12%, 100% 24%, 96% 38%, 100% 52%, 97% 66%, 100% 80%, 96% 100%, 0 92%, 3% 78%, 0 64%, 4% 50%, 0 36%, 3% 22%);
}
.software__pop img { width: 100%; }
.software__pop--icon img { border-radius: 22%; }
.software__pop--shot { width: 176px; }
.software__item.is-open .software__pop,
html:not(.js) .software__name:hover + .software__pop,
html:not(.js) .software__name:focus-visible + .software__pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease, visibility 0s;
}

@media (max-width: 860px) {
  .studio-notes { flex-direction: column; align-items: stretch; }
  .software { flex: none; width: min(100%, 380px); margin-left: auto; }
}

@media (max-width: 560px) {
  .gear__dot::before { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 2px rgba(30, 27, 24, 0.38), 0 1px 3px rgba(0, 0, 0, 0.6); }
  .gear__item.is-open .gear__dot::before,
  .gear__dot:hover::before,
  .gear__dot:focus-visible::before { box-shadow: 0 0 0 2px var(--card), 0 1px 4px rgba(0, 0, 0, 0.6); }
  .gear__label { padding: 1px 8px 2px; font-size: 1.1rem; }
  .gear__label::before { top: -6px; width: 30px; height: 11px; }
  .hand-label--gear { max-width: 250px; font-size: 1.45rem; }
  .software__card { --soft-x: 9.6rem; padding: 22px 14px 14px 58px; }
  .software__name { font-size: 1.4rem; }
  .software__pop { width: 100px; padding: 5px 5px 7px; }
  .software__pop--shot { width: 128px; }
}
.gear__item.is-open .gear__label { pointer-events: auto; }


/* ==========================================================================
   "Get in touch": the lined notebook page with a mail button.
   ========================================================================== */
.btn--mail { background: var(--highlight); }
.btn--mail:hover { color: var(--ink); }
.mailme__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 0 4px 4px 0; }
.mailme__address { margin: 0; color: var(--red); font-family: var(--hand); font-size: 1.75rem; font-weight: 700; line-height: 1.1; transform: rotate(-2deg); }
