/* ThirdSpace site styles, on the "Portal" brand kit (notes/brand/brand-kit-README.md).
   Change the look here: every page reads these tokens. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/literata-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/literata-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/literata-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F7F7FC;
  --mist: #EEEEF8;
  --line: #DCDCEC;
  --ink: #0E0F33;          /* brand ink: text on light */
  --soft: #4A4C6A;         /* secondary text: 7.8 on paper */
  --violet-text: #6D28D9;  /* brand "XR violet on light": links, eyebrows: 6.7 on paper */
  --violet: #8B5CF6;       /* portal violet: decoration only (3.97 on paper) */
  --cyan: #22D3EE;         /* portal cyan: decoration, and accents on navy */
  --lavender: #A5B4FC;
  --mint: #5EEAD4;         /* "live" on navy */
  --navy: #0B0F2A;         /* brand background: panels, footer */
  --navy-2: #1A1F45;
  --navy-line: #2A3060;
  --on-navy: #E2E8F0;
  --on-navy-soft: #A3A9C6; /* 8.1 on navy */
  --portal: linear-gradient(135deg, var(--violet), var(--cyan));

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}
@media (max-width: 600px) { body { font-size: 17px; } }

img, svg { max-width: 100%; }

a { color: var(--violet-text); text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--violet-text); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 13px; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-text);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none;
}
.btn-ink { background: var(--navy); color: #fff; border: 1.5px solid var(--navy); }
.btn-ink:hover { background: var(--navy-2); color: #fff; }
.btn-line { color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--mist); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* Top bar: a thin portal gradient underneath */
.top { background: #fff; position: relative; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--portal); }
.top-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding-block: 14px;
  font-family: var(--sans);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 36px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: auto; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500;
}
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--violet-text); }
@media (max-width: 640px) {
  .top nav { margin-left: 0; order: 3; width: 100%; }
}

/* Home: promises */
.promises { background: var(--mist); border-block: 1px solid var(--line); }
.promise-list {
  list-style: none; margin: 0; padding-block: 40px;
  display: flex; flex-wrap: wrap; gap: 28px 40px;
}
.promise-list li {
  flex: 1 1 260px; min-width: 0; position: relative;
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.promise-list li::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--portal); }
.promise-list h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.promise-list p { font-size: 16px; color: var(--soft); }
.promise-list a { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-top: 4px; }

/* Home: what it does today */
.today { padding-block: clamp(56px, 7vw, 88px); display: flex; flex-wrap: wrap; gap: 24px 56px; }
.today-head { flex: 1 1 280px; min-width: 0; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.today-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.today-head p { color: var(--soft); font-size: 17px; }
.facts { flex: 2 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.facts li:first-child { border-top: 1px solid var(--line); }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; transform: translateY(-2px); }

/* Legal and help pages */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px); }
.doc-in { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 10px; }
.doc .lede { margin-top: 16px; }
.doc .meta { font-family: var(--sans); font-size: 15px; color: var(--soft); margin-top: 16px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 16px; position: relative; }
.doc h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--portal); }
.doc h2 + p, .doc h2 + ul, .doc h2 + ol, .doc h2 + .table-wrap { margin-top: 14px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 12px 0 0; }
.doc li { margin: 8px 0; }
.doc strong { font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--soft); background: var(--mist); }
.doc .contact {
  margin-top: 40px; padding: 20px 22px; background: var(--mist); border-radius: var(--radius);
  font-family: var(--sans); font-size: 16px;
}
.doc .contact p + p { margin-top: 6px; }

/* Footer */
.foot { background: var(--navy); color: var(--on-navy-soft); font-family: var(--sans); position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--portal); }
.foot a { color: var(--on-navy); }
.foot a:hover { color: var(--cyan); }
.foot :focus-visible { outline-color: var(--cyan); }
.foot-in { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-block: 48px 32px; }
.foot-in > * { flex: 1 1 220px; min-width: 0; }
.foot-logo { display: block; height: 32px; width: auto; margin-bottom: 14px; }
.foot address { font-style: normal; font-size: 15px; line-height: 1.6; }
.foot-h { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 10px; }
.foot p { font-size: 15px; line-height: 1.6; }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot nav a { display: inline-flex; align-items: center; min-height: 32px; font-size: 15px; }
.foot-base { padding-block: 16px 28px; border-top: 1px solid var(--navy-line); font-size: 13px; }

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

