@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-extrabold.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111210;
  --paper: #f2f0e6;
  --yellow: #e5ff52;
  --blue: #3155f5;
  --muted: #b7b9aa;
  --line: #42453b;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--paper); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
button[hidden] { display: none; }
[hidden] { display: none !important; }
.site-shell { max-width: 1440px; margin: auto; padding: 30px clamp(24px, 5vw, 72px) 0; }
.hero { padding-top: 28px; }
.hero-topline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font: 11px/1.5 'Courier New', monospace; letter-spacing: .09em; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 6vw, 88px); padding: 44px 0 55px; align-items: end; }
.hero-name { position: relative; padding-bottom: 26px; min-width: 0; }
h1 { font-family: var(--display); font-size: clamp(140px, 24.5vw, 354px); font-weight: 800; line-height: .76; text-transform: uppercase; letter-spacing: -.035em; }
h1 > span { display: block; }
h1 .name-loud { color: var(--yellow); margin-top: 12px; }
.alias-sticker { position: absolute; bottom: 0; left: 8px; transform: rotate(-5deg); background: var(--blue); color: var(--paper); border: 2px solid var(--ink); border-radius: 0; padding: 11px 18px; font: bold 14px/1 'Courier New', monospace; letter-spacing: .08em; box-shadow: 5px 5px 0 var(--ink); cursor: pointer; }
.alias-sticker span { padding-left: 20px; }
.hero-aside { position: relative; padding-top: 82px; isolation: isolate; }
.burst { position: absolute; z-index: -1; right: 0; top: -30px; width: 142px; aspect-ratio: 1; display: grid; place-items: center; color: var(--ink); background: var(--yellow); transform: rotate(12deg); clip-path: polygon(50% 0,59% 15%,75% 7%,76% 25%,93% 25%,85% 41%,100% 50%,85% 59%,93% 75%,75% 76%,75% 93%,59% 85%,50% 100%,41% 85%,25% 93%,24% 75%,7% 75%,15% 59%,0 50%,15% 41%,7% 25%,25% 24%,25% 7%,41% 15%); }
.burst span { text-align: center; font-family: var(--display); font-size: 29px; font-weight: 800; line-height: .9; transform: rotate(-12deg); }
.statement { font-family: var(--display); font-size: clamp(48px, 6.3vw, 89px); font-weight: 800; line-height: .92; letter-spacing: -.015em; text-transform: uppercase; }
.statement > span { color: var(--yellow); }
.hero-copy { max-width: 34ch; margin-top: 26px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.impact-button { display: inline-flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 46px; margin-top: 24px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--ink); color: var(--paper); font-size: 12px; cursor: pointer; }
.impact-button > span { font-size: 23px; line-height: 1; color: var(--yellow); }
.impact-button:hover { border-color: var(--yellow); }
.impact-button:disabled { cursor: default; }
.interest-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 19px 0; font: 11px/1.5 'Courier New', monospace; text-transform: uppercase; letter-spacing: .1em; }
.interest-track { display: flex; width: 100%; }
.interest-group { display: flex; align-items: center; flex-wrap: wrap; max-width: 100%; gap: 12px 38px; }
.interest-group > span { display: inline-flex; gap: 14px; align-items: center; white-space: nowrap; }
.interest-group > span::before { content: '+'; color: var(--yellow); font-size: 17px; line-height: 1; }
.eyebrow { font: 11px/1.5 'Courier New', monospace; letter-spacing: .1em; margin-bottom: 16px; }
.about { background: var(--blue); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 84px); margin-top: 42px; padding: clamp(28px, 4vw, 54px); }
.about h2, .section-heading h2 { font-family: var(--display); font-size: clamp(38px, 4.8vw, 65px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; }
.about-copy p { font-size: 15px; line-height: 1.7; }
.about-copy p + p { margin-top: 16px; }
.about-copy strong { font-weight: 700; }
.about-copy .about-signature { font-family: var(--display); color: var(--yellow); font-size: 28px; line-height: 1; text-transform: uppercase; font-weight: 800; margin-top: 24px; }
.projects { padding: 76px 0 68px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.projects .eyebrow { color: var(--yellow); }
.section-arrow { font-size: 86px; line-height: 1; color: var(--yellow); }
.project-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.project-list > li { min-width: 0; }
.project-link { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; height: 100%; min-height: 280px; padding: 25px 26px 21px; color: var(--ink); }
.project-topline, .project-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.project-cars { background: var(--paper); }
.project-finest { background: var(--yellow); }
.project-nautic { background: var(--blue); color: var(--paper); }
.project-number, .project-domain, .project-type { font: 11px/1.4 'Courier New', monospace; }
.project-domain { min-width: 0; overflow-wrap: anywhere; }
.project-type { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.project-name { font-family: var(--display); font-size: clamp(35px, 4vw, 58px); font-weight: 800; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.project-arrow { flex: none; font: 35px/1 Arial,sans-serif; }
.project-placeholder { background: #1d201a; border: 1px solid var(--line); color: var(--paper); }
.project-placeholder .project-name { color: #9ca18e; }
.project-placeholder .project-type, .project-placeholder .project-number, .project-placeholder .project-domain { color: var(--muted); }
.project-add { flex: none; font: 39px/1 Arial,sans-serif; color: var(--yellow); }
.project-link:hover .project-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.project-cars:focus-visible, .project-finest:focus-visible { outline-color: var(--blue); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; border-top: 1px solid var(--line); padding: 26px 0 30px; font: 10px/1.5 'Courier New', monospace; letter-spacing: .07em; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 12px; color: var(--paper); }
.site-footer a span { font-size: 22px; color: var(--yellow); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 1000; padding: 12px 18px; background: var(--yellow); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

@media (max-width: 900px) {
  .hero-grid { gap: 30px; }
  h1 { font-size: clamp(150px, 27vw, 240px); }
  .hero-aside { padding-top: 60px; }
  .burst { width: 112px; top: -28px; }
  .burst span { font-size: 24px; }
  .statement { font-size: clamp(46px, 6.5vw, 59px); }
  .hero-copy { font-size: 14px; }
  .project-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-link { min-height: 275px; padding: 24px; }
  .project-name { font-size: clamp(36px, 5.8vw, 52px); }
}

@media (max-width: 620px) {
  .site-shell { padding: 18px 22px 0; }
  .hero { padding-top: 22px; }
  .hero-topline { font-size: 9px; letter-spacing: .05em; }
  .hero-topline span:last-child { display: none; }
  .hero-grid { grid-template-columns: minmax(0,1fr); padding: 33px 0 30px; gap: 44px; }
  .hero-name { max-width: 440px; width: 100%; padding-bottom: 22px; }
  h1 { font-size: clamp(174px, 49vw, 292px); line-height: .77; }
  h1 .name-loud { margin-top: 9px; }
  .alias-sticker { left: 5px; bottom: 0; font-size: 12px; padding: 10px 14px; }
  .hero-aside { padding-top: 0; padding-right: 0; }
  .statement { font-size: clamp(48px, 12vw, 70px); max-width: 75%; }
  .burst { top: 5px; right: 0; width: 92px; }
  .burst span { font-size: 21px; }
  .hero-copy { margin-top: 20px; font-size: 15px; max-width: 37ch; }
  .impact-button { margin-top: 18px; }
  .interest-strip { padding: 17px 0; font-size: 10px; }
  .interest-group { gap: 12px 22px; }
  .interest-group > span { gap: 9px; }
  .about { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; padding: 28px 24px; }
  .about h2 { font-size: clamp(35px, 8.5vw, 48px); }
  .about-copy p { font-size: 14px; }
  .about-copy .about-signature { font-size: 26px; }
  .projects { padding: 49px 0 40px; }
  .section-heading h2 { font-size: clamp(35px, 8.5vw, 48px); }
  .section-arrow { font-size: 53px; }
  .project-list { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .project-link { min-height: 252px; padding: 23px; gap: 22px; }
  .project-name { font-size: 48px; }
  .project-domain, .project-number { font-size: 11px; }
  .project-arrow { font-size: 34px; }
  .site-footer { padding-top: 22px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .project-arrow { transition: transform .18s ease; }
  .project-link:hover .project-arrow { transform: translate(3px,-3px); }
  .hero.is-impact .burst { animation: impact-burst .8s cubic-bezier(.2,.7,.2,1); }
  .hero.is-impact .alias-sticker { animation: impact-sticker .8s ease; }
  @keyframes impact-burst { 0%,100% { transform: rotate(12deg) scale(1); } 40% { transform: rotate(145deg) scale(1.2); } }
  @keyframes impact-sticker { 0%,100% { transform: rotate(-5deg); } 40% { transform: translateY(-10px) rotate(3deg); } }
}

@media print {
  :root { --ink: #fff; --paper: #111; --yellow: #111; --blue: #e7e7e7; --muted: #333; --line: #777; }
  .impact-button, .skip-link, .burst, .section-arrow { display: none !important; }
  h1 { font-size: 100px; }
  .hero-grid { padding-top: 24px; }
  .hero-aside { padding-top: 0; }
  .statement { font-size: 38px; }
  .alias-sticker { box-shadow: none; }
  .project-link, .about { break-inside: avoid; }
}
/* Fan reward and presentation effects. */
.rams-badge { display: inline-grid; place-items: center; width: 54px; height: 40px; padding: 2px; background: transparent; border: 0; border-radius: 0; cursor: pointer; }
.rams-logo { width: 39px; height: 39px; display: block; }
.rams-badge:hover { background: transparent; filter: drop-shadow(0 0 5px #e5ff5255); }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.photo-trigger { display: inline; padding: 0 2px; border: 0; border-bottom: 1px dotted currentColor; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.photo-trigger span { margin-left: 3px; color: var(--yellow); }
.celebration-layer { position: fixed; inset: 0; z-index: 180; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; top: 0; left: 50%; width: 8px; height: 15px; background: var(--yellow); }
.confetti-piece:nth-child(even) { background: var(--blue); }
.confetti-piece:nth-child(3n) { background: var(--paper); }
.easter-toast { position: fixed; z-index: 190; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 13px 22px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--blue); font-family: var(--display); font-size: 25px; font-weight: 800; line-height: 1.1; text-transform: uppercase; text-align: center; pointer-events: none; }
.photo-frame { position: fixed; z-index: 170; inset: 15px; border: 2px solid var(--paper); pointer-events: none; }
.photo-frame::before, .photo-frame::after { content: ''; position: absolute; width: 38px; height: 38px; border-color: var(--yellow); border-style: solid; }
.photo-frame::before { top: -3px; left: -3px; border-width: 6px 0 0 6px; }.photo-frame::after { bottom: -3px; right: -3px; border-width: 0 6px 6px 0; }
.photo-frame-label { position: absolute; bottom: 20px; left: 20px; color: var(--yellow); background: var(--ink); padding: 4px 9px; font: 12px/1.4 'Courier New',monospace; letter-spacing: .14em; }
.photo-frame-cross { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font: 48px/1 'Courier New',monospace; color: var(--yellow); }
html.is-remix { --blue: #7937ed; --yellow: #ff9bcb; }
.legal-page .site-shell { max-width: 1060px; padding-top: 36px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 22px; font-size: 12px; }
.legal-header span { font: 11px/1.4 'Courier New',monospace; color: var(--muted); }
.legal-main { padding: 56px 0 64px; max-width: 700px; }
.legal-main .eyebrow { color: var(--yellow); }
.legal-main h1 { font-size: clamp(60px,10vw,112px); line-height: .95; margin-bottom: 44px; }
.legal-main h1 span { display: inline; color: var(--yellow); }
.legal-main section + section { margin-top: 32px; }
.legal-main h2 { font-family: var(--display); font-size: 27px; text-transform: uppercase; line-height: 1.2; margin-bottom: 12px; }
.legal-main p, .legal-main address { font-size: 16px; line-height: 1.8; font-style: normal; }
.legal-main p a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width:620px) {
  .rams-badge { width: 42px; height: 32px; }.rams-logo { width: 32px; height: 32px; }
  .footer-links { gap: 22px; }
  .easter-toast { font-size: 22px; bottom: 18px; padding: 12px 16px; }
  .legal-main { padding-top: 40px; }.legal-main h1 { margin-bottom: 32px; }
}

@media (prefers-reduced-motion:no-preference) {
  html.has-motion:not(.motion-paused) .rams-badge.is-new { animation: badge-pop .65s cubic-bezier(.2,.8,.2,1); }
  html.has-motion:not(.motion-paused) .reveal-target { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  html.has-motion:not(.motion-paused) .reveal-target.will-reveal { opacity: 0; transform: translateY(30px); }
  html.has-motion:not(.motion-paused) body:not(.intro-done) h1 > span { animation: word-arrive .75s cubic-bezier(.16,.7,.24,1) both; }
  html.has-motion:not(.motion-paused) body:not(.intro-done) h1 .name-loud { animation-delay: .12s; }
  html.has-motion:not(.motion-paused) .confetti-piece { animation: shard-flight 1s cubic-bezier(.16,.65,.3,1) forwards; }
  html.has-motion:not(.motion-paused) .photo-frame { animation: frame-arrive .8s ease both; }
  @media (hover:hover) and (pointer:fine) {
    html.has-motion:not(.motion-paused) a.project-link { transition: transform .22s ease, box-shadow .22s ease; transform: perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); }
    html.has-motion:not(.motion-paused) a.project-link:hover { transform: perspective(900px) translateY(-5px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); box-shadow: 6px 6px 0 #0008; }
  }
  @keyframes badge-pop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 65% { transform: scale(1.16) rotate(8deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
  html.has-motion:not(.motion-paused) body:not(.intro-done) .interest-track { animation: interest-arrive .85s ease both; }
  @keyframes interest-arrive { from { transform: translateX(20px); opacity: .2; } to { transform: none; opacity: 1; } }
  @keyframes word-arrive { from { transform: translateY(30px) rotate(1deg); opacity: .25; } to { transform: none; opacity: 1; } }
  @keyframes shard-flight { from { opacity: 1; transform: translate(0,0) rotate(0); } to { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(var(--spin)); } }
  @keyframes frame-arrive { 0% { opacity: 0; transform: scale(.96); } 20%,75% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
}
html.motion-paused .will-reveal { opacity: 1 !important; transform: none !important; }
html.motion-paused .hero.is-impact .burst, html.motion-paused .hero.is-impact .alias-sticker { animation: none; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { animation: none !important; transition: none !important; } .will-reveal { opacity: 1 !important; transform: none !important; } }

@media print { .celebration-layer, .photo-frame, .easter-toast, .photo-trigger span, .rams-badge { display: none !important; }.site-shell, .legal-page .site-shell { padding-top: 0; }.will-reveal { opacity: 1 !important; transform: none !important; } }

/* Decorative ignition meter: no navigation or controls. */
.ignition-rail { position: fixed; top: 7px; left: 14px; right: 14px; height: 34px; z-index: 115; pointer-events: none; }
.ignition-track, .ignition-fill { position: absolute; left: 34px; right: 34px; top: 16px; height: 3px; border-radius: 2px; }
.ignition-track { background: #454c3d; box-shadow: 0 0 0 3px #111210b8; }
.ignition-fill { background: var(--blue); transform: scaleX(var(--scroll-progress,0)); transform-origin: left; }
.ignition-plug { position: absolute; top: 0; left: 0; display: block; width: 68px; height: 32px; transform: translateX(var(--plug-x,0px)); }
.ignition-plug-art { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px #000b); }
.ignition-spark { opacity: 0; }
.ignition-rail.is-lit .ignition-fill { background: var(--yellow); box-shadow: 0 0 9px #e5ff5288; }
.ignition-rail.is-lit .ignition-ceramic { fill: #f4ff9c; }
.ignition-rail.is-lit .ignition-plug-art { filter: drop-shadow(0 0 3px #e5ff52) drop-shadow(0 0 10px #e5ff5266); }
.ignition-rail.is-lit .ignition-spark { opacity: 1; filter: drop-shadow(0 0 3px #e5ff52); }
@media (max-width:620px) { .ignition-rail { top: 4px; left: 7px; right: 7px; } }
@media (prefers-reduced-motion:no-preference) {
  .ignition-plug-art, .ignition-ceramic, .ignition-fill { transition: filter .3s ease, fill .3s ease, background-color .3s ease, box-shadow .3s ease; }
  .ignition-rail.is-lit .ignition-spark { animation: ignition-fire .5s ease-out both; transform-origin: 122px 32px; }
  @keyframes ignition-fire { from { opacity: .25; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
}
@media print { .ignition-rail { display: none !important; } }

/* Discoverable interests, with a seamless decorative copy. */
.interest-egg, .interest-egg-copy { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.interest-egg:hover, .interest-egg-copy:hover { color: var(--yellow); }
.interest-copy { display: none; }
.interest-strip.is-running .interest-track { width: max-content; animation: interest-cruise 32s linear infinite; }
.interest-strip.is-running .interest-group { max-width: none; flex-wrap: nowrap; flex: none; gap: 44px; padding-right: 44px; }
.interest-strip.is-running .interest-copy { display: flex; }
.interest-strip.is-running:focus-within { overflow-x: auto; }
.interest-strip.is-running:focus-within .interest-track { animation: none; transform: none; }
.interest-strip.is-running:focus-within .interest-copy { display: none; }
.interest-strip.is-held .interest-track { animation-play-state: paused !important; }
@keyframes interest-cruise { to { transform: translateX(-50%); } }
.garage-trigger { padding: 0; margin: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; cursor: pointer; }
.garage-trigger:hover { color: var(--paper); }
/* Every scene has a finite lifetime; Escape clears it. */
.egg-stage { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 24px; background: #090c09b8; pointer-events: none; }
.egg-card { width: min(560px,100%); position: relative; padding: 34px; border: 1px solid var(--line); background: var(--ink); color: var(--paper); box-shadow: 10px 10px 0 var(--blue); overflow: hidden; }
.egg-kicker { display: block; font: 11px/1.5 'Courier New',monospace; letter-spacing: .1em; color: var(--yellow); }
.egg-card p { margin: 16px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(46px,8vw,84px); line-height: .95; text-transform: uppercase; }
.egg-card p strong, .egg-card p > span { color: var(--yellow); }
.egg-comeback { padding: 40px 34px 52px; }
.egg-comeback p { position: relative; z-index: 1; }
.comeback-star { position: absolute; right: 12px; top: 55px; font-size: 190px; line-height: 1; color: var(--yellow); opacity: .2; }
.egg-redline { max-width: 420px; text-align: center; }
.egg-redline svg { width: 100%; margin-top: 14px; display: block; }
.egg-redline p { margin: 8px 0 0; font-size: 54px; }
.rpm-needle { transform-origin: 160px 164px; transform: rotate(85deg); }
.egg-film { max-width: 470px; padding-top: 76px; }
.film-hinge { position: absolute; top: 0; left: 0; right: 0; height: 42px; border-bottom: 5px solid var(--ink); background: repeating-linear-gradient(115deg,var(--paper) 0 25px,var(--ink) 25px 50px); transform-origin: left bottom; }
.film-details { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; font: 12px/1.6 'Courier New',monospace; }
.film-details strong { font-size: 34px; color: var(--yellow); }
.egg-stage[data-scene="action"]::before, .egg-stage[data-scene="action"]::after { content: ''; position: absolute; left: 0; right: 0; height: 9vh; background: #000; }
.egg-stage[data-scene="action"]::before { top: 0; }.egg-stage[data-scene="action"]::after { bottom: 0; }
.egg-garage { max-width: 580px; padding: 26px; }
.egg-garage p { font-size: clamp(38px,7vw,62px); }
.egg-garage svg { width: 100%; display: block; margin-top: 22px; }
.garage-door { transform: translateY(-160px); }
.garage-bike { transform: translateX(50px); }
.express-run { position: fixed; left: 0; right: 0; bottom: 65px; height: 180px; z-index: 225; pointer-events: none; overflow: hidden; }
.express-vehicle { width: min(300px,80vw); margin: auto; }
.express-vehicle svg { width: 100%; display: block; overflow: visible; }
.express-caption { display: block; padding: 4px 8px; background: var(--ink); color: var(--yellow); text-align: center; font: 10px/1.4 'Courier New',monospace; }
/* Native modal provides keyboard containment and Escape handling. */
html.game-open { overflow: hidden; }
.football-dialog { width: min(610px,calc(100% - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; padding: 0; background: var(--ink); color: var(--paper); border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--blue); overflow: auto; }
.football-dialog::backdrop { background: #080a08df; }
.football-shell { position: relative; padding: 26px; }
.egg-close { position: sticky; top: 0; float: right; z-index: 2; margin: -12px -12px 0 8px; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--ink); color: var(--paper); font-size: 30px; cursor: pointer; }
.football-shell h2 { font-family: var(--display); font-size: clamp(40px,7vw,62px); line-height: .92; margin: 16px 46px 14px 0; font-weight: 800; }
.football-shell h2 span { color: var(--yellow); }
.football-help { font-size: 13px; line-height: 1.6; max-width: 42ch; }
.football-score { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; padding: 14px 0; color: var(--yellow); font: 11px/1.5 'Courier New',monospace; }
.football-field { position: relative; height: clamp(145px,24vh,210px); overflow: hidden; border: 1px solid #46533e; background: linear-gradient(180deg,#1f3223,#16251a); }
.field-line { position: absolute; left: 0; right: 0; border-top: 1px solid #c8ddbd25; }.field-line-a { top: 45%; }.field-line-b { top: 75%; }
.goalposts { position: absolute; inset: 0; width: 100%; height: 100%; }
.football-ball { position: absolute; left: 50%; bottom: 10%; width: 30px; margin-left: -15px; text-align: center; font-size: 27px; line-height: 1; }
.football-field.is-shooting .football-ball { left: calc(var(--landing,50) * 1%); bottom: 63%; transform: rotate(270deg) scale(.65); }
.goal-win { position: absolute; left: 0; right: 0; bottom: 12px; color: var(--yellow); font: 800 30px/1 var(--display); text-align: center; opacity: 0; }
.football-field.is-won .goal-win { opacity: 1; }.football-field.is-won { box-shadow: inset 0 0 35px #e5ff5238; }
.football-aim { display: block; margin-top: 16px; font: 12px/1.4 'Courier New',monospace; }
.football-aim output { float: right; color: var(--yellow); }
.football-aim input { display: block; width: 100%; min-height: 38px; margin: 0; accent-color: var(--yellow); cursor: pointer; }
.football-result { min-height: 36px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.football-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.football-actions button { min-height: 44px; padding: 10px 22px; border: 0; background: var(--yellow); color: var(--ink); font: 800 23px/1 var(--display); cursor: pointer; }
.football-actions button:disabled { opacity: .45; cursor: default; }
@media (max-width:620px) {
  .interest-strip.is-running .interest-group { gap: 28px; padding-right: 28px; }
  .egg-stage { padding: 18px; }.egg-card { padding: 26px; }.egg-film { padding-top: 70px; }.egg-card p { font-size: 48px; }.egg-garage p { font-size: 37px; }
  .football-shell { padding: 20px; }.football-help { font-size: 12px; }.football-score { font-size: 10px; }.football-field { height: 145px; }.football-shell h2 { font-size: 43px; }.football-aim { margin-top: 12px; }
}
@media (prefers-reduced-motion:no-preference) {
  .ignition-plug { will-change: transform; transition: transform .16s cubic-bezier(.2,.75,.25,1); }
  .ignition-fill { transition: transform .16s cubic-bezier(.2,.75,.25,1), filter .3s ease, background-color .3s ease, box-shadow .3s ease; }
  .egg-card { animation: egg-arrive .25s ease-out both; }
  .egg-comeback .comeback-star { animation: comeback-hit .6s cubic-bezier(.2,.8,.3,1) both; }
  .egg-redline .rpm-needle { animation: redline-rev 2.7s ease-in-out both; }
  .egg-film .film-hinge { animation: film-clap .75s ease-in-out both; }
  .egg-garage .garage-door { animation: garage-open 1.6s ease-in-out both; }.egg-garage .garage-bike { animation: bike-out 3.5s ease-out both; }
  .express-vehicle { animation: express-drive 4s cubic-bezier(.2,.6,.4,1) both; }
  .football-ball { transition: left .65s ease-out, bottom .65s ease-out, transform .65s ease-out; }
  @keyframes egg-arrive { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes comeback-hit { from { transform: scale(2) rotate(-60deg); opacity: 0; } to { transform: scale(1) rotate(10deg); opacity: .2; } }
  @keyframes redline-rev { 0% { transform: rotate(-90deg); } 65% { transform: rotate(88deg); } 78% { transform: rotate(66deg); } 100% { transform: rotate(85deg); } }
  @keyframes film-clap { 0%,35% { transform: rotate(-16deg); } 70%,100% { transform: rotate(0); } }
  @keyframes garage-open { 0%,15% { transform: translateY(0); } 100% { transform: translateY(-160px); } }
  @keyframes bike-out { 0%,38% { transform: translateX(-25px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(50px); opacity: 1; } }
  @keyframes express-drive { 0% { transform: translateX(calc(-50vw - 320px)); } 35%,67% { transform: translateX(0); } 100% { transform: translateX(calc(50vw + 320px)); } }
}
@media (prefers-reduced-motion:reduce) {
  .interest-strip.is-running .interest-track { width: 100%; animation: none; }.interest-strip.is-running .interest-group { flex-wrap: wrap; max-width: 100%; padding-right: 0; }.interest-strip.is-running .interest-copy { display: none; }
}
@media print { .egg-stage, .express-run, .football-dialog { display: none !important; }.interest-strip .interest-track { animation: none !important; width: 100% !important; }.interest-strip .interest-group { flex-wrap: wrap !important; }.interest-copy { display: none !important; } }
html.page-idle .interest-track { animation-play-state: paused !important; }

/* Session discoveries: compact during browsing, docked above footer links. */
.egg-counter-slot { display: inline-block; width: 246px; max-width: 100%; height: 42px; flex: 0 0 auto; }
.egg-counter { position: fixed; left: 18px; bottom: 18px; z-index: 155; width: 246px; max-width: calc(100vw - 36px); height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #6b7551; background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 #0007; font: 10px/1.3 'Courier New',monospace; letter-spacing: 0; white-space: nowrap; pointer-events: none; }
.egg-counter.is-docked { position: static; max-width: 100%; }
.counter-star { color: var(--yellow); font: 20px/1 var(--display); }
.egg-counter.is-complete { border-color: var(--yellow); color: var(--yellow); }
.egg-fullgas { border-color: var(--yellow); padding: 36px; }
.egg-fullgas p { font-size: clamp(70px,12vw,120px); position: relative; z-index: 1; }
.fullgas-total { display: inline-block; margin-top: 24px; font: 800 42px/1 var(--display); color: var(--yellow); }
.fullgas-star { position: absolute; right: -12px; bottom: -26px; font-size: 210px; line-height: 1; color: var(--yellow); opacity: .16; }
.egg-boost { max-width: 530px; }.egg-boost p { font-size: clamp(42px,7vw,66px); }.egg-boost svg { display: block; width: 100%; margin-top: 22px; }
.boost-wheel { transform-origin: 100px 80px; }.boost-pressure { transform-origin: 32px 151px; }
.football-dialog.all-eggs-found { border-color: var(--yellow); box-shadow: 8px 8px 0 var(--yellow); }
.football-result.is-fullgas { color: var(--yellow); font: 800 23px/1.15 var(--display); }
@media (max-width:620px) { .egg-counter { left: 12px; bottom: 12px; }.egg-fullgas { padding: 27px; }.egg-fullgas p { font-size: 72px; }.egg-boost p { font-size: 41px; } }
@media (prefers-reduced-motion:no-preference) {
  .egg-boost .boost-wheel { animation: boost-spool 2.8s cubic-bezier(.4,0,.8,1) both; }
  .egg-boost .boost-pressure { animation: boost-pressure 2.7s ease-out both; }
  @keyframes boost-spool { from { transform: rotate(0); } to { transform: rotate(1440deg); } }
  @keyframes boost-pressure { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media print { .egg-counter-slot, .egg-counter { display: none !important; } }

/* Isometric schematic assembly: separate components, rather than a flat badge. */
.engine-card { max-width: 620px; padding: 26px; }.engine-card p { font-size: clamp(44px,7vw,66px); }.engine-card .engine-art { margin-top: 6px; width: 100%; display: block; }.engine-caption { display: block; margin-top: 4px; color: var(--yellow); font: 10px/1.5 'Courier New',monospace; letter-spacing: .05em; }
.engine-cover { --part-y: -78px; }.engine-head { --part-y: -35px; }.engine-pistons { --part-y: -15px; }.engine-block { --part-y: 18px; }.engine-crank { --part-y: 35px; }.engine-sump { --part-y: 45px; }
.engine-cover, .engine-head, .engine-pistons, .engine-block, .engine-crank, .engine-sump { transform: translateY(var(--part-y)); }
.engine-labels { opacity: 1; }
@media (max-width:620px) { .egg-fullgas p { font-size: clamp(48px,16.5vw,68px); } }
@media (max-width:620px) { .engine-card { padding: 20px; }.engine-card p { font-size: 46px; }.engine-labels { display: none; }.engine-caption { font-size: 9px; } }
@media (prefers-reduced-motion:no-preference) {
  .engine-card .engine-cover, .engine-card .engine-head, .engine-card .engine-pistons, .engine-card .engine-block, .engine-card .engine-crank, .engine-card .engine-sump { animation: engine-explode 4.8s cubic-bezier(.3,.7,.2,1) both; }
  .engine-labels { animation: engine-labels 3.3s ease both; }
  .garage-bike .bike-wheel { animation: bike-wheel-roll 3.5s ease-out both; }
  @keyframes engine-explode { 0%,15% { transform: translateY(0); } 65%,100% { transform: translateY(var(--part-y)); } }
  @keyframes engine-labels { 0%,65% { opacity: 0; } 100% { opacity: 1; } }
  @keyframes bike-wheel-roll { 0%,38% { transform: rotate(-100deg); } 100% { transform: rotate(50deg); } }
}

/* The counter itself opens the riddle; no extra navigation is added. */
.egg-counter { cursor: pointer; pointer-events: auto; text-align: left; }
.egg-counter .counter-star { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid #6b7551; font: 700 14px/1 Arial,sans-serif; border-radius: 50%; }
.egg-counter:hover { border-color: var(--yellow); }.egg-counter:hover .counter-star { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.hint-dialog { width: min(540px,calc(100% - 28px)); }
.hint-shell { padding: 30px; }.hint-shell h2 { margin: 22px 0 28px; max-width: 10ch; font: 800 clamp(40px,6vw,58px)/.95 var(--display); }
.hint-shell blockquote { position: relative; margin: 0; padding: 22px 0 22px 22px; border-left: 3px solid var(--yellow); font-size: 18px; line-height: 1.65; color: var(--paper); }
.hint-footnote { margin: 24px 0 20px; font: 10px/1.6 'Courier New',monospace; color: var(--muted); }
.hint-back { min-height: 44px; padding: 12px 18px; border: 0; background: var(--yellow); color: var(--ink); font: 800 23px/1 var(--display); cursor: pointer; }
@media (max-width:620px) { .hint-shell { padding: 22px; }.hint-shell h2 { margin: 20px 0 23px; font-size: 43px; }.hint-shell blockquote { padding-left: 17px; font-size: 16px; } }

/* Six public projects: keep long names within the card at every breakpoint. */
.project-name { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.project-name-long { font-size: clamp(30px, 3.2vw, 46px); hyphens: manual; }
@media (max-width: 900px) { .project-name-long { font-size: 40px; } }
@media (max-width: 620px) { .project-name-long { font-size: 40px; } }
