/* Hash Bags landing page: "Paper Bag Pop".
   Only index.html uses this file. privacy/terms/support/report keep /styles.css.
   Fonts are self-hosted under the SIL Open Font License (see /fonts/OFL-*.txt). */

@font-face {
  font-family: "Bagel Fat One";
  src: url("/fonts/bagel-fat-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-display.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --green: #1A5C38;
  --green-deep: #0F3D24;
  --green-pop: #2EA56A;
  --pink: #B83278;
  --pink-pop: #E0428F;
  --blue: #1F7DBF;
  --yellow: #FFD84D;

  --paper: #F4ECDD;
  --paper-hi: #FFF8EC;
  --kraft: #D9A86C;
  --kraft-mid: #C48F52;
  --kraft-dark: #8E6232;
  --ink: #1C1B17;
  --ink-soft: #4A463D;
  --line: #1C1B17;
  --shadow: #1C1B17;
  --focus: #1F7DBF;
  --link: #1A5C38;
  --hl: #FF9CCB;
  --grain-op: 0.5;

  --f-pop: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --f-head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r: 18px;
  --bw: 2.5px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101712;
    --paper-hi: #1A241D;
    --kraft: #D9A86C;
    --kraft-mid: #C48F52;
    --kraft-dark: #8E6232;
    --ink: #F4ECDD;
    --ink-soft: #C9C0AE;
    --line: #070A08;
    --shadow: #000000;
    --focus: #7CC4F5;
    --link: #5FD69A;
    --hl: #B83278;
    --grain-op: 0.35;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* paper fibres */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain-op);
  background-image: 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='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.32 0 0 0 0 0.16 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
@media (prefers-color-scheme: dark) { a:hover { color: #FF8CC6; } }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
section[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 50;
  background: var(--yellow); color: #1C1B17; font-weight: 800;
  padding: 0.6rem 1rem; border: var(--bw) solid #1C1B17; border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- NAV ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; padding-bottom: 1.25rem; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--green); color: #FFF8EC;
  border: var(--bw) solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(-4deg);
  transition: transform 0.25s cubic-bezier(.3,1.6,.5,1);
}
.brand:hover .brand-mark { transform: rotate(4deg) scale(1.06); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-word { font-family: var(--f-head); font-weight: 800; font-stretch: 85%; font-size: 1.45rem; letter-spacing: -0.01em; }

.nav ul { list-style: none; display: flex; align-items: center; gap: 1.5rem; }
.nav ul a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 0.98rem; }
.nav ul a:hover { color: var(--pink); }
.nav .nav-cta {
  display: inline-block;
  background: var(--yellow); color: #1C1B17;
  border: var(--bw) solid var(--line); border-radius: 999px;
  padding: 0.45rem 1rem; box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav .nav-cta:hover { color: #1C1B17; transform: rotate(0) translateY(-1px); box-shadow: 4px 5px 0 var(--shadow); }
.nav .nav-cta:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }

/* ---------- STICKERS ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 0.92rem; line-height: 1.2;
  color: #1C1B17;
  border: var(--bw) solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  box-shadow: 3px 3px 0 var(--shadow);
}
.sticker-yellow { background: var(--yellow); }
.sticker-pink { background: var(--pink); color: #FFF8EC; }
.sticker.mini { padding: 0.15rem 0.6rem; font-size: 0.8rem; transform: rotate(-6deg); vertical-align: middle; margin-left: 0.4rem; box-shadow: 2px 2px 0 var(--shadow); }
.flag-new {
  background: var(--pink); color: #FFF8EC; border-radius: 999px;
  padding: 0.15rem 0.55rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.hero-flag { transform: rotate(-2.5deg); margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.25rem; }
.h1-brand {
  display: block;
  font-family: var(--f-head); font-weight: 800; font-stretch: 80%;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 0.4rem;
}
@media (prefers-color-scheme: dark) { .h1-brand { color: var(--green-pop); } }
.h1-line {
  display: block;
  font-family: var(--f-pop); font-weight: 400;
  font-size: clamp(3.1rem, 7.6vw, 6.6rem);
  line-height: 0.92; letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.hl {
  position: relative; display: inline-block; color: var(--pink);
  z-index: 0;
}
@media (prefers-color-scheme: dark) { .hl { color: #FF8CC6; } }
.hl::after {
  content: ""; position: absolute; z-index: -1;
  left: -0.06em; right: -0.06em; bottom: 0.06em; height: 0.3em;
  background: var(--yellow); border-radius: 0.2em;
  transform: rotate(-2deg);
}
@media (prefers-color-scheme: dark) { .hl::after { background: #3A2A12; } }
.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem;
}

.cta-row { display: flex; gap: 1rem 1.1rem; flex-wrap: wrap; }

/* tactile buttons */
.btn {
  --depth: 6px;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-head); font-weight: 800; font-stretch: 90%;
  font-size: 1.15rem; line-height: 1;
  padding: 1.05rem 1.5rem; border-radius: 16px;
  border: var(--bw) solid var(--line);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 var(--depth) 0 var(--shadow);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
  margin-bottom: var(--depth);
}
.btn .i { width: 20px; height: 20px; flex: none; transition: transform 0.2s cubic-bezier(.3,1.6,.5,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 calc(var(--depth) + 2px) 0 var(--shadow); }
.btn:hover .i { transform: translateY(2px); }
.btn:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 var(--shadow); transition-duration: 0.05s; }
.btn-green { background: var(--green); color: #FFF8EC; }
.btn-green:hover { background: #22744A; color: #FFF8EC; }
.btn-paper { background: var(--paper-hi); color: var(--ink); }
.btn-paper:hover { color: var(--ink); background: #FFFFFF; }
@media (prefers-color-scheme: dark) { .btn-paper:hover { background: #24322A; } }
.btn-paper:hover .i { transform: translate(2px, -2px); }
.btn-yellow { background: var(--yellow); color: #1C1B17; }
.btn-yellow:hover { background: #FFE27A; color: #1C1B17; }

.platform-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem;
  margin-top: 1.4rem; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft);
}
.platform-row li {
  border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 999px; padding: 0.15rem 0.7rem;
}

/* ---------- BAG ART ---------- */
.hero-art { position: relative; display: flex; justify-content: center; }
.bag { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.bag-shadow { fill: #000; opacity: 0.16; }
@media (prefers-color-scheme: dark) { .bag-shadow { opacity: 0.5; } }
.bag-inside { fill: #6E4A22; stroke: #1C1B17; stroke-width: 4; stroke-linejoin: round; }
.handle-back { fill: none; stroke: #6E4A22; stroke-width: 12; stroke-linecap: round; }
.bag-front { fill: var(--kraft); stroke: #1C1B17; stroke-width: 4; stroke-linejoin: round; }
.bag-side { fill: var(--kraft-mid); stroke: #1C1B17; stroke-width: 4; stroke-linejoin: round; }
.bag-side-fold { fill: none; stroke: #1C1B17; stroke-width: 3; stroke-linejoin: round; opacity: 0.55; }
.bag-strip { fill: #E7B97A; opacity: 0.9; }
.bag-crease { stroke: #8E6232; stroke-width: 3; stroke-linecap: round; opacity: 0.55; fill: none; }
.bag-crease.faint { opacity: 0.25; }
.handle { fill: none; stroke: #1C1B17; stroke-width: 18; stroke-linecap: round; }
.handle-twist { fill: none; stroke: #B07A3E; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 7 5; }
.handle-tab { fill: #E7B97A; stroke: #1C1B17; stroke-width: 3; }
.coin-face { stroke: #1C1B17; stroke-width: 4; }
.coin > g > circle:first-child { stroke: #1C1B17; stroke-width: 4; }
.coin-txt { font-family: var(--f-pop); fill: #FFF8EC; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(0,0,0,0.25); stroke-width: 3px; }
.stamp-box { fill: var(--green); }
.stamp-hash { color: var(--kraft); }
.stamp-word { font-family: var(--f-head); font-weight: 800; font-stretch: 80%; font-size: 34px; letter-spacing: 0.04em; fill: var(--green); }
.stamp { opacity: 0.94; }
.stamp2-box { fill: none; stroke: var(--pink); stroke-width: 4; }
.stamp2-txt { font-family: var(--f-head); font-weight: 800; font-stretch: 78%; font-size: 21px; letter-spacing: 0.08em; fill: var(--pink); }
.stamp2 { opacity: 0.9; }
.burst-shade { fill: #1C1B17; }
.burst-shape { fill: var(--yellow); stroke: #1C1B17; stroke-width: 4; stroke-linejoin: round; }
.burst-txt { font-family: var(--f-head); font-weight: 800; font-stretch: 75%; font-size: 19px; fill: #1C1B17; letter-spacing: 0.02em; }
.spark { fill: var(--yellow); stroke: #1C1B17; stroke-width: 3; stroke-linejoin: round; }
.spark.s2 { fill: var(--pink-pop); }
.spark.s3 { fill: var(--green-pop); }

/* motion (all of it is switched off under prefers-reduced-motion) */
.coin, .burst, .flip, .spark, .bag-body { transform-box: fill-box; transform-origin: center; }
.coin-wow { animation: bob 3.6s ease-in-out infinite; }
.coin-xmr { animation: bob 3.6s ease-in-out -1.2s infinite; }
.coin-btc { animation: bob 3.6s ease-in-out -2.4s infinite; }
.bag-body { transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.burst { animation: wobble 5s ease-in-out infinite; }
.flip { animation: flip 4.8s cubic-bezier(.45,0,.3,1) infinite; }
.spark { animation: twinkle 2.6s ease-in-out infinite; }
.spark.s2 { animation-delay: -0.9s; }
.spark.s3 { animation-delay: -1.7s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes sway { 0%, 100% { transform: rotate(-0.8deg); } 50% { transform: rotate(0.8deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(5deg) scale(1.04); } }
@keyframes flip {
  0%, 30% { transform: translateY(0) scaleX(1); }
  45% { transform: translateY(-34px) scaleX(-1); }
  60% { transform: translateY(0) scaleX(1); }
  100% { transform: translateY(0) scaleX(1); }
}
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.6) rotate(20deg); opacity: 0.7; } }

/* ---------- TAPES ---------- */
.tapes { position: relative; height: 160px; margin: 1.5rem 0 0; overflow: hidden; }
.tapes + .section { padding-top: 2.5rem; }
.tape {
  position: absolute; left: -5%; width: 110%;
  border-block: var(--bw) solid var(--line);
  overflow: hidden; white-space: nowrap;
  box-shadow: 0 5px 0 var(--shadow);
}
.tape-pink { top: 30px; background: var(--pink); color: #FFF8EC; transform: rotate(2.2deg); }
.tape-green { top: 70px; background: var(--green); color: #FFF8EC; transform: rotate(-2deg); }
.tape-track {
  display: inline-flex; align-items: center; gap: 1.1rem;
  padding: 0.7rem 0;
  font-family: var(--f-head); font-weight: 800; font-stretch: 78%;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.tape-pink .tape-track { font-size: clamp(1rem, 1.8vw, 1.3rem); padding: 0.55rem 0; animation-duration: 48s; animation-direction: reverse; }
.tape-track b { font-family: var(--f-pop); font-weight: 400; color: var(--yellow); display: inline-block; transform: skewX(-12deg); }
.tape-pink .tape-track b { color: #1C1B17; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding-top: 4.5rem; padding-bottom: 1rem; }
.section-head { margin-bottom: 2.25rem; max-width: 46rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-mono); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.eyebrow::before { content: "# "; color: var(--pink); }
@media (prefers-color-scheme: dark) { .eyebrow::before { color: #FF8CC6; } }
h2 {
  font-family: var(--f-pop); font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 0.98; letter-spacing: -0.005em;
  margin-bottom: 0.8rem; text-wrap: balance;
}
.section-sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 38rem; }
#download { scroll-margin-top: -1.75rem; }
.downloads .section-head { margin-bottom: 1.5rem; }

/* ---------- DOWNLOADS: PORTS OF CALL ---------- */
/* The harbor scene is cut paper: flat fills, ink outlines, hard shadows.
   In dark mode it turns into the same harbor at night. */
.harbor {
  --sky: #FFE3B8;
  --sky-low: #FFCB94;
  --sea-1: #9AD7EF;
  --sea-2: #45A2DB;
  --sea-3: #1F6FAA;
  --beam: #FFF7D6;
  --beam-op: 0.85;
  --pw: clamp(150px, 19vw, 250px); /* headland width; the sign is placed against it */
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(180px, 18vw, 230px);
  border: var(--bw) solid var(--line); border-radius: 28px;
  background: var(--sky);
  box-shadow: 7px 7px 0 var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .harbor {
    --sky: #12231B; --sky-low: #1B3528;
    --sea-1: #2D6E8E; --sea-2: #1E5576; --sea-3: #133C58;
    --beam: #FFF0B8; --beam-op: 0.2;
  }
}
.harbor svg { position: absolute; display: block; overflow: visible; }
.harbor .wave svg { position: static; width: 100%; height: 100%; overflow: hidden; }

.h-sun { left: 44%; bottom: 30%; width: clamp(72px, 9.5vw, 120px); height: auto; aspect-ratio: 1; z-index: 1; }
.sun-disc { fill: var(--yellow); stroke: var(--line); stroke-width: 4; }
.sun-cut { fill: var(--sky); }
@media (prefers-color-scheme: dark) {
  .sun-disc { fill: #F4ECDD; }
  .sun-cut { display: none; }
}

.h-cloud { width: clamp(72px, 8.5vw, 120px); height: auto; aspect-ratio: 160 / 70; z-index: 1; }
.h-cloud path { fill: #FFF8EC; stroke: var(--line); stroke-width: 3.5; stroke-linejoin: round; }
.h-cloud.c1 { left: 6%; top: 10%; animation: cloud 22s ease-in-out infinite alternate; }
.h-cloud.c2 { left: 63%; top: 6%; width: clamp(64px, 7vw, 100px); animation: cloud 30s ease-in-out -9s infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { .h-cloud path { fill: #2A4034; } }
@keyframes cloud { from { transform: translateX(-24px); } to { transform: translateX(28px); } }

.h-sparks { left: 0; top: 0; width: 100%; height: 58%; z-index: 1; }
.h-sparks .spark { transform-box: fill-box; transform-origin: center; }
@media (prefers-color-scheme: dark) { .h-sparks .spark { fill: #F4ECDD; } .h-sparks .spark.s2 { fill: #FF8CC6; } }

/* waves: each strip is two identical tiles, slid by exactly one tile */
.wave {
  position: absolute; left: 0; bottom: -2px; width: 200%;
  will-change: transform;
  animation: drift 60s linear infinite;
}
.wave path { stroke: var(--line); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.w1 { height: 46%; z-index: 2; }
.w1 path { fill: var(--sea-1); }
.w2 { height: 31%; z-index: 5; animation-name: drift-back; animation-duration: 38s; }
.w2 path { fill: var(--sea-2); }
.w3 { height: 16%; z-index: 6; animation-duration: 24s; }
.w3 path { fill: var(--sea-3); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drift-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* headland, lighthouse, sign */
.h-point { right: 1.5%; bottom: 12%; width: var(--pw); height: auto; aspect-ratio: 320 / 240; z-index: 3; }
.h-point .land { fill: var(--kraft); stroke: var(--line); stroke-width: 4; stroke-linejoin: round; }
/* the sign sits where it was drawn inside the headland's 320 x 240 box: x 20 to 140, y 140 to 210 */
.h-sign {
  right: calc(1.5% + var(--pw) * 0.5625); bottom: calc(12% + var(--pw) * 0.09375);
  width: calc(var(--pw) * 0.375); height: auto; aspect-ratio: 120 / 70; z-index: 3;
}
.h-sign .post { stroke: var(--line); stroke-width: 5; stroke-linecap: round; }
.h-sign .board { fill: #F2C98F; stroke: #1C1B17; stroke-width: 3.5; }
.h-sign .board-txt { font-family: var(--f-head); font-weight: 800; font-stretch: 78%; font-size: 15.5px; letter-spacing: 0.05em; fill: var(--green-deep); }
.h-point .cottage { fill: #FFF8EC; stroke: #1C1B17; stroke-width: 3.5; }
.h-point .roof { fill: var(--pink); stroke: #1C1B17; stroke-width: 3.5; stroke-linejoin: round; }
.h-point .win { fill: var(--yellow); stroke: #1C1B17; stroke-width: 2.5; }
.h-point .tower { fill: #FFF8EC; }
.h-point .tower-band rect { fill: var(--pink-pop); }
.h-point .tower-line { fill: none; stroke: #1C1B17; stroke-width: 4; stroke-linejoin: round; }
.h-point .gallery, .h-point .cap { fill: var(--green); stroke: #1C1B17; stroke-width: 3.5; stroke-linejoin: round; }
.h-point .lantern { fill: var(--yellow); stroke: #1C1B17; stroke-width: 3.5; }
.h-point .mullion { stroke: #1C1B17; stroke-width: 2.5; }
.h-beam { z-index: 0; }
.h-point .beam path { fill: var(--beam); opacity: var(--beam-op); stroke: none; }
.h-point .beam { transform-box: view-box; transform-origin: 232px 45px; animation: sweep 9s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }

/* the boat, flying the slanted hash */
.h-boat {
  left: max(22%, 19rem); bottom: 21%; width: clamp(84px, 9.5vw, 124px); height: auto; aspect-ratio: 140 / 130; z-index: 4;
  transform-origin: 50% 90%;
  animation: rock 4.6s ease-in-out infinite;
}
.h-boat .mast { stroke: #1C1B17; stroke-width: 4.5; stroke-linecap: round; }
.h-boat .sail { fill: #FFF8EC; stroke: #1C1B17; stroke-width: 3.5; stroke-linejoin: round; }
.h-boat .jib { fill: var(--yellow); stroke: #1C1B17; stroke-width: 3.5; stroke-linejoin: round; }
.h-boat .flag { fill: var(--green); stroke: #1C1B17; stroke-width: 3; stroke-linejoin: round; }
.h-boat .flag-hash path { fill: none; stroke: #FFF8EC; stroke-width: 2.2; stroke-linecap: round; }
.h-boat .flag-wave { transform-box: fill-box; transform-origin: 0 50%; animation: flutter 2.4s ease-in-out infinite; }
.h-boat .hull { fill: var(--pink); stroke: #1C1B17; stroke-width: 4; stroke-linejoin: round; }
.h-boat .hull-stripe { stroke: #FFF8EC; stroke-width: 3; }
.h-boat .porthole { fill: #FFF8EC; stroke: #1C1B17; stroke-width: 2.5; }
@keyframes rock {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(5px) rotate(3deg); }
}
@keyframes flutter {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50% { transform: skewY(-6deg) scaleX(0.92); }
}

/* pause everything that moves while it is off screen or the tab is hidden */
[data-anim].is-paused, [data-anim].is-paused * { animation-play-state: paused !important; }

/* ports: the download cards sit on the water */
.ports {
  position: relative; z-index: 7;
  display: grid; gap: 2.25rem;
  margin-top: -6rem; /* the label sits on the water and the cards' tops dip into it */
  padding-inline: clamp(0.5rem, 2.2vw, 1.75rem);
}
.ports-label {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
  font-family: var(--f-head); font-weight: 800; font-stretch: 85%; font-size: 1.3rem; line-height: 1.2;
  margin-bottom: 1.1rem;
}
.ports-label {
  background: var(--paper-hi);
  border: var(--bw) solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.6rem 0.35rem 1.1rem;
  box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(-1.5deg);
}
.ports-label .sticker.mini { margin-left: 0.5rem; }

.port-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.port {
  position: relative;
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--paper-hi);
  border: var(--bw) solid var(--line); border-radius: 22px;
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 6px 6px 0 var(--shadow);
}
.port:nth-child(1) { transform: rotate(-0.8deg); }
.port:nth-child(2) { transform: rotate(0.6deg) translateY(6px); }
.port:nth-child(3) { transform: rotate(-0.4deg); }
.port-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.15rem; }
.port-tag {
  font-family: var(--f-mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 999px;
  padding: 0.1rem 0.6rem;
}
.port-os { font-family: var(--f-pop); font-weight: 400; font-size: 2.1rem; line-height: 1; letter-spacing: -0.005em; }
.port-spec { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; min-height: 2.9em; }
.port-btn {
  --depth: 5px;
  justify-content: flex-start; gap: 0.55rem;
  width: 100%; margin-top: 0.35rem;
  font-size: 1.08rem; padding: 0.9rem 0.85rem 0.9rem 1rem;
}
.port-btn:hover .i { transform: translateY(3px); }
.port-lbl { white-space: nowrap; }
.port-size {
  margin-left: auto;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 700; font-stretch: 100%;
  background: rgba(255, 248, 236, 0.18); border: 2px solid rgba(255, 248, 236, 0.4);
  border-radius: 999px; padding: 0.2rem 0.5rem; white-space: nowrap;
}
.port-hint { font-size: 0.92rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.port-hint code, .sha code {
  font-family: var(--f-mono); font-size: 0.86em;
}
.port-hint code {
  background: color-mix(in srgb, var(--kraft) 35%, transparent);
  border-radius: 5px; padding: 0.05rem 0.3rem;
}

.sha { font-size: 0.82rem; color: var(--ink-soft); margin-top: auto; padding-top: 0.25rem; }
.sha summary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  cursor: pointer; list-style: none;
  font-weight: 700; border-radius: 6px;
}
.sha summary::-webkit-details-marker { display: none; }
.sha summary::before {
  content: "+"; content: "+" / ""; display: inline-grid; place-items: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 2px solid currentColor; font-weight: 800; line-height: 1; font-size: 0.85rem;
}
.sha[open] summary::before { content: "\2212"; content: "\2212" / ""; }
.sha-short { opacity: 0.8; }
.sha[open] .sha-short { display: none; }
.sha-full {
  display: block; margin-top: 0.45rem;
  word-break: break-all; line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 10px;
  padding: 0.45rem 0.6rem;
}
.sha-copy {
  margin-top: 0.45rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font: 700 0.8rem/1 var(--f-body); color: var(--ink);
  background: var(--paper-hi); border: 2px solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.65rem; cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow);
}
.sha-copy svg { width: 14px; height: 14px; }
.sha-copy:active { transform: translate(2px, 2px); box-shadow: none; }

/* the visitor's likely platform */
.port.is-you { background: var(--yellow); color: #1C1B17; }
.port.is-you .port-spec, .port.is-you .sha { color: #3A372F; }
.port.is-you .port-hint { color: #1C1B17; }
.port.is-you .port-tag { color: #3A372F; border-color: rgba(28, 27, 23, 0.4); }
.port.is-you .sha-full { background: #FFF3C2; color: #1C1B17; border-color: rgba(28, 27, 23, 0.35); }
.port.is-you .sha-copy { background: #FFF8EC; color: #1C1B17; border-color: #1C1B17; }
.port.is-you .port-hint code { background: rgba(28, 27, 23, 0.1); }
.port.is-you :focus-visible { outline-color: #0D3B66; }

/* pocket: store links */
.pocket .dl-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
/* desktop: the pocket row lines up with the three port cards above it,
   label and note in the first column, the two store tiles in the other two */
@media (min-width: 861px) {
  .pocket {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem;
    grid-template-areas: "label tiles tiles" "note tiles tiles";
    grid-template-rows: auto 1fr; align-items: start;
  }
  .pocket .ports-label { grid-area: label; justify-self: start; transform: rotate(1.2deg); margin-top: 0.4rem; }
  .pocket .dl-list { grid-area: tiles; }
  .pocket .dl-note { grid-area: note; margin-top: 0; padding-left: 0.4rem; max-width: 18rem; }
}
.dl {
  --depth: 6px;
  position: relative;
  display: flex; align-items: center; gap: 0.9rem;
  min-height: 84px;
  padding: 0.9rem 1rem;
  background: var(--paper-hi);
  color: var(--ink); text-decoration: none;
  border: var(--bw) solid var(--line); border-radius: 18px;
  box-shadow: 0 var(--depth) 0 var(--shadow);
  margin-bottom: var(--depth);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}
.dl:hover { color: var(--ink); background: #FFFFFF; transform: translateY(-2px); box-shadow: 0 calc(var(--depth) + 2px) 0 var(--shadow); }
@media (prefers-color-scheme: dark) { .dl:hover { background: #22302A; } }
.dl:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 var(--shadow); transition-duration: 0.05s; }
.dl-ico {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  border: var(--bw) solid var(--line);
}
.dl-ico svg { width: 30px; height: 30px; }
.ico-green { background: var(--green); color: #FFF8EC; }
.ico-pink { background: var(--pink); color: #FFF8EC; }
.ico-blue { background: var(--blue); color: #FFF8EC; }
.ico-yellow { background: var(--yellow); color: #1C1B17; }
.dl-text { display: flex; flex-direction: column; min-width: 0; }
.dl-os { font-family: var(--f-head); font-weight: 800; font-stretch: 85%; font-size: 1.45rem; line-height: 1.05; }
.dl-where { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.dl-go { width: 22px; height: 22px; margin-left: auto; flex: none; transition: transform 0.2s cubic-bezier(.3,1.6,.5,1); }
.dl:hover .dl-go { transform: translate(3px, -3px); }
.dl.is-you { background: var(--yellow); color: #1C1B17; }
.dl.is-you .dl-where { color: #3A372F; }
.dl.is-you:hover { background: #FFE27A; }
.you-tag {
  position: absolute; top: -13px; right: 14px; z-index: 1;
  background: var(--pink); color: #FFF8EC;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.12rem 0.55rem; border-radius: 999px; border: 2px solid var(--line);
  transform: rotate(4deg);
}
.dl-note { margin-top: 0.4rem; font-size: 0.95rem; color: var(--ink-soft); }

.ports-more {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  margin-top: 2rem; font-size: 0.98rem; color: var(--ink-soft);
  padding-inline: clamp(0.5rem, 2.2vw, 1.75rem); /* line up with the cards */
}
.more-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 800; color: var(--ink);
}
.more-link .i { width: 16px; height: 16px; }
.more-sep { font-family: var(--f-pop); color: var(--pink); display: inline-block; transform: skewX(-12deg); }

/* ---------- PROOF OF WORK ---------- */
.proof-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.proof-copy .section-sub { margin-bottom: 1.5rem; }
.proof-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.proof-facts li {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  background: var(--paper-hi);
  border: var(--bw) solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.95rem; font-weight: 700;
  box-shadow: 3px 3px 0 var(--shadow);
}
.proof-facts li:nth-child(odd) { transform: rotate(-2deg); }
.proof-facts li:nth-child(even) { transform: rotate(1.5deg); }
.proof-facts b { font-family: var(--f-head); font-weight: 800; font-stretch: 85%; font-size: 1.3rem; line-height: 1; color: var(--green); }
@media (prefers-color-scheme: dark) { .proof-facts b { color: var(--green-pop); } }

.hashbox { margin: 0; }
.hb-card {
  position: relative;
  background: var(--paper-hi);
  border: var(--bw) solid var(--line); border-radius: 26px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow: 8px 8px 0 var(--shadow);
  transform: rotate(1deg);
}
.hb-meta, .hb-status {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.5rem;
  font-family: var(--f-mono); font-size: 0.82rem; font-weight: 700;
}
.hb-meta { color: var(--ink); }
.hb-k { color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
#hb-nonce { color: var(--pink); }
@media (prefers-color-scheme: dark) { #hb-nonce { color: #FF8CC6; } }
.hb-wrap {
  container-type: inline-size;
  margin: 0.8rem 0;
  background: var(--paper);
  border: 2px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 14px;
  padding: 0.6rem;
}
.hb-field {
  display: grid; grid-template-columns: repeat(32, minmax(0, 1fr));
  font-family: var(--f-head); font-weight: 600; font-stretch: 80%;
  font-size: 11px; line-height: 1.55;
  font-size: 2.3cqi; line-height: 3.6cqi;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
  -webkit-user-select: none; user-select: none;
}
.hb-field i {
  display: block; font-style: normal; border-radius: 2px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.hb-field i.l { background: var(--green); color: #FFF8EC; font-weight: 800; }
@media (prefers-color-scheme: dark) { .hb-field i.l { background: var(--green-pop); color: #0B1F14; } }
.hb-field.mining i.l { background: transparent; color: inherit; font-weight: 600; }
.hb-field i.hot { background: var(--pink-pop); color: #FFF8EC; }
.hb-field i.blu { background: var(--blue); color: #FFF8EC; }
.hb-field i.yel { background: var(--yellow); color: #1C1B17; }
.hb-status { color: var(--ink); flex-wrap: nowrap; }
#hb-status-txt { min-width: 0; }
.hb-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-pop); border: 2px solid var(--line); flex: none;
}
.hb-status.is-mining .hb-dot { background: var(--pink-pop); animation: blink 0.9s steps(2, jump-none) infinite; }
.hb-status.is-paused .hb-dot { background: var(--yellow); }
@keyframes blink { 50% { opacity: 0.25; } }
.hb-controls { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; padding-left: 0.25rem; }
.hb-controls[hidden] { display: none; }
.btn-sm { --depth: 5px; font-size: 1rem; padding: 0.7rem 1.1rem; border-radius: 14px; }
.btn-sm .i { width: 18px; height: 18px; }
.btn-sm:hover .i { transform: none; }
#hb-replay:hover .i { transform: rotate(-60deg); }

.hero-direct { margin-top: -0.1rem; font-size: 0.92rem; color: var(--ink-soft); }
.hero-direct[hidden] { display: none; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- FEATURE CARDS ---------- */
.cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem;
}
.card {
  position: relative;
  background: var(--paper-hi);
  border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 2rem 1.4rem 1.5rem;
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform 0.25s cubic-bezier(.3,1.5,.5,1), box-shadow 0.25s ease;
}
.card:nth-child(1) { transform: rotate(-1.4deg); }
.card:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.card:nth-child(3) { transform: rotate(-0.8deg); }
.card:nth-child(4) { transform: rotate(1.5deg) translateY(8px); }
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: 9px 10px 0 var(--shadow); }
.tape-bit {
  position: absolute; top: -14px; left: 50%; width: 92px; height: 26px;
  margin-left: -46px; transform: rotate(-4deg);
  background: color-mix(in srgb, var(--yellow) 70%, transparent);
  border-left: 2px dashed rgba(0,0,0,0.12); border-right: 2px dashed rgba(0,0,0,0.12);
}
.card:nth-child(even) .tape-bit { transform: rotate(5deg); background: color-mix(in srgb, var(--hl) 70%, transparent); }
.card-ico {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: var(--bw) solid var(--line);
  margin-bottom: 1rem; box-shadow: 2px 3px 0 var(--shadow);
}
.card-ico svg { width: 28px; height: 28px; }
.card h3 { font-family: var(--f-head); font-weight: 800; font-stretch: 85%; font-size: 1.45rem; line-height: 1.1; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- POLAROIDS ---------- */
.polaroids {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  padding-top: 0.5rem; padding-bottom: 1.5rem;
}
.polaroid {
  background: #FFFDF7;
  border: var(--bw) solid var(--line);
  padding: 0.7rem 0.7rem 0.4rem;
  border-radius: 6px;
  box-shadow: 6px 7px 0 var(--shadow);
  transition: transform 0.3s cubic-bezier(.3,1.5,.5,1);
}
.polaroid:nth-child(1) { transform: rotate(-3deg); }
.polaroid:nth-child(2) { transform: rotate(2deg) translateY(18px); }
.polaroid:nth-child(3) { transform: rotate(-1.5deg) translateY(4px); }
.polaroid:nth-child(4) { transform: rotate(3deg) translateY(16px); }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.polaroid img {
  display: block; width: 100%; height: auto; aspect-ratio: 480 / 760; object-fit: cover; object-position: top;
  border: 2px solid #1C1B17; border-radius: 3px; background: #EAF2EC;
}
.caption {
  display: block; text-align: center; padding: 0.6rem 0.2rem 0.35rem;
  font-family: var(--f-pop); font-size: 1.05rem; line-height: 1.15; color: #1C1B17;
}

/* ---------- CHAIN CHIPS ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 0.9rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--paper-hi); color: var(--ink);
  border: var(--bw) solid var(--line); border-radius: 999px;
  padding: 0.35rem 1rem 0.35rem 0.4rem;
  font-weight: 700; font-size: 1.02rem;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.2s cubic-bezier(.3,1.6,.5,1);
}
.chip b {
  display: inline-grid; place-items: center; min-width: 2.6rem;
  font-family: var(--f-head); font-weight: 800; font-stretch: 80%; font-size: 0.82rem; letter-spacing: 0.04em;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 0.22rem 0.55rem;
}
.chip:nth-child(3n+1) { transform: rotate(-2deg); }
.chip:nth-child(3n+2) { transform: rotate(1.5deg); }
.chip:nth-child(4n) { transform: rotate(-0.5deg) translateY(3px); }
.chip:hover { transform: rotate(0) scale(1.06); }
.chip-wow { background: var(--pink); color: #FFF8EC; font-size: 1.15rem; }
.chip-wow b { background: #FFF8EC; color: var(--pink); }
.chip-xmr { background: var(--green); color: #FFF8EC; font-size: 1.15rem; }
.chip-xmr b { background: #FFF8EC; color: var(--green); }

/* ---------- CLOSER ---------- */
.closer { padding-top: 5rem; padding-bottom: 1rem; }
.closer-card {
  position: relative; overflow: hidden;
  background: var(--green); color: #FFF8EC;
  border: var(--bw) solid var(--line); border-radius: 30px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 8px 8px 0 var(--shadow);
}
.closer-card h2 { color: #FFF8EC; position: relative; }
.closer-card p { font-size: 1.15rem; max-width: 32rem; margin-bottom: 1.75rem; color: #DCEBDF; position: relative; }
.closer-card .cta-row { position: relative; }
.closer-card .btn { --shadow: #06200F; }
.closer-card :focus-visible { outline-color: #FFD84D; }
.closer-hash {
  position: absolute; right: -40px; bottom: -70px; width: 340px; height: 340px;
  color: rgba(255, 248, 236, 0.09); transform: rotate(-10deg);
}

/* ---------- FOOTER ---------- */
.foot {
  margin-top: 5rem;
  background: var(--kraft);
  color: #1C1B17;
  border-top: var(--bw) solid var(--line);
  padding: 3rem 0 2.5rem;
  position: relative;
}
.foot::before {
  /* serrated paper-bag edge */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  background:
    linear-gradient(135deg, transparent 50%, var(--kraft) 50%) 0 0 / 18px 14px repeat-x,
    linear-gradient(225deg, transparent 50%, var(--kraft) 50%) 0 0 / 18px 14px repeat-x;
}
.foot .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.foot .brand { color: #1C1B17; }
.foot .brand-mark { --line: #1C1B17; border-color: #1C1B17; box-shadow: 3px 3px 0 #1C1B17; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; }
.footer-links a { color: #1C1B17; font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(28,27,23,0.35); }
.footer-links a:hover { color: #1C1B17; border-bottom-color: #1C1B17; }
.foot .copy { font-size: 0.9rem; color: #3A2C1B; max-width: 46rem; }
.foot .copy a { color: #1C1B17; font-weight: 700; }
.foot .copy a:hover { color: #6B1442; }
.foot :focus-visible { outline-color: #0D3B66; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.5rem; max-width: 640px; }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-copy { max-width: 40rem; }
}
@media (min-width: 861px) and (max-width: 1199px) {
  /* three cards across leaves no room for the file type; it stays in the
     accessible name and the hint below the button */
  .port-btn .fmt {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 1.75rem; gap: 0.5rem; }
  .hero-art { order: 2; }
  .bag { max-width: 440px; }
  .ports { display: flex; flex-direction: column; margin-top: 2rem; padding-inline: 0; }
  .ports-more { padding-inline: 0; }
  .pocket { order: -1; }
  .ports-label { transform: none; }
  .port-list { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 560px; }
  .port:nth-child(n) { transform: rotate(var(--tilt, -0.6deg)); }
  .port:nth-child(even) { --tilt: 0.6deg; }
  .port-spec { min-height: 0; }
  .h-sun { left: 44%; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 1rem; }
  .hide-sm { display: none; }
  .brand-word { font-size: 1.25rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-flag { font-size: 0.82rem; margin-top: 0.5rem; }
  .nav { padding-top: 1rem; padding-bottom: 0.75rem; }
  .btn { font-size: 1.05rem; padding: 0.95rem 1.2rem; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .tapes { height: 140px; margin-top: 0.5rem; }
  .tape-pink { top: 22px; }
  .tape-green { top: 58px; }
  .section { padding-top: 3.5rem; }
  .harbor { --pw: 172px; border-radius: 22px; box-shadow: 5px 5px 0 var(--shadow); height: 200px; }
  .h-point { right: -14px; bottom: 14%; }
  /* phones: drop the cottage and give the sign its own, readable size */
  .h-point .cottage, .h-point .roof, .h-point .win { display: none; }
  .h-sign { width: 96px; right: 50px; bottom: calc(14% + 26px); }
  .h-boat { left: 3%; bottom: 20%; width: 84px; }
  .h-sun { left: 27%; bottom: 34%; width: 66px; }
  .h-cloud.c1 { left: 4%; top: 7%; }
  .h-cloud.c2 { left: 46%; top: 5%; }
  .h-sparks .s2, .h-sparks .s3 { display: none; }
  .pocket .dl-list { grid-template-columns: minmax(0, 1fr); }
  .port { padding: 1.1rem 1rem 1rem; box-shadow: 5px 5px 0 var(--shadow); }
  .port-os { font-size: 1.9rem; }
  .port-btn { font-size: 1.02rem; padding: 0.85rem 0.75rem 0.85rem 0.9rem; }
  .ports-more { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding-inline: 0; }
  .more-sep { display: none; }
  .hb-card { transform: none; box-shadow: 5px 5px 0 var(--shadow); border-radius: 20px; }
  .hb-wrap { padding: 0.35rem; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .card:nth-child(n) { transform: rotate(var(--tilt, -1deg)); }
  .card:nth-child(even) { --tilt: 1deg; }
  .polaroids { gap: 1.6rem 1rem; }
  .polaroid { padding: 0.45rem 0.45rem 0.25rem; box-shadow: 4px 5px 0 var(--shadow); }
  .caption { font-size: 0.86rem; }
  .chip { font-size: 0.95rem; }
  .chips { gap: 0.8rem 0.6rem; }
  .closer-hash { width: 220px; height: 220px; right: -50px; bottom: -50px; }
}
@media (max-width: 380px) {
  .h1-line { font-size: 2.8rem; }
  .nav ul { gap: 0.75rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .tape-track { transform: none; }
}
