/* Layout: one deep-space column on a pixel starfield; content rides in thick-outlined sticker cards
   with hard offset shadows, echoing the logo's heavy maroon keyline. */
:root{
  color-scheme: dark;
  --void:#140B2B;        /* deep space ground */
  --deep:#1E1147;        /* nebula band */
  --panel:#2A1960;       /* sticker card fill */
  --panel-hi:#36217A;    /* raised fill */
  --ink:#3A0E14;         /* the logo's maroon keyline */
  --cream:#FFF3E0;       /* body text */
  --cream-dim:#C9B8DE;   /* muted text */
  --star:#FFD23F;        /* logo yellow, the primary accent */
  --glaze:#FF8E72;       /* logo salmon, the secondary accent */
  --sprinkle-blue:#4EC3FF;
  --sprinkle-violet:#8B6BFF;
  --sprinkle-lime:#B8E986;
  --line:rgba(255,243,224,.16);
  --shadow:6px 6px 0 var(--ink);
  --shadow-sm:4px 4px 0 var(--ink);
  --r:18px;
  --f-display:"Fredoka","Trebuchet MS",system-ui,sans-serif;
  --f-body:"Nunito","Segoe UI",system-ui,sans-serif;
  --f-pixel:"Silkscreen","Courier New",monospace;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--void);
  color:var(--cream);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden;
}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:40;background:var(--deep)}

/* starfield sits behind everything */
#sky{position:fixed;inset:0;z-index:-2;display:block;width:100%;height:100%}
.aurora{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(60% 40% at 12% 8%, rgba(139,107,255,.26), transparent 70%),
    radial-gradient(50% 35% at 88% 22%, rgba(255,142,114,.18), transparent 70%),
    radial-gradient(70% 45% at 50% 108%, rgba(78,195,255,.16), transparent 70%);
}

.wrap{width:100%;max-width:1080px;margin-inline:auto;
  padding-left:max(16px,env(safe-area-inset-left,0px));
  padding-right:max(16px,env(safe-area-inset-right,0px));}
.band{padding-block:clamp(48px,8vw,96px);position:relative}

/* ---------- header ---------- */
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;
  background:rgba(30,17,71,.88);backdrop-filter:blur(10px);
  border-bottom:3px solid var(--ink)}
.bar{display:flex;align-items:center;gap:14px;padding-block:10px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--cream);margin-right:auto}
.brand img{width:40px;height:auto}
.brand b{font-family:var(--f-display);font-weight:600;font-size:1.15rem;letter-spacing:.01em}
.brand b span{color:var(--star)}
nav{display:flex;gap:6px;flex-wrap:wrap}
nav a{font-family:var(--f-display);font-weight:500;color:var(--cream);text-decoration:none;
  padding:7px 13px;border-radius:999px;font-size:.95rem}
nav a:hover{background:var(--panel-hi);color:var(--star)}

/* ---------- type ---------- */
h1,h2,h3{font-family:var(--f-display);font-weight:600;line-height:1.08;text-wrap:balance;margin:0}
h1{font-size:clamp(2.4rem,7vw,4.2rem);letter-spacing:-.01em}
h2{font-size:clamp(1.8rem,4.2vw,2.7rem)}
h3{font-size:1.35rem}
p{margin:0}
.lede{font-size:clamp(1.05rem,2.2vw,1.22rem);color:var(--cream);max-width:62ch}
.muted{color:var(--cream-dim)}
.eyebrow{font-family:var(--f-pixel);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--star);display:inline-flex;align-items:center;gap:8px}
.eyebrow::before{content:"";width:8px;height:8px;background:var(--glaze);box-shadow:0 -8px 0 var(--star)}

/* ---------- hero ---------- */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:clamp(24px,5vw,56px);align-items:center;
  padding-block:clamp(36px,6vw,72px) clamp(40px,7vw,80px)}
.hero-copy{display:flex;flex-direction:column;gap:20px;min-width:0}
.hero h1 span{color:var(--star)}
.lockup{justify-self:center;width:min(100%,380px);filter:drop-shadow(0 14px 34px rgba(255,210,63,.22))}
.lockup img{width:100%;height:auto;display:block;animation:bob 6s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

.btns{display:flex;flex-wrap:wrap;gap:12px}
.btn{font-family:var(--f-display);font-weight:600;font-size:1rem;text-decoration:none;
  padding:12px 22px;border-radius:999px;border:3px solid var(--ink);box-shadow:var(--shadow-sm);
  display:inline-flex;align-items:center;gap:9px;transition:transform .12s ease,box-shadow .12s ease}
.btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}
.btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.btn-primary{background:var(--star);color:var(--ink)}
.btn-secondary{background:var(--glaze);color:var(--ink)}
.btn-ghost{background:var(--panel);color:var(--cream)}
a:focus-visible,button:focus-visible{outline:3px solid var(--sprinkle-blue);outline-offset:3px}

