/* Portal Status. Mobile first: every rule is written for a phone (about 393px wide); wider screens only add room.
   One dark look: a living room after dark, lamp and screen light. A single column of sections; each opens with a
   title that says what it's for. The build swaps the font file names below for fingerprinted ones. */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-latin-wght-normal.4ba7d3d096.woff2") format("woff2-variations"), url("/assets/fonts/figtree-latin-wght-normal.4ba7d3d096.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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext-wght-normal.bf7828e2c2.woff2") format("woff2-variations"), url("/assets/fonts/figtree-latin-ext-wght-normal.bf7828e2c2.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --room: #17120f;
  --room-2: #1f1813;
  --lamp: #ffb27a;
  --lamp-ink: #2a160a;
  --lit: #fff6ec;
  --dim: rgba(255, 246, 236, .07);
  --line: rgba(255, 246, 236, .14);
  --line-soft: rgba(255, 246, 236, .08);
  --text: #f6efe8;
  --soft: rgba(246, 239, 232, .72);
  --faint: rgba(246, 239, 232, .52);
  --ink: #231a14;
  --font: "Figtree", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--room); color: var(--text); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; } /* hidden means gone, whatever display a class gives it (a form's grid once kept it on show) */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- header: one line ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.mark i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--text); }
.top a.who { font-size: 15px; color: var(--soft); text-decoration: none; padding: 10px 0 10px 10px; }
.top a.who:hover { color: var(--text); }
/* "Who runs this website?": a note that opens under the header, over the page. Works without the script; the script
   also closes it on a click elsewhere or Escape. Never wider than the screen less its margins. */
.who-runs { position: relative; }
.who-runs summary { list-style: none; cursor: pointer; font-size: 15px; color: var(--soft); padding: 10px 0 10px 10px; border-radius: 8px; }
.who-runs summary::-webkit-details-marker { display: none; }
.who-runs summary:hover, .who-runs[open] summary { color: var(--text); }
.who-runs summary:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.who-runs .pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; width: min(300px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 14px 16px; border-radius: 14px; background: var(--room-2); box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, .45);
  font-size: 15px; line-height: 1.45; color: var(--soft); }
.who-runs .pop p { margin: 0; }

/* ---------- sections ---------- */
section { padding-block: 44px; }
section + section { border-top: 1px solid var(--line-soft); }
.kicker { font-size: 14px; font-weight: 700; color: var(--lamp); margin: 0 0 6px; }
h1, h2 { font-weight: 800; letter-spacing: -.025em; text-wrap: balance; margin: 0; }
h1 { font-size: 34px; line-height: 1.04; }
h2 { font-size: 28px; line-height: 1.08; }
.sub { color: var(--soft); margin: 10px 0 0; max-width: 34em; }

/* ---------- hero ---------- */
.hero { padding-block: 10px 8px; border: 0; }
.checked { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--lamp); margin-bottom: 10px; }
.checked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp); }
.answer { margin: 12px 0 0; font-size: 19px; line-height: 1.4; font-weight: 600; }
.answer span { color: var(--soft); font-weight: 500; }

/* ---------- model picker ---------- */
.models { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 22px 0 0; }
.model {
  appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--soft);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px 8px; border-radius: 14px; min-height: 64px; font-size: 13px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
