:root {
  --deep: #031a1f;
  --ink: #0b1615;
  --teal: #00b8a9;
  --rasp: #f2195e;
  --mist: #f2f6f5;
  --aur: 0, 184, 169;            /* the sky's live colour, set by main.js */
  --serif: "Germania One", "Inter Tight", Georgia, serif;   /* OPQ display face */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans);   /* labels use Inter Tight, like the agency site */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html { background: var(--deep); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--mist); font-family: var(--sans); font-weight: 400;
  background: var(--deep); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---------- the sky ---------- */
#gl, #fallback-sky { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; }
#fallback-sky { object-fit: cover; display: none; }
body.nogl #gl { display: none; }
body.nogl #fallback-sky { display: block; }
main, .top { position: relative; z-index: 2; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 4vw, 36px) 12px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(3,26,31,.85), rgba(3,26,31,.55) 60%, rgba(3,26,31,0)); opacity: 0; transition: opacity .5s; }
body.scrolled .top::before { opacity: 1; }
.mini-logo { width: 0; overflow: hidden; opacity: 0; transition: width .6s var(--out), opacity .5s; }
.mini-logo img { width: 70px; max-width: none; }
body.scrolled .mini-logo { width: 70px; opacity: 1; }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.chip, .live {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(242, 246, 245, .16);
  background: rgba(3, 26, 31, .42); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--mist); font: 500 13px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: border-color .3s, background .3s;
}
.chip:hover, .live:hover { border-color: rgba(var(--aur), .7); }
.chip b { font-weight: 600; color: rgb(var(--aur)); }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.bars i:nth-child(2) { height: 9px; } .bars i:nth-child(3) { height: 6px; } .bars i:nth-child(4) { height: 11px; }
#sound[aria-pressed="true"] .bars i { animation: bar 1.1s ease-in-out infinite; }
#sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
#sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
#sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.9s; }
@keyframes bar { 0%,100%{height:3px} 50%{height:12px} }

.live { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; gap: 9px; padding: 0 13px 0 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--aur)); animation: ping 2.2s infinite; }
.live-kp { color: rgb(var(--aur)); }
.live-card {
  position: absolute; top: calc(max(14px, env(safe-area-inset-top)) + 46px); left: clamp(14px, 4vw, 36px);
  width: min(320px, calc(100vw - 28px)); padding: 18px 20px; border-radius: 18px;
  background: rgba(3, 26, 31, .78); border: 1px solid rgba(242,246,245,.14);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.live-card[hidden] { display: none; }
.live-big { margin: 0 0 6px; font: 400 54px/1 var(--serif); color: rgb(var(--aur)); }
.live-big small { font: 500 12px/1 var(--mono); letter-spacing: .1em; margin-left: 8px; color: rgba(242,246,245,.6); }
#live-line { margin: 0 0 8px; font-size: 15px; }
.live-src { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(242,246,245,.62); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 60fr 40fr; }
.sky-zone { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 84px 16px clamp(14px, 3vh, 34px); }
.title { margin: 0; display: flex; flex-direction: column; align-items: center; font-weight: 400; }

.logo-wrap { position: relative; display: block; width: clamp(200px, 30vw, 430px); aspect-ratio: 556.373 / 347.213; }
.logo-base { width: 100%; height: 100%; display: block; overflow: visible; }
.logo-sheen-old, .logo-curtain-old {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("assets/brand/opq-logo.svg") center / contain no-repeat;
          mask: url("assets/brand/opq-logo.svg") center / contain no-repeat;
}
/* aurora light drifting through the letters */
.logo-sheen {
  background:
    linear-gradient(100deg, transparent 0 34%, rgba(255,255,255,.85) 44%, rgba(160,255,240,.55) 48%, transparent 60% 100%) 130% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, rgba(242,25,94,.5), rgba(242,25,94,0) 46%);
  mix-blend-mode: screen; opacity: .9;
  animation: sheen 7s var(--ease) 2.6s infinite;
}
@keyframes sheen { 0% { background-position: 130% 0, 0 0; } 45%, 100% { background-position: -40% 0, 0 0; } }
/* the reveal: a bright line of light draws the logo from the top down */
.logo-curtain { background: linear-gradient(180deg, transparent calc(var(--p, 0%) - 12%), #fff calc(var(--p, 0%) - 1%), transparent var(--p, 0%)); mix-blend-mode: screen; }

.wordmark { display: flex; flex-direction: column; align-items: center; margin-top: clamp(4px, 1.2vh, 14px); }
.wm-line { display: block; font: 400 clamp(58px, 9.6vw, 150px)/.88 var(--serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; padding: 0 .04em .06em; }
.wm-2 em { color: rgb(var(--aur)); transition: color 1.4s; }
.wm-line .ch { display: inline-block; }

.lake-zone { display: flex; flex-direction: column; align-items: center; padding: clamp(18px, 3vh, 34px) 16px 72px; gap: clamp(14px, 2.2vh, 22px); }
.lede { margin: 0; max-width: 36em; text-align: center; font-weight: 300; font-size: clamp(14px, 1.4vw, 16px); line-height: 1.55; color: rgba(242, 246, 245, .84); text-shadow: 0 1px 12px rgba(3,26,31,.8); }

#newest { width: 100%; display: flex; justify-content: center; }
.newest, .card { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* newest piece: a pane of light floating on the water, its rim lit by the aurora */
.newest {
  position: relative; width: min(620px, 100%);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2vw, 22px); align-items: center;
  padding: 12px; border-radius: 22px; isolation: isolate;
  background: linear-gradient(135deg, rgba(242,246,245,.14), rgba(242,246,245,.05));
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 30px 80px -30px rgba(var(--aur), .6), inset 0 1px 0 rgba(255,255,255,.14);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .5s var(--out), box-shadow 1s;
}
.newest::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--spin), rgba(var(--aur), 1), rgba(242,25,94,.9), rgba(255,255,255,.12) 40%, rgba(var(--aur), .2) 60%, rgba(242,25,94,.9) 85%, rgba(var(--aur), 1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
.newest:hover { transform: translateY(-4px); }
.newest .cover { display: block; width: clamp(104px, 14vw, 160px); aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.newest .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.newest:hover .cover img { transform: scale(1.06); }
.newest .body { display: block; min-width: 0; padding-right: 6px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rasp); animation: ping-r 2s infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(var(--aur),.7)} 80%,100%{box-shadow:0 0 0 9px rgba(var(--aur),0)} }
@keyframes ping-r { 0%{box-shadow:0 0 0 0 rgba(242,25,94,.7)} 80%,100%{box-shadow:0 0 0 9px rgba(242,25,94,0)} }
.newest h3 { margin: 9px 0 5px; font: 400 clamp(25px, 2.6vw, 34px)/1.02 var(--serif); }
.newest p { margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(242,246,245,.76); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 13px; height: 40px; padding: 0 18px 0 20px;
  border-radius: 999px; background: var(--mist); color: var(--ink); font: 600 14px/1 var(--sans);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 8px 30px -6px rgba(var(--aur), .7);
  transition: gap .3s var(--out);
}
.newest:hover .go, .card:hover .go { gap: 14px; }
.go svg { width: 14px; height: 14px; }

#hint {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  margin: 0; display: flex; align-items: center; gap: 10px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(242,246,245,.64);
  opacity: 0; transition: opacity 1.4s; pointer-events: none; white-space: nowrap;
}
#hint span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
#hint span::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid currentColor; animation: ring 2.2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
body.hinting #hint { opacity: 1; }

/* ---------- all pieces ---------- */
.pieces { position: relative; padding: clamp(70px, 14vh, 150px) clamp(16px, 5vw, 64px) 60px; max-width: 1240px; margin: 0 auto; }
.pieces-head { text-align: center; margin-bottom: clamp(30px, 6vh, 56px); }
.eyebrow { margin: 0 0 12px; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--aur)); }
.pieces h2 { margin: 0; font: 400 clamp(44px, 7.4vw, 96px)/.92 var(--serif); }
.pieces h2 em { color: rgba(242,246,245,.55); }

