/* =========================================================
   NICKO. "Tied off." Mobile first. No third-party requests.
   ========================================================= */

@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Saira Stencil One"; src: url("fonts/saira-stencil-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("fonts/permanent-marker.woff2") format("woff2"); font-display: swap; }

:root {
  --hivis: #F4E300;
  --navy: #14213D;
  --orange: #FF6A13;
  --copper: #9A4B1A;
  --amber: #D98E04;
  --galv: #8A9199;
  --charcoal: #1C1F22;
  --silver: #E6E9EC;
  --cream: #F3EBD8;
  --green: #1e7b3a;

  --f-head: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-stencil: "Saira Stencil One", "Arial Black", Impact, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-marker: "Permanent Marker", "Comic Sans MS", cursive;

  --rail: 22px;
  --gutter: 16px;
  --gx: 50%;          /* reflective glint position, set by script.js */

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font: 400 15px/1.6 var(--f-mono);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
h1, h2, p, dl, dd, ul, figure { margin: 0; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--hivis); color: var(--charcoal);
  font-family: var(--f-stencil); text-decoration: none;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.stencil { font-family: var(--f-stencil); letter-spacing: .04em; text-transform: uppercase; }
.note { font-family: var(--f-marker); color: var(--orange); font-size: 17px; line-height: 1.2; }
.mono-small { font-size: 12px; opacity: .75; }
.hl { color: var(--hivis); }

/* ---------- Preloader (one spare slogan) ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; gap: 18px;
  background: var(--navy); color: var(--hivis); text-align: center; padding: var(--gutter);
  transition: opacity .35s ease, visibility .35s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-tape { width: 160px; height: 18px; margin: 0 auto; background: repeating-linear-gradient(-45deg, var(--hivis) 0 12px, var(--charcoal) 12px 24px); }
.preloader-line { font: 28px/1.1 var(--f-stencil); text-transform: uppercase; }

/* ---------- Scaffold rail ---------- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 40; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0));
}
.rail-build {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(10% + var(--climb, 0) * 90%);
  background:
    linear-gradient(90deg, transparent 3px, var(--galv) 3px 7px, transparent 7px calc(100% - 7px), var(--galv) calc(100% - 7px) calc(100% - 3px), transparent calc(100% - 3px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='120'%3E%3Cpath d='M0 2h22M0 60h22' stroke='%238A9199' stroke-width='4'/%3E%3Cpath d='M5 2L17 60' stroke='%238A9199' stroke-width='2'/%3E%3Crect x='1' y='0' width='6' height='5' fill='%23D98E04'/%3E%3Crect x='15' y='58' width='6' height='5' fill='%23D98E04'/%3E%3C/svg%3E") repeat-y bottom / 100% 120px;
}
.rail-climber {
  position: absolute; top: -26px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  image-rendering: pixelated; border: 2px solid var(--hivis); background: var(--navy);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--gutter);
  background: linear-gradient(180deg, rgba(20,33,61,.92), rgba(20,33,61,0));
  pointer-events: none;
}
.brand {
  pointer-events: auto; border: 0; background: none; padding: 4px 0; cursor: pointer;
  font: 24px/1 var(--f-head); color: var(--hivis); letter-spacing: .02em;
}
.brand span { color: var(--orange); }
.lift-counter { font: 13px/1 var(--f-stencil); color: var(--silver); }
.lift-counter b { font-weight: 400; color: var(--hivis); font-size: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translate(-50%, 140%);
  max-width: calc(100vw - 48px); padding: 10px 16px; background: var(--hivis); color: var(--charcoal);
  font: 15px/1.2 var(--f-stencil); text-transform: uppercase; border: 3px solid var(--charcoal);
  transition: transform .3s ease, visibility .3s; pointer-events: none; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Textures ---------- */
.hazard-edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 3;
  background: repeating-linear-gradient(-45deg, var(--hivis) 0 14px, var(--charcoal) 14px 28px);
}
.reflect-strip {
  height: 14px; margin-left: var(--rail);
  background:
    linear-gradient(100deg, transparent calc(var(--gx) - 14%), rgba(255,255,255,.95) var(--gx), transparent calc(var(--gx) + 14%)),
    repeating-linear-gradient(90deg, var(--silver) 0 46px, #c5cad0 46px 50px);
  border-block: 4px solid var(--hivis);
}
.diamond-plate,
.lift-garage {
  background-color: #5b6168;
  background-image:
    linear-gradient(135deg, transparent 40%, rgba(255,255,255,.18) 40% 46%, transparent 46%),
    linear-gradient(45deg, transparent 40%, rgba(0,0,0,.28) 40% 46%, transparent 46%),
    linear-gradient(180deg, #6c737b, #464b51);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  background-position: 0 0, 11px 11px, 0 0;
}

/* ---------- Hero (Lift 0) ---------- */
.hero {
  position: relative; min-height: 100svh; margin-left: var(--rail);
  display: flex; align-items: flex-end; overflow: hidden; background: var(--charcoal);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%;
  filter: contrast(1.28) saturate(1.15) brightness(.9);
}
.hero-halftone {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle, rgba(28,31,34,.5) 1px, transparent 1.6px) 0 0 / 5px 5px,
    linear-gradient(180deg, rgba(20,33,61,.55) 0%, rgba(20,33,61,0) 30%, rgba(28,31,34,.2) 55%, rgba(28,31,34,.95) 88%);
  mix-blend-mode: multiply;
}
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter) 48px; width: 100%; }
.hero-kicker { display: inline-block; padding: 4px 8px; background: var(--hivis); color: var(--charcoal); font-size: 11px; margin-bottom: 10px; }
.hero-title {
  font: clamp(96px, 30vw, 240px)/.86 var(--f-head); color: var(--hivis);
  letter-spacing: -.01em; text-shadow: 5px 5px 0 var(--charcoal);
}
.hero-slogan { margin-top: 10px; font-size: clamp(20px, 6vw, 34px); line-height: 1.1; color: var(--silver); text-shadow: 2px 2px 0 var(--charcoal); }
.doodle { color: var(--hivis); }
.hero-doodle { position: absolute; z-index: 2; width: 120px; left: 10%; top: 46%; transform: rotate(4deg); }
.hero-note { position: absolute; z-index: 2; left: 6%; top: 41%; color: var(--hivis); font-size: 19px; transform: rotate(-6deg); text-shadow: 2px 2px 0 var(--charcoal); }
.birthday-hero-slot { position: absolute; z-index: 4; right: 12px; bottom: 250px; }