.model svg { width: 30px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.model[aria-pressed="true"] { background: var(--lit); color: var(--ink); box-shadow: none; }
.model:focus-visible, .chip:focus-visible, .seg button:focus-visible, .btn:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.model-note { font-size: 15px; color: var(--soft); margin: 12px 0 0; min-height: 3em; } /* two lines kept, so changing model never moves what follows */

/* ---------- the status grid: app icons, lit or dim ---------- */
.group { margin-top: 26px; }
.group-h { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.group-h .n { color: var(--faint); font-weight: 600; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.app .ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; }
.app svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app .nm { font-size: 13px; font-weight: 600; line-height: 1.2; min-height: 2.4em; } /* two lines always, so rows never change height */
.app .st { font-size: 12px; line-height: 1.2; color: var(--faint); }
.on .ic { background: var(--lit); color: var(--ink); box-shadow: 0 0 22px rgba(255, 226, 196, .35); }
.on .st { color: var(--lamp); font-weight: 700; }
.ask .ic { color: var(--soft); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 236, .45); }
.off .ic { background: var(--dim); color: rgba(255, 246, 236, .3); box-shadow: inset 0 0 0 1px var(--line); }
.off .nm { color: var(--faint); }
.app[hidden] { display: none; }

/* ---------- timeline ---------- */
.tl { margin-top: 26px; }
.axis { position: relative; height: 22px; margin-bottom: 4px; }
.axis span { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.axis span.today { color: var(--lamp); }
.tl-h { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 18px 0 6px; border-bottom: 1px solid var(--line-soft); }
.row { padding: 10px 0 8px; border-bottom: 1px solid var(--line-soft); }
.row .lb { font-size: 15px; line-height: 1.3; color: var(--soft); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 12px; }
.row .dt { font-size: 13px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.row.alive .dt, .row.promised .dt { color: var(--lamp); }
.row .when { display: none; }
.row.alive .lb { color: var(--text); font-weight: 700; }
.track { position: relative; height: 18px; }
.gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.gl.today { background: var(--lamp); opacity: .5; width: 2px; }
.ln { position: absolute; top: 50%; left: 0; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 246, 236, .3); }
.alive .ln { height: 5px; margin-top: -2.5px; background: var(--lamp); box-shadow: 0 0 12px rgba(255, 178, 122, .4); }
.promised .ln { height: 0; margin-top: -1.5px; background: none; border-top: 3px dotted var(--lamp); }
.newer .ln { background: var(--text); }
.fut { position: absolute; top: 50%; height: 0; border-top: 3px dashed var(--lamp); opacity: .4; }
.x { position: absolute; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--soft); }
.x::before { transform: translate(-50%, -50%) rotate(45deg); }
.x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lamp); }
.qm { position: absolute; top: 50%; transform: translate(-50%, -50%); font-weight: 800; font-size: 14px; color: var(--lamp); }
.when { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 12px; font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; background: var(--room); padding: 1px 4px; }
.when.left { transform: translate(-100%, -50%); margin-left: -12px; }
.tl-foot { font-size: 15px; color: var(--soft); margin: 16px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .alive .dot { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,178,122,.5); } 70% { box-shadow: 0 0 0 10px rgba(255,178,122,0); } 100% { box-shadow: 0 0 0 0 rgba(255,178,122,0); } }
}

