<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light only" />
<title>404 — Transmission Lost</title>
<meta name="description" content="Four-oh-four. The rocket drifted. A printed artifact by Charlie Llewellin." />
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%9A%80%3C/text%3E%3C/svg%3E" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,900;1,9..144,400;1,9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=Bowlby+One&display=swap" rel="stylesheet" />
<style>
  :root {
    --paper:       #ece0c1;
    --paper-deep:  #d9c89e;
    --paper-dark:  #bba776;
    --ink:         #13203b;
    --ink-soft:    #2a3658;
    --red:         #e13a1c;
    --red-deep:    #a8290f;
    --pink:        #ff4e84;
    --teal:        #1f6b6b;
    --cream:       #f5ecd3;
    --shadow:      rgba(19, 32, 59, 0.22);
  }

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

  html { scroll-behavior: smooth; }

  html, body {
    min-height: 100svh;
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 14px;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  body {
    position: relative;
    background-image:
      radial-gradient(ellipse at 18% 22%, rgba(225, 58, 28, 0.10), transparent 52%),
      radial-gradient(ellipse at 82% 78%, rgba(19, 32, 59, 0.14), transparent 55%),
      radial-gradient(ellipse at 50% 50%, rgba(245, 236, 211, 0.6), transparent 70%);
    isolation: isolate;
  }

  /* Risograph grain — sits on everything, multiply blend */
  body::before {
    content: "";
    position: fixed;
    inset: -4px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.12  0 0 0 0 0.23  0 0 0 0.42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 90;
    opacity: 0.85;
    animation: grainShift 1.6s steps(6) infinite;
  }

  /* Light paper vignette */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(19, 32, 59, 0.18) 100%);
    pointer-events: none;
    z-index: 89;
  }

  @keyframes grainShift {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-6px, 4px); }
    40%  { transform: translate(5px, -3px); }
    60%  { transform: translate(-3px, -5px); }
    80%  { transform: translate(4px, 6px); }
    100% { transform: translate(0, 0); }
  }

  /* ---------- LAYOUT ---------- */

  .sheet {
    position: relative;
    min-height: 100svh;
    padding: clamp(1.2rem, 3vw, 2.2rem);
    display: flex;
    flex-direction: column;
  }

  /* Crop-mark frame — technical drawing */
  .frame {
    position: absolute;
    inset: clamp(1.6rem, 3.6vw, 2.8rem);
    border: 1px solid var(--ink);
    opacity: 0.45;
    pointer-events: none;
    z-index: 2;
  }
  .frame::before,
  .frame::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    border: 1.5px solid var(--ink);
  }
  .frame::before { top: -11px; left: -11px; border-right: none; border-bottom: none; }
  .frame::after  { bottom: -11px; right: -11px; border-left: none; border-top: none; }

  /* Registration marks — the printer's circle-crosshair */
  .reg {
    position: absolute;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.2px solid var(--ink);
    pointer-events: none;
    z-index: 3;
    opacity: 0.75;
  }
  .reg::before,
  .reg::after {
    content: "";
    position: absolute;
    background: var(--ink);
  }
  .reg::before { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
  .reg::after  { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
  .reg.tl { top: 3.2rem; left: 3.2rem; }
  .reg.tr { top: 3.2rem; right: 3.2rem; }
  .reg.bl { bottom: 3.2rem; left: 3.2rem; }
  .reg.br { bottom: 3.2rem; right: 3.2rem; }

  /* Off-register color swatch stamps (corner ink bars) */
  .swatches {
    position: absolute;
    top: 3.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 3;
    opacity: 0.9;
  }
  .swatches span {
    display: block;
    width: 18px; height: 6px;
  }
  .swatches span:nth-child(1) { background: var(--ink); }
  .swatches span:nth-child(2) { background: var(--red); }
  .swatches span:nth-child(3) { background: var(--pink); }
  .swatches span:nth-child(4) { background: var(--teal); }
  .swatches span:nth-child(5) { background: var(--paper-dark); }

  /* ---------- HEADER BAR ---------- */

  header.bureau {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.4rem 1rem 1rem;
    gap: 1rem;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid currentColor;
    opacity: 0;
    animation: fadeSlide 1.1s cubic-bezier(.2,.7,.2,1) .15s forwards;
  }

  header.bureau .left  { text-align: left;   }
  header.bureau .mid   { text-align: center; font-weight: 600; letter-spacing: 0.22em; color: var(--ink); }
  header.bureau .right { text-align: right;  font-variant-numeric: tabular-nums; }

  header.bureau .mid::before,
  header.bureau .mid::after {
    content: "✦";
    margin: 0 .7em;
    color: var(--red);
    font-size: 10px;
    vertical-align: 2px;
  }

  /* ---------- MAIN COMPOSITION ---------- */

  main.stage {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    z-index: 4;
  }

  .composition {
    position: relative;
    width: min(1100px, 96%);
    aspect-ratio: 16 / 10;
    max-height: 72svh;
  }

  /* The massive 404 — riso three-layer off-register */
  .digits {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: "Bowlby One", "Fraunces", serif;
    font-weight: 900;
    font-size: clamp(12rem, 34vw, 28rem);
    line-height: 0.82;
    letter-spacing: -0.06em;
    user-select: none;
  }
  .digits .layer {
    grid-area: 1 / 1;
    mix-blend-mode: multiply;
    will-change: transform;
  }
  .digits .ink   { color: var(--ink); }
  .digits .red   { color: var(--red);   transform: translate(7px, -4px); mix-blend-mode: multiply; }
  .digits .pink  { color: var(--pink);  transform: translate(-5px, 5px); mix-blend-mode: multiply; opacity: 0.75; }
  .digits .hollow{
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    transform: translate(2px, 2px);
    opacity: 0.35;
  }

  /* Breathing animation for the whole stack */
  .digits { animation: breathe 9s ease-in-out infinite; }
  @keyframes breathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }

  /* Load reveal */
  .digits .layer { opacity: 0; animation: inkSettle 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
  .digits .ink   { animation-delay: 0.35s; }
  .digits .red   { animation-delay: 0.55s; }
  .digits .pink  { animation-delay: 0.75s; }
  .digits .hollow{ animation-delay: 0.95s; }
  @keyframes inkSettle {
    0%   { opacity: 0; filter: blur(6px); }
    60%  { opacity: 0.9; }
    100% { opacity: 1;   filter: blur(0); }
  }

  /* The rocket: outer handles parallax/position, inner handles motion */
  .rocket-wrap {
    position: absolute;
    top: 50%; left: 50%;
    width: clamp(200px, 26%, 340px);
    translate: -50% -55%;
    z-index: 6;
  }
  .rocket-art {
    display: block;
    filter: drop-shadow(6px 10px 0 var(--shadow));
    animation: drift 6s ease-in-out infinite, tilt 11s ease-in-out infinite;
    transform-origin: center 40%;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }
  .rocket-art:hover,
  .rocket-art:focus,
  .rocket-art:active,
  .rocket-art:visited { color: inherit; text-decoration: none; outline: none; }
  @keyframes drift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
  }
  @keyframes tilt {
    0%, 100% { rotate: -14deg; }
    50%      { rotate: -10deg; }
  }
  .rocket-art svg { display: block; width: 100%; height: auto; overflow: visible; }

  /* Exhaust flame flicker */
  .flame {
    transform-origin: 50% 0%;
    animation: flicker 0.28s steps(4) infinite;
  }
  @keyframes flicker {
    0%   { transform: scaleY(1)    scaleX(1); opacity: 1; }
    25%  { transform: scaleY(1.18) scaleX(0.92); opacity: 0.9; }
    50%  { transform: scaleY(0.88) scaleX(1.08); opacity: 1; }
    75%  { transform: scaleY(1.12) scaleX(0.96); opacity: 0.95; }
    100% { transform: scaleY(1)    scaleX(1); opacity: 1; }
  }

  .smoke-puff {
    transform-origin: center;
    animation: puff 3.4s ease-out infinite;
    opacity: 0;
  }
  .smoke-puff.p2 { animation-delay: 1.2s; }
  .smoke-puff.p3 { animation-delay: 2.3s; }
  @keyframes puff {
    0%   { opacity: 0.8; transform: translateY(0) scale(0.3); }
    100% { opacity: 0;   transform: translateY(60px) scale(1.6); }
  }

  /* Trajectory dashed arc */
  .trajectory {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
  }
  .trajectory path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.3;
    stroke-dasharray: 2 7;
    opacity: 0.55;
  }
  .traj-mark {
    fill: var(--red);
  }
  .traj-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    fill: var(--ink);
    text-transform: uppercase;
  }

  /* Stars and tiny constellation glyphs */
  .stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }
  .stars .star {
    position: absolute;
    color: var(--ink);
    font-size: 10px;
    opacity: 0.55;
    animation: twinkle 3.2s ease-in-out infinite;
  }
  @keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50%      { opacity: 0.9;  transform: scale(1.15); }
  }

  /* A rogue saucer in the corner — easter egg */
  .saucer {
    position: absolute;
    top: 12%;
    right: 6%;
    width: 72px;
    z-index: 5;
    opacity: 0.9;
    animation: hover 4.8s ease-in-out infinite;
  }
  @keyframes hover {
    0%, 100% { transform: translateX(0) rotate(-4deg); }
    50%      { transform: translateX(18px) rotate(2deg); }
  }

  /* ---------- STAMPS ---------- */

  .stamp {
    position: absolute;
    border: 2.5px solid currentColor;
    padding: 0.5rem 0.9rem;
    text-transform: uppercase;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    letter-spacing: 0.25em;
    font-size: 11px;
    color: var(--red-deep);
    background: transparent;
    border-radius: 2px;
    opacity: 0.78;
    mix-blend-mode: multiply;
    z-index: 7;
    box-shadow: inset 0 0 0 4px transparent;
  }
  .stamp::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid currentColor;
    opacity: 0.35;
    border-radius: 3px;
  }
  .stamp.lost {
    top: 18%; left: 6%;
    transform: rotate(-8deg);
    color: var(--red-deep);
  }
  .stamp.classified {
    bottom: 15%; right: 8%;
    transform: rotate(5deg);
    color: var(--ink);
    font-size: 10px;
  }

  /* ---------- FOOTER ---------- */

  footer.colophon {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
    padding: 1rem 1rem 0.2rem;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-top: 1px solid currentColor;
    opacity: 0;
    animation: fadeSlide 1s cubic-bezier(.2,.7,.2,1) 1.1s forwards;
  }
  footer.colophon .block { display: flex; flex-direction: column; gap: 0.2rem; }
  footer.colophon .label {
    color: var(--red);
    font-size: 9px;
    letter-spacing: 0.28em;
  }
  footer.colophon .val { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
  footer.colophon .mid { text-align: center; }
  footer.colophon .right { text-align: right; }

  /* Italic atmospheric phrase */
  .sign-off {
    font-family: "Fraunces", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(13px, 1.4vw, 17px);
    letter-spacing: -0.005em;
    text-transform: none;
    color: var(--ink);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.4rem);
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    animation: fadeSlide 1.2s cubic-bezier(.2,.7,.2,1) 1.5s forwards;
  }
  .sign-off span { color: var(--red); }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px) translateX(-50%); }
    to   { opacity: 1; transform: translateY(0)   translateX(-50%); }
  }
  header.bureau, footer.colophon {
    /* override the translateX for non-signoff variant */
  }
  header.bureau {
    animation-name: fadeSlideTop;
  }
  footer.colophon {
    animation-name: fadeSlideTop;
  }
  @keyframes fadeSlideTop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ---------- EDGE RULERS ---------- */

  .ruler {
    position: absolute;
    z-index: 2;
    color: var(--ink);
    opacity: 0.35;
    pointer-events: none;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .ruler.left  { top: 10%; bottom: 10%; left: 1.8rem; width: 4px; }
  .ruler.right { top: 10%; bottom: 10%; right: 1.8rem; width: 4px; }
  .ruler.left::before, .ruler.right::before {
    content: "";
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 1px; background: currentColor; opacity: 0.6;
  }
  .ruler .tick {
    position: absolute;
    left: 0;
    width: 8px;
    height: 1px;
    background: currentColor;
  }
  .ruler .tick.big { width: 14px; }
  .ruler .tick.lbl {
    width: auto;
    height: auto;
    background: transparent;
    transform: translateY(-4px);
    font-feature-settings: "tnum";
  }
  .ruler.left  .tick.lbl { left: 18px; }
  .ruler.right .tick.lbl { left: auto; right: 18px; }
  .ruler.right .tick { left: auto; right: 0; }
  .ruler.right::before { left: auto; right: 0; }

  /* ---------- MOTION PREF ---------- */

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
    }
    .digits .layer, header.bureau, footer.colophon, .sign-off { opacity: 1 !important; }
  }

  /* ---------- SMALL SCREENS ---------- */

  @media (max-width: 720px) {
    header.bureau {
      grid-template-columns: 1fr;
      gap: 0.3rem;
      text-align: center;
      font-size: 9.5px;
    }
    header.bureau .left, header.bureau .right { text-align: center; }
    footer.colophon {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 0.6rem;
    }
    footer.colophon .right, footer.colophon .mid { text-align: center; }
    .stamp.lost { left: 3%; top: 10%; }
    .stamp.classified { right: 3%; bottom: 8%; }
    .saucer { width: 48px; }
    .ruler { display: none; }
    .reg { width: 18px; height: 18px; }
    .reg.tl { top: 1.8rem; left: 1.8rem; }
    .reg.tr { top: 1.8rem; right: 1.8rem; }
    .reg.bl { bottom: 1.8rem; left: 1.8rem; }
    .reg.br { bottom: 1.8rem; right: 1.8rem; }
  }