/* the index: one line per piece, no boxes */
.index { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; counter-reset: none; }
.row { border-top: 1px solid rgba(242,246,245,.14); }
.row:last-child { border-bottom: 1px solid rgba(242,246,245,.14); }
.row-link {
  display: grid; grid-template-columns: clamp(34px, 5vw, 70px) 1fr auto; align-items: baseline; gap: clamp(10px, 2vw, 28px);
  padding: clamp(18px, 3vh, 30px) 4px; text-decoration: none; color: inherit; cursor: pointer; position: relative;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.row-num { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: rgba(242,246,245,.5); transform: translateY(-.4em); }
.row-title {
  font: 400 clamp(40px, 7.2vw, 108px)/.95 var(--serif); letter-spacing: -.012em;
  background: linear-gradient(100deg, var(--mist) 0 40%, rgb(var(--aur)) 50%, #f2195e 60%, var(--mist) 70% 100%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.1s var(--out), letter-spacing .8s var(--out);
}
.row-meta { text-align: right; font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(242,246,245,.55); white-space: nowrap; }
.row-meta b { display: block; font-weight: 500; color: var(--mist); }
.row-link:hover .row-title, .row.open .row-title { background-position: 0 0; letter-spacing: 0; }
.row-link::after { content: ; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, rgba(var(--aur),0), rgb(var(--aur)), #f2195e, rgba(242,25,94,0)); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--out); }
.row-link:hover::after, .row.open .row-link::after { transform: scaleX(1); }

/* what surfaces when a row opens (phones: the row in the middle of the screen) */
.row-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--out); }
.row-reveal > div { overflow: hidden; }
.row.open .row-reveal { grid-template-rows: 1fr; }
.reveal-inner { display: grid; gap: 14px; padding: 0 4px 26px clamp(44px, 7vw, 98px); }
.strip { display: block; aspect-ratio: 21 / 9; border-radius: 16px; overflow: hidden; position: relative; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .9s var(--out), opacity .6s; }
.row.open .strip { transform: none; opacity: 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.reveal-line { margin: 0; max-width: 34em; font-size: 14.5px; line-height: 1.5; color: rgba(242,246,245,.76); }
.reveal-inner .go { justify-self: start; margin-top: 0; }

.row.soon .row-title { font-style: italic; background: none; color: rgba(242,246,245,.28); -webkit-background-clip: border-box; background-clip: border-box; }
.row.soon .row-link { cursor: default; }
.row.soon .row-link::after { display: none; }

/* desktop: the cover floats by the cursor instead */
#peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: clamp(240px, 22vw, 340px); aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: 18px; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.9);
  box-shadow: 0 40px 90px -30px rgba(var(--aur), .75), 0 0 0 1px rgba(255,255,255,.18);
  -webkit-box-reflect: below 10px linear-gradient(transparent 55%, rgba(0,0,0,.28));
  transition: opacity .35s var(--out);
}
#peek img { width: 100%; height: 100%; object-fit: cover; }
#peek.on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .row-reveal { display: none; } }
@media (hover: none), (pointer: coarse) { #peek { display: none; } .row-meta { font-size: 10px; } }

/* ---------- footer ---------- */
.foot { position: relative; text-align: center; padding: 100px 20px max(40px, env(safe-area-inset-bottom)); }
.seal { width: 52px; margin: 0 auto 18px; border-radius: 6px; box-shadow: 0 0 40px rgba(242,25,94,.45); }
.foot-title { margin: 0 0 6px; font: 400 28px/1 var(--serif); }
.foot-line { margin: 0 0 22px; font-size: 14px; color: rgba(242,246,245,.72); }
.foot-line a { color: var(--mist); text-decoration-color: rgba(var(--aur), .7); text-underline-offset: 3px; }
.credits { margin: 0 auto; max-width: 40em; font-size: 11.5px; line-height: 1.6; color: rgba(242,246,245,.42); }

/* ---------- video player ---------- */
#player { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(3,26,31,.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
#player[hidden] { display: none; }
#player video { max-width: min(100%, 1100px); max-height: 86vh; border-radius: 18px; box-shadow: 0 40px 120px -20px rgba(var(--aur), .6); background: #000; }
.close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(242,246,245,.25); background: rgba(3,26,31,.5); color: var(--mist); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- leaving through the light ---------- */
#flood {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #f2f6f5 0%, rgb(var(--aur)) 22%, #f2195e 48%, #031a1f 80%);
  clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%));
  transition: clip-path .75s cubic-bezier(.7, 0, .3, 1);
}
body.leaving #flood { clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%)); }