.ticker{display:flex;flex-wrap:wrap;gap:10px 18px;font-family:var(--f-pixel);font-size:.74rem;
  color:var(--cream);letter-spacing:.1em;text-transform:uppercase}
.ticker span{display:inline-flex;align-items:center;gap:9px}
.ticker span::before{content:"";width:7px;height:7px;background:var(--sprinkle-lime)}
.ticker span:nth-child(2)::before{background:var(--sprinkle-blue)}
.ticker span:nth-child(3)::before{background:var(--glaze)}

/* ---------- cards ---------- */
.card{background:var(--panel);border:3px solid var(--ink);border-radius:var(--r);box-shadow:var(--shadow);
  padding:clamp(20px,3.2vw,34px);min-width:0}
.game{display:grid;gap:24px;margin-bottom:28px}
.game-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.game-head h2{margin-right:auto}
.chip{font-family:var(--f-pixel);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;
  padding:6px 11px;border-radius:999px;border:2px solid var(--ink);background:var(--star);color:var(--ink);white-space:nowrap}
.chip.alt{background:var(--sprinkle-blue)}

/* screenshot slot: drop a file in /shots and it fills itself in */
.shot{margin:0;aspect-ratio:16/9;max-width:100%;border:3px solid var(--ink);border-radius:14px;
  overflow:hidden;background:var(--deep);display:grid;place-items:center}
.shot img{width:100%;height:100%;object-fit:cover;display:block}
.shot figcaption{display:none;font-family:var(--f-pixel);font-size:.72rem;line-height:1.9;
  color:var(--cream-dim);text-align:center;padding:18px}
.shot.empty{border-style:dashed;border-color:var(--line);
  background:repeating-linear-gradient(45deg,var(--deep) 0 14px,var(--panel-hi) 14px 28px)}
.shot.empty figcaption{display:block}

.cols{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(18px,3vw,32px)}
.specs{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.specs li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;
  font-size:.97rem;color:var(--cream)}
.specs li::before{content:"";width:9px;height:9px;margin-top:9px;background:var(--glaze)}
.specs b{font-weight:800;color:var(--star)}

.inset{background:var(--deep);border:3px solid var(--ink);border-radius:14px;padding:20px;
  display:grid;gap:14px;align-content:start}
.inset h3{font-size:1.1rem}


/* contact */
.mail{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.mail code{font-family:var(--f-pixel);font-size:.82rem;background:var(--deep);border:2px solid var(--ink);
  border-radius:10px;padding:9px 13px;color:var(--cream);user-select:all}
.copy{font-family:var(--f-display);font-weight:600;font-size:.9rem;cursor:pointer;
  background:var(--cream);color:var(--ink);border:3px solid var(--ink);border-radius:999px;padding:8px 16px;box-shadow:var(--shadow-sm)}
.copy:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}

/* story */
.story-head{display:flex;flex-wrap:wrap;gap:clamp(18px,3.4vw,32px);align-items:center;
  margin-bottom:clamp(26px,4vw,38px)}
.story-head .txt{min-width:0;display:grid;gap:9px}
.story-head h2{margin:0}
.portrait{margin:0;flex:none;width:clamp(150px,24vw,244px);position:relative;isolation:isolate}
/* warm nebula behind the cutout so the dark hair and jacket don't sink into the page */
.portrait::before{content:"";position:absolute;z-index:-1;left:-20%;right:-20%;top:-10%;bottom:-2%;
  border-radius:50%;
  background:radial-gradient(closest-side,
    rgba(255,210,63,.52), rgba(255,142,114,.34) 44%, rgba(139,107,255,.18) 66%, transparent 82%)}