</style>
</head>
<body>

<div class="sheet">

  <span class="frame"></span>
  <span class="reg tl"></span>
  <span class="reg tr"></span>
  <span class="reg bl"></span>
  <span class="reg br"></span>
  <div class="swatches" aria-hidden="true">
    <span></span><span></span><span></span><span></span><span></span>
  </div>

  <!-- TOP BUREAU BAR -->
  <header class="bureau" aria-label="Document header">
    <div class="left">Bureau of Aeronautical Cartography · Filing No. 404·IV</div>
    <div class="mid">Transmission Lost</div>
    <div class="right" id="coords">Lat 00°00′∞″ · Lon ∅ · Alt —</div>
  </header>

  <!-- RULERS -->
  <div class="ruler left" aria-hidden="true">
    <span class="tick big" style="top:0%"></span>
    <span class="tick lbl" style="top:0%">00</span>
    <span class="tick" style="top:8%"></span>
    <span class="tick" style="top:16%"></span>
    <span class="tick big" style="top:25%"></span>
    <span class="tick lbl" style="top:25%">25</span>
    <span class="tick" style="top:33%"></span>
    <span class="tick" style="top:41%"></span>
    <span class="tick big" style="top:50%"></span>
    <span class="tick lbl" style="top:50%">50</span>
    <span class="tick" style="top:58%"></span>
    <span class="tick" style="top:66%"></span>
    <span class="tick big" style="top:75%"></span>
    <span class="tick lbl" style="top:75%">75</span>
    <span class="tick" style="top:83%"></span>
    <span class="tick" style="top:92%"></span>
    <span class="tick big" style="top:100%"></span>
    <span class="tick lbl" style="top:100%">∞</span>
  </div>
  <div class="ruler right" aria-hidden="true">
    <span class="tick big" style="top:0%"></span>
    <span class="tick lbl" style="top:0%">N</span>
    <span class="tick" style="top:12%"></span>
    <span class="tick" style="top:25%"></span>
    <span class="tick big" style="top:37%"></span>
    <span class="tick lbl" style="top:37%">E</span>
    <span class="tick" style="top:50%"></span>
    <span class="tick big" style="top:62%"></span>
    <span class="tick lbl" style="top:62%">S</span>
    <span class="tick" style="top:75%"></span>
    <span class="tick big" style="top:87%"></span>
    <span class="tick lbl" style="top:87%">W</span>
    <span class="tick" style="top:100%"></span>
  </div>

  <!-- MAIN COMPOSITION -->
  <main class="stage">
    <div class="composition">

      <!-- background star field -->
      <div class="stars" aria-hidden="true">
        <span class="star" style="top:8%;  left:14%; animation-delay:0s;">✦</span>
        <span class="star" style="top:22%; left:82%; animation-delay:.6s;">✦</span>
        <span class="star" style="top:14%; left:56%; animation-delay:1.2s;">+</span>
        <span class="star" style="top:36%; left:12%; animation-delay:1.8s;">·</span>
        <span class="star" style="top:54%; left:92%; animation-delay:0.3s;">✦</span>
        <span class="star" style="top:70%; left:18%; animation-delay:2.1s;">+</span>
        <span class="star" style="top:84%; left:72%; animation-delay:0.9s;">✦</span>
        <span class="star" style="top:92%; left:48%; animation-delay:1.4s;">·</span>
        <span class="star" style="top:6%;  left:36%; animation-delay:2.6s;">·</span>
        <span class="star" style="top:28%; left:30%; animation-delay:1.7s;">+</span>
        <span class="star" style="top:62%; left:8%;  animation-delay:2.4s;">✦</span>
        <span class="star" style="top:44%; left:66%; animation-delay:0.5s;">·</span>
      </div>

      <!-- dashed trajectory arc + marker -->
      <svg class="trajectory" viewBox="0 0 1000 620" preserveAspectRatio="none" aria-hidden="true">
        <path d="M 40 560 Q 200 420 380 300 T 780 120" />
        <circle class="traj-mark" cx="780" cy="120" r="4" />
        <circle cx="40" cy="560" r="3" fill="none" stroke="currentColor" stroke-width="1.2" />
        <text class="traj-label" x="54" y="554">LAUNCH · 03.1969</text>
        <text class="traj-label" x="718" y="108">LAST PING</text>
      </svg>

      <!-- The massive 404, riso-layered -->
      <div class="digits" aria-label="404">
        <span class="layer pink"  aria-hidden="true">404</span>
        <span class="layer red"   aria-hidden="true">404</span>
        <span class="layer ink">404</span>
        <span class="layer hollow" aria-hidden="true">404</span>
      </div>

      <!-- Rocket -->
      <div class="rocket-wrap" aria-hidden="true">
      <a class="rocket-art" href="https://holanada.com" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true">
        <svg viewBox="0 0 260 520" xmlns="http://www.w3.org/2000/svg">
          <!-- exhaust smoke puffs -->
          <g transform="translate(130 460)">
            <circle class="smoke-puff"    cx="-14" cy="30" r="18" fill="#13203b" opacity="0.25"/>
            <circle class="smoke-puff p2" cx="12"  cy="44" r="22" fill="#13203b" opacity="0.22"/>
            <circle class="smoke-puff p3" cx="-2"  cy="22" r="16" fill="#13203b" opacity="0.28"/>
          </g>

          <!-- flame -->
          <g transform="translate(130 448)">
            <g class="flame">
              <path d="M -18 0 Q -22 90 -10 150 Q -4 200 0 240 Q 4 200 10 150 Q 22 90 18 0 Z"
                    fill="#e13a1c"/>
              <path d="M -11 4 Q -14 80 -6 130 Q -2 170 0 205 Q 2 170 6 130 Q 14 80 11 4 Z"
                    fill="#ff4e84"/>
              <path d="M -5 10 Q -6 60 -3 100 Q -1 135 0 165 Q 1 135 3 100 Q 6 60 5 10 Z"
                    fill="#f5ecd3"/>
            </g>
          </g>

          <!-- rocket body -->
          <!-- nose cone -->
          <path d="M 130 10
                   Q 190 90 190 170
                   L 70 170
                   Q 70 90 130 10 Z"
                fill="#e13a1c" stroke="#13203b" stroke-width="4"/>
          <!-- stripe on nose -->
          <path d="M 130 60 L 170 160 L 90 160 Z" fill="#13203b" opacity="0.2"/>

          <!-- body -->
          <rect x="70" y="170" width="120" height="200" fill="#f5ecd3" stroke="#13203b" stroke-width="4"/>

          <!-- horizontal stripes on body -->
          <rect x="70" y="200" width="120" height="10" fill="#13203b"/>
          <rect x="70" y="335" width="120" height="10" fill="#13203b"/>

          <!-- porthole -->
          <circle cx="130" cy="265" r="34" fill="#13203b" stroke="#13203b" stroke-width="4"/>
          <circle cx="130" cy="265" r="26" fill="#1f6b6b"/>
          <circle cx="130" cy="265" r="26" fill="url(#portGlow)" opacity="0.9"/>
          <!-- reflection -->
          <ellipse cx="118" cy="252" rx="10" ry="6" fill="#f5ecd3" opacity="0.7"/>
          <circle cx="140" cy="275" r="3" fill="#f5ecd3" opacity="0.5"/>

          <!-- rivets -->
          <g fill="#13203b">
            <circle cx="80"  cy="182" r="2.2"/>
            <circle cx="180" cy="182" r="2.2"/>
            <circle cx="80"  cy="220" r="2.2"/>
            <circle cx="180" cy="220" r="2.2"/>
            <circle cx="80"  cy="320" r="2.2"/>
            <circle cx="180" cy="320" r="2.2"/>
            <circle cx="80"  cy="358" r="2.2"/>
            <circle cx="180" cy="358" r="2.2"/>
          </g>

          <!-- serial -->
          <text x="130" y="395" text-anchor="middle"
                font-family="IBM Plex Mono, monospace"
                font-size="14" font-weight="600"
                letter-spacing="2" fill="#13203b">
            N-404
          </text>

          <!-- fins (tripod) -->
          <!-- left fin -->
          <path d="M 70 300
                   L 20 410
                   L 20 450
                   L 70 410 Z"
                fill="#e13a1c" stroke="#13203b" stroke-width="4"/>
          <!-- right fin -->
          <path d="M 190 300
                   L 240 410
                   L 240 450
                   L 190 410 Z"
                fill="#e13a1c" stroke="#13203b" stroke-width="4"/>
          <!-- middle fin (back, darker) -->
          <path d="M 115 370
                   L 100 440
                   L 160 440
                   L 145 370 Z"
                fill="#a8290f" stroke="#13203b" stroke-width="3"/>

          <!-- engine nozzle -->
          <path d="M 95 410
                   L 165 410
                   L 150 440
                   L 110 440 Z"
                fill="#13203b"/>
          <rect x="110" y="440" width="40" height="8" fill="#13203b"/>

          <defs>
            <radialGradient id="portGlow" cx="40%" cy="38%" r="60%">
              <stop offset="0%"  stop-color="#f5ecd3" stop-opacity="0.6"/>
              <stop offset="50%" stop-color="#1f6b6b" stop-opacity="0"/>
              <stop offset="100%" stop-color="#13203b" stop-opacity="0.4"/>
            </radialGradient>
          </defs>
        </svg>
      </a>
      </div>

      <!-- Rogue saucer easter egg -->
      <svg class="saucer" viewBox="0 0 120 64" aria-hidden="true">
        <ellipse cx="60" cy="40" rx="50" ry="12" fill="#13203b"/>
        <ellipse cx="60" cy="38" rx="50" ry="10" fill="#e13a1c"/>
        <ellipse cx="60" cy="28" rx="30" ry="18" fill="#1f6b6b" stroke="#13203b" stroke-width="2.5"/>
        <ellipse cx="52" cy="22" rx="8" ry="5" fill="#f5ecd3" opacity="0.7"/>
        <circle cx="20" cy="48" r="2.5" fill="#ff4e84"/>
        <circle cx="60" cy="50" r="2.5" fill="#ff4e84"/>
        <circle cx="100" cy="48" r="2.5" fill="#ff4e84"/>
      </svg>

      <!-- Stamps -->
      <div class="stamp lost">Transmission · Lost</div>
      <div class="stamp classified">Classified · Vol. IV</div>

    </div>
  </main>

  <!-- FOOTER -->
  <footer class="colophon">
    <div class="sign-off">
      the page has drifted <span>— its rocket un­reachable.</span>
    </div>
    <div class="block left">
      <span class="label">Issued By</span>
      <span class="val">Charlie Llewellin</span>
      <span class="val">charliellewellin.com</span>
    </div>
    <div class="block mid">
      <span class="label">Print Run</span>
      <span class="val">Ed. 01 / ∞</span>
      <span class="val">Riso · Cream 80gsm</span>
    </div>
    <div class="block right">
      <span class="label">Reference</span>
      <span class="val" id="stamp-date"></span>
      <span class="val">HTTP · 404 · NOT FOUND</span>
    </div>
  </footer>

