@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --ink: #101013;
  --paper: #F7F7F5;
  --teal: #35BFC1;
  --teal-ink: #0B6567;
  --navy: #15123A;
  --yellow: #FFD60A;
  --orange: #FF9500;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --blob: "Fredoka", var(--body);
  --dim: "Unbounded", var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--body); line-height: 1.55; background: var(--ink); color: #fff; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: rgba(16,16,19,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { font-family: var(--dim); font-weight: 700; font-size: 14px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; gap: 20px; font-size: 14px; }
.bar nav a { text-decoration: none; opacity: .8; white-space: nowrap; }
.bar nav a:hover { opacity: 1; }
.bar-light { background: rgba(247,247,245,.88); color: var(--ink); }

/* Hero */
.hero { padding: clamp(28px, 5vw, 56px) 20px 20px; }
.hero h1 { font-family: var(--dim); font-weight: 600; font-size: clamp(28px, 5vw, 60px); line-height: 1.12; letter-spacing: -.02em; max-width: 19ch; margin: 0 auto; text-align: center; text-wrap: balance; }
.hero-sub { margin: clamp(10px, 1.4vw, 16px) auto clamp(24px, 4vw, 44px); text-align: center; font-size: clamp(16px, 1.6vw, 20px); color: #C9C9CF; text-wrap: balance; }
.doors { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; max-width: 1400px; margin-inline: auto; }
.door { position: relative; display: block; min-height: clamp(320px, 56vh, 620px); border-radius: 26px; overflow: hidden; text-decoration: none; isolation: isolate; }
.door > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.door:hover > img:first-child { transform: scale(1.03); }
.door-nd > img:first-child { object-position: 50% 70%; }
.door-nd .door-label { display: flex; align-items: center; gap: 14px; padding: 110px 24px 20px; background: linear-gradient(transparent, rgba(6,14,16,.92) 60%); }
.door-icon { width: clamp(44px, 4.2vw, 56px); border-radius: 23%; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.18); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.door-nd:hover .door-icon { transform: rotate(-8deg) scale(1.06); }
.door-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(0,0,0,.72)); display: grid; gap: 2px; }
.door-label strong { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }
.door-blob strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the art already says it */
.door-blob .door-label { padding: 90px 24px 18px; background: linear-gradient(transparent, rgba(8,6,30,.9) 62%); font-family: var(--blob); font-weight: 500; font-size: clamp(18px, 2vw, 24px); text-align: center; }
.door-nd strong { font-family: var(--dim); font-weight: 600; font-size: clamp(19px, 2.2vw, 27px); color: var(--teal); }

/* Drifting circles, the backdrop from Next Dimension itself */
.shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Each circle is pre-softened with a gradient, so nothing has to be blurred while it moves */
.shapes i { position: absolute; left: calc(var(--s) * -1); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: var(--o); will-change: transform; animation: drift var(--t) linear var(--d) infinite; }
@keyframes drift { to { transform: translateX(calc(100vw + var(--s))); } }
.legal .shapes i { opacity: calc(var(--o) * .45); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 99px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-soon { background: rgba(255,214,10,.14); color: var(--yellow); }
.status-live { background: rgba(53,191,193,.15); color: var(--teal); }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 60ch; }