/* ---------- Lifts (shared) ---------- */
.lift {
  position: relative; margin-left: var(--rail);
  padding: 56px max(var(--gutter), calc((100% - 1040px) / 2)) 64px;
}
.lift-tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px;
  background: var(--charcoal); color: var(--hivis); font-size: 13px; border-left: 6px solid var(--orange);
}
.lift-title { font: clamp(40px, 11vw, 84px)/.95 var(--f-head); text-transform: uppercase; margin-bottom: 14px; }
.lede { max-width: 620px; margin: 0 0 28px; font-size: 15px; }

/* Stickers and tape */
.sticker { position: relative; background: #fff; padding: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.sticker img { filter: contrast(1.15) saturate(1.08); }
.sticker::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: rgba(243,235,216,.82); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.sticker figcaption { position: absolute; right: 10px; bottom: 10px; transform: rotate(-5deg); text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff; }
.sticker-tilt-r { transform: rotate(2deg); }
.sticker-tilt-l { transform: rotate(-2.5deg); }

/* ---------- Lift 1: Load rating ---------- */
.lift-load { background: var(--navy); }
.load-board {
  padding: 22px 14px 20px; background: var(--charcoal);
  border: 6px solid var(--galv); box-shadow: inset 0 0 0 2px #000, 0 10px 30px rgba(0,0,0,.4);
  position: relative;
}
.load-board::before, .load-board::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 6px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--galv) 60%, #555);
}
.load-board::before { left: 6px; } .load-board::after { right: 6px; }
.load-frame { position: relative; padding: 70px 0 30px; }
.load-track {
  position: relative; height: 64px; background: #2a2e33;
  border: 4px solid var(--galv); box-shadow: inset 0 3px 8px rgba(0,0,0,.6);
  overflow: hidden;
}
.load-fill { position: absolute; inset: 0; display: flex; clip-path: inset(0 calc(100% - var(--fill, 1) * 100%) 0 0); }
.seg {
  border: 0; border-right: 3px solid var(--charcoal); padding: 0 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font: 11px/1.05 var(--f-stencil); text-transform: uppercase; text-align: center;
}
.seg:last-child { border-right: 0; }
.seg-scaff { flex: 60; background: var(--hivis); color: var(--charcoal); }
.seg-mech  { flex: 30; background: var(--orange); color: var(--charcoal); }
.seg-bloke { flex: 100; background: var(--navy); color: var(--hivis); box-shadow: inset 0 0 0 2px var(--hivis); }
.seg.active { filter: brightness(1.15); outline: 3px solid #fff; outline-offset: -5px; }
.load-tick { position: absolute; left: 52.6%; top: 0; bottom: 22px; width: 0; }
.tick-line { position: absolute; left: -2px; top: 54px; bottom: 0; width: 4px; background: #fff; }
.tick-label {
  position: absolute; left: 0; top: 0; transform: translateX(-50%); white-space: nowrap; text-align: center;
  font-size: 10px; line-height: 1.2; color: var(--charcoal); background: var(--hivis); padding: 3px 6px;
  transform-origin: 0 100%; transition: transform .6s cubic-bezier(.2,1.6,.4,1), background .3s;
}
.load-barrier {
  position: absolute; left: calc(52.6% + 4px); top: 62px; width: 14px; height: 80px;
  background: repeating-linear-gradient(-45deg, var(--hivis) 0 7px, var(--charcoal) 7px 14px);
  border: 2px solid var(--charcoal);
  transition: transform .5s cubic-bezier(.2,1.6,.4,1), opacity .5s;
  transform-origin: 50% 100%;
}
.load-frame.burst .load-barrier { transform: translate(18px, 8px) rotate(58deg); opacity: .85; }
.load-frame.burst .tick-label { transform: translateX(-30%) rotate(14deg); background: var(--orange); }
.load-scale { position: relative; height: 18px; margin-top: 6px; font: 11px/1 var(--f-mono); color: var(--galv); }
.load-scale span { position: absolute; transform: translateX(-50%); }
.load-scale span:first-child { transform: none; }
.load-scale span:last-child { transform: translateX(-100%); }
.load-total { font: clamp(34px, 10vw, 64px)/1 var(--f-head); color: var(--cream); margin-top: 6px; }
.load-total b { color: var(--hivis); font-weight: 400; }
.load-line { min-height: 3.2em; margin-top: 8px; color: var(--silver); }
.small-print { font-size: 11px; color: var(--galv); }

/* ---------- Lift 2: Jobs ---------- */
.lift-jobs { background: var(--cream); color: var(--charcoal); }
.lift-jobs .hl { color: var(--orange); }
.jobs-grid { display: grid; gap: 30px; }
.job-panel { background: #fff; border: 4px solid var(--charcoal); padding: 10px; box-shadow: 6px 6px 0 var(--charcoal); }
.job-head { display: flex; justify-content: space-between; font-size: 15px; padding: 2px 4px 8px; border-bottom: 3px dashed var(--charcoal); margin-bottom: 10px; }
.cartoon { width: 100%; height: auto; border: 3px solid var(--charcoal); }
.job-caption { margin-top: 10px; font-weight: 700; }
.job-panel .note { margin-top: 4px; }
.jobs-photos { display: grid; gap: 34px; justify-items: center; padding-top: 6px; }
.job-photo { max-width: 340px; }
.wrx-photo { max-width: 420px; }
.wrx-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.svg-stencil { font-family: var(--f-stencil); }
.svg-marker { font-family: var(--f-marker); }

/* ---------- Lift 3: Garage ---------- */
.lift-garage .lift-title { color: var(--hivis); text-shadow: 3px 3px 0 var(--charcoal); }
.lift-garage .lede { color: var(--silver); text-shadow: 1px 1px 0 var(--charcoal); }
.garage-grid { display: grid; gap: 24px; }
.plate {
  position: relative; color: var(--charcoal);
  background: linear-gradient(160deg, #f4f6f8, #c9ced4 60%, #e8ebee);
  border: 3px solid #6c737b; border-radius: 6px; padding: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.45), inset 0 1px 0 #fff;
}
.plate::before, .plate::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 8px;
  background: radial-gradient(circle at 35% 35%, #fff, #8A9199 60%, #444);
}
.plate::before { left: 8px; } .plate::after { right: 8px; }
.plate-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 16px 10px; }
.plate-badge {
  font: 20px/1 var(--f-stencil); letter-spacing: .06em; padding: 5px 9px;
  background: var(--charcoal); color: var(--silver); border-radius: 3px;
}
.plate-status { font: 12px/1 var(--f-stencil); color: var(--charcoal); border: 2px solid var(--charcoal); padding: 4px 6px; }
.plate-now .plate-status { background: var(--hivis); }
.plate-photo { position: relative; background: #fff; padding: 6px; border: 2px solid var(--charcoal); }
.plate-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: contrast(1.12) saturate(1.05); }
.plate-note { position: absolute; left: 14px; bottom: 12px; color: var(--hivis); transform: rotate(-4deg); text-shadow: 2px 2px 0 var(--charcoal); }
.plate-body { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; align-items: center; padding-top: 10px; }
.spot { width: 96px; grid-row: span 2; }
.plate-spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 12px; }
.plate-spec dt { font-weight: 700; color: #4a5058; }
.plate-boat { margin: 22px 6px 6px; }
.plate-boat img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.plate-boat figcaption { color: var(--charcoal); }
.plate-caption { grid-column: 1 / -1; font-weight: 700; padding-top: 6px; border-top: 2px dashed #8A9199; }

/* ---------- Lift 4: Off the tools ---------- */
.lift-off { background: var(--hivis); color: var(--charcoal); }
.lift-off .hl { color: var(--navy); }
.lift-off .lift-tag { background: var(--navy); }
.off-card { margin-bottom: 36px; }
.dog-card { display: grid; gap: 30px; align-items: start; }
.id-badge {
  background: #fff; border: 4px solid var(--charcoal); border-radius: 10px; padding: 12px;
  box-shadow: 6px 6px 0 var(--navy); max-width: 380px;
}
.id-head { background: var(--navy); color: var(--hivis); margin: -12px -12px 12px; padding: 8px 12px; border-radius: 6px 6px 0 0; font-size: 14px; }
.id-photo { max-width: 200px; margin: 6px auto 12px; transform: rotate(-2deg); }
.id-photo::before { display: none; }
.id-spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.id-spec dt { font-family: var(--f-stencil); }
.dog-chair { max-width: 340px; justify-self: center; }

.fish-card { display: grid; gap: 26px; }
.fish-photo { max-width: 360px; justify-self: center; }
.fish-caption { font: clamp(26px, 7vw, 40px)/1.05 var(--f-head); text-transform: uppercase; }
.fish-toggle {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 14px 0 6px;
  padding: 10px 14px; background: var(--navy); color: var(--hivis); border: 3px solid var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal); cursor: pointer;
}
.fish-toggle:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--charcoal); }
.fish-state { font-size: 18px; }
.fish-hint { font-size: 11px; color: var(--silver); }
.fish-stage { position: relative; height: 170px; display: flex; align-items: center; justify-content: flex-start; overflow: visible; }
.fish { width: 150px; transform-origin: 20% 50%; transition: transform .6s cubic-bezier(.2,1.5,.4,1); }
.fish-stage.pub .fish { transform: scale(2.1); }
.fish-stage.pub { height: 260px; }

.off-pair { display: grid; gap: 26px; }
.cider-card { text-align: center; background: var(--navy); color: var(--cream); padding: 24px 16px; border: 4px solid var(--charcoal); }
.cider { width: 120px; margin: 0 auto 12px; }
.cider-liquid { transform-box: view-box; transform-origin: 50% 206px; transform: scaleY(var(--cider, .08)); transition: transform .2s linear; }
.cider-caption { font: 24px/1.1 var(--f-head); text-transform: uppercase; color: var(--hivis); }
.bubble { animation: rise 2.6s linear infinite; }
.b2 { animation-delay: .9s; } .b3 { animation-delay: 1.7s; }
@keyframes rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-170px); opacity: 0; } }

