/* ============================================================
   schmitt.au — interactive CV of Tobias Schmitt
   Palette chosen for applications: light and open (approachable),
   navy ink (serious, legible), trust blue (competence, reliability),
   a small warm amber accent (energy) — never loud.
   ============================================================ */

:root {
  --bg: #f4f7fd;
  --ink: #0d1f3c;
  --muted: #4e5d78;
  --muted-2: #7a879e;

  --blue: #1f5fd6;
  --blue-bright: #3b7bff;
  --blue-soft: #e6eeff;
  --amber: #f97316;
  --amber-deep: #c2410c;
  --green: #1fa971;

  --grad-blue: linear-gradient(135deg, #3b7bff 0%, #1f5fd6 55%, #1a45a8 100%);
  --grad-text: linear-gradient(120deg, #1f5fd6 0%, #3b7bff 50%, #6d5dfc 100%);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --rim: rgba(255, 255, 255, 0.95);
  --hairline: rgba(13, 31, 60, 0.08);
  --shadow: 0 1px 2px rgba(13, 31, 60, 0.06), 0 18px 48px -12px rgba(13, 31, 60, 0.18);

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-booting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78em;
  padding: 2px 7px;
  border-radius: 7px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(13, 31, 60, 0.08);
}

.accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 900; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 8px; }

/* ============================================================
   Backdrop — light folded silk (the iOS 27 pattern, daylight)
   ============================================================ */

.backdrop {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(255, 214, 150, 0.35), transparent 55%),
    radial-gradient(80% 70% at 100% 30%, rgba(160, 190, 255, 0.45), transparent 60%),
    radial-gradient(90% 80% at 50% 110%, rgba(190, 175, 255, 0.3), transparent 60%),
    linear-gradient(160deg, #fbfcff 0%, #eef3fd 50%, #e9eefb 100%);
}
.fold { position: absolute; pointer-events: none; }
.fold-a {
  inset: -25% 35% 25% -30%;
  border-radius: 0 0 60% 0 / 0 0 70% 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.2) 60%, transparent);
  border-right: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 30px 30px 80px rgba(60, 90, 160, 0.12);
  transform: rotate(-8deg);
}
.fold-b {
  inset: -30% -25% 45% 60%;
  border-radius: 0 0 0 70% / 0 0 0 80%;
  background: linear-gradient(210deg, rgba(255, 255, 255, 0.7), transparent 60%);
  border-left: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: -20px 20px 70px rgba(60, 90, 160, 0.1);
}
.fold-c {
  inset: 74% -20% -40% -20%;
  border-radius: 55% 45% 0 0 / 40% 30% 0 0;
  background: linear-gradient(180deg, rgba(200, 212, 255, 0.5), rgba(235, 240, 255, 0.4));
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 -30px 90px rgba(60, 90, 160, 0.12);
  transform: rotate(-3deg);
}