/* Home: what it does today, in two lists */
.facts-wrap { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.facts-h { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.facts-next li::before { background: var(--cyan); }

/* ==========================================================================
   Home: the scroll story. Every block below reads complete and still on its
   own (no script, reduced motion, small screens). The "In motion" rules at
   the end take over only where story.js runs and motion is welcome; they
   read the custom properties the script sets (--e, --copy, --x and so on).
   ========================================================================== */

.story { --top-h: 72px; } /* the header on wide screens: 44px targets plus 14px padding above and below */

/* The spoken line, as a pill */
.said {
  position: relative; z-index: 1; margin: 0;
  background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy-line); border-radius: 999px;
  padding: 9px 18px; font-family: var(--sans); font-size: 15px; line-height: 1.35; text-align: center;
  box-shadow: 0 10px 24px rgba(11, 15, 42, 0.28);
}
.status { font-family: var(--sans); font-size: 15px; color: var(--soft); display: flex; gap: 10px; align-items: baseline; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--portal); flex: none; transform: translateY(-1px); }

/* A corner label on a capture: where the picture comes from */
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 6px 9px; border-radius: 4px; background: var(--cyan); color: var(--navy);
  font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase;
}

/* 1. The lens: the first screen. Still, it is the copy beside the empty room,
   the spoken line and the forum. In motion, the forum waits behind a portal
   that opens until it fills the screen. */
.lens-stage {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(48px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px;
}
.lens-copy { flex: 1 1 340px; min-width: 0; max-width: 540px; display: flex; flex-direction: column; gap: 20px; }
.lens-copy h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.lede { font-size: 20px; line-height: 1.55; color: var(--soft); }
@media (max-width: 600px) { .lede { font-size: 18px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lens-world { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; }
.lens-ring, .lens-hint { display: none; }
.lens-door { display: flex; flex-direction: column; }
.lens-door .said { align-self: center; margin: -14px 16px; max-width: calc(100% - 32px); }
.lens-pic { background: var(--portal); padding: 3px; border-radius: 8px; }
.lens-pic img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--mist); }
.lens-caption { margin-top: 12px; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--soft); display: flex; flex-direction: column; gap: 4px; }
.lens-caption .eyebrow { display: none; }
.lens-caption-h { font-weight: 600; color: var(--ink); }

/* 2. The Computer: three steps. Still, each step carries its own picture.
   In motion, one picture stays on screen and changes with the step. */
.talk { position: relative; background: var(--paper); padding-block: clamp(56px, 7vw, 96px); }
.talk-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.talk-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
.talk-stage { display: none; }
.talk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 32px; }
.talk-step { display: flex; flex-direction: column; gap: 12px; }
.talk-n { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--violet-text); }
.talk-step h3 { font-size: clamp(22px, 2.4vw, 30px); }
.talk-step > p { color: var(--soft); font-size: 17px; }
.talk-step .talk-fine { font-family: var(--sans); font-size: 15px; }
.talk-fig { margin: 8px 0 0; }
.talk-fig figcaption { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--soft); margin-top: 8px; }
.scene { position: relative; overflow: hidden; border-radius: 10px; background: var(--mist); }
.scene img { display: block; width: 100%; height: auto; }
.scene .said { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); }
.talk-lines { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 14px; }
.talk-lines-h { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--sans); font-size: 17px; }
.lines li { padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }

/* 3. The library, on navy. Still, a grid (a sideways strip on phones).
   In motion, it holds still on screen while the strip slides across. */