/* Job cards and sticky notes */
.job-card {
  position: relative; background: var(--cream); color: var(--charcoal);
  border: 2px solid #c9bfa6; padding: 30px 16px 18px;
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, rgba(20,33,61,.12) 25px 26px);
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
}
.clip {
  position: absolute; top: -10px; left: 50%; width: 54px; height: 26px; margin-left: -27px;
  background: linear-gradient(180deg, #2a2e33, #111); border-radius: 4px 4px 2px 2px;
}
.clip::after { content: ""; position: absolute; left: 10px; right: 10px; top: -10px; height: 12px; border: 3px solid var(--galv); border-bottom: 0; border-radius: 8px 8px 0 0; }
.thumbprint {
  position: absolute; right: 14px; bottom: 12px; width: 44px; height: 54px; border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 50% 60%, rgba(28,31,34,.32) 0 1.4px, transparent 1.4px 3.4px);
  -webkit-mask-image: radial-gradient(ellipse, #000 45%, transparent 72%);
  mask-image: radial-gradient(ellipse, #000 45%, transparent 72%);
  transform: rotate(18deg); pointer-events: none;
}
.work-order { align-self: start; }
.wo-head { font-size: 20px; margin-bottom: 8px; }
.wo-list { list-style: none; padding: 0; margin: 0 0 12px; }
.wo-list li { padding-left: 30px; position: relative; line-height: 26px; }
.wo-list li::before { content: "✓"; position: absolute; left: 4px; font-family: var(--f-marker); color: var(--green); font-size: 20px; }
.wo-sign .note { font-size: 22px; color: var(--navy); }

/* ---------- Lift 5: Mates ---------- */
.lift-mates {
  background-color: #8A9199;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 120px 100%, 100% 160px;
  color: var(--charcoal);
}
.lift-mates .lift-title { color: var(--charcoal); }
.mates-wall { display: grid; gap: 30px; }
.mate-card:nth-child(odd) { transform: rotate(-1.5deg); }
.mate-card:nth-child(even) { transform: rotate(1.5deg); }
.sticky { position: relative; background: #fff27a; color: var(--charcoal); padding: 20px 16px; box-shadow: 0 10px 16px rgba(0,0,0,.28); }
.sticky-orange { background: #ffb27a; }
.slot-label { font-size: 12px; color: #4a5058; margin-bottom: 8px; }
.mate-quote { font-size: 17px; font-weight: 700; line-height: 1.4; }
.mate-name { margin-top: 10px; color: var(--navy); }
.mate-blank { min-height: 150px; }
.mate-gotcha { text-align: center; }
.finger { width: 140px; margin: 0 auto 6px; }
.mate-haha { font: 44px/1 var(--f-head); color: var(--orange); -webkit-text-stroke: 1.5px var(--charcoal); letter-spacing: .02em; }
.mate-gotcha .mate-name { font-size: 13px; color: var(--charcoal); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; margin-left: var(--rail);
  padding: 64px var(--gutter) 40px; text-align: center;
  background: var(--navy); color: var(--cream);
}
.hazard-top { top: 0; bottom: auto; }
.tied-off { font: clamp(64px, 20vw, 150px)/.9 var(--f-head); color: var(--hivis); text-transform: uppercase; }
.footer-line { margin: 12px auto 0; max-width: 520px; font-size: 18px; line-height: 1.3; color: var(--silver); }
.esky-wrap { margin: 34px auto 0; max-width: 360px; }
.esky { background: none; border: 0; padding: 6px; cursor: pointer; opacity: .78; }
.esky:hover, .esky[aria-expanded="true"] { opacity: 1; }
.esky svg { width: 52px; }
.esky-note { margin-top: 8px; font-size: 13px; color: var(--silver); }
.footer-small { margin-top: 26px; }

/* ---------- Birthday component (only used when birthday.js is loaded) ---------- */
.bday-tag {
  position: relative; width: 122px; padding: 24px 8px 10px; text-align: center;
  background: #2E8B3E; color: #fff; border: 3px solid var(--charcoal); border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
  transform-origin: 50% -14px; animation: swing 3.2s ease-in-out infinite;
}
.bday-tag::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--charcoal); box-shadow: inset 0 0 0 3px var(--galv);
}
.bday-tag::after { content: ""; position: absolute; top: -28px; left: 50%; width: 3px; height: 34px; background: var(--charcoal); }
.bday-tag .bday-k { font: 10px/1.2 var(--f-stencil); letter-spacing: .05em; opacity: .9; }
.bday-tag .bday-big { font: 19px/1 var(--f-head); text-transform: uppercase; margin: 6px 0; }
.bday-tag .bday-by { font: 10px/1.3 var(--f-mono); border-top: 1px dashed rgba(255,255,255,.6); padding-top: 6px; margin-top: 6px; }
@keyframes swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.bday-footer { margin-top: 18px; font: 26px/1.1 var(--f-marker); color: var(--orange); }

/* ---------- Bigger screens ---------- */
@media (min-width: 720px) {
  :root { --rail: 40px; --gutter: 32px; }
  .rail-climber { width: 30px; height: 30px; margin-left: -15px; top: -34px; }
  .rail-build { background-size: auto, 100% 160px; }
  .hero-doodle { width: 180px; }
  .hero-note { font-size: 26px; }
  .bday-tag { width: 180px; }
  .bday-tag .bday-big { font-size: 28px; }
  .load-frame { padding-top: 76px; }
  .load-track { height: 84px; }
  .seg { font-size: 15px; }
  .tick-label { font-size: 12px; }
  .jobs-grid { grid-template-columns: 1fr 1fr; }
  .jobs-photos { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); align-items: center; }
  .garage-grid { grid-template-columns: 1fr 1fr; }
  .plate-now { grid-column: 1 / -1; }
  .plate-now .plate-photo img { aspect-ratio: 16 / 8; }
  .dog-card, .fish-card { grid-template-columns: 1fr 1fr; }
  .off-pair { grid-template-columns: 1fr 1fr; }
  .mates-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero { min-height: 92vh; }
  .hero-photo { left: auto; width: min(54%, 720px); object-position: 50% 30%; border-left: 8px solid var(--hivis); }
  .hero-halftone { background:
      radial-gradient(circle, rgba(28,31,34,.5) 1px, transparent 1.6px) 0 0 / 5px 5px,
      linear-gradient(90deg, var(--charcoal) 0%, var(--charcoal) 44%, rgba(28,31,34,0) 62%),
      linear-gradient(180deg, rgba(20,33,61,.5) 0%, rgba(28,31,34,0) 30%, rgba(28,31,34,0) 70%, rgba(28,31,34,.8) 100%); }
  .hero-copy { padding: 0 40px 64px; }
  .hero-title { font-size: clamp(140px, 17vw, 240px); }
  .birthday-hero-slot { left: 40px; right: auto; top: 90px; bottom: auto; }
  .hero-note { left: auto; right: 30%; top: 50%; }
  .hero-doodle { left: auto; right: 22%; top: 55%; }
}
@media (min-width: 1080px) {
  .garage-grid { grid-template-columns: repeat(4, 1fr); }
  .plate-now { grid-column: 1 / 3; grid-row: span 2; }
  .plate-now .plate-boat img { aspect-ratio: 16 / 11; }
  .mates-wall { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reduced motion: everything static, final state shown ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .preloader { display: none; }
}
