/* ÆTHER — Object 01. A self-initiated interaction study by MOTERA.
   Type: Fraunces (display), Schibsted Grotesk (text), JetBrains Mono (labels). All SIL OFL 1.1, self-hosted. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/JetBrainsMono-normal-latin.woff2) format('woff2'); }

:root {
  --night: #0a0b0d;
  --stone: #f3f0eb;
  --bone: #ece7df;
  --ink: #15120f;
  --ember: #ff7a45;
  --ember-deep: #b8431a;
  --fg: var(--bone);
  --fg-soft: rgba(236, 231, 223, .66);
  --rule: rgba(236, 231, 223, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 4.6vw, 56px);
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --text: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
[data-theme="light"] { --fg: var(--ink); --fg-soft: rgba(21, 18, 15, .68); --rule: rgba(21, 18, 15, .16); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--fg); font-family: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: color .5s var(--ease); }
a { color: inherit; }
h1, h2, p, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; border: 0; }
ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: 12px; z-index: 60; padding: 10px 16px; background: var(--bone); color: var(--ink); border-radius: 999px; font-size: 14px; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

#stage { position: fixed; left: 0; top: 0; width: 100%; height: 100%; height: 100lvh; display: block; z-index: 0; pointer-events: none; }   /* lvh: the address bar of a phone sliding away does not resize the scene */
main, .colophon { position: relative; }
/* beneath the canvas: the page ground, and (inside the finish figure) the finish set large. The canvas is clear on the light page, so the object stands in front of the type */
.paper { position: fixed; inset: 0; z-index: -2; background: var(--paper, var(--stone)); }
html:not(.js) .paper, .no-webgl .paper { display: none; }

/* ---------- top bar ---------- */
.bar { opacity: calc(1 - var(--inspect, 0)); position: fixed; z-index: 40; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(18px, env(safe-area-inset-top)) var(--pad) 14px; pointer-events: none; }
.bar > * { pointer-events: auto; transition: opacity .5s var(--ease); }
/* in the passage the chrome steps back, so the pages of glass never run under it; keyboard focus brings it back */
.in-passage:not(.flat) .bar > * { opacity: 0; }
.in-passage:not(.flat) .bar > :focus-visible, .in-passage:not(.flat) .bar-nav:focus-within { opacity: 1; }
.brand { display: grid; }
.mark { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .34em; text-decoration: none; padding: 6px 0 1px; }
.by { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft); }
.bar-nav { display: flex; gap: 16px; font-size: 12.5px; letter-spacing: .02em; }
.bar-nav a { text-decoration: none; color: var(--fg-soft); padding: 12px 2px; transition: color .3s var(--ease); }
.bar-nav a:hover, .bar-nav a[aria-current="true"] { color: var(--fg); }
.bar-meta { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
@media (min-width: 760px) { .bar-nav { gap: 28px; font-size: 13px; } .bar-meta { display: block; } }
@media (max-width: 359px) { .bar-nav { gap: 11px; font-size: 12px; } .mark { font-size: 16px; letter-spacing: .26em; } }

/* ---------- shared type ---------- */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -.035em; line-height: .96; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--ember); }
[data-theme="light"] h2 em, .act-finish h2 em { color: var(--ember-deep); }   /* the finish page is always light, whatever the bar is doing */