.progress {
  position: fixed; top: 0; left: 0; z-index: 700;
  height: 3px; width: 100%;
  background: var(--grad-text);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ============================================================
   Glass
   ============================================================ */

.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--rim), rgba(255, 255, 255, 0.35) 40%, rgba(31, 95, 214, 0.12) 70%, rgba(245, 165, 36, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
.glass::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(380px circle at var(--sx, -500px) var(--sy, -500px), rgba(59, 123, 255, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 42%);
  pointer-events: none; z-index: -1;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), var(--maxw));
  height: var(--header-h);
  z-index: 600;
  display: flex; align-items: center; gap: 14px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 34px -12px rgba(13, 31, 60, 0.22);
  transition: transform 0.5s var(--ease);
}
.site-header.is-hidden { transform: translate(-50%, -150%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.brand b { color: var(--blue); font-weight: 700; }
.brand-logo { border-radius: 9px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; color: var(--muted); transition: color 0.25s, background 0.25s; }
.nav a:hover, .nav a.is-current { color: var(--ink); background: rgba(31, 95, 214, 0.08); }
.palette-btn { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.7); color: var(--muted); cursor: pointer; font-size: 0.88rem; }
.palette-btn:hover { color: var(--ink); }

/* ============================================================
   Buttons, kickers, heads
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px;
  border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; position: relative;
  transition: box-shadow 0.3s var(--ease), background 0.3s, transform 0.3s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 12px 30px -10px rgba(31, 95, 214, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 18px 40px -10px rgba(31, 95, 214, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-glass { background: rgba(255, 255, 255, 0.75); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 8px 24px -10px rgba(13, 31, 60, 0.25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: #fff; }
.btn-quiet { background: transparent; color: var(--muted); font-weight: 600; padding: 15px 18px; }
.btn-quiet::before { display: none; }
.btn-quiet:hover { color: var(--blue); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.kicker .bar { width: 4px; height: 14px; border-radius: 3px; background: var(--amber); }
.kicker.small { font-size: 0.7rem; }

h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.lede { color: var(--muted); font-size: 1.06rem; max-width: 60ch; }
.note { color: var(--muted-2); font-size: 0.84rem; }

section { padding: 120px 24px; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ============================================================
   Boot
   ============================================================ */

.boot { position: fixed; inset: 0; z-index: 1000; background: #f4f7fd; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.boot.is-done { opacity: 0; visibility: hidden; }
.boot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   Stage — the fixed 3D globe
   ============================================================ */

.stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stage-inner {
  position: absolute;
  top: 0; bottom: 0;
  left: 46%; width: 56%;
  will-change: transform, opacity;
}
.stage canvas { width: 100%; height: 100%; display: block; pointer-events: none; touch-action: pan-y; }
.stage canvas.is-dragging { cursor: grabbing; }
.pin-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pin-label {
  position: absolute; left: 0; top: 0;
  margin: -46px 0 0 14px;
  padding: 6px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px -8px rgba(13, 31, 60, 0.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  transition: opacity 0.3s;
  display: flex; flex-direction: column; line-height: 1.2;
}
.pin-label b { font-size: 0.82rem; color: var(--ink); }
.pin-label span { font-size: 0.7rem; color: var(--muted); }
.pin-label.is-now b { color: var(--amber-deep); }
.pin-label.is-minor { padding: 4px 8px; background: rgba(255, 255, 255, 0.7); }
.pin-label.is-minor b { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.pin-label.is-minor span { display: none; }

.stage-hud {
  position: fixed; z-index: 500; left: 27vw; bottom: 6vh;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.5s;
}
.stage-hud.is-on { opacity: 1; }
.hud-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.hud-year { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hud-place { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.hud-net { margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; color: var(--blue); background: var(--blue-soft); opacity: 0; transition: opacity 0.4s; }
.hud-net.is-on { opacity: 1; }
.hud-key { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 0.66rem; color: var(--muted-2); opacity: 0; transition: opacity 0.4s; }
.hud-key.is-on { opacity: 1; }
.hud-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* Name of the site under the cursor */
.site-tip {
  position: absolute; left: 0; top: 0;
  margin: -34px 0 0 12px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.76rem; font-weight: 700; white-space: nowrap;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fff;
  box-shadow: 0 8px 20px -8px rgba(13, 31, 60, 0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.site-tip.is-on { opacity: 1; }
.site-tip.is-de { color: var(--amber-deep); }
.stage-hint { position: absolute; left: 50%; top: calc(var(--header-h) + 34px); transform: translateX(-50%); font-size: 0.75rem; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.5s; }
.stage.is-journey .stage-hint { opacity: 0; }

/* ============================================================
   Hero
   ============================================================ */

.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 50px) 24px 90px; }
.hero-copy { width: min(100%, var(--maxw)); margin: 0 auto; }
.hero-copy > * { max-width: 560px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }

.eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; font-weight: 500; padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 6px 20px -10px rgba(13, 31, 60, 0.25); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 169, 113, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(31, 169, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 169, 113, 0); } }

.hero-title { font-size: clamp(3.4rem, 8.4vw, 7.4rem); line-height: 0.92; letter-spacing: -0.055em; font-weight: 800; max-width: 7.5ch !important; }
.hero-title .ch { display: inline-block; will-change: transform; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .word:last-child { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .word:last-child .ch { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-role { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 650; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.dot-sep { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.hero-sub { color: var(--muted); font-size: 1.06rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 26px; margin-top: 10px; max-width: 620px !important; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-stats dt { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(13, 31, 60, 0.25); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   Journey — cards on the right, globe on the left
   ============================================================ */

.journey { padding-top: 60px; padding-bottom: 60px; position: relative; }
.journey-inner { position: relative; width: min(100%, var(--maxw)); margin: 0 auto; }
.journey-head, .timeline { width: min(100%, 760px); margin: 0 auto; }
.journey-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.7); color: var(--muted); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all 0.3s var(--ease); }
.chip:hover { color: var(--ink); background: #fff; }
.chip.is-on { color: #fff; background: var(--grad-blue); border-color: transparent; box-shadow: 0 8px 18px -8px rgba(31, 95, 214, 0.6); }

.timeline { list-style: none; padding: 0; position: relative; }
/* ============================================================
   Roller conveyor + the consignment's scan history
   ============================================================ */

.timeline { --rail: -40px; }
.timeline::before, .timeline::after { content: none; }

.belt { position: absolute; left: calc(50% - 420px); top: 24px; bottom: 24px; width: 58px; margin-left: -29px; pointer-events: none; }
.belt-rail {
  position: absolute; inset: 0;
  border-radius: 8px;
  background:
    repeating-linear-gradient(180deg,
      rgba(13, 31, 60, 0.22) 0 1px,
      rgba(255, 255, 255, 0.8) 1px 3px,
      transparent 3px 14px),
    linear-gradient(90deg, #97a5bf 0 4px, #d5ddec 4px, #eef2f9 42%, #dae1ee 72%, #97a5bf calc(100% - 4px));
  background-position-y: var(--belt, 0px), 0;
  box-shadow: inset 0 0 0 1px rgba(13, 31, 60, 0.18), 0 18px 40px -22px rgba(13, 31, 60, 0.6);
}
.belt-cargo { position: absolute; inset: 0; overflow: hidden; border-radius: 8px; }

/* flat parcels, the colour of packing paper */
.parcel {
  position: absolute; left: 50%; width: 38px; height: 26px; margin-left: -19px;
  border-radius: 3px;
  background: linear-gradient(170deg, #f1e4d0, #ded0b4 55%, #c8b694);
  border: 1px solid rgba(90, 70, 40, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 5px 10px -6px rgba(13, 31, 60, 0.55);
  transform: translateY(var(--y, 0px));
}
.parcel::after { content: ""; position: absolute; left: -1px; right: -1px; top: 9px; height: 5px; background: rgba(255, 255, 255, 0.45); border-top: 1px solid rgba(90, 70, 40, 0.18); border-bottom: 1px solid rgba(90, 70, 40, 0.18); }
.parcel-label { position: absolute; left: 4px; top: 3px; width: 16px; height: 9px; background: #fff; border: 1px solid rgba(90, 70, 40, 0.25); display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 2px; }
.parcel-label i { display: block; height: 1px; background: repeating-linear-gradient(90deg, rgba(20,20,20,0.75) 0 1px, transparent 1px 2px); }
.parcel.is-marked { background: linear-gradient(170deg, #ffffff, #eef2f9 55%, #d8e0ee); border-color: rgba(31, 95, 214, 0.28); }

/* scan checkpoints sit on the belt */
.scan {
  position: absolute; left: var(--rail); top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 132px; text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none; z-index: 3;
}
.scan i {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(13, 31, 60, 0.25);
  display: grid; place-items: center;
  box-shadow: 0 4px 10px -4px rgba(13, 31, 60, 0.5);
  transition: all 0.4s var(--ease);
}
.scan i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform 0.3s var(--ease); }
.is-scanned .scan i { background: var(--blue); border-color: #fff; box-shadow: 0 0 0 4px rgba(31, 95, 214, 0.15); }
.is-scanned .scan i::after { transform: rotate(-45deg) scale(1); }
.stop-now.is-scanned .scan i { background: var(--amber); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); }
.scan b { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; background: rgba(255,255,255,0.75); padding: 0 4px; border-radius: 4px; }
.scan span { font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); line-height: 1.25; opacity: 0; transition: opacity 0.4s; background: rgba(255,255,255,0.7); border-radius: 4px; padding: 0 4px; }
.is-scanned .scan b { color: var(--blue); }
.is-scanned .scan span { opacity: 1; }
.stop-now.is-scanned .scan b { color: var(--amber-deep); }

.stop { position: relative; min-height: 58vh; display: flex; align-items: center; padding: 20px 0; }




.card { padding: 28px 30px; width: 100%; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.5s, box-shadow 0.4s; }
.stop:not(.is-active) .card { opacity: 0.5; transform: scale(0.97); }
.stop.is-active .card { box-shadow: 0 1px 2px rgba(13, 31, 60, 0.06), 0 30px 60px -18px rgba(31, 95, 214, 0.35); }
.stop.is-dim .card { opacity: 0.18 !important; filter: grayscale(1) blur(1px); }
.stop.is-match .card { opacity: 1; transform: none; box-shadow: 0 0 0 2px rgba(59, 123, 255, 0.5), 0 30px 60px -18px rgba(31, 95, 214, 0.35); }

.when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.when .yr { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; }
.stop-now .when .yr { color: var(--amber-deep); background: #ffece0; }
.stop h3 { font-size: 1.36rem; line-height: 1.25; letter-spacing: -0.02em; margin: 12px 0 4px; font-weight: 700; }
.org { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.summary { color: var(--ink); opacity: 0.85; margin-top: 12px; }

/* A short introduction to the company itself. */
.company { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(31, 95, 214, 0.05); border: 1px solid rgba(31, 95, 214, 0.12); }
.company p { font-size: 0.88rem; color: var(--muted); }
.company b { color: var(--ink); font-weight: 700; }
.mini-map { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #eef3fd, #e4ecfb); border: 1px solid rgba(31, 95, 214, 0.12); }
.mini-map svg { display: block; width: 100%; height: auto; }
.mini-map .land { fill: #cdd8ee; }
.mini-map .site { fill: var(--blue); cursor: pointer; transition: r 0.2s; }
.mini-map .site.de { fill: var(--amber); }
.mini-map .site:hover { r: 4.5; }
.mini-map .halo { fill: none; stroke: var(--amber); stroke-width: 1.2; opacity: 0.8; }
.mini-cap { position: absolute; left: 8px; bottom: 6px; font-size: 0.66rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,0.8); padding: 2px 7px; border-radius: 6px; }
.co-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.co-tags li { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--blue); background: #fff; border: 1px solid rgba(31, 95, 214, 0.18); padding: 4px 9px; border-radius: 999px; }
.co-tags li.is-count { color: var(--amber-deep); border-color: rgba(249, 115, 22, 0.3); background: #fff7ed; }

details { margin-top: 12px; }
summary { cursor: pointer; color: var(--blue); font-size: 0.88rem; font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.1em; transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
details li { margin: 5px 0; }
details li::marker { color: var(--blue); }

.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--hairline); color: var(--ink); }
.card-link { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Impact
   ============================================================ */

.impact-hero { width: min(100%, var(--maxw)); margin: 0 auto 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.impact-grid { width: min(100%, var(--maxw)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.odo-line { color: var(--muted); font-size: 0.95rem; margin-top: -4px; }
.odometer { padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.odo { display: flex; align-items: baseline; gap: 10px; }
.odo-digits { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(2.4rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.odo-unit { color: var(--muted); font-weight: 700; }
.odo-approx { font-size: 1.6rem; font-weight: 700; color: var(--muted-2); margin-right: 2px; }
.odo-earth p { font-size: 1.1rem; margin-top: 8px; }
.odo-earth b { color: var(--blue); }
.odo-bar { height: 10px; border-radius: 10px; background: var(--blue-soft); overflow: hidden; }
.odo-bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--grad-text); border-radius: inherit; }
.impact-card { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.impact-card .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--blue); }
.impact-card p:last-child { color: var(--muted); }
.impact-card b { color: var(--ink); }

/* ============================================================
   Skills
   ============================================================ */

.skill-grid { width: min(100%, var(--maxw)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.skill-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-blue); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 20px -8px rgba(31, 95, 214, 0.55); }
.skill h3 { font-size: 1.14rem; letter-spacing: -0.015em; }
.skill p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.meter { height: 6px; border-radius: 6px; background: var(--blue-soft); overflow: hidden; flex: 1; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad-text); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.is-in .meter span { transform: scaleX(var(--v)); }
.lang { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.82rem; color: var(--muted); }
.lang > span { width: 22px; }

/* ============================================================
   Licences — holographic cards
   ============================================================ */

.holo-row { width: min(100%, var(--maxw)); margin: 0 auto 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; perspective: 1400px; }
.lic-note { width: min(100%, var(--maxw)); margin: 0 auto 30px; text-align: center; color: var(--muted-2); font-size: 0.84rem; }

/* --- Shared card body ------------------------------------------------ */
.lic {
  position: relative;
  aspect-ratio: 1.586 / 1;
  border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.4s;
  outline: none;
  overflow: hidden;
  box-shadow: 0 26px 50px -22px rgba(13, 31, 60, 0.55), 0 2px 6px rgba(13, 31, 60, 0.12);
  font-family: "Helvetica Neue", Arial, -apple-system, sans-serif;
}
.lic:focus-visible { box-shadow: 0 0 0 3px var(--blue-bright), 0 26px 50px -22px rgba(13, 31, 60, 0.55); }
.lic-inner { position: relative; height: 100%; display: flex; flex-direction: column; }

/* The fine guilloché print every Australian card carries. */
.lic-inner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(68deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-58deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 5px);
  opacity: 0.5;
  pointer-events: none;
}

.qld { display: inline-flex; flex-direction: column; font-size: 0.62rem; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; position: relative; padding-left: 16px; white-space: nowrap; }
.qld small { font-weight: 400; font-size: 0.95em; }
/* A neutral stand-in for the state badge — never the actual coat of arms. */
.qld i { position: absolute; left: 0; top: 1px; width: 11px; height: 13px; border-radius: 3px 3px 5px 5px; background: currentColor; opacity: 0.55; }

.lic-name { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.lic-hrw .lic-name { margin-left: 66px; margin-bottom: 2px; }
.lic-hr .lic-name, .lic-c .lic-name { margin-bottom: 10px; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35); }
.lic-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin: 0; }
.lic-fields.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lic-fields dt { font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
.lic-fields dd { margin: 0; font-size: 0.86rem; font-weight: 700; letter-spacing: -0.01em; }
.lic-fields .redact { letter-spacing: 0.12em; opacity: 0.55; font-size: 0.78rem; }
.lic-fields .ok { color: #157a4b; }

/* --- 1. High Risk Work (silver, black bar) --------------------------- */
.lic-hrw .lic-inner { background: linear-gradient(150deg, #fdfdfe 0%, #e9ecf1 45%, #f6f7fa 70%, #dfe3ea 100%); color: #10131a; }
.lic-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: #101216; color: #fff; }
.lic-bar p { font-size: 0.62rem; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase; }
.lic-bar b { font-size: 0.82rem; letter-spacing: 0.02em; }
.lic-body { position: relative; flex: 1; padding: 12px 14px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.lic-map { position: absolute; right: 7%; top: 12%; width: 44%; fill: #6d80a0; opacity: 0.18; }
.lic-class {
  position: absolute; left: 14px; top: 10px;
  width: 54px; height: 66px;
  display: grid; place-items: center;
  border-radius: 5px;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  color: #2b3446;
  background: linear-gradient(150deg, #ffffff, #d9dee7);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(13, 31, 60, 0.18);
}
.lic-hrw .lic-fields { margin-left: 66px; }

/* --- 2. Heavy Vehicle (gold with the magenta wash) ------------------- */
.lic-hr .lic-inner {
  color: #23180a;
  background:
    radial-gradient(120% 120% at 0% 55%, rgba(196, 96, 150, 0.55), transparent 55%),
    linear-gradient(115deg, #e8b765 0%, #f2c778 38%, #f7d489 62%, #eab85e 100%);
}
/* --- 3. Car licence (brighter yellow) -------------------------------- */
.lic-c .lic-inner {
  color: #241a05;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 45%),
    linear-gradient(115deg, #f2b933 0%, #f8cb45 40%, #ffd95e 65%, #edb62c 100%);
}
.lic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 14px 0; }
.lic-head h3 { font-size: 0.98rem; line-height: 1.15; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(120, 70, 20, 0.45); letter-spacing: -0.01em; }
.lic-no { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.lic-no small { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.lic-no b { font-size: 0.86rem; letter-spacing: 0.12em; opacity: 0.6; }
.lic-hr .lic-body, .lic-c .lic-body { justify-content: center; padding: 10px 14px; }
.lic-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 14px 12px; }
.lic-state { font-size: 0.6rem; letter-spacing: 0.04em; opacity: 0.7; }

/* Holographic sheen, following the pointer. */
.holo-foil {
  position: absolute; inset: -40%;
  background: conic-gradient(from var(--angle, 0deg) at var(--fx, 50%) var(--fy, 50%),
    rgba(255, 255, 255, 0), rgba(255, 235, 170, 0.5), rgba(160, 255, 235, 0.45), rgba(175, 175, 255, 0.5), rgba(255, 170, 225, 0.45), rgba(255, 255, 255, 0));
  mix-blend-mode: overlay;
  opacity: var(--foil, 0.3);
  pointer-events: none;
  transition: opacity 0.3s;
}

.cert-grid { width: min(100%, var(--maxw)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cert { padding: 26px 28px; }
.cert-group { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
.cert ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cert li { padding-left: 20px; position: relative; }
.cert li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-text); transform: rotate(45deg); }
.cert b { color: var(--blue); }
.cert .note { margin-top: 14px; }

/* ============================================================
   Ventures + contact + footer
   ============================================================ */

.venture-grid { width: min(100%, var(--maxw)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.venture { padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.venture:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(13, 31, 60, 0.06), 0 30px 60px -20px rgba(31, 95, 214, 0.35); }
.venture h3 { font-size: 1.6rem; letter-spacing: -0.025em; line-height: 1.15; }
.venture p { color: var(--muted); }
.app-strip { display: flex; gap: 10px; margin: 8px 0 4px; flex-wrap: wrap; }
.app-strip img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 10px 22px -8px rgba(13, 31, 60, 0.4); transition: transform 0.35s var(--ease); }
.venture:hover .app-strip img { transform: translateY(-5px) rotate(-3deg); }
.venture:hover .app-strip img:nth-child(2) { transition-delay: 0.04s; }
.venture:hover .app-strip img:nth-child(3) { transition-delay: 0.08s; }
.venture:hover .app-strip img:nth-child(4) { transition-delay: 0.12s; }
.venture:hover .app-strip img:nth-child(5) { transition-delay: 0.16s; }
.venture-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px; background: var(--grad-blue, linear-gradient(120deg, #1f5fd6, #3b82f6 60%, #6d6dfc)); color: #fff; font-weight: 640; font-size: 0.95rem; box-shadow: 0 12px 26px -14px rgba(31, 95, 214, 0.85); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.venture:hover .venture-btn { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(31, 95, 214, 0.95); }
.venture-btn span { transition: transform 0.3s var(--ease); }
.venture:hover .venture-btn span { transform: translateX(3px); }

.contact-card { width: min(100%, 880px); margin: 0 auto; padding: 60px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.target-roles { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; align-items: center; }
.target-roles li { position: relative; padding: 9px 20px; border-radius: 999px; background: rgba(31, 95, 214, 0.07); border: 1px solid rgba(31, 95, 214, 0.14); color: var(--ink); font-weight: 560; font-size: 0.95rem; }
@media (max-width: 620px) { .target-roles li { font-size: 0.88rem; padding: 8px 14px; } }

.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.contact-line { color: var(--muted-2); font-size: 0.9rem; }

.site-footer { padding: 10px 24px 40px; }
.footer-inner { width: min(100%, var(--maxw)); margin: 0 auto; padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 0.9rem; border-radius: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--ink); }
.footer-links b { color: var(--blue); }

/* ============================================================
   Palette + toast
   ============================================================ */

.palette { position: fixed; inset: 0; z-index: 800; display: grid; place-items: start center; padding-top: 14vh; background: rgba(13, 31, 60, 0.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette-box { width: min(calc(100% - 32px), 580px); padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.92); border: 1px solid #fff; box-shadow: 0 40px 80px -20px rgba(13, 31, 60, 0.4); }
.palette input { width: 100%; padding: 16px 18px; font-size: 1.05rem; background: transparent; border: 0; border-bottom: 1px solid var(--hairline); color: var(--ink); outline: none; }
.palette ul { list-style: none; margin: 8px 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.palette li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 12px; cursor: pointer; color: var(--muted); }
.palette li span:last-child { font-size: 0.78rem; color: var(--muted-2); }
.palette li.is-active { background: var(--blue-soft); color: var(--ink); }
.palette li.is-active span:last-child { color: var(--blue); }
.palette-hint { padding: 6px 16px 8px; color: var(--muted-2); font-size: 0.78rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.tour-bar {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 820;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #fff;
  box-shadow: 0 18px 40px -14px rgba(13, 31, 60, 0.4);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.tour-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tour-track { width: 140px; height: 5px; border-radius: 5px; background: var(--blue-soft); overflow: hidden; }
.tour-track span { display: block; height: 100%; width: var(--w, 0%); background: var(--grad-text); border-radius: inherit; }
.tour-bar button { padding: 7px 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 600; cursor: pointer; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px); z-index: 850; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

[data-reveal] { opacity: 0; transform: translateY(34px); }
.no-gsap [data-reveal], .is-reduced [data-reveal] { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .nav { display: none; }
  .palette-btn { margin-left: auto; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 58px; }
  section { padding: 90px 16px; }
  .site-header { top: 8px; padding: 0 6px 0 12px; }
  .palette-btn span { display: none; }

  /* Globe sits on top half in the hero, then behind the cards. */
  .stage-inner { left: -10%; width: 120%; top: 0; bottom: 38%; }
  .hero { align-items: flex-end; padding-top: 52vh; }
  .hero-copy { gap: 16px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  .journey-head, .timeline { width: 100%; margin: 0; }
  .journey-head { margin-bottom: 20px; }
  .timeline { --rail: -28px; padding-left: 58px; }
  .belt { left: 30px; width: 38px; margin-left: -19px; }
  .parcel { width: 26px; height: 18px; margin-left: -13px; }
  .parcel-label { width: 11px; height: 6px; }
  .scan { width: 56px; }
  .scan span { display: none; }
  .stop { min-height: 0; padding: 14px 0; }
  .stop:not(.is-active) .card { opacity: 0.85; transform: none; }
  .card { padding: 22px; background: rgba(255, 255, 255, 0.8); }
  .stage-hud { bottom: 14px; top: auto; left: auto; right: 14px; transform: none; padding: 8px 14px; align-items: flex-end; }
  .stage.is-journey .pin-layer { opacity: 0; transition: opacity 0.4s; }
  .hud-year { font-size: 1.7rem; }
  .stage-hint { display: none; }

  .impact-grid, .impact-hero, .venture-grid, .cert-grid, .skill-grid { grid-template-columns: 1fr; }
  .holo-row { grid-template-columns: 1fr; }
  .lic { max-width: 420px; width: 100%; margin: 0 auto; }
  .contact-card { padding: 40px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Print — a plain, complete CV on paper or as a PDF
   ============================================================ */

@media print {
  @page { margin: 14mm; }
  .backdrop, .stage, .stage-hud, .progress, .site-header, .scroll-cue,
  .palette, .toast, .tour-bar, .filter-bar, .hero-cta, .boot, .app-strip { display: none !important; }

  body { background: #fff; color: #000; font-size: 10.5pt; }
  section { padding: 0 0 10mm; break-inside: avoid; }
  .glass, .card, .cert, .venture, .skill, .contact-card, .odometer, .impact-card {
    background: #fff !important; box-shadow: none !important; border: 1px solid #ccd3e0 !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 4mm 5mm !important;
  }
  .glass::before, .glass::after { display: none !important; }
  .hero { min-height: 0; padding: 0 0 6mm; display: block; }
  .hero-copy > *, .hero-title { max-width: none !important; }
  .hero-title { font-size: 26pt !important; }
  .hero-title .word:last-child, .hero-title .word:last-child .ch, .accent { color: #0d1f3c !important; -webkit-text-fill-color: #0d1f3c; background: none; }
  .hero-stats { grid-template-columns: repeat(4, auto); gap: 8mm; }
  .hero-stats dd { font-size: 14pt; }

  .journey-head, .timeline { width: 100% !important; margin: 0 !important; }
  .timeline::before, .timeline::after, .stop::before { display: none; }
  .stop { min-height: 0 !important; padding: 0 0 4mm !important; display: block; break-inside: avoid; }
  .stop .card { opacity: 1 !important; transform: none !important; filter: none !important; }
  /* Open every collapsed detail so nothing is missing on paper. */
  details > *:not(summary) { display: block !important; }
  summary { list-style: none; color: #000; }
  summary::after { display: none; }

  .skill-grid, .cert-grid, .impact-grid, .venture-grid, .holo-row { grid-template-columns: 1fr 1fr !important; gap: 4mm !important; }
  .lic { aspect-ratio: auto; height: 26mm; box-shadow: none; }
  h2 { font-size: 15pt !important; }
  .section-head { margin-bottom: 4mm; text-align: left; align-items: flex-start; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  a[href^="#"]::after, .nav a::after { content: ""; }
}

/* ============================================================
   Site map — real OpenStreetMap tiles, loaded on demand
   ============================================================ */

.tiles {
  position: fixed; left: 24px; bottom: 24px; z-index: 560;
  width: 316px;
  border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fff;
  box-shadow: 0 30px 60px -20px rgba(13, 31, 60, 0.45);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: tilesIn 0.4s cubic-bezier(.22,1,.36,1);
}
@keyframes tilesIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.tiles-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; font-weight: 700; font-size: 0.92rem; }
.tiles-head button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--blue-soft); color: var(--blue); cursor: pointer; font-size: 0.8rem; }
.tiles-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: 300px; height: 300px; margin: 0 8px; border-radius: 14px; overflow: hidden; background: #e8eef7; }
.tiles-grid img { width: 100px; height: 100px; display: block; }
.tiles-grid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3), 0 2px 6px rgba(0,0,0,0.3); }
.tiles-credit { padding: 8px 16px 12px; font-size: 0.68rem; color: var(--muted-2); }
.tiles-credit a { text-decoration: underline; }

@media (max-width: 900px) { .tiles { left: 12px; right: 12px; width: auto; bottom: 12px; } .tiles-grid { width: auto; } }

/* ============================================================
   Consignment-note dressing for each stop
   ============================================================ */

.card { padding-top: 0 !important; overflow: hidden; }
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 -30px 16px; padding: 10px 30px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  background: repeating-linear-gradient(90deg, rgba(31,95,214,0.05) 0 8px, transparent 8px 16px);
  border-bottom: 1px dashed rgba(13, 31, 60, 0.18);
}
.doc-kind { color: var(--blue); font-weight: 700; }
.doc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 18px -30px -28px; padding: 12px 30px 16px;
  border-top: 1px dashed rgba(13, 31, 60, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
}
.barcode {
  flex: 1; max-width: 190px; height: 26px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 1px, transparent 1px 3px,
    var(--ink) 3px 5px, transparent 5px 6px,
    var(--ink) 6px 7px, transparent 7px 11px);
  opacity: 0.75;
}
.stamp {
  position: absolute; top: 44px; right: 18px;
  padding: 5px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(31, 95, 214, 0.75);
  border: 2px solid rgba(31, 95, 214, 0.5);
  border-radius: 6px;
  transform: rotate(-8deg);
  opacity: 0.85;
}
.stamp.is-live { color: rgba(194, 65, 12, 0.85); border-color: rgba(249, 115, 22, 0.6); }
.stamp::after { content: " · " attr(data-years); letter-spacing: 0.08em; }

@media (max-width: 760px) {
  .doc-head, .doc-foot { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .stamp { top: 40px; right: 12px; font-size: 0.6rem; }
}
