/* HELIOT framed in "Get their attention." Full-bleed inside the split; the iframe is inert until entered. */
.work-phone-index { padding-bottom: var(--space-m); }
.studio.split#studio { padding-top: 0; }
.heliot-embed { margin: 0; margin-inline: calc(var(--gutter) * -1); display: grid; gap: var(--space-s); }
.heliot-embed-frame { position: relative; height: min(88vh, 960px); min-height: 520px; background: #151719 url('/models/heliot/observatory-landscape.webp') 68% center / cover no-repeat; overflow: hidden; }
.heliot-embed iframe { position: absolute; inset: 52px 0 0; width: 100%; height: calc(100% - 52px); border: 0; display: block; pointer-events: none; opacity: 0; transition: opacity .6s ease-out; }
.heliot-embed[data-loaded][data-state="active"] iframe { opacity: 1; }
.heliot-embed[data-state="active"] iframe { pointer-events: auto; }
.heliot-embed-cover { position: absolute; inset: 0; display: grid; align-content: end; justify-items: start; gap: var(--space-s); padding: clamp(1.5rem, 5vw, 4.5rem) var(--gutter);
  background: linear-gradient(180deg, rgb(13 14 16 / 0) 45%, rgb(13 14 16 / 0.72)); transition: opacity .45s ease-out, visibility 0s linear 0s; }
.heliot-embed[data-state="active"] .heliot-embed-cover { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease-out, visibility 0s linear .45s; }
.heliot-embed-cover > p { margin: 0; }
.heliot-embed-hint { max-width: 40ch; font-size: var(--t-body); line-height: 1.5; color: rgb(242 242 242 / 0.86); }
.heliot-embed-status { min-height: 1.4em; font-size: 0.85rem; color: rgb(242 242 242 / 0.7); }
.heliot-embed-bar { position: absolute; top: 0; right: 0; left: 0; height: 52px; padding: 4px 12px; background: #0d0e10; justify-content: flex-end; display: flex; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s linear .3s; z-index: 2; }
.heliot-embed[data-state="active"] .heliot-embed-bar { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .3s ease-out .15s, transform .3s ease-out .15s, visibility 0s; }
.heliot-embed-bar > * { min-height: 2.75rem; padding: 0 1rem; display: inline-flex; align-items: center; gap: .45em; border: 0; background: rgb(13 14 16 / 0.86); color: var(--color-fg); font: 500 0.82rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.heliot-embed-bar > *:hover { background: var(--color-accent); color: var(--color-on-accent); }
.heliot-embed-bar > *:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.heliot-embed figcaption { padding-inline: var(--gutter); font-size: 0.82rem; color: var(--color-muted); }
.heliot-embed-frame:fullscreen { height: 100%; }
@media (max-width: 899px) { .heliot-embed-frame { height: 82svh; min-height: 480px; } .heliot-embed-bar a { display: none; } .heliot-embed-bar > * { padding: 0 .85rem; } }
@media (prefers-reduced-motion: reduce) { .heliot-embed iframe, .heliot-embed-cover, .heliot-embed-bar, .heliot-embed[data-state="active"] .heliot-embed-cover, .heliot-embed[data-state="active"] .heliot-embed-bar { transition: none; transform: none; } }
/* Authored presentation: a titled entry, a calmer bar, a closing invitation */
.heliot-embed-frame { box-shadow: none; }
.heliot-embed-cover { background: linear-gradient(180deg, rgb(13 14 16 / 0) 30%, rgb(13 14 16 / 0.84)); gap: var(--space-m); }
.heliot-embed-name { margin: 0; font: 600 clamp(3.5rem, 11vw, 9.5rem)/0.86 var(--font-display, inherit); letter-spacing: -0.04em; color: var(--color-fg); }
.heliot-embed-lede { max-width: 34ch; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.4; color: var(--color-fg); }
.heliot-embed-cover .btn { transition: transform .25s ease-out; }
.heliot-embed-cover .btn:hover { transform: translateY(-2px); }
.heliot-embed-bar { background: rgb(13 14 16 / 0.96); align-items: center; }
.heliot-embed-bar > * { border-radius: 999px; background: transparent; }
.heliot-embed-bar > [data-heliot-exit] { margin-right: auto; background: rgb(242 242 242 / 0.08); }
.heliot-invite { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m); padding-top: var(--space-l); }
.heliot-invite-line { margin: 0; max-width: 28ch; font: 600 clamp(1.5rem, 2.6vw, 2.25rem)/1.15 var(--font-display, inherit); letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) { .heliot-embed-cover .btn { transition: none; } }

/* Heliot context: two explorers. Without script every panel reads in full; with script each becomes a tab set. */
.heliot-context { display: grid; gap: clamp(3rem, 7vw, 6.5rem); padding-block: clamp(2rem, 5vw, 5rem) 0; }
.heliot-context h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 1.25rem; }
.heliot-context p { font-size: 1rem; line-height: 1.65; color: rgb(242 242 242 / .82); max-width: 60ch; margin: 0 0 1rem; }
.hx-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.hx-status { color: var(--color-accent) !important; font-weight: 500; }
.hx-explorer { display: grid; gap: 2rem; }
.hx-title { margin: 0 0 .5rem; font: 600 1.25rem/1.25 var(--font-display, inherit); color: var(--paper, #f2f2f2); }
.hx-explorer.is-live { gap: 0; grid-template-columns: minmax(0, 1fr); background: linear-gradient(145deg, rgb(242 242 242 / .07), rgb(242 242 242 / .025)); border-radius: 24px; overflow: hidden; box-shadow: inset 0 1px 0 rgb(255 255 255 / .10), inset 0 0 0 1px rgb(255 255 255 / .045), 0 4px 8px rgb(0 0 0 / .16), 0 18px 40px -12px rgb(0 0 0 / .4); }
.hx-tabs { display: flex; flex-direction: column; padding: .5rem; gap: .25rem; }
.hx-tab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .75rem 1.1rem; font: 600 clamp(1.1rem, 1.5vw, 1.4rem)/1.2 var(--font-display, inherit); letter-spacing: -.01em; color: rgb(242 242 242 / .55); transition: color .2s, background-color .2s; }
.hx-tab::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--color-accent); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s ease-out; }
.hx-tab:hover { color: var(--paper, #f2f2f2); }
.hx-tab { border-radius: 18px; }
.hx-tab[aria-selected="true"] { color: var(--color-on-accent, #0d0e10); background: var(--paper, #f2f2f2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 2px 4px rgb(0 0 0 / .14), 0 6px 14px -4px rgb(0 0 0 / .28); }
.hx-tab[aria-selected="true"]::after { opacity: 1; transform: none; }
.hx-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.hx-explorer.is-live .hx-panel { padding: clamp(1.25rem, 3vw, 2.25rem); min-height: 11rem; }
.hx-explorer.is-live .hx-panel .hx-title { display: none; }
.hx-explorer.is-live .hx-panel:not([hidden]) { animation: hx-in .35s ease-out; }
.hx-explorer.is-live .hx-panel p { color: var(--paper, #f2f2f2); font-size: 1.0625rem; }
@keyframes hx-in { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 1100px) { .hx-explorer.is-live { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .hx-explorer.is-live .hx-panel { background: rgb(242 242 242 / .04); align-self: stretch; } }
.heliot-context .heliot-context-note { margin: 0; padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem); background: rgb(242 242 242 / .06); border-radius: 20px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 10px 24px -10px rgb(0 0 0 / .3); font-size: .95rem; max-width: none; color: rgb(242 242 242 / .86); }
@media (max-width: 899px) { .hx-block { grid-template-columns: minmax(0, 1fr); } .hx-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; } .hx-tab { flex: 0 0 auto; scroll-snap-align: start; font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .hx-tab, .hx-tab::after { transition: none; } .hx-explorer.is-live .hx-panel:not([hidden]) { animation: none; } }

/* Redesign: one connected instrument. A switch for the world, a rail for where it applies, a spine joining them. */
.heliot-context { position: relative; }
.hx-block { position: relative; }
.hx-block + .hx-block { padding-top: clamp(1rem, 3vw, 2rem); }
.heliot-context::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--color-accent), rgb(242 242 242 / .08)); opacity: .8; }
.heliot-context > * { margin-left: clamp(1.25rem, 3vw, 2.75rem); }
.hx-intro h3 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: .95; }
.hx-block:first-child .hx-explorer.is-live { background: radial-gradient(120% 140% at 0% 0%, rgb(255 90 20 / .14), transparent 55%), linear-gradient(145deg, rgb(242 242 242 / .08), rgb(242 242 242 / .02)); }
/* switch: sliding thumb */
.hx-tabs { position: relative; }
[data-variant="switch"] .hx-tabs { flex-direction: row; gap: 0; margin: .75rem; padding: .3rem; border-radius: 999px; background: rgb(0 0 0 / .38); box-shadow: inset 0 2px 6px rgb(0 0 0 / .45); }
[data-variant="switch"] .hx-tab { position: relative; z-index: 1; flex: 1 1 0; justify-content: center; border-radius: 999px; background: none !important; box-shadow: none !important; }
[data-variant="switch"] .hx-tab::after { display: none; }
[data-variant="switch"] .hx-tab[aria-selected="true"] { color: var(--color-on-accent, #0d0e10); }
.hx-thumb { position: absolute; z-index: 0; top: .3rem; bottom: .3rem; left: .3rem; width: calc((100% - .6rem) / var(--n, 2)); border-radius: 999px; background: var(--paper, #f2f2f2); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -4px rgb(0 0 0 / .5); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .45s cubic-bezier(.3, 1.2, .4, 1); }
[data-variant="switch"] .hx-panel p { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35; }
/* rail: vertical track, orange node travels to the chosen application */
[data-variant="rail"].is-live { position: relative; }
[data-variant="rail"] .hx-tabs { padding: 1rem .75rem 1rem 2.5rem; position: relative; }
[data-variant="rail"] .hx-tabs::before { content: ""; position: absolute; left: 1.25rem; top: 2rem; bottom: 2rem; width: 2px; background: rgb(242 242 242 / .16); border-radius: 2px; }
[data-variant="rail"] .hx-tab::after { display: none; }
[data-variant="rail"] .hx-tab[aria-selected="true"] { background: rgb(242 242 242 / .1); color: var(--paper, #f2f2f2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 8px 20px -8px rgb(0 0 0 / .5); transform: translateX(.5rem); }
[data-variant="rail"] .hx-tab { transition: color .2s, background-color .2s, transform .35s ease-out; }
.hx-node { position: absolute; left: 1.05rem; top: 0; width: .85rem; height: .85rem; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 5px rgb(255 90 20 / .18); pointer-events: none; transform: translateY(calc(2rem + var(--i, 0) * 3.5rem)); transition: transform .5s cubic-bezier(.3, 1.2, .4, 1); }
[data-variant="rail"] .hx-panel p { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35; }
@media (min-width: 1100px) { [data-variant="rail"].is-live { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } [data-variant="rail"] .hx-panel { align-items: center; } }
@media (max-width: 899px) {
  [data-variant="rail"] .hx-tabs { flex-direction: column; overflow: visible; padding-left: 2.5rem; }
  .hx-node { transform: translateY(calc(1.9rem + var(--i, 0) * 3.5rem)); }
  [data-variant="switch"] .hx-tabs { overflow: visible; }
  [data-variant="switch"] .hx-tab { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) { .hx-thumb, .hx-node, [data-variant="rail"] .hx-tab { transition: none; } }
.hx-panel[hidden] { display: none !important; }
[data-variant="rail"] .hx-node { transform: translateY(calc(var(--hx-node-y, 2.425rem) - .425rem)); }
[data-variant="rail"] .hx-panel:not([hidden]) { display: flex; }
[data-variant="switch"] .hx-tabs { align-self: center; }
[data-variant="switch"] .hx-tab { min-height: 3.25rem; }