.portrait img{width:100%;height:auto;display:block;
  filter:drop-shadow(0 10px 22px rgba(10,5,24,.6));
  -webkit-mask-image:linear-gradient(to bottom,#000 88%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 88%,transparent 100%)}
.portrait figcaption{font-family:var(--f-pixel);font-size:.62rem;letter-spacing:.07em;text-transform:uppercase;
  color:var(--cream-dim);padding-top:2px;text-align:center}

/* dedication */
.homage{margin:0;padding-block:clamp(46px,8vw,86px);display:grid;gap:20px;justify-items:center;text-align:center}
.homage .mark{display:flex;gap:7px}
.homage .mark i{width:8px;height:8px;background:var(--star);font-style:normal}
.homage .mark i:nth-child(2){background:var(--glaze)}
.homage .mark i:nth-child(3){background:var(--sprinkle-blue)}
.homage blockquote{margin:0;max-width:24ch;font-family:var(--f-display);font-weight:500;
  font-size:clamp(1.45rem,4vw,2.3rem);line-height:1.28;color:var(--cream);text-wrap:balance}
.homage figcaption{font-family:var(--f-pixel);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--star)}
.story{max-width:62ch;display:grid;gap:18px;font-size:clamp(1.02rem,2vw,1.12rem);line-height:1.75}
.story p{margin:0}
.story .quiet{color:var(--cream-dim)}
.story .pull{font-family:var(--f-display);font-weight:600;font-size:clamp(1.35rem,3vw,1.8rem);line-height:1.25;
  color:var(--star);text-wrap:balance;padding:6px 0 6px 18px;border-left:4px solid var(--glaze);margin-block:6px}
.story .last{font-family:var(--f-display);font-weight:600;font-size:clamp(1.5rem,3.4vw,2.1rem);color:var(--cream);margin-top:8px}
/* recognition strip */
.rec{padding-block:clamp(34px,5vw,52px)}
.rec .eyebrow{display:block;margin-bottom:20px}
.awards{list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px 26px}
.awards li{display:grid;gap:3px;padding-left:14px;border-left:3px solid var(--line)}
.awards .yr{font-family:var(--f-pixel);font-size:.7rem;color:var(--star);letter-spacing:.06em;
  font-variant-numeric:tabular-nums}
.awards b{font-weight:800;color:var(--cream);font-size:.98rem}
.awards em{font-style:normal;color:var(--cream-dim);font-size:.88rem}

footer{border-top:3px solid var(--ink);background:var(--deep)}
.foot{display:flex;flex-wrap:wrap;gap:18px;align-items:center;padding-block:28px}
.foot img{width:132px;height:auto}
.foot p{font-size:.86rem;color:var(--cream-dim);margin-left:auto}

@media (max-width:860px){
  .hero{grid-template-columns:1fr}
  .lockup{order:-1;width:min(78%,300px)}
  .cols{grid-template-columns:1fr}
}
/* ---------- the header on a phone ---------- */
/*  WHAT IT WAS DOING.  .bar is a flex row, .brand pushes the nav right with
    margin-right:auto, and nav itself is flex-wrap:wrap.  On a phone the brand and the
    links cannot share a row, so the only thing with permission to wrap was the nav - and
    it broke its own links onto two lines BESIDE the logo, which is the ragged stack in
    the photo.  The nav was never given the width to be a line in the first place.

    So the bar wraps instead: the brand takes a row, the nav takes the full width under
    it, centred.  Four links fit one line on any phone, which is the header that was
    complained about.

    AND IT STAYS flex-wrap:wrap, deliberately.  The deeper pages carry five long names
    (Strikeship Smashers, Champion Stats) that no phone fits on one readable line, so
    those wrap to two CENTRED rows - tidy, and every link still on screen.  A one-line
    scrolling strip was tried instead and is the worse trade: it hides two of the five
    off the right edge, and an edge fade is a poor hint for navigation you cannot see. */
@media (max-width:720px){
  .bar{flex-wrap:wrap;justify-content:center;row-gap:2px}
  .brand{margin-right:0}
  nav{width:100%;justify-content:center;gap:3px}
  nav a{padding:5px 9px;font-size:.84rem;white-space:nowrap}
}
/*  ...and one step tighter on a small phone, which is the difference between the five-link
    sections sitting on two rows and sprawling onto three.  Measured, not guessed: at 360px
    this holds Home / Mepper Mania / Singles / Teams on ONE line and the Strikeship section
    on two.  */
@media (max-width:360px){
  nav{gap:2px}
  nav a{padding:4px 7px;font-size:.76rem}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ===================================================================
   Added when the one-pager became four pages. Everything above here
   is unchanged from the original single-page build.
   =================================================================== */

/* The nav now spans real pages, so the current one has to be marked.
   Anchor links could rely on the page being visibly scrolled; separate
   URLs cannot. */
nav a[aria-current="page"]{background:var(--panel-hi);color:var(--star)}

/* A page whose title is not the hero. Same size as the h2 it replaced, so
   splitting the site into pages changed the document outline without
   changing how any of it looks. */
h1.page-title{font-size:clamp(1.8rem,4.2vw,2.7rem)}

/* ---------- two-path split on the home page ---------- */
.paths{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:clamp(16px,2.6vw,24px)}
.path{background:var(--panel);border:3px solid var(--ink);border-radius:var(--r);box-shadow:var(--shadow);
  padding:clamp(20px,3vw,30px);display:grid;gap:14px;align-content:start;text-decoration:none;color:var(--cream);
  transition:transform .12s ease,box-shadow .12s ease}
.path:hover,.path:focus-visible{transform:translate(-3px,-3px);box-shadow:9px 9px 0 var(--ink)}
.path h3{font-size:1.5rem;color:var(--star)}
.path p{color:var(--cream-dim);font-size:.98rem}
.path .go{font-family:var(--f-display);font-weight:600;color:var(--glaze)}
.path .go::after{content:" \2192"}
.path .kind{font-family:var(--f-pixel);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cream-dim)}

/* ---------- commissions ---------- */
.offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-top:26px}
.offer{background:var(--panel);border:3px solid var(--ink);border-radius:14px;padding:20px;display:grid;gap:10px;align-content:start}
.offer::before{content:"";width:14px;height:14px;background:var(--star);box-shadow:18px 0 0 rgba(255,243,224,.18)}
.offer:nth-child(2)::before{background:var(--sprinkle-blue)}
.offer:nth-child(3)::before{background:var(--sprinkle-lime)}
.offer h3{font-size:1.1rem}
.offer p{font-size:.94rem;color:var(--cream-dim)}