/* ---------- acts: without JS they simply stack; with JS the first two pin and scrub ---------- */
.act { position: relative; }
.pin { position: relative; min-height: 100svh; }
.js .act-form { height: 240svh; }
.js .act-passage { height: 520svh; margin-top: -100svh; }   /* its pin takes over the moment the form's pin lets go: no dead scroll */
.js .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* hero */
.hero-slot { position: absolute; left: 0; right: 0; top: 40%; bottom: 8%; touch-action: pan-y; }
.hero-copy { position: absolute; left: var(--pad); right: var(--pad); top: clamp(84px, 13svh, 132px); will-change: transform, opacity; }
.hero-copy h1 { font-size: clamp(50px, 14.6vw, 148px); margin-top: 14px; }
.lede { margin-top: 16px; max-width: 30ch; font-size: 15px; color: var(--fg-soft); }
.hint { position: absolute; left: var(--pad); right: var(--pad); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.hint span { padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; }
@media (min-width: 900px) {
  .hero-slot { left: 34%; top: 8%; bottom: 6%; }
  .hero-copy { top: auto; bottom: clamp(88px, 14svh, 150px); right: auto; max-width: 46vw; }
  .lede { font-size: 17px; }
}

/* passage: the labels are real links, laid on the glass by a matrix3d that main.js writes each frame */
.panes { position: absolute; inset: 0; }
.js .panes { position: fixed; pointer-events: none; }
.pane { position: absolute; left: 0; top: 0; width: 236px; height: 410px; transform-origin: 0 0; }
.js .pane { opacity: 0; pointer-events: none; }   /* placed and shown by main.js; never visibility:hidden, so the links stay in the tab order. No will-change: the type is re-drawn sharp at every size */
.pane a { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; padding: 26px 24px 22px; text-decoration: none; color: #f6efe6; }
.pane-n { font-family: var(--display); font-weight: 300; font-size: 58px; line-height: 1; letter-spacing: -.02em; color: var(--ember); }
.pane-t { font-family: var(--display); font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: -.035em; margin-top: 12px; }
.pane-d { align-self: end; font-size: 14px; line-height: 1.4; max-width: 17ch; color: rgba(246, 239, 230, .82); }
.pane-i { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; margin-top: 14px; color: rgba(246, 239, 230, .6); }
.pane-page a { color: var(--ink); }
.pane-page .pane-n { color: var(--ember-deep); }
.pane-page .pane-d { color: rgba(21, 18, 15, .74); }
.pane a:focus-visible { outline-offset: -6px; }
.rail { position: fixed; z-index: 2; right: var(--pad); top: 50%; display: grid; gap: 10px; transform: translateY(-50%); opacity: 0; transition: opacity .5s var(--ease); }
.rail i { width: 2px; height: 22px; background: var(--rule); transition: background .4s var(--ease), height .4s var(--ease); }
.rail i.on { background: var(--ember); height: 30px; }
.in-passage .rail { opacity: 1; }

/* finish: on a phone the heading, the object and the three finishes share one screen; press the object and the page steps back */
.act-finish { min-height: 100svh; padding: 104px var(--pad) 56px; color: var(--ink); }
.finish-grid { display: grid; gap: 8px; max-width: 1180px; margin: 0 auto; }
.finish-head, .finish-controls { opacity: calc(var(--rise, 1) * (1 - var(--inspect, 0))); }
/* with the flight running, the page is already in place beneath the last pane of glass and rises in as it arrives: no empty scroll.
   The rise is given to the parts of the grid, never to the grid or the figure: a transform, or an opacity below 1, on an ancestor of
   the word makes a stacking context, and the word (z-index -1) is then painted inside it, above the canvas and across the object */
.js:not(.flat) .act-finish { margin-top: -100svh; --rise: var(--arrive, 0); --rise-y: calc((1 - var(--arrive, 0)) * 22px); }
.js:not(.flat) .finish-head, .js:not(.flat) .finish-controls { transform: translate3d(0, var(--rise-y), 0); }
.js:not(.flat) .hold { translate: 0 var(--rise-y); }
.js:not(.flat):not(.arrived) .act-finish { pointer-events: none; }
.finish-figure { position: relative; height: min(30svh, 420px); touch-action: pan-y; cursor: grab; }
.finish-word { position: absolute; z-index: -1; left: 0; right: 0; top: 47%; transform: translate3d(0, -50%, 0) scale(calc(1 + var(--inspect, 0) * .08)); font-family: var(--display); font-weight: 300; font-size: min(25vw, 14svh); letter-spacing: -.055em; color: var(--word, rgba(21, 18, 15, .15)); opacity: calc(var(--rise, 1) * var(--arrive-o, 0)); translate: 0 var(--rise-y, 0px); pointer-events: none; user-select: none; transition: color 1.1s var(--ease); }
.fw-line { display: block; position: relative; height: 1.2em; overflow: hidden; }
.fw-line + .fw-line { margin-top: -.36em; }
.fw-line span { position: absolute; left: 0; top: 0; line-height: 1.2; white-space: nowrap; will-change: transform; }
.fw-line + .fw-line span { left: auto; right: 0; }
[data-finish="bronze"] { --word: rgba(138, 74, 24, .34); }
[data-finish="smoke"] { --word: rgba(21, 18, 15, .32); }   /* light enough that, seen through the glass, it reads as behind it */
[data-kept="true"] .finish-word { color: color-mix(in srgb, var(--ember-deep) 58%, transparent); }   /* kept: the name says so, where the eye already is */
.flat .finish-word { opacity: 1; }
html:not(.js) .finish-word { display: none; }
.no-webgl .finish-word { z-index: auto; }
.hold { position: absolute; left: 0; bottom: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 8px; border: 1px solid rgba(21, 18, 15, .2); border-radius: 999px; background: none; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(21, 18, 15, .72); cursor: pointer; opacity: calc(var(--rise, 1) * (1 - var(--inspect, 0))); transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease); }
.hold::before { content: ''; position: absolute; inset: -9px -4px; }   /* a comfortable target */
.hold-ring { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; transition: transform .4s var(--ease), background-color .4s var(--ease); }
.hold[aria-pressed="true"] { opacity: 1; border-color: var(--ink); color: var(--ink); background: rgba(243, 240, 235, .8); }
.hold[aria-pressed="true"] .hold-ring { transform: scale(.55); background: currentColor; }
@media (hover: hover) { .hold:hover { border-color: rgba(21, 18, 15, .5); color: var(--ink); } }
html:not(.js) .hold, .no-webgl .hold, html:not(.js) .keep, html:not(.js) .status { display: none; }
.finish-head h2 { font-size: clamp(30px, 7.5vw, 76px); margin-top: 10px; }
.act-finish .eyebrow { color: rgba(21, 18, 15, .68); }
.finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.finish { position: relative; display: grid; grid-auto-flow: column; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 8px 6px; border: 1px solid rgba(21, 18, 15, .14); border-radius: 14px; cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.finish input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.finish-name { font-size: 12.5px; line-height: 1.15; letter-spacing: .01em; color: rgba(21, 18, 15, .72); transition: color .3s var(--ease); max-width: 6.5ch; }
.chip { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 1px 2px rgba(21, 18, 15, .25), inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .5s var(--ease); }
.chip-smoke { background: radial-gradient(circle at 34% 28%, #c9c0b8 0 6%, #5b514b 22%, #1e1a18 62%, #3a322e 100%); }
.chip-steel { background: conic-gradient(from 210deg at 46% 44%, #f4f5f7, #7c8088, #e7e9ec, #4a4d53, #cfd2d7, #8b8f97, #f4f5f7); }
.chip-bronze { background: radial-gradient(circle at 36% 30%, #f1c79a 0 8%, #b9793f 34%, #6f4320 78%, #8d5a2d 100%); }
.finish:has(input:checked) { border-color: var(--ink); background: rgba(21, 18, 15, .045); }
.finish:has(input:checked) .finish-name { color: var(--ink); }
.finish:has(input:checked) .chip { transform: scale(1.14); }
.finish:has(input:focus-visible) { outline: 2px solid var(--ember-deep); outline-offset: 3px; }
@media (hover: hover) { .finish:hover { border-color: rgba(21, 18, 15, .5); } }
/* the particulars are the receipt of a choice: they appear once a finish is kept (always shown without JS or motion) */
.js:not(.flat) .spec { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s; }
.js:not(.flat)[data-kept="true"] .spec { opacity: 1; transform: none; }
.spec { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid rgba(21, 18, 15, .16); font-size: 14px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(21, 18, 15, .16); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(21, 18, 15, .68); align-self: center; }
.keep { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 12px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--stone); font-size: 15px; letter-spacing: .01em; cursor: pointer; transition: background-color .5s var(--ease), transform .3s var(--ease); }
.keep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); transition: transform .5s var(--ease), background-color .5s var(--ease); }
.keep:active { transform: scale(.985); }
.status:not(:empty) { opacity: 1; }   /* the button answers first; the line that explains follows */
.keep[data-kept="true"] { background: var(--ember-deep); }
.keep[data-kept="true"] .keep-dot { background: var(--stone); transform: scale(1.5); }
.status { opacity: 0; transition: opacity .5s var(--ease) .6s; min-height: 1.5em; margin-top: 10px; font-size: 13px; color: rgba(21, 18, 15, .7); }
@media (min-width: 900px) {
  .act-finish { padding-top: 110px; }
  .finish-grid { grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; column-gap: 56px; row-gap: 30px; min-height: calc(100svh - 190px); }
  .finish-figure { grid-column: 1; grid-row: 1 / span 2; height: min(72svh, 720px); align-self: center; }
  .hold { left: 50%; bottom: 0; transform: translateX(-50%); }
  .finish-word { font-size: min(13.5vw, 27svh); }
  .finish-head { grid-column: 2; align-self: end; }
  .finish-controls { grid-column: 2; align-self: start; }
  .finish { grid-auto-flow: row; justify-items: center; padding: 12px 6px 10px; }
  .finish-name { max-width: none; white-space: nowrap; }
  .chip { width: 34px; height: 34px; }
  .keep { width: auto; }
}

.colophon { padding: 28px var(--pad) max(34px, env(safe-area-inset-bottom)); background: var(--stone); color: rgba(21, 18, 15, .7); font-size: 12.5px; display: grid; gap: 4px; border-top: 1px solid rgba(21, 18, 15, .12); }
.colophon a { color: var(--ink); }

/* ---------- pointer: a ring on fine pointers, part of the page ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 50; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; opacity: 0; will-change: transform; }
.cursor i { position: absolute; inset: 0; border: 2px solid rgba(246, 239, 230, .92); border-radius: 50%; transition: transform .35s var(--ease), scale .16s var(--ease), border-width .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.cursor.on { opacity: 1; }
.cursor[data-mode="press"] i { transform: scale(.6); border-width: 3.5px; background: rgba(246, 239, 230, .14); }   /* a ring that closes on the surface, never a blot on it; its line is drawn heavier so that, closed, it is still 2px */
.cursor[data-mode="light"] i { transform: scale(.3); background: #ffd9b8; border-color: transparent; box-shadow: 0 0 22px 8px rgba(255, 150, 80, .55); }
.cursor[data-mode="link"] i { transform: scale(1.5); border-color: var(--ember); }
[data-theme="light"] .cursor i { border-color: rgba(21, 18, 15, .85); }
[data-theme="light"] .cursor[data-mode="press"] i { background: rgba(21, 18, 15, .07); }
[data-theme="light"] .cursor[data-mode="link"] i { transform: scale(1.3); border-color: var(--ember-deep); background: rgba(184, 67, 26, .07); }   /* a ring, so it never covers what it points at */
/* over a dark control on the light page (main.js reads the control's own ground) the ring turns to bone and stays inside it; the hairline keeps the part that leaves the control visible on the page */
[data-theme="light"] .cursor[data-on="dark"] i { transform: scale(1); border-color: rgba(246, 239, 230, .96); background: rgba(246, 239, 230, .1); box-shadow: 0 0 0 1px rgba(21, 18, 15, .28); }
/* every press answers: the ring tightens while the button is down (press mode already closes it), and one ripple leaves it on release (main.js) */
.cursor[data-down="1"]:not([data-mode="press"]) i { scale: .84; }
.cursor .rip { position: absolute; inset: -2px; border: 2px solid; border-color: inherit; border-radius: 50%; opacity: 0; }
.cursor[data-mode="light"] .rip { border-color: #ffd9b8; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.js.fine-pointer:not(.flat) .act-form, .js.fine-pointer:not(.flat) .act-passage, .js.fine-pointer:not(.flat) .finish-figure { cursor: none; }
.flat .cursor { display: none; }   /* still page: the ordinary pointer stays */

/* ---------- fallbacks ---------- */
.fallback-art { display: none; }
/* no WebGL (or no JS): the page keeps its ground, a drawn stand-in for the form, and every control */
html:not(.js) .fallback-art, .no-webgl .fallback-art { display: block; -webkit-mask: radial-gradient(ellipse 23% 21% at 56% 41%, transparent 96%, #000 100%); mask: radial-gradient(ellipse 23% 21% at 56% 41%, transparent 96%, #000 100%); }   /* pierced, like the form */
html:not(.js) #stage, .no-webgl #stage { display: none; }
.act-form .fallback-art { position: absolute; left: 50%; top: 58%; width: min(62vw, 46svh); aspect-ratio: 5 / 6; transform: translate(-50%, -50%); border-radius: 48% 52% 46% 54% / 56% 50% 50% 44%; background: radial-gradient(60% 46% at 30% 20%, #fff3e2 0, #c9c2b8 14%, #4b4d52 38%, #121316 64%, #6a4a36 86%, #1a1412 100%); }
.finish-figure .fallback-art { position: absolute; left: 50%; top: 4%; height: 84%; aspect-ratio: 5 / 6; transform: translateX(-50%); border-radius: 48% 52% 46% 54% / 56% 50% 50% 44%; background: conic-gradient(from 200deg at 42% 40%, #f4f5f7, #7c8088, #e7e9ec, #4a4d53, #cfd2d7, #8b8f97, #f4f5f7); transition: background .6s var(--ease); }
[data-finish="smoke"] .finish-figure .fallback-art { background: radial-gradient(circle at 34% 28%, #c9c0b8 0 6%, #5b514b 22%, #1e1a18 62%, #3a322e 100%); }
[data-finish="bronze"] .finish-figure .fallback-art { background: radial-gradient(circle at 36% 30%, #f1c79a 0 8%, #b9793f 34%, #6f4320 78%, #8d5a2d 100%); }
html:not(.js) .act-finish:has(input[value="smoke"]:checked) .fallback-art { background: radial-gradient(circle at 34% 28%, #c9c0b8 0 6%, #5b514b 22%, #1e1a18 62%, #3a322e 100%); }
html:not(.js) .act-finish:has(input[value="bronze"]:checked) .fallback-art { background: radial-gradient(circle at 36% 30%, #f1c79a 0 8%, #b9793f 34%, #6f4320 78%, #8d5a2d 100%); }
html:not(.js) .act-finish, .no-webgl .act-finish, html:not(.js) .colophon { background: var(--stone); }
html:not(.js) .bar, .flat .bar { position: absolute; }   /* still presentation: the bar stays with the dark hero instead of riding over every section */
/* flat list instead of a flight: no JS, no WebGL, or reduced motion */
html:not(.js) .act-passage, .flat .act-passage { height: auto; margin-top: 0; padding: 96px var(--pad) 72px; background: linear-gradient(#0a0b0d, #14110f); }
html:not(.js) .act-passage .pin, .flat .act-passage .pin { position: static; height: auto; min-height: 0; overflow: visible; }
html:not(.js) .panes, .flat .panes { position: static; pointer-events: auto; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 1100px; margin: 0 auto; }
html:not(.js) .pane, .flat .pane { position: static; width: auto; height: 260px; transform: none !important; opacity: 1 !important; filter: none !important; pointer-events: auto !important; scroll-margin-top: 84px; border: 1px solid rgba(246, 239, 230, .28); border-radius: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); }
html:not(.js) .pane-page, .flat .pane-page { background: var(--stone); }
.flat .rail { display: none; }
.flat .act-form { height: 100svh; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .cursor { display: none; }
}
