/* Superluminal Interactive - studio site
   Colours and fonts are set once here, at the top. Change them and the whole page follows.
   The look: deep space, the logo's black and white, one cold "blue-shift" light as the accent,
   thin frame lines with bright corner marks. Same layout as the Fireside Realm Studio site. */
:root {
  --bg: #05070d;            /* page background: deep space */
  --bg-raised: #090d17;     /* bands, one step lighter */
  --night: #020308;         /* behind pictures */
  --line: rgba(160, 190, 255, .12);       /* quiet rules between things */
  --frame: rgba(160, 190, 255, .26);      /* frame lines */
  --accent: #8fd3ff;        /* blue-shift light */
  --accent-hi: #e4f5ff;
  --accent-soft: rgba(143, 211, 255, .14);
  --flare: #ff9a5a;         /* the rocket's fire: used very little */
  --text: #eef2fa;
  --muted: #95a2bb;
  --on-accent: #04101a;     /* text on an accent button */
  --font-head: "Michroma", "Eurostile", "Segoe UI", sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 1.08rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); text-transform: uppercase; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.inner { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px; color: var(--accent);
  font: 500 .78rem/1.3 var(--font-mono); letter-spacing: .28em; text-transform: uppercase;
}
.eyebrow::before { content: "// "; opacity: .55; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; }
.dim  { color: var(--muted); }
.dim a { color: var(--accent-hi); }

/* ---------- placeholders: anything marked .todo shows a dashed outline and its label.
   Fill it in, then remove the class (and the data-todo label). ---------- */
.todo { position: relative; outline: 1px dashed rgba(255, 154, 90, .75); outline-offset: 6px; }
.todo::after {
  content: "PLACEHOLDER · " attr(data-todo); position: absolute; left: -6px; top: -26px; white-space: nowrap;
  font: 500 .62rem/1 var(--font-mono); letter-spacing: .14em; color: var(--flare); text-transform: uppercase;
}
.todo::before { content: none; }

/* ---------- the wordmark (used until the logo file is in images/) ---------- */
.wordmark { font: 400 1rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.wordmark b { font-weight: 400; color: var(--accent-hi); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 8px max(24px, (100% - var(--wrap)) / 2);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.bar.solid { background: rgba(5, 7, 13, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .logo { height: 40px; width: auto; }
.brand .logo + .wordmark { display: none; }   /* the logo has the name in it */
.nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 42px); }
.nav a:not(.btn) {
  position: relative; padding: 14px 0; text-decoration: none; color: var(--text);
  font: 500 .76rem/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: right .3s ease;
}
.nav a:not(.btn):hover { color: var(--accent-hi); }
.nav a:not(.btn):hover::after { right: 0; }
.nav .btn { min-height: 42px; padding: 0 20px; }

/* ---------- buttons: the corners are cut, like a hull plate ---------- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; text-decoration: none; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.btn:hover { background: var(--accent-hi); transform: translateY(-2px); }
/* The ghost button draws its line with an inset shadow (a border would be cut off at the corners). */
.btn.ghost { background: var(--accent-soft); color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--frame); }
.btn.ghost:hover { background: var(--accent); color: var(--on-accent); }

.soon { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.btn.off, .btn.off:hover { opacity: .4; cursor: not-allowed; transform: none; background: var(--accent-soft); color: var(--accent-hi); }
.soon-note { font: 500 .66rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- frame: a thin line with bright corner marks ---------- */
@property --l { syntax: "<length>"; inherits: true; initial-value: 22px; }   /* lets the corner marks grow smoothly on hover */
.frame { position: relative; border: 1px solid var(--line); background: var(--night); }
.frame::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 3;
  --c: var(--accent); --l: 22px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,  linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px, linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,  linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat; transition: --l .4s ease;
}
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero: the People Made Here street video, full width, the text low on the left ----------
   It is as tall as the window. The shade darkens the left and the bottom so the text reads. */
.hero {
  position: relative; min-height: max(620px, 100svh); overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; background: var(--night);
}
.hero-vid { z-index: -2; object-position: 50% 45%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, .9) 0%, rgba(3, 5, 10, .6) 32%, rgba(3, 5, 10, 0) 64%),
    linear-gradient(0deg, rgba(5, 7, 13, 1) 0%, rgba(5, 7, 13, .55) 22%, rgba(5, 7, 13, 0) 48%),
    linear-gradient(180deg, rgba(3, 5, 10, .6) 0%, rgba(3, 5, 10, 0) 16%);
}
.hero-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px; text-align: left;
  width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: 0 0 clamp(64px, 9vh, 110px);
}
.hero-text > * { margin: 0; }
.hero h1 { font-size: clamp(1.5rem, 6.6vw, 4.8rem); line-height: 1.08; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, .8); }
.hero h1 .line { display: block; white-space: nowrap; }
.tagline { max-width: 32em; font: 300 clamp(1.1rem, 1.8vw, 1.45rem)/1.5 var(--font-body); color: var(--text); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 6px; }