/* ---------- forms ---------- */
.form { margin-top: 24px; display: grid; gap: 24px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q > legend, .q > label.ql { display: block; font-size: 17px; font-weight: 700; margin: 0 0 10px; padding: 0; }
.q .hint { display: block; font-size: 14px; font-weight: 500; color: var(--faint); margin-top: 2px; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chip { appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 14px; min-height: 64px; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.chip svg { width: 30px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip[aria-pressed="true"] { background: var(--lit); color: var(--ink); box-shadow: none; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg button { appearance: none; border: 0; cursor: pointer; min-height: 50px; border-radius: 14px; font-size: 16px; font-weight: 700; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.seg button[aria-pressed="true"] { background: var(--lit); color: var(--ink); box-shadow: none; }
select, textarea, input[type="email"] { width: 100%; min-height: 52px; border-radius: 14px; border: 0; padding: 13px 16px; font-size: 17px; background: rgba(255, 246, 236, .07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { color: #111; }
textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
::placeholder { color: rgba(246, 239, 232, .4); }
.checks { display: grid; gap: 4px; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.check:last-child { border-bottom: 0; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--lamp); }
.check b { display: block; font-size: 17px; }
.check span span { display: block; font-size: 15px; color: var(--soft); margin-top: 2px; }
.btn { appearance: none; border: 0; cursor: pointer; width: 100%; min-height: 54px; border-radius: 999px; background: var(--lamp); color: var(--lamp-ink); font-size: 17px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 236, .35); }
.small { font-size: 14px; color: var(--faint); margin: 0; }
.community { font-size: 15px; color: var(--soft); margin: 10px 0 0; padding-left: 12px; box-shadow: inset 2px 0 0 var(--line); }
.err { color: #ffb3a1; font-size: 15px; margin: 8px 0 0; }

/* ---------- once a form is sent ----------
   The form and its "done" panel share a box (.swap); the script folds one into the other. The panel: a lit circle
   for what happened, a few words, and what to do next (a lamp-coloured action, like every button on the page). */
.swap { margin-top: 24px; }
[data-moving] { pointer-events: none; } /* while it folds, a tap can't land on whatever is passing underneath */
.swap > .form { margin-top: 0; }
.done { border-radius: 20px; background: rgba(255, 246, 236, .05); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.done:focus { outline: none; } /* it takes the focus only so screen readers read it out */
.done-top { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 20px; }
.done-ic, .done-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.done-ic { background: var(--lit); color: var(--ink); box-shadow: 0 0 22px rgba(255, 226, 196, .3); }
.done-go { background: var(--lamp); color: var(--lamp-ink); }
.done-ic svg, .done-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { margin: 8px 0 6px; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.done p { margin: 0; color: var(--soft); }
.done .addr { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.done .again { width: auto; min-height: 44px; margin-top: 16px; padding: 0 20px; font-size: 15px; }
.done-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line-soft);
  background: rgba(255, 178, 122, .07); text-decoration: none; transition: background .2s; }
.done-next:hover { background: rgba(255, 178, 122, .13); }
.done-next:focus-visible { outline: 2px solid var(--lamp); outline-offset: -2px; }
.done-next b { display: block; font-size: 17px; line-height: 1.3; }
.done-next span span { display: block; font-size: 15px; color: var(--soft); margin-top: 2px; }
/* contact: once sent, its "Send us a message" button goes, and the panel sits where it was */
.reveal.sent > .swap { margin-top: 0; }

/* ---------- communities ---------- */
.links { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.links a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.links .lg { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.links .lg svg { width: 44px; height: 44px; display: block; }
.links b { display: block; font-size: 17px; }
.links span span { display: block; font-size: 14px; color: var(--faint); }
.links .arr { color: var(--soft); font-size: 18px; }

/* ---------- Higlo ---------- */
/* the heading comes first, then the photo, then the words */
.higlo .photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 30%; border-radius: 18px; display: block; margin: 22px 0 0; }
.higlo picture + .sub { margin-top: 22px; }
.higlo .buy { margin-top: 30px; }
.higlo .product { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 25%; border-radius: 18px; display: block; outline: 1px solid var(--line); outline-offset: -1px; } /* the TV is black: the outline keeps the photo's edge */
.higlo .buy p { margin: 16px 0 0; color: var(--soft); }
.higlo .buy p b { color: var(--text); }
.values { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.values li { display: flex; gap: 12px; align-items: baseline; }
.values li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--lamp); position: relative; top: -2px; }
.higlo .btn { margin-top: 20px; }

/* ---------- not affiliated ---------- */
.notice { padding: 20px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.notice h2 { font-size: 20px; letter-spacing: -.01em; }
.notice p { margin: 8px 0 0; color: var(--soft); font-size: 16px; }

/* ---------- contact: a button that opens the form in place ---------- */
.reveal { margin-top: 20px; }
.reveal > summary { list-style: none; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal .noscript { margin-top: 16px; }

footer { padding-block: 28px 44px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--faint); }
footer p { margin: 6px 0; }
footer a { color: var(--soft); }

/* ---------- privacy page ---------- */
.policy h1 { font-size: 32px; }
.policy h2 { font-size: 21px; letter-spacing: -.01em; margin-top: 30px; }
.policy p, .policy li { color: var(--soft); }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }
.draft { font-size: 14px; font-weight: 700; color: var(--lamp-ink); background: var(--lamp); display: inline-block; padding: 4px 10px; border-radius: 999px; }
.tbc { color: var(--lamp); font-weight: 600; }

/* ---------- wider screens: same order, more room ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .top { padding-block: 20px; }
  section { padding-block: 64px; }
  .hero { padding-block: 30px 8px; }
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .answer { font-size: 22px; }
  .apps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 12px; }
  .app .ic { width: 68px; height: 68px; border-radius: 20px; }
  .app svg { width: 30px; height: 30px; }
  .app .nm { font-size: 14px; }
  .model, .chip { min-height: 72px; font-size: 14px; }
  .model-note { min-height: 1.5em; }
  .btn { width: auto; }
  .links .lg { width: 48px; height: 48px; }
  .row { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: center; }
  .row .lb { margin: 0; }
  .row .dt { display: none; }
  .row .when { display: block; }
  .axis { margin-left: 248px; }
  .tl-h { margin-top: 4px; }
  .higlo .photo { aspect-ratio: 2 / 1; object-position: 40% 22%; margin-top: 30px; }
  .higlo picture + .sub { margin-top: 30px; }
  .done-top { grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 26px 28px; }
  .done-ic, .done-go { width: 48px; height: 48px; }
  .done h3 { margin-top: 9px; }
  .done-next { padding: 20px 28px 20px 96px; } /* its words in line with the panel's, under the circle's column */
  .higlo .buy { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; margin-top: 40px; }
  .higlo .buy p { margin-top: 0; }
  .higlo .product { aspect-ratio: 3 / 2; object-position: 55% 40%; }
  .links .lg svg { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }


/* ---------- the Portal at the top ----------
   A fixed-size bench: every model stands on the same floor inside the same box, so choosing a
   model never moves anything below it. The parts (shadow, column or dock, handle, camera bar,
   frame, screen) are always there; each model only sets their sizes, in --u (a hundredth of the
   bench's width, capped on wide screens), and the sizes transition, so one Portal reshapes into
   the next. Everything on the screen is sized from the screen (--s), so it scales as the screen
   does, with no change of layout part-way. Hidden from screen readers; the lists below carry the
   same facts. */
.stage {
  position: relative; margin: 14px -20px 0; padding: 12px 0 16px; container-type: inline-size;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(150, 165, 255, .10), transparent 70%),
    radial-gradient(38% 46% at 30% 38%, rgba(255, 170, 110, .14), transparent 72%);
}
.bench {
  --u: min(1cqi, 5.6px);
  --t: .7s cubic-bezier(.45, 0, .2, 1);
  position: relative; width: calc(100 * var(--u)); height: calc(64 * var(--u)); margin: 0 auto;
  /* Portal (10-inch), the default. Numbers are in --u. */
  --fw: 80; --fh: 51; --fb: 4; --fr: 3.2;       /* frame: width, height, bottom, corners */
  --bt: 2.4; --bx: 2.4; --bb: 4.4; --sr: 1.4;   /* bezel: top, sides, bottom; screen corners */
  --cw: 20; --ch: 0; --co: 0; --cr: 1;           /* the base: Portal+ column, Go dock, TV stand */
  --hw: 24; --hh: 0; --ho: 0;                    /* Portal Go's handle */
  --kw: 18; --kh: 0; --ko: 0;                    /* Portal TV's camera bar */
  --sw: 66;                                      /* shadow on the floor */
  --go: 1;                                       /* speaker grille and front camera */
}
/* Portal+: a big screen held up on a speaker column */
.bench.is-plus { --fw: 88; --fh: 50; --fb: 12; --fr: 2.6; --bt: 2.2; --bx: 2.2; --bb: 3.8; --cw: 12; --ch: 8.6; --co: 1; --cr: .8; --sw: 44; }
/* Portal Mini: small and upright */
.bench.is-mini { --fw: 40; --fh: 57; --fr: 2.6; --bt: 2.4; --bx: 2.2; --bb: 4; --sr: 1.2; --sw: 34; }
/* Portal Go: a handle at the top, standing in its charging dock */
.bench.is-go { --fw: 74; --fh: 46; --fb: 7.4; --fr: 3; --cw: 46; --ch: 4; --co: 1; --cr: 2; --hh: 7; --ho: 1; --sw: 60; }
/* Portal TV: a television, thin bezel, the camera bar on top */
.bench.is-tv { --fw: 90; --fh: 51; --fb: 8.4; --fr: 1; --bt: 1.2; --bx: 1.2; --bb: 1.2; --sr: .4; --cw: 30; --ch: 4.8; --co: 1; --cr: .8; --kw: 20; --kh: 3.8; --ko: 1; --sw: 72; --go: 0; }

.shadow, .base, .handle, .cambar, .frame { position: absolute; left: 50%; transform: translateX(-50%); }
.shadow {
  bottom: calc(1.4 * var(--u)); width: calc(var(--sw) * var(--u)); height: calc(5 * var(--u)); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); transition: width var(--t);
}
.base {
  bottom: calc(4 * var(--u)); width: calc(var(--cw) * var(--u)); height: calc(var(--ch) * var(--u)); opacity: var(--co);
  border-radius: calc(var(--cr) * var(--u)) calc(var(--cr) * var(--u)) calc(var(--cr) * 1.8 * var(--u)) calc(var(--cr) * 1.8 * var(--u));
  background: linear-gradient(90deg, #1a1817, #3a3634 45%, #1a1817);
  box-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) calc(-1.5 * var(--u)) rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: width var(--t), height var(--t), opacity var(--t), border-radius var(--t);
}
.handle {
  bottom: calc((var(--fb) + var(--fh) - 1) * var(--u)); width: calc(var(--hw) * var(--u)); height: calc((var(--hh) + 1) * var(--u));
  border: calc(2.2 * var(--u)) solid #34302d; border-bottom: 0; border-radius: calc(5 * var(--u)) calc(5 * var(--u)) 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .1);
  opacity: var(--ho); transition: bottom var(--t), height var(--t), opacity var(--t);
}
.cambar {
  bottom: calc((var(--fb) + var(--fh) - .3) * var(--u)); width: calc(var(--kw) * var(--u)); height: calc(var(--kh) * var(--u));
  border-radius: calc(1.4 * var(--u)) calc(1.4 * var(--u)) calc(.5 * var(--u)) calc(.5 * var(--u)); overflow: hidden;
  background: linear-gradient(#232120, #121111); opacity: var(--ko);
  transition: bottom var(--t), width var(--t), height var(--t), opacity var(--t);
}
.cambar i {
  position: absolute; left: 50%; top: 50%; width: calc(1.9 * var(--u)); height: calc(1.9 * var(--u)); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5778, #0b0d14 60%); box-shadow: 0 0 0 calc(.35 * var(--u)) #050505;
}
.frame {
  bottom: calc(var(--fb) * var(--u)); width: calc(var(--fw) * var(--u)); height: calc(var(--fh) * var(--u));
  border-radius: calc(var(--fr) * var(--u));
  background: linear-gradient(160deg, #262321, #0d0c0c 60%);
  box-shadow: 0 calc(6 * var(--u)) calc(12 * var(--u)) calc(-4 * var(--u)) rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .07) inset;
  transition: width var(--t), height var(--t), bottom var(--t), border-radius var(--t);
}
.frame::after { /* speaker grille along the bottom bezel */
  content: ""; position: absolute; left: 32%; right: 32%; bottom: calc(var(--bb) * .36 * var(--u)); height: calc(.9 * var(--u)); opacity: var(--go);
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0 32%, transparent 36%) 0 0 / calc(1.6 * var(--u)) calc(.9 * var(--u)) repeat-x;
  transition: bottom var(--t), opacity var(--t);
}
.cam {
  position: absolute; left: 50%; top: calc(var(--bt) * .5 * var(--u)); width: calc(.9 * var(--u)); height: calc(.9 * var(--u));
  transform: translate(-50%, -50%); border-radius: 50%; background: #3a3a40; box-shadow: 0 0 0 calc(.3 * var(--u)) #141416;
  opacity: var(--go); transition: top var(--t), opacity var(--t);
}
.screen {
  position: absolute; top: calc(var(--bt) * var(--u)); left: calc(var(--bx) * var(--u)); right: calc(var(--bx) * var(--u)); bottom: calc(var(--bb) * var(--u));
  border-radius: calc(var(--sr) * var(--u)); overflow: hidden; container-type: size;
  background:
    radial-gradient(30% 40% at 78% 22%, rgba(255, 200, 150, .25), transparent 70%),
    radial-gradient(40% 50% at 18% 85%, rgba(255, 140, 90, .22), transparent 70%),
    radial-gradient(90% 80% at 80% 0%, #4d3a66, transparent 60%),
    linear-gradient(165deg, #2d2440, #3b2a25 70%, #2a1d18);
  transition: top var(--t), left var(--t), right var(--t), bottom var(--t), border-radius var(--t);
}
.sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 38%); }

/* the home screen: one unit (--s) from the screen's own size; a portrait screen gets a little more */
.ui { --s: min(1.6cqi, 1.6cqh); position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(4.4 * var(--s)) min(5 * var(--s), 4cqi) calc(4 * var(--s)); }
.scr-top { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; font-size: max(7px, calc(3.2 * var(--s))); font-weight: 700; color: rgba(255, 255, 255, .78); }
.live { flex: 1; display: flex; justify-content: center; align-items: center; gap: calc(10 * var(--s)); }
.big { display: flex; flex-direction: column; align-items: center; gap: calc(1.2 * var(--s)); }
.bi { width: calc(17 * var(--s)); height: calc(17 * var(--s)); flex: none; border-radius: 27%; display: grid; place-items: center; background: var(--lit); color: var(--ink); box-shadow: 0 0 calc(6 * var(--s)) rgba(255, 226, 196, .45); }
.bi svg { width: 47%; height: 47%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bl { font-size: max(7px, calc(3.6 * var(--s))); font-weight: 800; color: #fff; white-space: nowrap; }
.bs { font-size: max(6px, calc(2.8 * var(--s))); font-weight: 700; color: var(--lamp); margin-top: calc(-.6 * var(--s)); }
.tray { display: flex; flex-direction: column; align-items: center; gap: calc(1.6 * var(--s)); }
.tray-l { font-size: max(6px, calc(2.4 * var(--s))); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); white-space: nowrap; }
.ghosts { --gs: min(5.2 * var(--s), 8cqi); --gg: min(1.4 * var(--s), 1.8cqi); display: flex; flex-wrap: nowrap; justify-content: center; gap: var(--gg); }
.g { width: var(--gs); height: var(--gs); flex: none; overflow: hidden; border-radius: 27%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .32); transition: width var(--t), margin var(--t), opacity var(--t); }
.g svg { width: 54%; height: 54%; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Portal TV's own app, which only it had: grows into the tray instead of popping in */
.g.tv-only { width: 0; margin-left: calc(-1 * var(--gg)); opacity: 0; }
.is-tv .g.tv-only { width: var(--gs); margin-left: 0; opacity: 1; }

/* the TV apps tile in the list below fades in rather than appearing at once */
@media (prefers-reduced-motion: no-preference) {
  .app[data-only]:not([hidden]) { animation: tile-in .5s ease-out; }
  @keyframes tile-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
}
@media (min-width: 720px) {
  .stage { margin: 26px 0 0; padding: 34px 0 26px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { .bench, .bench *, .bench *::after { transition: none !important; } }

/* ---------- the real forms ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* a trap for bots: people never see it */
/* Cloudflare's check sits in the same block as the form's button, so it never adds a row (and the form's gap) of its
   own: it stays out of sight, taking no space, until Cloudflare needs the person, then shows above the button. */
.ts:empty { display: none; }
.ts { min-height: 0; }
.ts.ask { margin-bottom: 16px; }
.form .err.send { margin: 0; }
.btn[disabled] { opacity: .6; cursor: progress; }
.noscript { padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); margin: 20px 0 0; }
.higlo picture { display: block; }
.higlo .photo, .higlo .product { height: auto; } /* the width/height attributes reserve space; the aspect ratio decides the shape */
.tl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the small pages: confirm, unsubscribe, 404 ---------- */
.plain { padding-block: 48px 64px; min-height: 60vh; }
.plain h1 { font-size: 32px; }
.plain p { color: var(--soft); max-width: 34em; }
.plain .btn { margin-top: 18px; width: auto; }
@media (min-width: 720px) { .plain h1 { font-size: 44px; } }