</div>

<script>
  // Today's date in an "official filing" format
  (function () {
    const d = new Date();
    const fmt = d.toLocaleDateString("en-GB", {
      day: "2-digit", month: "short", year: "numeric"
    }).toUpperCase().replace(/ /g, "·");
    const el = document.getElementById("stamp-date");
    if (el) el.textContent = "Filed · " + fmt;

    // Slowly-drifting fake coordinates in the header
    const coords = document.getElementById("coords");
    if (!coords) return;
    function rand(n) { return Math.random() * n; }
    function tick() {
      const lat = (rand(90)).toFixed(3);
      const lon = (rand(180)).toFixed(3);
      const alt = Math.floor(rand(99999)).toString().padStart(5, "0");
      coords.textContent = `Lat ${lat}° · Lon ${lon}° · Alt ${alt}km`;
    }
    tick();
    setInterval(tick, 2400);
  })();

  // Subtle parallax on the rocket + 404 based on pointer
  (function () {
    const rocket = document.querySelector(".rocket-wrap");
    const digits = document.querySelector(".digits");
    if (!rocket || !digits) return;
    if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
    let rx = 0, ry = 0, dx = 0, dy = 0, tx = 0, ty = 0;

    window.addEventListener("pointermove", (e) => {
      const w = window.innerWidth, h = window.innerHeight;
      tx = (e.clientX / w - 0.5);
      ty = (e.clientY / h - 0.5);
    }, { passive: true });

    function loop() {
      rx += (tx - rx) * 0.06;
      ry += (ty - ry) * 0.06;
      rocket.style.translate = `calc(-50% + ${rx * 22}px) calc(-55% + ${ry * 16}px)`;
      digits.style.translate = `${rx * -10}px ${ry * -6}px`;
      requestAnimationFrame(loop);
    }
    loop();
  })();
</script>

</body>
</html>