/* the Sound button on the video, bottom right */
.sound {
  position: absolute; right: max(24px, (100% - var(--wrap)) / 2); bottom: clamp(64px, 9vh, 110px); z-index: 4;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; cursor: pointer;
  border: 1px solid var(--frame); background: rgba(3, 5, 10, .55); color: var(--accent-hi);
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.sound:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- sections ---------- */
.sect { padding-block: clamp(84px, 11vw, 160px); }
.sect.raised { background: var(--bg-raised); border-block: 1px solid var(--line); }
.head { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 820px; margin-inline: auto; text-align: center; }
.head > * { margin: 0; }
.head .lead { margin-top: 10px; }

/* ---------- projects: picture + text, every other one mirrored ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5.4vw, 84px); align-items: center; margin-top: clamp(56px, 7vw, 104px); }
.feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }   /* picture on the right, still the wide column */
.feature.flip .pic { order: 2; }
.pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.pic img { transition: transform 1.4s ease; }
.pic:hover img { transform: scale(1.04); }
.pic:hover::before, .portrait:hover::before { --l: 40px; }
.pic-todo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); outline-offset: 10px; color: var(--muted); font: 500 .8rem/1 var(--font-mono); letter-spacing: .1em; }
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.copy > * { margin: 0; }
.copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); text-transform: uppercase; }
.copy .sub { font: 400 clamp(1.05rem, 1.4vw, 1.2rem)/1.45 var(--font-body); color: var(--accent-hi); }
.copy .btn, .copy .soon { margin-top: 10px; }

/* ---------- team ---------- */
/* The cards sit centred in a row, as many as fit; on a phone they stack. */
.cast { list-style: none; padding: 0; margin: clamp(48px, 6vw, 84px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(40px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.cast > .card { flex: 0 1 280px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.card > * { margin: 0; }
.portrait {
  width: 100%; max-width: 240px; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; margin-bottom: 14px;
  background: radial-gradient(circle at 50% 120%, rgba(143, 211, 255, .22), rgba(143, 211, 255, 0) 60%), var(--night);
}
.portrait img { filter: grayscale(.25); transition: transform 1.2s ease, filter .6s ease; }
.card:hover .portrait img { transform: scale(1.05); filter: none; }
.initials { font: 400 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-head); letter-spacing: .08em; text-indent: .08em; color: var(--accent-hi); opacity: .6; }
.card h3 { font-size: 1.15rem; text-transform: uppercase; }
.card .eyebrow { color: var(--muted); }

/* ---------- contact ---------- */
.box {
  max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: clamp(48px, 6vw, 84px) clamp(22px, 5vw, 72px); background: var(--bg);
}
.box > * { margin: 0; }
.mail { padding-top: 12px; }
.mail.todo { margin-top: 26px; }
.mail a { font: 400 clamp(1rem, 2.2vw, 1.45rem)/1.2 var(--font-head); letter-spacing: .04em; color: var(--accent-hi); text-decoration: none; overflow-wrap: anywhere; }
.mail a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.foot { padding: 40px 16px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 26px; }
.foot nav a { padding: 10px 0; text-decoration: none; font: 500 .72rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; }
.foot nav a:hover { color: var(--accent-hi); }

/* ---------- scroll reveal (main.js adds .in when a block scrolls into view) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .copy.reveal { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pic img, .portrait img { transition: none; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 900px) {
  .nav a.opt { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .pic { order: 0; }
  .hero-vid { object-position: 58% 45%; }   /* a tall, narrow screen shows the middle: the sign and the gate */
  .hero-shade { background: linear-gradient(0deg, rgba(5, 7, 13, 1) 0%, rgba(5, 7, 13, .7) 38%, rgba(5, 7, 13, 0) 70%), linear-gradient(180deg, rgba(3, 5, 10, .6) 0%, rgba(3, 5, 10, 0) 16%); }
  .hero-text { align-items: center; text-align: center; }
  .actions { justify-content: center; }
  .sound { bottom: auto; top: 84px; right: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .inner { width: min(var(--wrap), 100% - 32px); }
  .bar { padding-inline: 16px; min-height: 62px; }
  .brand .logo { height: 32px; }
  .wordmark { font-size: .82rem; }
  .portrait { max-width: 210px; }
  .btn { padding: 0 20px; }
  .actions .btn { width: 100%; }
  .hero-text { width: calc(100% - 32px); padding-bottom: 48px; gap: 16px; }
  .sound { top: 74px; min-height: 40px; }
  .foot .inner { flex-direction: column; text-align: center; }
  .foot nav { justify-content: center; }
}