/* ---------- intro choreography: movement and light, never blur ---------- */
.lede, #newest, .top { transition: opacity 1.2s var(--out), transform 1.2s var(--out); }
body.intro .lede { opacity: 0; transform: translateY(12px); }
body.intro #newest { opacity: 0; transform: translateY(26px); }
body.intro .top { opacity: 0; }
.lede { transition-delay: 1.7s; }
#newest { transition-delay: 1.95s; }
.top { transition-delay: 2.3s; }
.logo-wrap { clip-path: inset(-10% -10% calc(100% - var(--p, 100%)) -10%); }
.logo-wrap.done { clip-path: none; }
.logo-base .sheen { animation: sheen 7.5s cubic-bezier(.45,0,.2,1) 2.8s infinite; }
@keyframes sheen { 0% { transform: translateX(-260px) skewX(-18deg); } 42%, 100% { transform: translateX(760px) skewX(-18deg); } }
.wm-line .ch { transform: translateY(110%); transition: transform 1.1s var(--out); }
body.lit .wm-line .ch { transform: none; }

.noscript { position: fixed; inset: auto 0 40px; z-index: 5; text-align: center; }

@media (max-width: 640px) {
  .hero { grid-template-rows: 55fr 45fr; }
  .sky-zone { padding-bottom: 10px; }
  .logo-wrap { width: min(56vw, 250px); }
  .wm-line { font-size: clamp(54px, 17.5vw, 84px); }
  .live { padding: 0 11px; gap: 7px; }
  body.scrolled .live { display: none; }
  .newest { grid-template-columns: 100px 1fr; padding: 10px; gap: 14px; border-radius: 20px; }
  .newest .cover { width: 100px; aspect-ratio: 3 / 4; border-radius: 12px; }
  .newest h3 { font-size: 25px; margin-top: 8px; }
  .newest p { font-size: 12.5px; }
  .go { height: 36px; margin-top: 10px; font-size: 13px; }
  .lede { font-size: 13.5px; max-width: 30em; }
  .lake-zone { padding-bottom: 64px; padding-top: 26px; }
  .lake-zone .lede { display: none; }
  .card .cover { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) and (max-height: 720px) { .lede { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* brand type: Germania One for display, never italic */
em { font-style: normal; }
.row.soon .row-title, .soon h3 { font-style: normal; }

.logo-wrap::before { content: ""; position: absolute; inset: -30% -22%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--aur), .26), rgba(var(--aur), 0)); transition: background 1.4s; }