.worlds { position: relative; background: var(--navy); color: var(--on-navy); }
.worlds :focus-visible { outline-color: var(--cyan); }
.worlds .eyebrow { color: var(--cyan); }
.worlds-pin { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter); }
.worlds-pin:focus-visible { outline-offset: -6px; }
.worlds-track { display: flex; flex-direction: column; gap: 28px; }
.worlds-intro, .worlds-built { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.worlds-built { margin-top: 20px; }
.worlds-intro h2 { font-size: clamp(32px, 4.4vw, 56px); color: #fff; }
.worlds-intro p:last-child, .worlds-built p:last-child { color: var(--on-navy-soft); font-size: 17px; }
.worlds-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; }
.worlds-made { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.world { position: relative; display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--on-navy); }
.world img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--navy-2); }
.world-wide img { aspect-ratio: 16 / 9; }
.world .tag { top: 10px; left: 10px; }

@media (max-width: 860px) {
  .worlds-pin { max-width: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
  .worlds-track { flex-direction: row; align-items: flex-start; width: max-content; gap: 16px; }
  .worlds-intro, .worlds-built { flex: none; width: min(80vw, 360px); margin: 0; scroll-snap-align: start; }
  .worlds-list { display: flex; gap: 16px; }
  .world { flex: none; width: min(56vw, 240px); scroll-snap-align: start; }
  .world-wide { width: min(80vw, 400px); }
}

/* Headings and lists rise once as they arrive (story.js adds .story-js) */
.story-js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story-js [data-rise].in { opacity: 1; transform: none; }
.story-js .promise-list li:nth-child(2) { transition-delay: 0.08s; }
.story-js .promise-list li:nth-child(3) { transition-delay: 0.16s; }

/* ---- In motion: the Computer's sticky picture, and the sliding library ---- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 861px) {
  .talk-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .talk-stage {
    display: block; position: sticky; top: calc(50vh - min(36vh, 300px)); height: min(72vh, 600px); overflow: hidden;
    border-radius: 14px; background: var(--navy); box-shadow: 0 30px 60px -24px rgba(11, 15, 42, 0.5);
  }
  .talk-stage .scene { position: absolute; inset: 0; border-radius: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.45s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .talk-stage .scene.is-active { opacity: 1; transform: none; }
  .talk-stage .scene img { height: 100%; object-fit: cover; }
  .talk-steps { display: block; }
  .talk-step { min-height: 72vh; justify-content: center; padding-block: 8vh; }
  .talk-step h3 { font-size: clamp(28px, 3vw, 40px); }
  .talk-fig { display: none; }

  .promises { padding-bottom: 5vw; }
  .worlds { height: calc(100vh + var(--travel, 0px)); margin-top: -5vw; clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); }
  .worlds-pin { position: sticky; top: 0; height: 100vh; max-width: none; padding: 0; overflow: hidden; }
  .worlds-track {
    flex-direction: row; align-items: center; gap: 22px; width: max-content; height: 100%;
    padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 12vw;
    transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform;
  }
  .worlds-intro { flex: none; width: min(460px, 60vw); padding-right: 3vw; }
  .worlds-intro h2 { font-size: clamp(40px, 5vw, 76px); }
  .worlds-built { flex: none; width: 340px; margin: 0 2vw 0 5vw; }
  .worlds-lib { flex: none; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(25vh, 230px); grid-template-rows: repeat(2, auto); gap: 18px 22px; align-items: start; }
  .worlds-lib .world { width: auto; }
  .worlds-lib .world:nth-child(4n+3), .worlds-lib .world:nth-child(4n+4) { transform: translateY(6vh); }
  .worlds-made { flex: none; display: flex; align-items: center; gap: 22px; }
  .world { flex: none; }
  .world-wide { width: min(50vh, 500px); }
  .worlds-made .world:nth-child(odd) { transform: translateY(5vh); }
  .worlds-made .world:nth-child(even) { transform: translateY(-5vh); }
  .world img { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6); transition: transform 0.4s ease; }
  .world:hover img { transform: scale(1.03); }
}

/* ---- In motion: the lens. The portal rests beside the copy, in the part of
   the first screen below the header, and opens as the page scrolls. ---- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 1000px) and (min-height: 620px) {
  .lens { height: 250vh; }
  .lens-stage {
    --door-w: min(42vw, 520px);
    --door-r: calc((100% - min(100%, var(--wrap))) / 2 + var(--gutter));
    --door-b: calc(var(--top-h) + 5vh);
    --door-h: min(calc(100vh - var(--top-h) - 12vh), calc(var(--door-w) * 1.3));
    --door-t: calc(100% - var(--door-b) - var(--door-h));
    --door-l: calc(100% - var(--door-r) - var(--door-w));
    --edge: calc((100% - min(100%, var(--wrap))) / 2 + var(--gutter));
    --open: calc(1 - var(--e, 0));
    position: sticky; top: 0; display: block; height: 100vh; max-width: none; margin: 0; padding: 0;
    overflow: hidden; background: var(--paper);
  }
  .lens-copy {
    position: absolute; z-index: 3; top: 0; left: var(--edge);
    width: calc(min(100%, var(--wrap)) - 2 * var(--gutter) - var(--door-w) - 56px); max-width: 560px;
    padding-top: 7vh; gap: min(20px, 2.4vh);
    opacity: var(--copy, 1); transform: translateY(calc((1 - var(--copy, 1)) * -28px));
  }
  .lens-copy h1 { font-size: min(clamp(40px, 5vw, 64px), 7.5vh); }
  .lens-copy .lede { font-size: min(20px, 2.8vh); }
  .lens.is-open .lens-copy { visibility: hidden; }

  .lens-world { position: absolute; inset: 0; display: block; }
  .lens-ring {
    display: block; position: absolute; z-index: 0;
    top: calc(var(--door-t) - 5px); left: calc(var(--door-l) - 5px);
    width: calc(var(--door-w) + 10px); height: calc(var(--door-h) + 5px);
    border-radius: calc(var(--door-w) / 2 + 5px) calc(var(--door-w) / 2 + 5px) 0 0;
    background: var(--portal); opacity: var(--ring, 1);
  }
  .lens-door {
    position: absolute; inset: 0; z-index: 1; display: block;
    clip-path: inset(calc(var(--door-t) * var(--open)) calc(var(--door-r) * var(--open)) calc(var(--door-b) * var(--open)) calc(var(--door-l) * var(--open))
      round calc(var(--door-w) / 2 * var(--open)) calc(var(--door-w) / 2 * var(--open)) 0 0);
    will-change: clip-path;
  }
  .lens-pic { position: absolute; inset: 0; padding: 0; background: none; border-radius: 0; }
  .lens-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
  .lens-forum { opacity: var(--forum, 0); }
  .lens-door .said {
    position: absolute; z-index: 2; margin: 0;
    left: calc(var(--door-l) + var(--door-w) / 2); bottom: calc(var(--door-b) + 28px);
    width: max-content; max-width: calc(var(--door-w) - 40px);
    transform: translateX(-50%); opacity: var(--said, 1);
  }
  .lens-caption {
    position: absolute; z-index: 2; left: var(--edge); right: var(--edge); bottom: 6vh; margin: 0;
    flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
    padding: 20px 24px; border-radius: 10px; background: rgba(11, 15, 42, 0.86); color: var(--on-navy-soft); font-size: 15px;
    opacity: var(--cap, 0); transform: translateY(calc((1 - var(--cap, 0)) * 16px));
  }
  .lens-caption .eyebrow { display: block; color: var(--cyan); }
  .lens-caption-h { margin-top: 8px; max-width: 16em; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; color: #fff; }
  .lens-caption > p { max-width: 30em; }
  .lens-hint {
    position: absolute; z-index: 3; left: var(--edge); bottom: calc(var(--top-h) + 3vh);
    display: flex; flex-direction: column; gap: 10px;
    font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft);
    opacity: var(--hint, 1);
  }
  .lens-hint::after { content: ""; width: 1px; height: 36px; background: currentColor; }
  @media (max-height: 779px) { .lens-hint { display: none; } }

  /* The Computer's section slides up over the open portal */
  .talk { z-index: 1; margin-top: -6vw; border-radius: 6vw 6vw 0 0; }
}