/* Numbered process. The counter is decorative; the heading text carries
   the step on its own for anyone not seeing the numerals. */
.steps{list-style:none;margin:26px 0 0;padding:0;counter-reset:step;display:grid;gap:14px}
.steps li{counter-increment:step;display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;
  background:var(--deep);border:3px solid var(--ink);border-radius:14px;padding:16px 20px}
.steps li::before{content:counter(step);font-family:var(--f-display);font-weight:700;font-size:1.4rem;
  color:var(--ink);background:var(--star);border:3px solid var(--ink);border-radius:999px;
  width:42px;height:42px;display:grid;place-items:center}
.steps b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.08rem;color:var(--cream)}
.steps span{font-size:.95rem;color:var(--cream-dim)}

/* Case study */
.case{display:grid;gap:22px}
.case .built{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.case .built li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;font-size:.97rem}
.case .built li::before{content:"";width:9px;height:9px;margin-top:9px;background:var(--sprinkle-blue)}
.case .built b{color:var(--star);font-weight:800}

/* What moves a quote. No prices: the heading does the work, so these are
   marked with the same chunky square as the other card rows rather than a
   number slot. */
.tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:24px}
.tier-card{background:var(--panel);border:3px solid var(--ink);border-radius:14px;padding:20px;display:grid;gap:10px;align-content:start}
.tier-card::before{content:"";width:14px;height:14px;background:var(--glaze);box-shadow:18px 0 0 rgba(255,243,224,.18)}
.tier-card:nth-child(2)::before{background:var(--star)}
.tier-card:nth-child(3)::before{background:var(--sprinkle-violet)}
.tier-card h3{font-size:1.08rem;color:var(--star)}
.tier-card p{font-size:.92rem;color:var(--cream-dim)}

/* ---------- contact ---------- */
/* One row per address. The point of the page is that a visitor picks the
   right one without reading a paragraph, so the address itself is the
   loudest thing in the row. */
.routes{display:grid;gap:16px;margin-top:24px}
.route{background:var(--panel);border:3px solid var(--ink);border-radius:14px;box-shadow:var(--shadow-sm);
  padding:20px;display:grid;gap:12px}
.route h3{font-size:1.12rem;color:var(--star)}
.route p{font-size:.95rem;color:var(--cream-dim)}
.route .mail{margin-top:0}
@media (max-width:520px){
  .route .mail{gap:8px}
  .route .mail code{font-size:.74rem;padding:8px 10px}
  .copy{font-size:.84rem;padding:7px 13px}
}