/* Blob Mob */
.blob { background: radial-gradient(ellipse 90% 500px at 50% 420px, #2A2470 0%, transparent 70%), rgba(21,18,58,.72); padding: clamp(64px, 9vw, 120px) 0; margin-top: 44px; overflow: hidden; }
.blob-intro { text-align: center; display: grid; justify-items: center; gap: 16px; }
.blob h2 { font-family: var(--blob); font-weight: 700; font-size: clamp(64px, 13vw, 150px); line-height: 1; letter-spacing: .01em; color: var(--yellow); text-shadow: 0 2px 0 #FFB300, 0 5px 0 #F07F00, 0 9px 0 #6B2A05, 0 18px 30px rgba(0,0,0,.45); }
.phones { display: flex; justify-content: center; align-items: flex-start; margin: clamp(44px, 7vw, 80px) 0 clamp(40px, 6vw, 72px); }
.phone { flex: 0 1 300px; border-radius: 12% / 5.6%; overflow: hidden; border: 5px solid #33305F; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.phone-mid { z-index: 2; transform: translateY(-14px) scale(1.04); }
.phone-left { transform: translate(5%, 20px) rotate(-5deg); }
.phone-right { transform: translate(-5%, 20px) rotate(5deg); }
.taunt { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.taunt p { font-family: var(--blob); font-weight: 600; font-size: clamp(34px, 6vw, 68px); line-height: 1.1; }
.taunt cite { display: block; margin-top: 8px; font-style: normal; color: #BDB9E6; }
.blob-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.blob-points h3 { font-family: var(--blob); font-weight: 600; font-size: 24px; color: var(--yellow); margin-bottom: 6px; }
.blob-points p { color: #D5D2F2; font-size: 16px; }
.wide { margin-top: clamp(44px, 6vw, 72px); border-radius: 22px; overflow: hidden; border: 5px solid #33305F; }
.blob-deal { font-family: var(--blob); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; text-align: center; margin-top: 32px; text-wrap: balance; }

/* Next Dimension */
.nd { padding: clamp(64px, 9vw, 120px) 0; }
.nd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px) clamp(32px, 6vw, 88px); align-items: center; }
.nd-copy { display: grid; justify-items: start; gap: 18px; }
.nd h2 { font-family: var(--dim); font-weight: 700; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.025em; color: #fff; }
.button { display: inline-block; font-weight: 600; padding: 13px 22px; border-radius: 12px; background: var(--teal); color: #062324; text-decoration: none; transition: transform .15s; }
.button:hover { transform: translateY(-2px); }
.nd-shot { justify-self: center; width: min(100%, 380px); border-radius: 9% / 6.4%; overflow: hidden; border: 5px solid #2A3536; box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: perspective(900px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.nd-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.nd-steps li { counter-increment: step; border-top: 1px solid rgba(53,191,193,.45); padding-top: 14px; }
.nd-steps li::before { content: counter(step); font-family: var(--dim); font-weight: 700; color: var(--teal); font-size: 15px; }
.nd-steps h3 { font-family: var(--dim); font-weight: 600; font-size: 19px; line-height: 1.25; margin: 6px 0; }
.nd-steps p { color: #C6D3D3; font-size: 16px; }
.nd-note { grid-column: 1 / -1; color: #C6D3D3; font-size: 15px; }
.nd-note a { color: var(--teal); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 22px 20px; font-size: 14px; background: rgba(16,16,19,.6); color: #C9C9CF; }
.foot-quiet { margin-left: auto; }
.foot-light { background: transparent; color: #55555C; border-top: 1px solid #DDDDD8; max-width: 760px; margin: 0 auto; padding-inline: 0; width: calc(100% - 40px); }

/* Privacy */
.legal { background: var(--paper); color: var(--ink); }
.policy { width: min(760px, 100% - 40px); margin: 0 auto; padding: clamp(32px, 6vw, 64px) 0; font-size: 17px; line-height: 1.6; }
.policy h1 { font-family: var(--dim); font-weight: 700; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.updated { color: #55555C; margin: 8px 0 26px; font-size: 15px; }
.policy h2 { font-family: var(--dim); font-weight: 600; font-size: 23px; line-height: 1.25; margin: 44px 0 10px; letter-spacing: -.01em; scroll-margin-top: 72px; }
.policy h3 { font-size: 18px; margin: 26px 0 6px; }
.policy p + p { margin-top: 12px; }
.policy a { color: var(--teal-ink); }
.policy ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.policy li + li { margin-top: 8px; }
.policy dt { font-weight: 600; margin-top: 14px; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 16px; }
.glance a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid #E2E2DD; border-radius: 16px; text-decoration: none; color: inherit; font-size: 15px; line-height: 1.4; }
.glance a:hover { border-color: var(--teal); }
.glance img { width: 48px; border-radius: 22%; flex: none; }
.glance strong { display: block; font-size: 17px; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.lost h1 { font-family: var(--dim); font-weight: 700; font-size: clamp(36px, 8vw, 72px); letter-spacing: -.02em; }
.lost p { margin: 8px 0 24px; font-size: 19px; }

@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; aspect-ratio: 16 / 10; }
  .door-nd > img:first-child { object-position: 50% 54%; }
  .blob-points { grid-template-columns: 1fr 1fr; }
  .nd-grid { grid-template-columns: 1fr; }
  .nd-steps { grid-template-columns: 1fr; }
  .nd-shot { width: min(100%, 320px); }
}
@media (max-width: 560px) {
  .bar { flex-direction: column; gap: 6px; padding-block: 10px; position: static; }
  .bar nav { gap: 16px; font-size: 13.5px; }
  html { scroll-padding-top: 12px; }
  .door { aspect-ratio: 5 / 4; }
  .door-nd > img:first-child { object-position: 50% 70%; }
  .phones .phone { border-width: 3px; }
  .phone-left { transform: translate(8%, 14px) rotate(-5deg); }
  .phone-right { transform: translate(-8%, 14px) rotate(5deg); }
  .blob-points, .glance { grid-template-columns: 1fr; }
  .foot-quiet { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shapes i { animation: none; }
  .nd-shot { transform: none; transition: none; }
  .shapes i { left: var(--x); will-change: auto; }
  .door > img:first-child, .door-icon, .button { transition: none; }
}
