:root {
  --bg: #111118;
  --surface: #1b1b25;
  --surface-2: #242432;
  --line: #2f2f40;
  --text: #f4f1ea;
  --muted: #a6a4b4;
  --accent: #ff5a36;
  --orange: #ff5a36;
  --yellow: #ffd23f;
  --cyan: #38d4e8;
  --green: #3ddc84;
  --pink: #ff4fa3;
  --purple: #a06bff;
  --blue: #4d7cff;
  --radius: 14px;
  --pixel: "Press Start 2P", monospace;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: .02em; }
.small { font-size: 11px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: rgba(17,17,24,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { position: relative; font: 700 18px var(--display); text-decoration: none; display: flex; align-items: center; padding-left: 66px; }
/* A square photo card that hangs down over the header's bottom border. */
.brand-card { position: absolute; left: 0; top: calc(50% - 18px); width: 52px; height: 52px; border-radius: 6px; overflow: hidden; border: 2px solid var(--line); background: var(--surface-2); box-shadow: 3px 4px 0 var(--accent); transform: rotate(-5deg); transition: transform .2s cubic-bezier(.2,.8,.2,1.2); }
.brand-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.brand:hover .brand-card { transform: rotate(0) scale(1.08); }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); font-size: 15px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); box-shadow: 0 5px 0 #a8321a; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #a8321a; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #a8321a; }
.btn-ghost { background: transparent; border-color: var(--line); box-shadow: 0 5px 0 var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); box-shadow: 0 7px 0 var(--line); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn-small { padding: 7px 12px; font-size: 14px; box-shadow: 0 3px 0 #a8321a; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.dancer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 12vw, 140px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 90px); }
.eyebrow { color: var(--yellow); font-size: 12px; margin: 0 0 22px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 92px); max-width: 13ch; letter-spacing: -.02em; }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.lede { font-size: clamp(17px, 2vw, 20px); color: #d8d5ce; max-width: 58ch; margin: 26px 0 0; }
.blink { animation: blink 1s steps(2, start) infinite; }
.blink-slow { animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* Levels */
.levels, .about, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 40px); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 .pixel, .about h2 .pixel { font-size: clamp(16px, 2.4vw, 22px); color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14px var(--body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }

.card { --c: var(--accent); position: relative; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1.2), border-color .2s, box-shadow .2s; }
.card:hover, .card:focus-visible { transform: translateY(-6px) rotate(-.6deg); border-color: var(--c); box-shadow: 0 10px 0 var(--c); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg); }
.card.is-hidden { display: none; }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.level { color: var(--c); font-size: 10px; margin: 0; }
.card h3 { font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card-client { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--c); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--surface-2) 0 18px, var(--surface) 18px 36px); }
.placeholder span { font: 700 26px var(--display); color: var(--c); padding: 0 20px; text-align: center; }
.placeholder.big { aspect-ratio: 21 / 8; border-radius: var(--radius); }
.placeholder.big span { font-size: clamp(32px, 6vw, 64px); }


/* About */
.about { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; border-top: 1px solid var(--line); }
.about-photo { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); box-shadow: 10px 10px 0 var(--accent); position: sticky; top: 90px; }
.about-photo img { filter: grayscale(1) contrast(1.05); }
.about-text p { color: #d8d5ce; font-size: 17px; margin: 18px 0 0; max-width: 62ch; }
.about-text h3 { color: var(--yellow); margin: 36px 0 14px; font-size: 11px; }
.inventory { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inventory li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px dashed var(--line); }
.timeline li { position: relative; padding: 0 0 16px 22px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--accent); }
.timeline li:first-child::before { background: var(--yellow); }
.timeline span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 320px; } }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact h2 { font-size: clamp(32px, 5.4vw, 60px); max-width: 16ch; }
.contact .cta { justify-content: center; }

.footer { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.footer p { margin: 0; }
.footer .pixel { color: var(--accent); font-size: 10px; }

/* Project page */
.project { --c: var(--accent); max-width: var(--max); margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 80px; }
.back { display: inline-block; font-family: var(--pixel); font-size: 11px; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.back:hover { color: var(--c); }
.project-hero { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); box-shadow: 0 10px 0 var(--c); }
.project-hero img { width: 100%; max-height: 600px; object-fit: cover; object-position: center top; }
.project-main { margin-top: 48px; max-width: 820px; }
.project h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -.02em; margin-top: 14px; }
.project .lede { margin-top: 18px; }
.project section { margin-top: 40px; }
.project section h2 { color: var(--c); margin-bottom: 14px; }
.project-main p:not(.level) { color: #d8d5ce; font-size: 17px; max-width: 65ch; }
.award { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 15px !important; margin-top: 22px; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 0; }
.scores div { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.scores dt { font: 700 clamp(28px, 3.6vw, 38px)/1.05 var(--display); letter-spacing: -.01em; color: var(--c); }
.scores dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.installs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 65ch; }
.installs li { background: var(--surface); border: 2px solid var(--line); border-left: 6px solid var(--c); border-radius: 12px; padding: 14px 18px; }
.installs b { display: block; font: 700 18px/1.3 var(--display); }
.installs span { display: block; margin-top: 6px; color: #d8d5ce; font-size: 16px; }
.installs .link { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--c); }
.did { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.did li { position: relative; padding-left: 28px; font-size: 17px; }
.did li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--c); }

.specs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 16px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.specs div { display: flex; flex-direction: column; }
.specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.tech { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech li { font-size: 13px; font-weight: 500; border: 1px solid var(--c); color: var(--c); border-radius: 99px; padding: 4px 12px; }

.gallery .shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.shot { border-radius: 12px; overflow: hidden; border: 2px solid var(--line); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; }
.shot img.whole { object-fit: contain; padding: 4% 3%; }
.shot:hover img { transform: scale(1.04); }
.gallery .shots.tall { grid-template-columns: repeat(auto-fill, minmax(min(45%, 170px), 1fr)); }
.shots.tall .shot img { aspect-ratio: 9 / 19.5; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pager a { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; font: 700 20px var(--display); background: var(--surface); transition: border-color .2s; }
.pager a:hover { border-color: var(--c); }
.pager .pixel { color: var(--muted); font-size: 10px; font-weight: 400; }
.pager .next { text-align: right; align-items: flex-end; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.lightbox::backdrop { background: rgba(8,8,12,.88); }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lightbox .close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); color: var(--text); font-size: 18px; cursor: pointer; }

/* Colour themes last, so they override the --c defaults above */
.c-orange { --c: var(--orange); } .c-yellow { --c: var(--yellow); } .c-cyan { --c: var(--cyan); } .c-green { --c: var(--green); }
.c-pink { --c: var(--pink); } .c-purple { --c: var(--purple); } .c-blue { --c: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
