/* ==========================================================================
   EKETĖ // shared styles
   Ice on top, black water underneath. Hand-drawn ink, flash-lit frames,
   yellow video subtitles, a red "OUT NOW". Hover feedback is short and
   smooth (150 to 350ms, ease-out); steps() is kept only for film grain
   and the title flicker, which are meant to look like video.
   ========================================================================== */

:root {
  /* colour */
  --ink: #0b0a09;
  --ink-2: #141210;
  --ink-3: #1d1a17;
  --bone: #f2eee6;
  --muted: #9a948a;
  --line: rgba(242, 238, 230, 0.14);
  --paper: #ebe8e1;
  --paper-2: #dfdad0;
  --paper-ink: #121110;
  --paper-muted: #6f6a62;
  --paper-line: rgba(18, 17, 16, 0.16);
  --red: #ff3a2e;
  --yellow: #ffe81f;
  --ice: #7fe7ff;
  --magenta: #ff4fc3;
  --orange: #ff6a1a;

  /* type */
  --f-hand: "Loved by the King", "Marker Felt", "Comic Sans MS", cursive;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-sub: Arial, "Helvetica Neue", Helvetica, sans-serif;

  /* space, 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --section: clamp(96px, 13vw, 184px);

  /* motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);

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

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* a light "ice" section inside the dark site */
.on-paper {
  --nf-accent: var(--paper-ink);
  --nf-info: var(--paper-muted);
  background: var(--paper);
  color: var(--paper-ink);
}

.on-paper :focus-visible {
  outline-color: var(--red);
}

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

.skip {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--yellow);
  color: var(--ink);
  font: 700 13px/1 var(--f-sans);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- film grain ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  background-image: var(--noise);
  opacity: 0.075;
  animation: grain 0.9s steps(5) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(5%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- type primitives ---------- */

.kicker {
  margin: 0;
  font: 600 11px/1.3 var(--f-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.on-paper .kicker {
  color: var(--paper-muted);
}

.out {
  color: var(--red);
  font-weight: 800;
}

.hand {
  font-family: var(--f-hand);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* the reel-title look: condensed, stacked, glowing subtitle yellow */
.glow {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.005em;
  color: var(--yellow);
  text-shadow:
    0 0 4px rgba(255, 232, 31, 0.55),
    0 0 22px rgba(255, 232, 31, 0.32),
    0 0 64px rgba(255, 196, 0, 0.22);
  animation: flicker 5.5s steps(1) infinite;
}

.glow > span {
  display: block;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; }
  42% { opacity: 0.78; }
  43% { opacity: 1; }
  77% { opacity: 0.9; }
  78% { opacity: 1; }
}

/* yellow video subtitle */
.subtitle {
  margin: 0;
  font: 700 clamp(15px, 1.5vw, 19px)/1.3 var(--f-sub);
  color: var(--yellow);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.9),
    0 0 2px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(255, 232, 31, 0.22);
}

/* ---------- buttons & tags ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 46px;
  padding: 14px 18px;
  border: 1px solid currentColor;
  background: transparent;
  font: 600 12px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
  .btn:hover {
    background: var(--bone);
    color: var(--ink);
  }
}

@media (hover: hover) {
  .on-paper .btn:hover {
    background: var(--paper-ink);
    color: var(--paper);
  }
}

.btn .arr {
  display: inline-block;
  transition: transform 0.24s var(--ease-out);
}

@media (hover: hover) {
  .btn:hover .arr {
    transform: translate(3px, -3px);
  }
}

@media (hover: hover) {
  .btn:hover .arr--down {
    transform: translateY(3px);
  }
}

.btn--solid {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

@media (hover: hover) {
  .btn--solid:hover {
    background: var(--yellow);
    border-color: var(--yellow);
  }
}

.on-paper .btn--solid {
  background: var(--paper-ink);
  border-color: var(--paper-ink);
  color: var(--paper);
}

@media (hover: hover) {
  .on-paper .btn--solid:hover {
    background: #34312d;
    border-color: #34312d;
    color: var(--paper);
  }
}

/* play triangle for "Klausyk" buttons; nudges forward on hover */
.ico-play {
  flex: none;
  width: 0.85em;
  height: 1em;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: transform 0.24s var(--ease-out);
}

@media (hover: hover) {
  a:hover > .ico-play {
    transform: translateX(2px);
  }
}

.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (hover: hover) {
  .btn[aria-disabled="true"]:hover {
    background: transparent;
    color: inherit;
  }
}

.tag {
  display: inline-block;
  padding: 5px 8px 4px;
  border: 1px solid currentColor;
  font: 700 11px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* ---------- glitch-stagger wordmark (nav / footer) ---------- */

.logo {
  display: inline-flex;
  align-items: flex-start;
  height: 1.5em;
  font-family: var(--f-sans);
  font-weight: 900;
  font-stretch: 115%;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}

.logo span {
  position: relative;
  display: inline-block;
  color: transparent;
  transform: translateY(var(--y, 0));
}

.logo span:nth-child(2) {
  --y: 0.2em;
  margin-left: -0.05em;
}

.logo span:nth-child(n + 3) {
  --y: 0.38em;
}

.logo span::before,
.logo span::after {
  content: attr(data-c);
  position: absolute;
  inset: 0;
  color: var(--logo-c, #fff);
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}

.logo span::before {
  clip-path: inset(0 0 46% 0);
}

.logo span::after {
  clip-path: inset(54% 0 0 0);
  transform: translateX(var(--slice, 0.07em));
}

.logo span:nth-child(odd) {
  --slice: -0.05em;
}

/* on hover the sliced halves pull further apart */
@media (hover: hover) {
  .logo:hover span::after {
    transform: translateX(calc(var(--slice, 0.07em) * 2.4));
  }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) var(--gutter);
  --logo-c: var(--bone);
  color: var(--bone);
  pointer-events: none;
  transition: color 0.25s ease;
}

/* over a light section (the ice, the merch block): ink. No blend mode:
   that re-blended the bar with the page under it on every scroll frame. */
.nav.nav--ink {
  --logo-c: var(--paper-ink);
  color: var(--paper-ink);
}

.nav > * {
  pointer-events: auto;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font: 600 11px/1 var(--f-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

@media (hover: hover) {
  .nav__links a:hover::after,
  .nav__links a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

.nav__menu {
  display: none;
  padding: 10px 0;
  border: 0;
  background: none;
  font: 600 11px/1 var(--f-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .nav__menu {
    display: block;
  }
}

/* ---------- mobile menu: opens like a hole in the ice ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: var(--s-5) var(--gutter) var(--s-7);
  background: var(--ink);
  color: var(--bone);
  clip-path: ellipse(0 0 at calc(100% - 44px) 34px);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s 0.6s;
}

.menu.is-open {
  clip-path: ellipse(160% 130% at calc(100% - 44px) 34px);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__close {
  padding: 10px 0;
  border: 0;
  background: none;
  font: 600 11px/1 var(--f-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu__list {
  margin: auto 0;
  padding: 0;
  list-style: none;
}

.menu__list a {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-2) 0;
  font-family: var(--f-hand);
  font-size: clamp(44px, 13vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.menu__list a small {
  font: 600 11px/1 var(--f-sans);
  letter-spacing: 0.16em;
  color: var(--muted);
}

.menu.is-open .menu__list a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i, 0) * 60ms);
}

.menu__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
}

/* ---------- reveal + camera flash ---------- */

/* an animation, not a transition, so it never overrides an element's own
   hover transitions (rows that reveal also have hover states) */
.js [data-reveal]:not(.is-in) {
  opacity: 0;
}

.js [data-reveal].is-in {
  animation: reveal 0.8s var(--ease-out) var(--delay, 0s) backwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
}

/* flash frames pop in quickly and get a direct-flash burst */
.js [data-reveal="flash"].is-in {
  animation: reveal-flash 0.2s ease var(--delay, 0s) backwards;
}

@keyframes reveal-flash {
  from { opacity: 0; }
}

[data-reveal="flash"] {
  position: relative;
}

[data-reveal="flash"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(80% 80% at 50% 40%, #fff 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 250, 235, 0.5) 100%);
  opacity: 0;
  pointer-events: none;
}

[data-reveal="flash"].is-in::after {
  animation: flash 0.7s ease-out 0.05s;
}

@keyframes flash {
  0% { opacity: 1; }
  12% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* ---------- ice-hole ripple (links, buttons) ---------- */

[data-ripple] {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: ripple 0.75s var(--ease-out) forwards;
}

.ripple + .ripple {
  animation-delay: 0.12s;
}

@keyframes ripple {
  0% { width: 0; height: 0; opacity: 0.9; }
  100% { width: 420px; height: 120px; opacity: 0; }
}

/* ---------- notify field: one input, email or Instagram (notify.js) ---------- */

.nf {
  width: 100%;
  max-width: 560px;
}

.nf__field {
  display: flex;
  gap: var(--s-2);
}

.nf__field input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--s-4);
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: 500 17px/1 var(--f-sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.nf__field input::placeholder {
  color: color-mix(in srgb, currentColor 42%, transparent);
}

.nf__field input:focus {
  outline: none;
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor;
}

.nf__field .btn {
  flex: none;
  min-height: 52px;
}

.nf.is-error .nf__field {
  animation: shake 0.32s ease-in-out;
}

.nf.is-error input {
  border-color: var(--red);
}

@keyframes shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* honeypot: off screen for people, irresistible to bots */
.nf__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nf__field .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.nf__msg {
  min-height: 1.4em;
  margin: var(--s-3) 0 0;
  font: 700 14px/1.4 var(--f-sub);
  color: var(--red);
}

/* helpful notes (a link turned into @name, a typo fix) are calm, not red */
.nf__msg[data-tone="info"] {
  font-weight: 600;
  color: var(--nf-info, var(--muted));
}

.nf__fix {
  margin: -12px 0;
  padding: 12px 2px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--nf-accent, var(--yellow));
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* the field glows briefly when its value gets tidied */
.nf__field.is-converted input {
  animation: nf-glow 0.8s ease-out;
}

@keyframes nf-glow {
  from {
    background-color: color-mix(in srgb, var(--nf-accent, var(--yellow)) 22%, transparent);
  }
}

.nf__fine {
  margin-top: var(--s-1);
}

@media (max-width: 520px) {
  .nf__field {
    flex-direction: column;
  }
}

/* ---------- success: a line drops, hooks the contact, reels it in ---------- */

.nf-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--nf-accent, var(--yellow));
  outline: none;
}

.nf-done[hidden] {
  display: none;
}

.nf-catch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nf-catch__line {
  width: 24px;
  height: 64px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.nf-catch__line path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.nf-catch__pill {
  margin: -8px 0 0;
  padding: 10px 18px 11px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font: 600 16px/1 var(--f-sans);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.nf-done__hooked {
  margin: var(--s-4) 0 var(--s-2);
  font-size: clamp(56px, 8vw, 96px);
}

.nf-done__msg {
  margin: 0;
  font: 700 17px/1.4 var(--f-sub);
}

.nf-done__again {
  margin-top: var(--s-4);
  padding: 13px 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.on-paper .nf-done__again {
  color: var(--paper-muted);
}

/* the sequence: contact appears, line drops onto it, hook bites,
   the catch gets reeled up a little, then the words */
.nf-done.is-shown .nf-catch__pill {
  animation: nf-pill 0.35s var(--ease-out) both;
}

.nf-done.is-shown .nf-catch__rope {
  animation: nf-draw 0.45s var(--ease-out) 0.1s forwards;
}

.nf-done.is-shown .nf-catch__hook {
  animation: nf-draw 0.22s var(--ease-out) 0.52s forwards;
}

.nf-done.is-shown .nf-catch {
  animation: nf-reel 0.9s var(--ease-out) 0.72s both;
}

.nf-done.is-shown .nf-done__hooked {
  animation: nf-pop 0.5s var(--ease-out) 0.9s both;
}

.nf-done.is-shown .nf-done__msg,
.nf-done.is-shown .nf-done__again {
  animation: nf-fade 0.4s ease-out 1.1s both;
}

@keyframes nf-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes nf-pill {
  from { opacity: 0; transform: scale(0.92); }
}

@keyframes nf-reel {
  0% { transform: none; }
  30% { transform: translateY(-14px); }
  55% { transform: translateY(-5px); }
  75% { transform: translateY(-10px); }
  100% { transform: translateY(-7px); }
}

@keyframes nf-pop {
  from { opacity: 0; transform: translateY(10px) rotate(-4deg); }
  60% { opacity: 1; transform: translateY(-2px) rotate(1deg); }
  to { opacity: 1; transform: none; }
}

@keyframes nf-fade {
  from { opacity: 0; transform: translateY(6px); }
}

/* ---------- jagged ice edge (top of a light block) ---------- */

.ice-edge {
  clip-path: polygon(0 22px, 3% 9px, 7% 18px, 11% 4px, 16% 15px, 21% 7px, 24% 20px, 30% 3px, 35% 14px, 39% 8px, 44% 19px, 50% 2px, 55% 13px, 58% 6px, 63% 18px, 69% 5px, 73% 15px, 78% 9px, 83% 21px, 88% 4px, 92% 14px, 96% 7px, 100% 17px, 100% 100%, 0 100%);
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  padding: var(--section) 0 var(--s-6);
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid var(--line);
}

.foot__shout {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.2em;
  margin: 0 0 var(--s-8);
  font-family: var(--f-hand);
  font-size: clamp(56px, 13vw, 190px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.foot__fish {
  width: 0.62em;
  height: auto;
  margin-bottom: 0.22em;
  color: var(--yellow);
  transform-origin: 50% 100%;
}

@media (hover: hover) {
  .foot__shout:hover .foot__fish {
    animation: hop 0.6s var(--ease-out);
  }
}

@keyframes hop {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-40%) rotate(-25deg); }
  70% { transform: translateY(-10%) rotate(20deg); }
  100% { transform: translateY(0) rotate(0); }
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-6) var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.foot__grid .kicker {
  margin-bottom: var(--s-3);
}

.foot__grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__grid a {
  display: inline-block;
  padding: 11px 0;
  font-size: 15px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size 0.25s var(--ease-out);
}

@media (hover: hover) {
  .foot__grid a:hover {
    background-size: 100% 1px;
  }
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-9);
  font: 600 11px/1.4 var(--f-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot__base a {
  margin: -13px 0;
  padding: 13px 0;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .foot__base a:hover {
    color: var(--bone);
  }
}

/* ---------- the logo, in layers ----------
   The band's own drawing cut into transparent pieces (assets/art/logo),
   one whole ink shape per piece, so no stroke is split between layers.
   At rest it is the logo exactly; the fish dips and leaps, the smoke
   sways and the drops pop out on each leap. Positions are % of the
   660x700 composition box. */

.mark {
  position: relative;
  aspect-ratio: 660 / 700;
}

.mark img {
  position: absolute;
  max-width: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* white ink for the dark pages */
.mark--light img {
  filter: invert(0.95);
}

.mark__base {
  inset: 0;
  width: 100%;
  height: 100%;
}

.mark__fish {
  position: absolute;
  inset: 0;
  transform-origin: 50.8% 27.1%;
  animation: leap 5.2s var(--ease-in-out) infinite;
}

.mark__body {
  left: 20.152%;
  top: 5.571%;
  width: 57.424%;
  height: 42.714%;
}

.mark__smoke {
  left: 18.485%;
  top: 1.714%;
  width: 5.909%;
  height: 34.143%;
  transform-origin: 50% 100%;
  animation: smoke 2.6s ease-in-out infinite alternate;
}

.mark__drop {
  animation: splash 5.2s var(--ease-out) infinite;
}

.mark__drop--a { left: 39.545%; top: 41.429%; width: 4.545%; height: 5.714%; --dx: -30%; }
.mark__drop--b { left: 33.788%; top: 47.429%; width: 5.606%; height: 4.143%; --dx: -60%; }
.mark__drop--c { left: 52.121%; top: 44.857%; width: 3.788%; height: 5.143%; --dx: 30%; }
.mark__drop--d { left: 79.545%; top: 45.714%; width: 5.000%; height: 5.143%; --dx: 60%; }

/* the hatched water inside the hole, its own layer */
.mark__water {
  left: 22.424%;
  top: 58.429%;
  width: 58.333%;
  height: 9.857%;
}

@keyframes leap {
  0%, 22% { transform: none; }
  34% { transform: translateY(1.4%) rotate(2.5deg); }
  46% { transform: translateY(-5%) rotate(-5deg); }
  60% { transform: translateY(-2%) rotate(-1.5deg); }
  78%, 100% { transform: none; }
}

@keyframes smoke {
  from { transform: skewX(-6deg); }
  to { transform: skewX(6deg) scaleY(1.03); }
}

@keyframes splash {
  0%, 36% { transform: none; opacity: 1; }
  42% { transform: translateY(30%) scale(0.6); opacity: 0.3; }
  52% { transform: translate(var(--dx, 0), -40%) scale(1.1); opacity: 1; }
  68%, 100% { transform: none; opacity: 1; }
}

/* ---------- phones and touch ---------- */

html {
  -webkit-tap-highlight-color: transparent;
}

/* comfortable 44px tap targets in the bars */
.nav .logo,
.menu .logo {
  height: calc(1.5em + 14px);
  padding: 7px 0;
}

.nav__menu,
.menu__close {
  min-height: 44px;
  padding: 0 4px;
}

/* stay clear of the notch and the home indicator */
.nav {
  padding-top: max(var(--s-5), env(safe-area-inset-top));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.menu {
  padding-top: max(var(--s-5), env(safe-area-inset-top));
  padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.foot {
  padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom));
}

/* touch: a short press state instead of hover, and a still grain
   (no full-screen repaint loop draining the battery) */
@media (hover: none) {
  .btn:active,
  .lk__play:active {
    opacity: 0.82;
  }

  .lnk:active,
  .disco__row:active,
  .gig:active {
    background: rgba(242, 238, 230, 0.06);
  }

  /* the grain is a full-screen layer over the whole page; on a phone it
     costs a blend over every pixel of every scroll frame */
  .grain {
    display: none;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .grain {
    animation: none;
  }
}
