:host { all: initial; display: block; }
/* Elfsquad homepage, version jan-1996-dark-office.
   Four questions, asked three times: at home in 2026, at the order desk in 1996,
   and again with the lights off. */






:host {
  /* Brand */
  --night: #090908;
  --deep: #1E1E1B;
  --neon: #00FF81;
  --free: #AEFFCB;
  --paper: #F5F6F0;
  --orange: #FF6911;
  --turq: #71D5D8;
  --purple: #7F60DE;

  /* The things on a 1996 desk keep their own colours, as they would in a photograph. */
  --aged: #EEE8D8;
  --mat: #C3CDBF;
  --desk: #9A7757;
  --ink: #141614;
  --sheet: #FDFDFB;
  --putty: #DEDACB;
  --putty-lo: #C4BFAD;
  --putty-hi: #ECE9DD;
  --tube: #00130F;
  --desktop: #004B48;
  --gui: #C9CCC6;
  --gui-lo: #8B908A;
  --gui-dk: #3A3F3B;
  --manila: #E3C993;
  --pink: #F2C4CD;
  --sticky: #FAEF86;
  --glass: #0B0E0D;

  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* Captions, labels and the drawing lettering: set in the page font. */
  --draft: 'Instrument Sans', sans-serif;
  --gutter: max(clamp(20px, 4.4vw, 64px), calc(50vw - 656px));
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --rule-dark: rgba(9, 9, 8, .18);
  --rule-light: rgba(245, 246, 240, .18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16  0 0 0 0 .12  0 0 0 0 .05  1.4 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  --grain-film: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .07  0 0 0 0 .02  1.5 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

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

:host { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

.es-body {
  margin: 0;
  background: var(--night);
  color: var(--night);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--neon); color: var(--night); }

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus, var(--night)); outline-offset: 3px; border-radius: 6px; }
.turn, .answers, .footage, .close, .footer { --focus: var(--neon); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 40; background: var(--night); color: var(--paper); padding: 12px 20px; border-radius: 9999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */

/* Titles are medium. The one italic serif phrase inside a title stays regular; that face has one weight. */
/* Three title sizes on desktop: 82px (hero and closing headline, the film's last line), 60px (section headlines, the film's two title cards),
   48px (statement headlines, the film captions, the Alve headline). They scale down with the screen to 40 / 32 / 28px on phones, in the same order;
   the film's two title cards stand alone on a full screen and take the 40px size there. Names and card or column titles are labels, not titles. */
h1, .close h2 { font-size: clamp(2.5rem, 7.5vw, 82px); font-weight: 500; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.7vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
h1 em, h2 em { font-family: 'Instrument Serif', 'Instrument Sans', serif; font-style: italic; font-weight: 400; font-size: 1.1em; line-height: .9; letter-spacing: -.015em; }
.turn h2 em, .answers h2 em, .footage h2 em, .close h2 em { color: var(--neon); }
/* One word in the brand's bright green, for a headline on a dark picture. */
.in-neon { color: var(--neon); }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: 1rem; line-height: 1.45; max-width: 34rem; text-wrap: pretty; }

/* Drawing-office lettering: every small label on the page. */
.eyebrow, .caption, .when, .role, .specs dd, .l-head {
  font-family: var(--draft); font-size: .875rem; font-weight: 400; line-height: 1.35;
  letter-spacing: .1em; text-transform: uppercase;
}
/* The eyebrow is written as a normal phrase, in sentence case, so it needs no extra spacing between letters. */
.eyebrow { margin-bottom: 20px; letter-spacing: 0; text-transform: none; }
.caption { opacity: .8; }
.caption a { text-underline-offset: 4px; }
.eyebrow b, .caption b, .when b { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .04em; }
.when b { margin-right: .7em; }

/* A question, wherever it is asked. */
.ask { font-family: 'Instrument Serif', 'Instrument Sans', serif; font-style: italic; font-weight: 400; line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }

.act-head { display: grid; gap: 22px; max-width: 62rem; }
.act-head .eyebrow { margin: 0; }

/* ---------- Buttons, chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 9999px; border: 1px solid var(--neon);
  background: var(--neon); color: var(--night);
  font-size: .875rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { background: var(--free); border-color: var(--free); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-large { font-size: 1rem; padding: 16px 32px; }
.btn-night { background: var(--night); border-color: var(--night); color: var(--paper); }
.btn-night:hover { background: var(--deep); border-color: var(--deep); }
.btn-line { background: transparent; border-color: var(--night); color: var(--night); }
.btn-line:hover { background: var(--night); border-color: var(--night); color: var(--paper); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.chip, .reply::before, .was::before {
  display: inline-block; flex: none; padding: 4px 10px; border-radius: 6px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.chip-today { background: var(--neon); color: var(--night); }
.chip-road { box-shadow: inset 0 0 0 1px rgba(245, 246, 240, .5); color: var(--paper); }
.reply::before, .was::before { content: "1996"; background: var(--orange); color: var(--night); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  height: 68px; padding: 0 var(--gutter);
  background: #FFFFFF;
  border-bottom: 1px solid var(--rule-dark);
}
.logo img { height: 22px; width: auto; }
.links { justify-self: center; display: flex; gap: clamp(18px, 2.6vw, 36px); }
.links a { font-size: .875rem; font-weight: 500; text-decoration: none; padding: 8px 0; }
.links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-login { font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; padding: 8px 4px 8px 8px; }
.nav-login:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero ---------- */

.hero { background: var(--paper); padding: clamp(56px, 9vw, 136px) var(--gutter) clamp(64px, 8vw, 112px); }
/* The hero headline takes the section-headline (h2) size, so the picture beside it has room. */
.hero h1 { font-size: clamp(2rem, 4.7vw, 60px); line-height: .96; }
/* The italic is set 1.1 times larger, so .87 keeps its line at the same 96%. */
.hero h1 em { line-height: .87; }
.hero .lead { font-size: 1rem; line-height: 24px; max-width: 30rem; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tag { font-weight: 400; }
/* On a wide screen the words stand on the left, the picture on the right, both centred on one line. */
@media (min-width: 1101px) {
  .hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 4vw, 72px); }
  .hero-row .hero-stage { margin-top: 0; }
}

.still { margin-top: clamp(56px, 7vw, 104px); display: grid; justify-items: center; }
.still-set { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); align-items: center; width: min(100%, 1000px); }
.still .quote-print { z-index: 2; margin-right: -9%; transform: rotate(-2.5deg); }

/* A printed quote. Everything inside scales with the sheet. */
.quote-print {
  position: relative; container-type: inline-size; aspect-ratio: 1 / 1.37;
  background: var(--sheet); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 26px 40px -18px rgba(0, 20, 18, .5);
}
.q-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9cqw 11cqw 6cqw 8cqw; font-family: var(--mono); font-size: 2.95cqw; line-height: 1.5; }
.q-title { font-family: 'Instrument Sans', sans-serif; font-size: 8.4cqw; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.q-no { margin-top: 1.6cqw; opacity: .75; }
.q-meta { display: grid; grid-template-columns: auto 1fr; gap: .3cqw 3cqw; margin: 4.6cqw 0 3.6cqw; padding: 2.2cqw 0; border-block: 1px solid var(--ink); }
.q-meta dt { opacity: .7; }
.q-lines li { position: relative; display: grid; grid-template-columns: 4.4cqw minmax(0, 1fr) auto; gap: 1.6cqw; margin: 0 -1.2cqw; padding: .9cqw 1.2cqw; border-bottom: 1px dotted rgba(0, 0, 0, .4); transition: background-color .25s; }
.q-lines li.is-current { background: rgba(255, 105, 17, .34); border-radius: .8cqw 1.6cqw 1cqw 1.4cqw; }
.q-lines li.is-done::after { content: ""; position: absolute; right: -6.4cqw; top: 1cqw; width: 1.6cqw; height: 3.4cqw; border: solid var(--orange); border-width: 0 .7cqw .7cqw 0; transform: rotate(38deg); }
.q-lines li.is-stuck::after { content: "?"; position: absolute; right: -7.2cqw; top: -1.6cqw; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 8cqw; line-height: 1; color: var(--orange); }
.q-total { display: flex; justify-content: space-between; margin-top: 2cqw; padding-top: 1.6cqw; border-top: 1px solid var(--ink); font-weight: 500; }
.q-foot { margin-top: auto; opacity: .75; }
.q-file { margin-top: 1.6cqw; padding-top: 1.4cqw; border-top: 1px solid rgba(0, 0, 0, .25); font-size: 2.4cqw; opacity: .65; }

/* The monitor. Everything inside the tube scales with the tube. */
.crt {
  position: relative; width: 100%;
  padding: clamp(12px, 2.6vw, 34px) clamp(12px, 2.6vw, 34px) 0;
  border-radius: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px);
  background: linear-gradient(180deg, var(--putty-hi) 0%, var(--putty) 22%, var(--putty) 78%, var(--putty-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(9, 9, 8, .12),
    0 2px 2px rgba(9, 9, 8, .08), 0 40px 70px -20px rgba(9, 9, 8, .32), 0 90px 120px -60px rgba(9, 9, 8, .28);
}
.crt-screen {
  position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 4 / 3;
  border-radius: clamp(6px, 1.1vw, 14px);
  background: var(--tube);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), 0 0 0 clamp(4px, .8vw, 9px) var(--putty-lo), 0 1px 0 clamp(4px, .8vw, 9px) rgba(255, 255, 255, .6);
}
.crt-screen::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 3px); }
.crt-screen::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 30%), radial-gradient(ellipse at 50% 50%, transparent 62%, rgba(0, 0, 0, .34) 100%); }
.crt-chin { display: flex; align-items: center; justify-content: space-between; height: clamp(26px, 5vw, 60px); padding: 0 clamp(4px, 1vw, 12px); }
.crt-led { display: block; width: clamp(6px, .9vw, 10px); height: clamp(6px, .9vw, 10px); border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 1px rgba(9, 9, 8, .5), 0 0 10px 2px rgba(0, 255, 129, .7); }
.crt-vents { width: clamp(60px, 14vw, 170px); height: clamp(8px, 1.4vw, 16px); background: repeating-linear-gradient(90deg, rgba(9, 9, 8, .3) 0 2px, transparent 2px 7px); border-radius: 2px; }
.crt-note, .sticky {
  position: absolute; z-index: 6; background: var(--sticky); color: var(--ink);
  font-family: 'Instrument Serif', serif; font-style: italic; line-height: 1.12;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .15), 0 16px 22px -10px rgba(0, 0, 0, .45);
}
.crt-note { right: clamp(-30px, -2vw, -8px); top: 50%; width: clamp(104px, 13vw, 158px); padding: 14px 14px 26px; font-size: clamp(1rem, 1.7vw, 1.4rem); transform: rotate(4deg); }

/* A grey desktop from the nineties, drawn with the brand's dark green as its teal. */
.os { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: 2.2cqw 2.2cqw 0; background: var(--desktop); font-family: Arial, Helvetica, sans-serif; font-size: 1.72cqw; line-height: 1.3; color: var(--ink); }
.gui { display: flex; flex-direction: column; background: var(--gui); border: .28cqw solid; border-color: #FFFFFF var(--gui-dk) var(--gui-dk) #FFFFFF; font-family: Arial, Helvetica, sans-serif; color: var(--ink); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; padding: .45cqw .7cqw; background: var(--night); color: var(--paper); font-weight: 700; white-space: nowrap; overflow: hidden; }
.win-btns { display: flex; gap: .3cqw; }
.win-btns i { width: 1.8cqw; height: 1.6cqw; background: var(--gui); border: .2cqw solid; border-color: #FFFFFF var(--gui-dk) var(--gui-dk) #FFFFFF; }
.win-menu { display: flex; gap: 1.8cqw; padding: .45cqw .9cqw; }
.erp { position: relative; flex: 1; min-height: 0; margin-bottom: 1.6cqw; box-shadow: .4cqw .4cqw 0 rgba(0, 0, 0, .35); }
.erp-form { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 1.4cqw; padding: 1cqw 1.1cqw .9cqw; }
.erp-form p { display: grid; gap: .25cqw; min-width: 0; }
.erp-form b { padding: .3cqw .7cqw; background: #FFFFFF; border: .2cqw solid; border-color: var(--gui-dk) #FFFFFF #FFFFFF var(--gui-dk); font: 400 1em var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp-grid { width: calc(100% - 2.2cqw); margin: 0 1.1cqw; table-layout: fixed; border-collapse: collapse; background: #FFFFFF; outline: .2cqw solid var(--gui-dk); font-family: var(--mono); font-size: .93em; }
.erp-grid th { padding: .45cqw .7cqw; background: var(--gui); border: .2cqw solid; border-color: #FFFFFF var(--gui-lo) var(--gui-lo) #FFFFFF; font: 700 1.05em Arial, Helvetica, sans-serif; text-align: left; }
.erp-grid th:nth-child(1) { width: 7%; } .erp-grid th:nth-child(2) { width: 27%; } .erp-grid th:nth-child(3) { width: 38%; } .erp-grid th:nth-child(4) { width: 8%; } .erp-grid th:nth-child(5) { width: 20%; }
.erp-grid td { height: 3.75cqw; padding: .4cqw .7cqw; border-right: 1px solid #D4D7D1; border-bottom: 1px solid #D4D7D1; white-space: nowrap; overflow: hidden; }
.erp-grid td:nth-child(4), .erp-grid td:nth-child(5) { text-align: right; }
.erp-grid tr.is-active td:nth-child(2) { outline: .26cqw solid var(--night); outline-offset: -.26cqw; }
.erp-totals { display: flex; justify-content: flex-start; gap: 1.6cqw; padding: 1.1cqw 1.1cqw 0; }
.erp-totals p { display: flex; align-items: center; gap: .8cqw; }
.erp-totals b { min-width: 6cqw; padding: .3cqw .7cqw; background: #FFFFFF; border: .2cqw solid; border-color: var(--gui-dk) #FFFFFF #FFFFFF var(--gui-dk); font: 400 1em var(--mono); text-align: right; }
.erp-totals p:last-child b { min-width: 16cqw; }
.win-status { display: flex; gap: .5cqw; margin-top: auto; padding: .9cqw 1.1cqw 1cqw; }
.win-status span { padding: .3cqw .9cqw; border: .2cqw solid; border-color: var(--gui-lo) #FFFFFF #FFFFFF var(--gui-lo); white-space: nowrap; }
.win-status span:first-child { flex: 1; }
.dialog { position: absolute; left: 50%; top: 52%; z-index: 3; width: 56%; transform: translate(-50%, -50%); box-shadow: .5cqw .5cqw 0 rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; }
.dialog.is-open { opacity: 1; visibility: visible; }
.dialog-body { display: flex; align-items: center; gap: 1.8cqw; padding: 2cqw 2cqw 1.2cqw; }
.warn { flex: none; display: grid; place-items: end center; width: 4.8cqw; height: 4.4cqw; padding-bottom: .1cqw; background: var(--orange); clip-path: polygon(50% 2%, 100% 98%, 0 98%); font-weight: 700; font-size: 1.5em; line-height: 1; }
.dialog-btns { display: flex; justify-content: center; gap: 1.2cqw; padding: .6cqw 2cqw 1.8cqw; }
.dialog-btns span { min-width: 11cqw; padding: .5cqw 1.4cqw; text-align: center; background: var(--gui); border: .25cqw solid; border-color: #FFFFFF var(--gui-dk) var(--gui-dk) #FFFFFF; }
.dialog-btns span:first-child { outline: 1px dotted var(--ink); outline-offset: -.7cqw; }
.taskbar { display: flex; align-items: center; gap: .6cqw; margin: 0 -2.2cqw; padding: .55cqw .8cqw; background: var(--gui); border-top: .25cqw solid #FFFFFF; }
.taskbar span { padding: .35cqw 1.1cqw; border: .2cqw solid; border-color: #FFFFFF var(--gui-dk) var(--gui-dk) #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-menu { font-weight: 700; }
.tb-app { flex: 0 1 24cqw; }
.tb-app.on { background: #DDE0DA; border-color: var(--gui-dk) #FFFFFF #FFFFFF var(--gui-dk); font-weight: 700; }
.taskbar .tb-clock { margin-left: auto; border-color: var(--gui-lo) #FFFFFF #FFFFFF var(--gui-lo); }
.cursor { display: inline-block; width: .12em; height: 1.05em; margin-left: .05em; vertical-align: -.16em; background: var(--ink); animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- The statement: 2026 and 1996 in one line ---------- */

.era { display: grid; justify-items: center; padding: var(--section) var(--gutter); background: var(--paper); text-align: center; }
.era h2 { max-width: 18.5em; font-size: clamp(1.75rem, 4.4vw, 48px); line-height: 1.12; text-wrap: balance; }
/* The work half starts on its own line, so home and work read as two moments. */
.era-work, .era-wait { display: block; margin-top: .3em; } /* a little air between the three lines: home, work, and the wait */
.era-wait { margin-top: .6em; } /* the last line stands a little further off, as an afterthought */
/* The last line arrives a beat after the other two, like the pause before a punchline. Then its three dots take
   turns lighting up, slowly, the way a chat shows that someone is still typing: waiting. Nothing else moves.
   (script.js, "The first quote", sets is-staged and is-told.) */
.era-wait .dots i { font-style: normal; }
.era.is-staged .era-wait { opacity: 0; transform: translateY(.25em); transition: opacity .6s ease .9s, transform .7s var(--ease) .9s; }
.era.is-staged.is-told .era-wait { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .era-wait .dots i { animation: dot-wait 1.8s ease-in-out infinite; }
  .era-wait .dots i:nth-child(2) { animation-delay: .3s; }
  .era-wait .dots i:nth-child(3) { animation-delay: .6s; }
}
@keyframes dot-wait { 0%, 60%, 100% { opacity: .22; } 30% { opacity: 1; } }
/* On tablets and desktops the block is 540px tall, with the line in the middle. Phones keep the natural height. */
@media (min-width: 768px) {
  .era { min-height: 540px; align-content: center; }
  /* The text sits 60px above the middle of the block; there are at least 143px above it at every width from here. */
  .era > * { translate: 0 -60px; }
}
/* "30" counts up from 00 like an odometer when the line comes into view (script.js builds the wheels).
   The real digits keep the space and are what screen readers read; the wheels roll on top of them. */
.roll { display: inline-block; white-space: nowrap; }
.roll-d { position: relative; display: inline-block; }
.roll.rolling .roll-d { color: transparent; }
.roll-wheel { position: absolute; inset: 0 -.3em; overflow: hidden; color: var(--roll-ink); text-align: center; pointer-events: none; }
.roll-strip { display: block; will-change: transform; }
.roll-strip i { display: block; font-style: inherit; }

/* ---------- The 2026 screen in the picture at the top: the agents report ---------- */

.flat { position: relative; display: grid; justify-items: center; width: min(100%, 1080px); margin-inline: auto; }

/* A flat display: black glass and a thin edge. No stand: the panel floats. */
.flat-body {
  position: relative; z-index: 1; width: 100%;
  padding: clamp(5px, .8vw, 10px);
  border-radius: clamp(10px, 1.5vw, 18px);
  background: #030302;
  box-shadow: inset 0 0 0 1px rgba(245, 246, 240, .1), 0 2px 3px rgba(0, 0, 0, .5), 0 46px 70px -34px rgba(0, 0, 0, .8);
}
.flat-screen { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 16 / 10; border-radius: clamp(6px, .9vw, 10px); background: var(--screen); --screen: #090908; }

/* What is on the screen. Every size inside follows the screen. */
.ops { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 1.5cqw; line-height: 1.45; color: var(--paper); --dim: rgba(245, 246, 240, .68); --line: rgba(245, 246, 240, .12); }
.ops b { font-family: var(--mono); font-size: .9em; font-weight: 500; }
.ops-bar, .ops-foot { flex: none; display: flex; align-items: center; gap: 1.6em; padding: 0 1.8em; height: 3.7em; }
.ops-bar { border-bottom: 1px solid var(--line); }
.ops-foot { height: 3.1em; border-top: 1px solid var(--line); font-size: .9em; color: var(--dim); }
.ops-logo { flex: none; width: auto; height: 1.05em; }
.ops-order { display: flex; align-items: baseline; gap: 1.3em; min-width: 0; padding-left: 1.6em; border-left: 1px solid var(--line); white-space: nowrap; }
.ops-order b { font-family: inherit; font-size: 1em; font-weight: 600; }
.ops-order span { color: var(--dim); }
.ops-state { display: flex; align-items: center; gap: .6em; margin-left: auto; font-weight: 600; color: var(--neon); }
.ops-clock { margin-left: auto; font-family: var(--mono); color: var(--paper); font-variant-numeric: tabular-nums; }
.ops-sum { display: none; font-family: var(--mono); }
.light { flex: none; display: block; width: .62em; height: .62em; border-radius: 50%; background: var(--neon); transition: background-color .5s; }

.ops-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
/* Both columns start at the top: the order heading sits on the line of the first agent's name. */
.reports { display: flex; flex-direction: column; justify-content: flex-start; padding: 1.45em 2.4em 0 1.8em; }
.reports li { position: relative; display: grid; grid-template-columns: 3.4em 1.5em minmax(0, 1fr); column-gap: .9em; padding: 1.05em 0; }
/* One thin line runs from report to report: the order is handed on, not carried. */
.reports li::before { content: ""; position: absolute; left: calc(3.4em + .9em + .75em); top: 0; bottom: 0; width: 1px; background: var(--line); }
.reports li:first-child::before { top: 1.8em; }
.reports li:last-child::before { bottom: auto; height: 1.8em; }
.reports .at { padding-top: .12em; font-family: var(--mono); font-size: .86em; line-height: 1.7; color: var(--dim); font-variant-numeric: tabular-nums; }
.reports .light { position: relative; justify-self: center; margin-top: .44em; box-shadow: 0 0 0 .4em var(--screen); }
.reports .say { color: var(--dim); text-wrap: pretty; }
.reports .say b { color: var(--paper); white-space: nowrap; }
.who { font-weight: 600; color: var(--paper); }
.who span { margin-left: .6em; font-weight: 400; color: var(--dim); }
/* A person's mark is made by hand, as on the paper quote: an orange pen tick. */
.hand-tick { position: relative; justify-self: center; width: 1.5em; height: 1.5em; background: var(--screen); }
.hand-tick::after { content: ""; position: absolute; left: .5em; top: .08em; width: .5em; height: 1em; border: solid var(--orange); border-width: 0 .2em .2em 0; transform: rotate(38deg); }

.ord { display: flex; flex-direction: column; justify-content: flex-start; padding: 2.5em 1.8em 0; border-left: 1px solid var(--line); background: rgba(245, 246, 240, .03); }
.ord-head { padding-bottom: .9em; font-family: var(--draft); font-size: .86em; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ord-head b { font-size: .86em; letter-spacing: .04em; color: var(--paper); }
.ord-lines li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) auto 1.2em; column-gap: .8em; align-items: baseline; padding: .62em 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .9em; font-variant-numeric: tabular-nums; }
.ord-lines li > span:first-child { color: var(--dim); }
.ord-lines p { min-width: 0; font-family: 'Instrument Sans', sans-serif; font-size: .96em; line-height: 1.35; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-lines p b { display: block; font-size: 1.04em; color: var(--paper); overflow: hidden; text-overflow: ellipsis; }
.tick { justify-self: end; width: .45em; height: .9em; margin-right: .2em; border: solid var(--neon); border-width: 0 .17em .17em 0; transform: rotate(38deg); }
.ord-total { display: flex; justify-content: space-between; padding: .9em 2.2em 0 0; border-top: 1px solid rgba(245, 246, 240, .5); font-family: var(--mono); font-size: .9em; font-weight: 500; font-variant-numeric: tabular-nums; }

.roster { display: flex; gap: 2em; }
.roster li { display: flex; align-items: center; gap: .6em; white-space: nowrap; }

/* The reports come in once, when the screen is in view, and then the screen rests: finished is its normal state. */
@media (prefers-reduced-motion: no-preference) {
  .is-staged .reports li { opacity: 0; transform: translateY(.9em); filter: blur(.3em); transition: opacity .4s var(--ease), transform .5s var(--ease), filter .4s var(--ease); }
  .is-staged .reports li.is-in { opacity: 1; transform: none; filter: none; }
  .is-staged [data-asks]:not(.is-answered) .light { background: var(--orange); }
  .is-staged .ord-lines li { opacity: 0; transition: opacity .35s var(--ease); }
  .is-staged .ord-lines li.is-read { opacity: .45; }
  .is-staged .ord-lines li.is-in { opacity: 1; }
  .is-staged .tick { opacity: 0; transform: rotate(38deg) scale(.4); transition: opacity .2s, transform .3s var(--ease); }
  .is-staged .is-in .tick { opacity: 1; transform: rotate(38deg); }
  .is-staged .ord-total { opacity: 0; transition: opacity .35s var(--ease); }
  .is-staged .ord-total.is-in { opacity: 1; }
  .is-staged .ops-state { color: var(--paper); transition: color .3s; }
  .is-staged.is-done .ops-state { color: var(--neon); }
  .is-staged:not(.is-done) .ops-state .light { animation: working 1.2s ease-in-out infinite; }
}
@keyframes working { 50% { opacity: .25; } }

/* ---------- The picture at the top changes year: the 1996 desk switches off and comes back as the 2026 screen ---------- */

.hero { overflow-x: clip; }
.hero-stage { margin-top: clamp(56px, 7vw, 104px); }

/* The stage: both pictures stand on the same spot. */
.swap {
  --morph: cubic-bezier(.7, 0, .2, 1);
  position: relative; isolation: isolate;
  display: grid; justify-items: center; align-items: end;
  width: min(100%, 1000px); margin-inline: auto;
}
.swap > .still, .swap > .flat { grid-area: 1 / 1; margin: 0; }
.swap > .still { z-index: 2; width: 100%; visibility: visible; transition: visibility 0s .48s; }
.swap > .flat { z-index: 1; visibility: hidden; transition: visibility 0s .48s; }
@media (min-width: 901px) { .swap > .flat { width: min(100%, 960px); } }
/* On a low desktop window the picture gets smaller, so all of it fits in the window.
   166px is the menu, the year switch and the air around them; the picture is at most .64 as high as it is wide. Never narrower than 640px. */
@media (min-width: 901px) { .swap { width: min(100%, 1000px, max(640px, (100vh - 166px) * 1.5625)); } }
@media (max-width: 900px) { .swap { align-items: start; } }

/* The flat screen stands on paper here, not on night: a soft dark shadow, no light pool. */
.swap .flat-body { opacity: 0; transition: opacity 0s .08s; box-shadow: inset 0 0 0 1px rgba(245, 246, 240, .1), 0 2px 3px rgba(9, 9, 8, .3), 0 46px 70px -34px rgba(9, 9, 8, .55); }
.swap .ops { opacity: 0; transition: opacity .2s; }

/* 1. The tube switches off: picture to a line, line to a dot, dot gone. */
.swap .os { transform-origin: 50% 50%; transition: transform .24s var(--ease), filter .24s, opacity .1s; }
.crt-beam, .crt-spot { position: absolute; z-index: 3; left: 50%; top: 50%; background: #F4FFF8; opacity: 0; pointer-events: none; }
.crt-beam { width: 100%; height: max(2px, .5cqw); margin: calc(max(2px, .5cqw) / -2) 0 0 -50%; box-shadow: 0 0 1.6cqw .3cqw rgba(174, 255, 203, .55); transition: opacity .12s, transform .16s; }
.crt-spot { width: max(5px, 1cqw); aspect-ratio: 1; margin: calc(max(5px, 1cqw) / -2) 0 0 calc(max(5px, 1cqw) / -2); border-radius: 50%; box-shadow: 0 0 1.6cqw .5cqw rgba(174, 255, 203, .6); }
.swap .crt-led { transition: background-color .2s, box-shadow .2s; }

.p1 .os { transform: scaleY(.006); filter: brightness(2.4) saturate(.4); transition: transform .11s cubic-bezier(.6, 0, .9, .3), filter .11s; }
.p1 .crt-beam { opacity: 1; transition: opacity .05s, transform .12s var(--ease); }
.p2 .os { opacity: 0; transition: opacity .06s; }
.p2 .crt-beam { opacity: 0; transform: scaleX(0); transition: transform .11s cubic-bezier(.6, 0, .9, .3), opacity .06s .08s; }
.p2 .crt-spot { animation: tube-spot .26s ease-out .06s both; }
.p2 .crt-led { background: var(--putty-lo); box-shadow: 0 0 0 1px rgba(9, 9, 8, .5); transition: background-color .12s .08s, box-shadow .12s .08s; }
@keyframes tube-spot { 0% { opacity: 0; transform: scale(1.6); } 22% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.3); } }

/* 2. The desk clears at the same moment: the paper and the sticky note leave. */
.swap .quote-print { transition: transform .5s var(--ease), opacity .3s; }
.swap.p3 .quote-print { transform: translate(-38%, 14%) rotate(-11deg); opacity: 0; transition: transform .28s cubic-bezier(.5, 0, .9, .4), opacity .18s .08s; }
.swap .crt-note { transition: transform .4s var(--ease), opacity .25s; }
.swap.p3 .crt-note { transform: translateY(70%) rotate(16deg); opacity: 0; transition: transform .26s cubic-bezier(.5, 0, .9, .4), opacity .16s .08s; }
@media (max-width: 900px) { .swap.p3 .quote-print { transform: translate(34%, 16%) rotate(12deg); } }

/* 3. The box slims: a stand-in shell goes from the beige case to the thin black panel. */
.shell {
  --d: .48s; --w: 0s; --od: .1s; --ow: .48s;
  position: absolute; z-index: 3; pointer-events: none; opacity: 0;
  left: var(--ax); top: var(--ay); width: var(--aw); height: var(--ah);
  border-radius: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px);
  background: #030302;
  box-shadow: 0 2px 2px rgba(9, 9, 8, .08), 0 40px 70px -20px rgba(9, 9, 8, .32), 0 90px 120px -60px rgba(9, 9, 8, .28);
  transition: left var(--d) var(--morph) var(--w), top var(--d) var(--morph) var(--w), width var(--d) var(--morph) var(--w), height var(--d) var(--morph) var(--w), border-radius var(--d) var(--morph) var(--w), box-shadow var(--d) var(--morph) var(--w), opacity var(--od) linear var(--ow);
}
.shell-skin { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--putty-hi) 0%, var(--putty) 22%, var(--putty) 78%, var(--putty-lo) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(9, 9, 8, .12); transition: opacity var(--d) var(--morph) var(--w); }
.shell-glass {
  position: absolute; top: var(--at); right: var(--as); bottom: var(--ab); left: var(--as);
  border-radius: clamp(6px, 1.1vw, 14px);
  background: var(--tube);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), 0 0 0 clamp(4px, .8vw, 9px) var(--putty-lo);
  transition: top var(--d) var(--morph) var(--w), right var(--d) var(--morph) var(--w), bottom var(--d) var(--morph) var(--w), left var(--d) var(--morph) var(--w), border-radius var(--d) var(--morph) var(--w), background-color var(--d) var(--morph) var(--w), box-shadow var(--d) var(--morph) var(--w);
}

.p4 > .still { visibility: hidden; transition: visibility 0s .06s; }
.p4 > .flat { visibility: visible; transition: none; }
.p4 .shell {
  --d: .38s; --w: .05s; --od: .06s; --ow: 0s;
  opacity: 1; left: var(--bx); top: var(--by); width: var(--bw); height: var(--bh);
  border-radius: clamp(10px, 1.5vw, 18px);
  box-shadow: 0 2px 3px rgba(9, 9, 8, .3), 0 46px 70px -34px rgba(9, 9, 8, .55), 0 90px 120px -60px rgba(9, 9, 8, 0);
}
.p4 .shell-skin { opacity: 0; }
.p4 .shell-glass { top: var(--bi); right: var(--bi); bottom: var(--bi); left: var(--bi); border-radius: clamp(6px, .9vw, 10px); background: #090908; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0), 0 0 0 0 rgba(196, 191, 173, 0); }

/* 4. The real screen takes the shell's place and wakes. */
.p5 .shell { --od: 0s; opacity: 0; }
.p5 .flat-body { opacity: 1; transition: none; }
.swap.p6 .ops { opacity: 1; transition: opacity .25s var(--ease); }

/* Back to 1996 nothing switches on: the black screen dims and the desk is there, already lit. */
.swap.rewind .flat-body { opacity: 0; transition: opacity .14s; }
.swap.rewind .shell { opacity: 0; transition: none; }
.swap.rewind > .still { visibility: visible; opacity: 0; transition: none; }
.swap.rewind .os, .swap.rewind .crt-beam, .swap.rewind .crt-led, .swap.rewind .quote-print, .swap.rewind .crt-note { transition: none; }
.swap.rewind.rewind-in > .still { opacity: 1; transition: opacity .2s var(--ease); }

/* On this screen the reports come in quicker than further down the page, and the order heading comes in with the order. */
@media (prefers-reduced-motion: no-preference) {
  .swap .is-staged .ord-head { opacity: 0; transition: opacity .22s; }
  .swap .is-staged .ord-head.is-in { opacity: 1; }
  .swap .is-staged .reports li { transition: opacity .24s var(--ease), transform .28s var(--ease), filter .24s var(--ease); }
  .swap .is-staged .ord-lines li, .swap .is-staged .ord-total { transition: opacity .22s var(--ease); }
}

/* Under the picture: the year, and a way to stop it. They need the script, so they show only when it runs. */
.swap-controls { display: none; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: clamp(22px, 2.4vw, 32px); }
.js .swap-controls { display: flex; }
.era-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--night); border-radius: 9999px; }
/* The pill is small; the ::after keeps the pressable area 44px tall. */
.era-switch button { position: relative; min-width: 62px; min-height: 30px; padding: 4px 14px; border: 0; border-radius: 9999px; background: transparent; color: inherit; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .04em; cursor: pointer; transition: background-color .2s, color .2s; }
.era-switch button::after { content: ""; position: absolute; inset: -7px 0; }
.era-switch button:hover { background: rgba(9, 9, 8, .08); }
.era-switch button[aria-pressed="true"] { background: var(--night); color: var(--paper); }

/* ---------- Act one: at home ---------- */

.home { background: var(--paper); padding: var(--section) var(--gutter); }
.asks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 72px); }
.asks li { display: grid; grid-template-rows: auto auto auto 1fr; }
.asks .ask { display: flex; align-items: flex-end; min-height: 2.1em; margin-top: 10px; font-size: clamp(1.5rem, 2.1vw, 1.9rem); }
.tile { display: grid; place-items: center; margin-top: 18px; aspect-ratio: 1 / 1.08; border-radius: 22px; overflow: hidden; container-type: inline-size; background: #DDF9E3; }
.asks .tell { margin-top: 16px; font-size: .875rem; line-height: 1.5; max-width: 24ch; }

.watch { display: grid; justify-items: center; width: 40cqw; }
.strap { width: 64%; height: 11cqw; background: #2B302E; }
.strap:first-child { border-radius: 3cqw 3cqw 0 0; }
.strap:last-child { border-radius: 0 0 3cqw 3cqw; }
.watch-face { position: relative; display: grid; place-content: center; justify-items: center; gap: .3cqw; width: 100%; aspect-ratio: 1 / 1.16; border-radius: 27%; background: var(--glass); box-shadow: inset 0 0 0 1cqw #232927, 0 3.6cqw 5cqw -2.4cqw rgba(9, 9, 8, .55); color: #FFFFFF; text-align: center; }
.watch-face::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: conic-gradient(var(--turq) 0 82%, rgba(255, 255, 255, .16) 82% 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.8cqw), #000 calc(100% - 1.7cqw)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.8cqw), #000 calc(100% - 1.7cqw)); }
.w-label { font-size: 2.7cqw; opacity: .72; }
.w-num { font-size: 12.5cqw; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.w-sub { font-size: 2.9cqw; opacity: .8; }

.phone { width: 43cqw; aspect-ratio: 9 / 17.5; padding: 1.5cqw; border-radius: 7.5cqw; background: var(--glass); box-shadow: 0 4.4cqw 6cqw -3.2cqw rgba(9, 9, 8, .55); }
.screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 6.2cqw; overflow: hidden; font-size: 3.05cqw; line-height: 1.35; }
.screen::before { content: ""; position: absolute; left: 50%; top: 2.2cqw; z-index: 1; width: 11cqw; height: 3cqw; margin-left: -5.5cqw; border-radius: 2cqw; background: var(--glass); }
.chat { justify-content: flex-end; gap: 1.8cqw; padding: 8cqw 2.6cqw 4cqw; background: #F1F2ED; }
.chat-top { position: absolute; left: 0; right: 0; top: 6.6cqw; padding-bottom: 2cqw; border-bottom: 1px solid var(--rule-dark); text-align: center; font-weight: 600; }
.msg { max-width: 90%; padding: 2cqw 2.6cqw; border-radius: 3.6cqw; }
.msg.me { align-self: flex-end; border-bottom-right-radius: 1cqw; background: var(--night); color: var(--paper); }
.msg.ai { align-self: flex-start; border-bottom-left-radius: 1cqw; background: #FFFFFF; box-shadow: 0 0 0 1px var(--rule-dark); }
.lock { align-items: center; gap: 5cqw; padding: 12cqw 2.4cqw 4cqw; background: linear-gradient(170deg, #0F3B37, var(--night) 70%); color: #FFFFFF; }
.l-time { font-size: 12cqw; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.notif { display: grid; gap: .4cqw; width: 100%; padding: 2.6cqw 3cqw; border-radius: 4cqw; background: rgba(245, 246, 240, .95); color: var(--night); }
.notif b { font-weight: 600; }
.notif i { display: flex; align-items: center; gap: 1.4cqw; font-style: normal; opacity: .78; }
.notif i::before { content: ""; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 1px rgba(9, 9, 8, .5); }

.dash { width: 86cqw; aspect-ratio: 16 / 8.6; padding: 1.5cqw; border-radius: 5cqw; background: var(--glass); box-shadow: 0 4.4cqw 6cqw -3.2cqw rgba(9, 9, 8, .55); }
.dash-map { position: relative; height: 100%; border-radius: 3.8cqw; overflow: hidden; background: #0E2F2B; }
.dash-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.road { fill: none; stroke: rgba(245, 246, 240, .2); stroke-width: 9; stroke-linecap: round; }
.jam { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; }
.go { fill: none; stroke: var(--neon); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.car { fill: #FFFFFF; stroke: var(--night); stroke-width: 2; }
.cross { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; }
.dash-card { position: absolute; left: 3cqw; top: 3cqw; display: grid; gap: .3cqw; padding: 2cqw 2.8cqw; border-radius: 3cqw; background: rgba(245, 246, 240, .96); color: var(--night); font-size: 3.05cqw; line-height: 1.3; }
.dash-card b { font-weight: 600; }
.dash-eta { position: absolute; right: 3.4cqw; bottom: 2.6cqw; color: #FFFFFF; font-size: 3cqw; font-weight: 500; }

/* ---------- The door and the turn: the year rolls ---------- */

.year { display: flex; font-weight: 500; line-height: 1.02; letter-spacing: -.055em; font-variant-numeric: tabular-nums lining-nums; }
.digit { display: inline-block; height: 1.02em; overflow: hidden; }
.digit i { display: block; height: 1.02em; font-style: normal; transform: translateY(-100%); transition: transform 1.2s var(--ease); }
.digit:nth-child(2) i { transition-delay: .07s; }
.digit:nth-child(3) i { transition-delay: .14s; }
.digit:nth-child(4) i { transition-delay: .21s; }
.year-big { justify-content: center; font-size: clamp(6rem, 25vw, 23rem); }

.door, .turn { --p: 1; display: grid; align-content: center; justify-items: center; gap: clamp(20px, 3.4vw, 48px); padding: var(--section) var(--gutter); text-align: center; }
.door .eyebrow, .turn .eyebrow { margin: 0; }
.pin-copy { display: grid; justify-items: center; gap: 20px; max-width: 58rem; }
.door { background-color: var(--aged); background-color: color-mix(in srgb, var(--aged) calc(var(--p) * 100%), var(--paper)); background-image: var(--grain); }
.turn { background-color: var(--night); background-color: color-mix(in srgb, var(--night) calc(var(--p) * 100%), var(--aged)); color: var(--paper); }
.turn .year-big { color: var(--neon); text-shadow: 0 0 .12em rgba(0, 255, 129, .35); }
.turn .pin-copy .lead { max-width: 40rem; }

/* The year starts on the old one and rolls: on scroll where the section is pinned, on arrival where it is not. */
@media (prefers-reduced-motion: no-preference) {
  .js .door .digit i, .js .turn .digit i { transform: none; }
  .js .is-rolled .digit i { transform: translateY(-100%); }
}

@media (min-width: 901px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .js .door-pin, .js .turn-pin { height: 220vh; }
  .js .door, .js .turn { position: sticky; top: 0; height: 100vh; padding-block: 96px 40px; }
  .js .year-big { font-size: min(25vw, 40vh); }
  .js .turn { color: var(--night); transition: color .6s; }
  .js .turn .year-big { color: var(--night); text-shadow: none; transition: color .6s, text-shadow .9s; }
  .js .turn.is-rolled { color: var(--paper); }
  .js .turn.is-rolled .year-big { color: var(--neon); text-shadow: 0 0 .12em rgba(0, 255, 129, .35); }
  .js .door .pin-copy, .js .turn .pin-copy { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform 1.2s var(--ease); }
  .js .is-told .pin-copy { opacity: 1; transform: none; }
}

/* ---------- Act two: at work ---------- */

.work { background-color: var(--aged); background-image: var(--grain); padding: clamp(24px, 4vw, 56px) var(--gutter) var(--section); }
.scene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6.4vw, 96px); border-top: 1px solid var(--rule-dark); }
.scene:first-of-type { margin-top: clamp(40px, 5vw, 72px); }
.scene:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.scene:nth-of-type(even) .scene-copy { order: 2; }
.scene-copy { display: grid; justify-items: start; gap: 18px; }
.scene .ask { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.reply { display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 1rem; line-height: 1.5; }
.scene .tell { max-width: 31rem; }
.echo { display: flex; align-items: center; gap: 14px; max-width: 27rem; margin-top: 10px; padding: 12px 18px 12px 14px; border-radius: 16px; background: #DDF9E3; font-size: .875rem; line-height: 1.4; }
.echo b { display: block; font-family: var(--mono); font-size: .75rem; font-weight: 500; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.echo-icon { position: relative; flex: none; display: block; background: var(--glass); }
.e-watch { width: 30px; height: 36px; border-radius: 9px; }
.e-watch::after { content: ""; position: absolute; inset: 8px 5px; border-radius: 50%; border: 2.5px solid var(--turq); }
.e-phone { width: 22px; height: 40px; border-radius: 6px; }
.e-phone::after { content: ""; position: absolute; left: 4px; right: 4px; top: 15px; height: 9px; border-radius: 3px; background: var(--paper); }
.e-car { width: 44px; height: 26px; border-radius: 7px; }
.e-car::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 3px; border-radius: 2px; background: var(--neon); }
.work-note { margin-top: 8px; }

/* A still from the order desk: 4:3, grain, a little vignette. Sizes inside follow the frame. */
.shot { display: grid; gap: 14px; }
.stage { --bg: var(--mat); position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; container-type: inline-size; background: var(--bg); }
.s-folder, .s-check { --bg: var(--desk); }
.film::before { content: ""; position: absolute; inset: -40px; z-index: 8; pointer-events: none; background-image: var(--grain-film); mix-blend-mode: multiply; animation: grain 1s steps(1) infinite; }
.film::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(255, 220, 160, .12) 0%, rgba(255, 220, 160, 0) 50%, rgba(38, 24, 6, .36) 100%); }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-18px, 11px); } 50% { transform: translate(13px, -22px); } 75% { transform: translate(-9px, -14px); } }

.paper, .memo-pad, .ecn, .greenbar { color: var(--ink); font-family: var(--mono); font-size: 1.5cqw; line-height: 1.5; box-shadow: 0 .2cqw .4cqw rgba(0, 0, 0, .2), 0 2.6cqw 3cqw -1.6cqw rgba(0, 0, 0, .45); }
.paper { position: absolute; padding: 2.6cqw; background: var(--sheet); }
.p-title { padding-bottom: .6em; margin-bottom: .6em; border-bottom: 1px solid var(--ink); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.pen { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.7em; line-height: 1; color: var(--orange); }
.circled { position: relative; font-style: normal; }
.circled::after { content: ""; position: absolute; inset: -.4cqw -1.1cqw -.4cqw -1.2cqw; border: .34cqw solid var(--orange); border-radius: 50%; transform: rotate(-3deg); }
.stamp { position: absolute; z-index: 3; display: grid; gap: .2cqw; padding: .9cqw 1.8cqw; border: .42cqw double var(--purple); border-radius: .5cqw; color: var(--purple); font-family: var(--mono); font-size: 1.45cqw; font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-align: center; text-transform: uppercase; mix-blend-mode: multiply; opacity: .86; transform: rotate(-9deg); }
.stamp b { font-size: 1.25em; font-weight: 500; }

/* Fig. 1: the order folder */
.s-folder .folder { position: absolute; left: 9%; top: 19%; width: 74%; height: 73%; border-radius: .6cqw 1.2cqw 1.2cqw 1.2cqw; background: var(--manila); transform: rotate(-2.2deg); box-shadow: 0 .3cqw .5cqw rgba(0, 0, 0, .2), 0 3cqw 3.4cqw -1.6cqw rgba(0, 0, 0, .45); }
.s-folder .folder::after { content: ""; position: absolute; inset: 1.2cqw; border: 1px solid rgba(9, 9, 8, .14); border-radius: .5cqw; }
.folder-tab { position: absolute; left: 0; bottom: 100%; margin-bottom: -1px; padding: 1cqw 2.2cqw .7cqw; border-radius: 1cqw 1cqw 0 0; background: var(--manila); font-family: var(--mono); font-size: 1.55cqw; font-weight: 500; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.s-folder .slip { left: 19%; top: 27%; width: 52%; transform: rotate(1.4deg); }
.slip-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; }
.slip-grid span { min-height: 3.1cqw; padding: .55cqw .4cqw; border-bottom: 1px solid rgba(9, 9, 8, .35); }
.slip-grid .h { border-bottom-color: var(--ink); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.slip-grid .pen { font-size: 1.5em; }
.slip-note { margin: 1.2cqw 0 0 34%; transform: rotate(-4deg); font-size: 2.2em; }
.clip { position: absolute; left: 24%; top: 21.5%; z-index: 2; width: 3.2cqw; transform: rotate(7deg); fill: none; stroke: #8C928B; stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 .3cqw .2cqw rgba(0, 0, 0, .3)); }
.s-folder .stamp { right: 15%; top: 24%; }
.memo-pad { position: absolute; right: 5%; bottom: 7%; z-index: 4; width: 31%; padding: 2cqw 2.2cqw 2.6cqw; background: var(--pink); transform: rotate(4deg); }
.memo-pad .pen { margin-top: .4cqw; font-size: 1.9em; }

/* Fig. 2: the spreadsheet, on the monitor */
.s-xls { background: var(--putty); }
.tube { position: absolute; left: 0; top: 0; right: 8.5%; bottom: 11.5%; overflow: hidden; border-radius: 0 0 3.4cqw 0; background: var(--desktop); box-shadow: 0 0 0 .9cqw var(--putty-lo), inset 0 0 0 .4cqw rgba(0, 0, 0, .5); }
.tube::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px), linear-gradient(115deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 30%); }
.bezel { position: absolute; }
.bezel-r { right: 0; top: 0; bottom: 0; width: 7.4%; background: linear-gradient(90deg, var(--putty) 0%, var(--putty-hi) 100%); }
.bezel-b { left: 0; right: 0; bottom: 0; height: 10.2%; background: linear-gradient(180deg, var(--putty) 0%, var(--putty-lo) 100%); }
.bezel-b .crt-led { position: absolute; right: 14%; top: 42%; }
.xls { position: absolute; left: 5%; top: 7%; width: 88%; height: 84%; font-size: 1.5cqw; line-height: 1.3; box-shadow: .5cqw .5cqw 0 rgba(0, 0, 0, .35); }
.fx { display: flex; align-items: center; gap: .8cqw; padding: .2cqw .8cqw .7cqw; font-family: var(--mono); }
.fx b { width: 6cqw; font-weight: 400; }
.fx b, .fx span { padding: .25cqw .6cqw; background: #FFFFFF; border: .2cqw solid; border-color: var(--gui-dk) #FFFFFF #FFFFFF var(--gui-dk); white-space: nowrap; overflow: hidden; }
.fx span { flex: 1; }
.cells { flex: 1; display: grid; grid-template-columns: 3.2cqw 2.2fr 1fr 1fr 1fr; align-content: start; margin: 0 .7cqw; background: #FFFFFF; outline: .2cqw solid var(--gui-dk); font-family: var(--mono); font-size: 1.42cqw; }
.cells span { padding: .5cqw .6cqw; border-right: 1px solid #CDD0CA; border-bottom: 1px solid #CDD0CA; white-space: nowrap; overflow: hidden; }
.cells .hd { background: var(--gui); border-color: var(--gui-lo); text-align: center; font-family: Arial, Helvetica, sans-serif; }
.cells .b { font-weight: 500; background: #EEF0EA; }
.cells .c { text-align: center; }
.cells .sel { position: relative; outline: .32cqw solid var(--night); outline-offset: -.32cqw; }
.cells .sel::after { content: ""; position: absolute; right: 0; top: 0; border: .7cqw solid; border-color: var(--orange) var(--orange) transparent transparent; }
.tabs { display: flex; gap: .2cqw; padding: .5cqw .8cqw .4cqw; }
.tabs span { padding: .3cqw 1.1cqw; background: var(--gui); border: .2cqw solid; border-color: var(--gui-dk) var(--gui-dk) var(--gui-dk) #FFFFFF; border-top-color: transparent; border-radius: 0 0 .5cqw .5cqw; font-size: .92em; white-space: nowrap; }
.tabs .on { background: #FFFFFF; font-weight: 700; }
.comment { position: absolute; left: 66%; top: 53%; z-index: 2; width: 29%; padding: .7cqw .9cqw; background: #FFFBD0; border: 1px solid var(--ink); box-shadow: .3cqw .3cqw 0 rgba(0, 0, 0, .3); font-size: .95em; line-height: 1.35; }
.sticky { right: 1.6%; top: 8%; display: grid; align-content: start; gap: .8cqw; width: 22%; aspect-ratio: 1; padding: 2.4cqw 2cqw; font-size: 3.5cqw; transform: rotate(5deg); }
.sticky small { font-size: .62em; }

/* Fig. 3: the drawing and the change notice */
.s-drawing .drawing { position: absolute; left: -9%; top: 2%; width: 107%; background: var(--sheet); transform: rotate(-1.2deg); box-shadow: 0 .2cqw .4cqw rgba(0, 0, 0, .2), 0 2.6cqw 3cqw -1.6cqw rgba(0, 0, 0, .45); }
.dwg { display: block; width: 100%; height: auto; }
.dwg .k { fill: var(--sheet); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.dwg .n { fill: none; stroke: var(--ink); stroke-width: 1; }
.dwg .hid { stroke-dasharray: 7 4; }
.dwg .ctr { stroke-dasharray: 18 4 3 4; }
.dwg .arr { fill: var(--ink); }
.dwg .bal circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.dwg text { font-family: var(--draft); font-size: 15px; fill: var(--ink); letter-spacing: .03em; }
.dwg .z text { font-size: 11px; text-anchor: middle; }
.dwg .mid { text-anchor: middle; }
.dwg .big { font-size: 21px; }
.dwg .sm { font-size: 9.5px; }
.dwg .red { fill: none; stroke: var(--orange); stroke-width: 3.4; stroke-linecap: round; }
.dwg .hand { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 31px; fill: var(--orange); letter-spacing: 0; }
.stamp-rel { left: 7%; top: 12%; transform: rotate(-7deg); }
.ecn { position: absolute; left: 2%; bottom: 3%; z-index: 4; width: 41%; padding: 2.2cqw 2.4cqw 2.4cqw; background: var(--pink); transform: rotate(3deg); }
.ecn .p-title { display: flex; justify-content: space-between; gap: 1cqw; letter-spacing: .04em; white-space: nowrap; }
.ecn dl { display: grid; grid-template-columns: auto 1fr; gap: .2cqw 1.6cqw; }
.ecn dt { opacity: .72; }
.ecn dd { border-bottom: 1px dotted rgba(0, 0, 0, .45); }
.dist { margin-top: 1.2cqw; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: .3cqw 1cqw; margin-top: .3cqw; }
.boxes span { display: flex; align-items: center; gap: .9cqw; }
.boxes span::before { content: ""; flex: none; width: 1.6cqw; height: 1.6cqw; background: #FFFFFF; border: 1px solid var(--ink); }
.boxes .on::before { background: linear-gradient(45deg, transparent 43%, var(--ink) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--ink) 43% 57%, transparent 57%), #FFFFFF; }

/* Fig. 4: the quote and the check print */
.s-check .quote-print { position: absolute; left: 3%; top: 7%; width: 44%; transform: rotate(-2.2deg); }
.greenbar { display: flex; background: var(--sheet); line-height: 1.9; }
.s-check .greenbar { position: absolute; right: 2%; top: 27%; width: 48.5%; font-size: 1.45cqw; transform: rotate(1.6deg); }
.feed { flex: none; width: 2.6cqw; background: radial-gradient(circle, var(--bg) 0 .62cqw, transparent .7cqw) 50% .1cqw / 100% 2.755cqw repeat-y; }
.feed:first-child { border-right: 1px dashed rgba(0, 0, 0, .22); }
.feed:last-child { border-left: 1px dashed rgba(0, 0, 0, .22); }
.g-body p { white-space: pre; }
.g-body { flex: 1; min-width: 0; padding: 2.755cqw 1.5cqw; background: repeating-linear-gradient(180deg, rgba(174, 255, 203, .6) 0 2.755cqw, transparent 2.755cqw 5.51cqw); }
.g-body .p-title { margin: 0; padding: 0; border: 0; letter-spacing: .04em; }
.g-body .pen { font-size: 2em; line-height: .5; }
.ruler {
  position: absolute; left: 3%; top: 53.2%; z-index: 4; width: 94%; height: 5.4cqw; border-radius: .3cqw; transform: rotate(-1.2deg);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 1.2cqw) 0 0 / 100% 34% no-repeat,
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .6) 0 1px, transparent 1px 6cqw) 0 0 / 100% 62% no-repeat,
    linear-gradient(180deg, #E6E9E4, #BEC3BD 62%, #D8DCD6);
  box-shadow: 0 .2cqw .3cqw rgba(0, 0, 0, .3), 0 1.6cqw 1.8cqw -.8cqw rgba(0, 0, 0, .5);
}
.ring { position: absolute; right: 9%; top: 5%; width: 15cqw; aspect-ratio: 1; border-radius: 50%; border: .55cqw solid rgba(110, 66, 26, .2); box-shadow: inset 0 0 0 .25cqw rgba(110, 66, 26, .08), 0 0 0 .2cqw rgba(110, 66, 26, .06); clip-path: polygon(0 0, 100% 0, 100% 62%, 58% 100%, 0 100%); }
.marker { position: absolute; right: 9%; bottom: 6%; z-index: 5; width: 23cqw; height: 3.6cqw; border-radius: 1.8cqw .6cqw .6cqw 1.8cqw; transform: rotate(-22deg); background: linear-gradient(90deg, #D9520A 0 24%, var(--orange) 24% 88%, #FFB27A 88%); box-shadow: 0 .2cqw .3cqw rgba(0, 0, 0, .3), 0 1.6cqw 1.8cqw -.8cqw rgba(0, 0, 0, .5); }

/* ---------- Act three: the same questions, lights off ---------- */

.answers, .footage, .close { color: var(--paper); }
.answers { padding: var(--section) var(--gutter) clamp(40px, 6vw, 88px); }
.qa { margin-top: clamp(40px, 5vw, 72px); }
.qa li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr; gap: 16px clamp(24px, 5vw, 80px); padding: clamp(28px, 3.6vw, 48px) 0; border-top: 1px solid var(--rule-light); }
.qa li:last-child { border-bottom: 1px solid var(--rule-light); }
.qa .ask { grid-column: 1; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.was { grid-column: 1; align-self: start; display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: .875rem; line-height: 1.5; color: rgba(245, 246, 240, .78); }
.now { grid-column: 2; grid-row: 1 / span 2; display: grid; align-content: start; gap: 14px; }
.answer { margin-bottom: 4px; font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.1; letter-spacing: -.028em; color: var(--neon); text-wrap: balance; }
.how { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); align-items: baseline; max-width: 36rem; }
.how .chip { justify-self: start; }
.answers > .caption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; }
.answers > .caption .chip-road { margin-left: 12px; }

/* ---------- Footage ---------- */

.footage { display: grid; gap: clamp(28px, 4vw, 48px); padding: clamp(40px, 6vw, 88px) var(--gutter) var(--section); }
.footage-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px clamp(32px, 5vw, 80px); }
.reel { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--deep); border: 1px solid var(--rule-light); }
.reel-light { border-color: var(--rule-dark); background: #E8EAE2; }
.footage > .caption { text-align: center; }

/* ---------- Paper block: build or buy, customers, team ---------- */

.block { border-radius: 28px; background: var(--paper); --focus: var(--night); }
.after, .proof, .team { padding: var(--section) var(--gutter); }
.proof, .team { border-top: 1px solid var(--rule-dark); }
.block > :first-child { border-top: 0; }

.after-head { max-width: 62rem; }
.ledger { margin-top: clamp(40px, 5vw, 64px); }
.l-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.15fr) minmax(0, 1.15fr); gap: 8px clamp(20px, 3vw, 48px); padding: 20px clamp(12px, 2vw, 24px); border-top: 1px solid var(--rule-dark); }
.l-row:nth-child(even) { background: rgba(174, 255, 203, .38); }
.l-row:last-child { border-bottom: 1px solid var(--rule-dark); }
.l-head { border-top: 0; padding-block: 0 12px; }
.l-row [role="rowheader"] { font-weight: 600; }
.l-row [role="cell"]:last-child { font-weight: 600; }
.verdict { margin-top: clamp(32px, 4vw, 56px); max-width: 30ch; font-size: clamp(1.5rem, 2.9vw, 2.6rem); font-weight: 500; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }

.proof { display: grid; gap: clamp(48px, 6vw, 88px); }
.proof-head .eyebrow { margin-bottom: 28px; }
/* "200+" is in the label's own face (Instrument Sans), not the mono used for other numbers in labels. */
.proof-head .eyebrow b { font-family: inherit; font-size: 1em; letter-spacing: 0; font-weight: inherit; }
/* Under the team the logos follow straight on: no line, and the team's own bottom space is the gap. */
.team + .proof { border-top: 0; padding-top: 0; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px clamp(32px, 4.6vw, 64px); }
.logos img { height: 26px; width: auto; max-width: 150px; filter: brightness(0); opacity: .72; }
.logos img.tall { height: 40px; } .logos img.h-l { height: 34px; } .logos img.h-s { height: 20px; } .logos img.h-c { height: 28px; }
/* The customer logos slide past in a loop, as on elfsquad.io. The list is in the page twice so the loop has no seam.
   With reduced motion the copy is hidden and the logos stand still, wrapped in rows. */
.proof-head, .marquee { min-width: 0; }
.marquee { --logo-gap: clamp(48px, 5.5vw, 80px); }
.marquee .logos[aria-hidden] { display: none; }
/* On every screen the label sits on top of the logos, as in the jan-1996-dark-office version. */
@media (prefers-reduced-motion: no-preference) {
  .marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .marquee-track { display: flex; width: max-content; animation: logos-slide 45s linear infinite; }
  .marquee .logos { flex-wrap: nowrap; column-gap: var(--logo-gap); padding-right: var(--logo-gap); }
  .marquee .logos[aria-hidden] { display: flex; }
}
@keyframes logos-slide { to { transform: translateX(-50%); } }

.quote { display: grid; gap: 28px; max-width: 64rem; }
.quote blockquote p { font-size: clamp(1.6rem, 3.3vw, 3rem); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.quote figcaption { font-size: .875rem; }
.quote figcaption b { display: block; font-weight: 600; }

.specs h3 { font-family: var(--draft); font-size: .875rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.specs dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--night); }
.specs dl > div { padding: clamp(20px, 3vw, 36px) clamp(16px, 2.4vw, 32px) clamp(20px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule-dark); }
.specs dl > div + div { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--rule-dark); }
.specs dt { font-size: clamp(3.2rem, 8.4vw, 7.4rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.specs dd { margin-top: 14px; max-width: 24ch; }
.specs .caption { margin-top: 20px; }

.clip-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(32px, 5vw, 80px); }
.clip-copy { display: grid; gap: 12px; }
.clip-copy .eyebrow { margin: 0; }
.clip-copy p:last-child { max-width: 30rem; }

/* Under the flow, on the same night ground: one statement in the size of the 30-year line.
   What everyone says stands on its own line; the answer follows, with "dark office" in neon.
   A hairline separates it from the flow, as on linear.app: edge to edge, a black line with a faint light line under it,
   so it reads as a groove pressed into the night rather than a drawn rule. */
.dark-first { position: relative; display: grid; justify-items: center; padding: var(--section) var(--gutter); background: var(--night); color: var(--paper); text-align: center; }
.dark-first::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(#000 0 1px, rgba(245, 246, 240, .08) 1px 2px); pointer-events: none; }
.dark-first h2 { max-width: 18.5em; font-size: clamp(1.75rem, 4.4vw, 48px); line-height: 1.12; text-wrap: balance; }
.dark-first-said { display: block; }
/* On tablets and desktops the block is taller, with the line in the middle; phones keep the natural height. */
@media (min-width: 768px) { .dark-first { display: grid; align-content: center; min-height: 540px; } }
.dark-first h2 em { color: var(--neon); }
.dark-first-stage { display: grid; justify-items: center; }
/* A flat block that scrolls like any other. With motion allowed its words light up one after another,
   from faint to full, as the block comes up the screen (script.js, "The dark office line"). */
.dark-first { padding-block: clamp(64px, 7vw, 104px); }
@media (min-width: 768px) { .dark-first { min-height: 0; } }
.dark-first.is-reveal .w { opacity: .18; }

/* ---------- The Elfsquad mark behind the two quotes ----------
   The hexagon from our favicon, blown up to almost twice the width of the page, so only a part of it is in view:
   a few large slanted planes in the colour of the ground itself, a touch darker on the light block and a touch
   lighter on the dark one. Each block shows a different part of the mark. */
.era, .dark-first { position: relative; overflow: clip; }
.era h2, .dark-first-stage { position: relative; z-index: 1; }
.era::after, .dark-first::after { content: ''; position: absolute; width: 190vw; aspect-ratio: 541 / 622; background: no-repeat center / contain; pointer-events: none; }
/* Light block: the upper middle of the mark, where three planes and the tip of the opening meet. */
.era::after { left: -60vw; top: -58vw; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='130 50 541 622'%3E%3Cpolygon fill='%23090908' fill-opacity='0.055' points='141,212 400,62 333,274 205,347'/%3E%3Cpolygon fill='%23090908' fill-opacity='0.03' points='400,62 660,212 460,347 333,274'/%3E%3Cpolygon fill='%23090908' fill-opacity='0.07' points='660,212 660,511 460,494 460,347'/%3E%3Cpolygon fill='%23090908' fill-opacity='0.04' points='660,511 400,660 333,567 460,494'/%3E%3Cpolygon fill='%23090908' fill-opacity='0.06' points='400,660 141,511 205,494 333,567'/%3E%3Cpolygon fill='%23090908' fill-opacity='0.085' points='141,511 141,212 205,347 205,494'/%3E%3C/svg%3E"); }
/* Dark block: the underside of the mark, where two planes meet under the opening like a wide V. */
.dark-first::after { left: -42vw; top: -158vw; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='130 50 541 622'%3E%3Cpolygon fill='%23F5F6F0' fill-opacity='0.055' points='141,212 400,62 333,274 205,347'/%3E%3Cpolygon fill='%23F5F6F0' fill-opacity='0.03' points='400,62 660,212 460,347 333,274'/%3E%3Cpolygon fill='%23F5F6F0' fill-opacity='0.07' points='660,212 660,511 460,494 460,347'/%3E%3Cpolygon fill='%23F5F6F0' fill-opacity='0.04' points='660,511 400,660 333,567 460,494'/%3E%3Cpolygon fill='%23F5F6F0' fill-opacity='0.06' points='400,660 141,511 205,494 333,567'/%3E%3Cpolygon fill='%23F5F6F0' fill-opacity='0.085' points='141,511 141,212 205,347 205,494'/%3E%3C/svg%3E"); }

/* Alve, on the same night ground. On wide screens: the promise, what it does and the way in stacked on the left,
   the screen recording larger on the right, both centred on each other. On narrower screens the recording goes under the text. */
.alve { position: relative; display: grid; gap: clamp(40px, 5vw, 72px); padding: var(--section) var(--gutter); background: var(--night); color: var(--paper); --focus: var(--neon); }
.alve::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(#000 0 1px, rgba(245, 246, 240, .08) 1px 2px); pointer-events: none; }
.alve h2 { max-width: 13em; font-size: clamp(1.75rem, 4.4vw, 48px); }
.alve h2 em { display: block; color: var(--neon); }
.alve-head { display: grid; gap: 28px; align-content: center; }
.alve-copy { display: grid; justify-items: start; gap: 28px; }
.alve-copy p { max-width: 34rem; color: rgba(245, 246, 240, .8); text-wrap: pretty; }
.alve-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--deep); border: 1px solid var(--rule-light); }
.alve-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .alve { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; column-gap: clamp(48px, 7vw, 120px); }
  .alve h2 { font-size: clamp(2.25rem, 3.4vw, 48px); } /* the 48px size, since the column is narrow: "Your spreadsheets" stays on one line */
}

.team-head { display: grid; gap: 24px; max-width: 62rem; }
.team-head .lead { font-size: 1rem; line-height: 24px; }
/* The team as a row of photo slices, as in the david-one-order version, in this page's own colours and type.
   One slice stands open, wide, with name, role and story over a night shade; the others are narrow strips.
   Pointing at, tabbing to or tapping a strip opens it (script.js, "The team row"). */
.people { display: flex; gap: 10px; height: clamp(400px, 38vw, 520px); margin-top: clamp(40px, 5vw, 72px); }
.people li { position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; overflow: hidden; background: var(--deep); cursor: pointer; transition: flex-grow .6s var(--ease); }
.people li.on { flex-grow: 5; cursor: default; }
.people li:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
.people img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; filter: saturate(.6) brightness(.78); transition: filter .6s; }
.people li.on img, .people li:hover img { filter: saturate(.82) contrast(1.02); }
.people .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 96px clamp(18px, 2.4vw, 32px) clamp(18px, 2.2vw, 28px); background: linear-gradient(to top, rgba(9, 9, 8, .9) 0, rgba(9, 9, 8, .66) 55%, rgba(9, 9, 8, 0) 100%); color: var(--paper); opacity: 0; transition: opacity .3s; pointer-events: none; }
.people li.on .cap { opacity: 1; transition-delay: .25s; pointer-events: auto; }
.people .cap > * { width: min(100%, 30rem); }
.people h3 { white-space: nowrap; }
.people .role { margin-top: 4px; letter-spacing: 0; text-transform: none; color: var(--paper); white-space: nowrap; } /* a job title, written as it is spelled */
.people .bio { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: rgba(245, 246, 240, .88); }
/* LinkedIn sits on its own line under the story, in white. */
.people .cap .in { display: inline-block; width: auto; margin-top: 12px; font-size: 1rem; line-height: 1.5; font-weight: 400; color: var(--paper); text-decoration-thickness: 1px; text-underline-offset: 4px; --focus: var(--paper); }
@media (prefers-reduced-motion: reduce) { .people li, .people img, .people .cap { transition: none; } }
/* On phones, with five people, the row is taller and the open slice takes more of it, so a long story leaves the face free. */
@media (max-width: 640px) {
  .team .people { gap: 4px; height: 600px; }
  .team .people li { border-radius: 14px; }
  .team .people li.on { flex-grow: 10; }
  .team .people .cap { padding: 96px 16px 18px; }
}

/* ---------- Close ---------- */

/* Ready to turn the lights off: a neon bulb on a thin cord hangs above the headline. A click tugs it and the bulb goes out. */
.close { --pad: clamp(168px, 17vw, 264px); position: relative; overflow: hidden; text-align: center; background: var(--night); padding: var(--pad) var(--gutter) var(--section); }
.close > * { position: relative; }
@media (min-width: 901px) {
  /* The words sit 20px lower than the cord needs. */
  .close { padding-top: calc(var(--pad) + 20px); }
}
.close-cord { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.cord { position: absolute; left: -22px; top: -40px; width: 44px; height: calc(var(--pad) - 24px); padding: 0; border: 0; background: none; cursor: pointer; }
.cord-line { position: absolute; left: 50%; top: 0; bottom: 36px; width: 1px; background: linear-gradient(to bottom, rgba(245, 246, 240, .12), rgba(245, 246, 240, .5)); transition: background .3s ease; }
.cord-bulb { position: absolute; left: 50%; bottom: 10px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #FFFFFF 0, #EAFFF3 42%, #A9FFD4 100%); box-shadow: 0 0 8px 2px rgba(0, 255, 129, .9), 0 0 30px 10px rgba(0, 255, 129, .42), 0 0 80px 28px rgba(0, 255, 129, .14); transition: background .3s ease, box-shadow .3s ease, transform .3s var(--ease); }
.cord:hover .cord-line { background: linear-gradient(to bottom, rgba(245, 246, 240, .16), rgba(245, 246, 240, .8)); }
.cord:hover .cord-bulb { transform: scale(1.08); }
.cord:focus-visible { outline: none; }
.cord:focus-visible .cord-bulb { outline: 2px solid var(--neon); outline-offset: 5px; }
.cord-glow { position: absolute; left: -200px; top: calc(var(--pad) - 287px); width: 400px; height: 400px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, rgba(0, 255, 129, .2) 0, rgba(0, 255, 129, .06) 40%, rgba(0, 255, 129, 0) 70%); transition: opacity .3s ease; }
.close.dark-now .cord-glow { opacity: 0; }
.close.dark-now .cord-bulb { background: radial-gradient(circle at 40% 36%, #3A403C 0, #1B1F1D 60%, #121413 100%); box-shadow: inset 0 0 0 1px rgba(245, 246, 240, .16); }
/* Off, the room goes dark and the words dim; they stay readable, and the demo button stays the one bright thing. */
.close h2, .close .lead, .close .text-link, .close h2 em { transition: color .5s ease; }
.close.dark-now h2, .close.dark-now .lead, .close.dark-now .text-link { color: rgba(245, 246, 240, .5); }
.close.dark-now h2 em { color: rgba(0, 255, 129, .45); }
@media (prefers-reduced-motion: no-preference) {
  .close-cord { animation: cord-sway 7s ease-in-out infinite; }
  .cord.tug { animation: cord-tug .75s both; }
  .close.lit-again .cord-bulb, .close.lit-again .cord-glow { animation: neon-flicker .5s steps(1) both; }
}
@keyframes cord-sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
@keyframes cord-tug {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
  16% { transform: translateY(16px); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  42% { transform: translateY(-5px); }
  64% { transform: translateY(2px); }
  82% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}
@keyframes neon-flicker { 0% { opacity: .15; } 18% { opacity: 1; } 30% { opacity: .35; } 46% { opacity: 1; } 58% { opacity: .7; } 70%, 100% { opacity: 1; } }
.close .lead { margin: 24px auto 0; max-width: 32rem; }
.close .actions { justify-content: center; margin-top: 32px; }
.crt-small { width: clamp(150px, 16vw, 210px); padding: 10px 10px 0; border-radius: 16px 16px 12px 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 30px 60px -20px rgba(0, 0, 0, .6); }
.crt-small .crt-screen { display: grid; place-items: center; border-radius: 10px / 12px; background: radial-gradient(ellipse at 50% 45%, #06362F 0%, #022520 48%, var(--tube) 100%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), inset 0 0 30px 10px rgba(0, 0, 0, .6), 0 0 0 4px var(--putty-lo); }
.crt-small .crt-chin { height: 22px; }
.crt-small .crt-vents { width: 44px; height: 6px; }
.crt-off .crt-led { background: var(--putty-lo); box-shadow: 0 0 0 1px rgba(9, 9, 8, .5); }
.crt-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--free); box-shadow: 0 0 10px 3px rgba(0, 255, 129, .7), 0 0 34px 10px rgba(0, 255, 129, .25); animation: afterglow 4.5s ease-in-out infinite; }
@keyframes afterglow { 50% { opacity: .35; transform: scale(.7); } }

/* ---------- Footer ---------- */

.footer { margin: 0 24px 24px; padding: clamp(24px, 2.8vw, 40px) clamp(24px, 3.4vw, 48px); border-radius: 28px; background: var(--deep); color: var(--paper); }
/* One row over a hairline: the logo, a short divider and the line on the left; the page's sections and the demo button on the
   right. When the row runs out of room, the right half drops under the left. The legal links sit below the hairline. */
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: clamp(20px, 2.2vw, 28px); border-bottom: 1px solid var(--rule-light); }
.footer-brand { display: flex; align-items: center; gap: 14px 28px; }
.footer .logo img { height: 26px; }
.footer-line { padding-left: 28px; border-left: 1px solid var(--rule-light); font-size: 1rem; font-weight: 500; line-height: 1.6; letter-spacing: -.015em; }
.footer-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 3vw, 40px); }
.footer-go nav { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 2.4vw, 32px); }
.footer-go nav a { font-size: .875rem; font-weight: 500; }
.footer-go nav a, .legal a { text-decoration: none; }
.footer-go nav a:hover, .legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: clamp(16px, 1.8vw, 22px); font-size: .875rem; }
@media (max-width: 640px) {
  .footer-brand, .footer-go { flex-direction: column; align-items: flex-start; }
  .footer-line { padding-left: 0; border-left: 0; }
}

/* ---------- Motion ---------- */

.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s, transform 1.2s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :host { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1240px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 1100px) {
  .nav { grid-template-columns: auto minmax(0, 1fr); }
  .links { display: none; }
  .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 900px) {
  .nav { height: 60px; }
  .hero h1 br:not(.keep) { display: none; }
  .still-set { grid-template-columns: minmax(0, 1fr); }
  .still .quote-print { order: 2; justify-self: end; width: 58%; margin: -20% 2% 0 0; transform: rotate(3deg); }
  .crt-note { display: none; }
  /* On a small screen the display stands upright and shows the reports only, at a size that reads. */
  .flat { width: min(100%, 520px); }
  .flat-screen { aspect-ratio: auto; }
  .ops { position: static; font-size: clamp(.75rem, 3.5cqw, .9375rem); }
  .ops-bar, .ops-foot { padding: 0 1.2em; gap: 1em; }
  .ops-order { padding-left: 1em; }
  .ops-order span, .roster, .ord { display: none; }
  .ops-main { grid-template-columns: minmax(0, 1fr); }
  .reports { padding: .6em 1.2em; }
  .ops-sum { display: block; }
  .scene,.scene:nth-of-type(even), .footage-head, .clip-row { grid-template-columns: minmax(0, 1fr); }
  .scene:nth-of-type(even) .scene-copy { order: 0; }
  .qa li { grid-template-columns: minmax(0, 1fr); }
  .now { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .l-row { grid-template-columns: minmax(0, 1fr); }
  .l-head { display: none; }
  .l-row [role="cell"]::before { display: block; margin-top: 6px; font-family: var(--draft); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
  .l-row [role="cell"]:nth-child(2)::before { content: "Build it yourself"; }
  .l-row [role="cell"]:nth-child(3)::before { content: "With Elfsquad"; }
  .specs dl { grid-template-columns: minmax(0, 1fr); }
  .specs dl > div + div { padding-left: 0; border-left: 0; }
  .people { gap: 6px; height: 480px; }
  .people li { border-radius: 16px; }
  .people li.on { flex-grow: 7; }
  .people h3, .people .role { white-space: normal; }
  .people .bio, .people .cap .in { font-size: .9375rem; }
  .footer { margin: 0 12px 12px; }
}
@media (max-width: 640px) {
  .nav-trial { display: none; }
}
@media (max-width: 520px) {
  .nav-actions { gap: 4px; }
  .asks { grid-template-columns: minmax(0, 1fr); }
  .asks .ask { min-height: 0; }
  .tile { aspect-ratio: 1 / .9; }
  .reply, .was { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ---------- Blocks from the page design ---------- */

/* Two blocks under the film, around the people. The ground tells the story: night for the whole flow,
   night again where the lights go off.
   Each block has one picture and one movement. The page as written shows every picture finished. */
.flow {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: var(--section) var(--gutter) clamp(40px, 5vw, 64px);
}
.flow > * { grid-column: 1 / -1; }
.flow { --focus: var(--neon); background: var(--night); color: var(--paper); }
.flow h2 em { color: var(--neon); }

/* -- One connected flow: eleven job cards, each attached to the one before -- */

/* Four stages run to the right. Inside a stage the cards grow downward. A line leaves the last card of a stage and
   climbs to the first card of the next one. Under 1000px the whole flow is one chain running down. */
.flow { --gx: clamp(28px, 3.4vw, 48px); --gy: 30px; --sg: 48px; --line: var(--neon); row-gap: clamp(40px, 5vw, 72px); }
.flow-head { display: grid; gap: 20px; }
.flow-head p { max-width: 34rem; color: rgba(245, 246, 240, .8); text-wrap: pretty; }
.flow-board { min-width: 0; }
.flow-chain { display: grid; gap: var(--sg); }
.flow-stage { --rail: 0px; --lab: 34px; --cw: 100%; position: relative; }
.flow-stage h3 { height: 20px; margin-bottom: 14px; color: var(--paper); font-size: .875rem; font-weight: 600; line-height: 20px; letter-spacing: -.01em; }
.flow-steps { display: grid; gap: var(--gy); }
.flow-steps > li { position: relative; display: grid; }
/* The line from a card down to the next one in its stage. */
.flow-steps > li:not(:last-child)::after {
  content: ''; position: absolute; left: calc(50% - .5px); top: 100%; width: 1px; height: var(--gy); background: var(--line);
  transform-origin: 50% 0; transition: transform .3s var(--ease) calc(var(--i) * 130ms + 110ms);
}
/* The line from the last card of a stage to the first card of the next one. */
.flow-link {
  position: absolute; left: calc(var(--rail) + var(--cw) / 2 - .5px); top: calc(-1 * var(--sg)); width: 1px; height: calc(var(--sg) + var(--lab)); background: var(--line);
  transform-origin: 50% 0; transition: transform .34s var(--ease) calc(var(--i) * 130ms + 110ms);
}
.flow-link i { display: none; }

/* Cards as drawn in Figma: a borderless panel 4% lighter than the night ground; on top an icon bubble for the kind of
   step and the time it ran, then the title, then the trigger or setting as a grey label with an outlined value pill. */
.flow-card {
  --card: color-mix(in srgb, #FFFFFF 4%, var(--night));
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px;
  background: var(--card); color: var(--paper);
  transform-origin: 50% 0; transition: opacity .45s calc(var(--i) * 130ms), transform .75s var(--ease) calc(var(--i) * 130ms);
}
/* The tabs where a line enters and leaves a card, as in Figma: a 30 by 5 lighter pill, flat against the card edge,
   rounded on the outside. */
.flow-card::before, .flow-card::after { content: ''; position: absolute; left: calc(50% - 15px); width: 30px; height: 5px; background: color-mix(in srgb, #FFFFFF 20%, var(--night)); }
.flow-card::before { top: -5px; border-radius: 4px 4px 0 0; }
.flow-card::after { bottom: -5px; border-radius: 0 0 4px 4px; }
.flow-stage:first-child .flow-steps > li:first-child .flow-card::before, .flow-stage:last-child .flow-steps > li:last-child .flow-card::after { content: none; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 50%; background: rgba(255, 255, 255, .04); }
.flow-icon img { display: block; width: 14px; height: 14px; }
.flow-icon-hands { background: color-mix(in srgb, var(--orange) 16%, transparent); }
.flow-time { color: rgba(255, 255, 255, .3); font-size: .75rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-card h4 { margin: 0 0 3px; color: #FFFFFF; font-size: 1rem; font-weight: 500; line-height: 1.15; }
.flow-val { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; font-size: .875rem; line-height: 1.15; }
.flow-val span { color: rgba(255, 255, 255, .3); white-space: nowrap; }
.flow-val b { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 99999px; color: rgba(255, 255, 255, .7); font-weight: 500; }

/* Staged until the block arrives: each card then grows out of the one before it, and the lines draw in between. */
.flow-board.is-waiting .flow-card { opacity: 0; transform: translateY(-16px) scale(.94); transition: none; }
.flow-board.is-waiting .flow-steps > li::after, .flow-board.is-waiting .flow-link { transform: scaleY(0); transition: none; }

/* The lights that run the flow without stopping. script.js adds them and moves them at one steady speed along every line in turn. */
.flow-dot {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFFFFF; opacity: 0; pointer-events: none;
  box-shadow: 0 0 3px 1px var(--neon), 0 0 12px 3px color-mix(in srgb, var(--neon) 50%, transparent);
}
.flow-steps > li > .flow-dot { left: calc(50% - 2.5px); top: calc(100% - 2.5px); }

/* A card at work: a beam circles its edge, turquoise at the tail and purple at the head, with a soft glow around it.
   script.js adds the beam to every card and sets .is-busy while a light is inside. */
@property --beam { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.flow-beam {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .9s ease-out; animation: beam 3.2s linear infinite;
}
.flow-card.is-busy .flow-beam { opacity: 1; transition-duration: .35s; }
.flow-beam::before, .flow-beam i::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0deg 200deg, color-mix(in srgb, var(--turq) 30%, transparent) 240deg, var(--turq) 285deg, var(--purple) 335deg, var(--purple) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.flow-beam i { position: absolute; inset: 0; border-radius: inherit; filter: blur(9px); }
.flow-beam i::before { inset: -3px; padding: 6px; }
@keyframes beam { to { --beam: 360deg; } }

/* The agents: flat, slightly crooked hexagons with two dot eyes, each in its own colour; the exceptions agent wears
   the manufacturing orange, as it handles what a person would otherwise catch by hand. They sit on the bench under the flow in two groups, breathing and blinking. When a card's job starts,
   script.js hops one onto the top edge of that card (.is-working: it squints, scans and rocks) and hops it back
   to its seat when the job ends. The faint mark under each seat stays, so an empty seat reads as "out at work". */
.flow-bench { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gx); margin-top: clamp(44px, 4.4vw, 64px); transition: opacity .6s ease-out 1.2s; }
/* Two groups under the two stages each works, so no hop crosses the whole board:
   the left one lines up with the board's left edge, the right one with its right edge. */
.flow-bench-group { display: flex; justify-content: flex-start; gap: 18px; }
.flow-bench-group:last-child { justify-content: flex-end; }
.flow-board.is-waiting .flow-bench { opacity: 0; transition: none; }
.flow-seat { position: relative; display: block; width: 30px; height: 30px; }
.flow-seat::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: -5px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.agent { position: relative; z-index: 1; display: block; width: 30px; height: 30px; transform-origin: 50% 100%; }
.agent svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 90%; animation: agent-breathe 3.4s ease-in-out var(--d) infinite; }
.agent polygon { fill: var(--c); stroke: var(--c); stroke-width: 3.5; stroke-linejoin: round; }
.agent-eyes { fill: var(--night); transform-box: fill-box; transform-origin: center; animation: agent-blink 5.2s var(--d) infinite; }
.agent.is-jumping svg { animation: none; }
.agent.is-jumping .agent-eyes { animation: none; transform: scaleY(1.2); }
.agent.is-working svg { animation: agent-rock .6s ease-in-out infinite; }
.agent.is-working .agent-eyes { animation: agent-scan .8s ease-in-out infinite; }
@keyframes agent-breathe { 50% { transform: scale(1.04, .95); } }
@keyframes agent-blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(.12); } }
@keyframes agent-rock { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-1.5px); } }
@keyframes agent-scan { 0%, 100% { transform: translateX(-1.8px) scaleY(.6); } 50% { transform: translateX(1.8px) scaleY(.6); } }
/* On narrow screens the cards stack into one tall column, too far from the bench for a hop to read. */
@media (max-width: 999px) { .flow-bench { display: none; } }
@media (prefers-reduced-motion: reduce) { .agent svg, .agent-eyes { animation: none; } }
.flow-link > .flow-dot { left: -2px; top: -2.5px; }

@media (min-width: 641px) and (max-width: 999px) {
  .flow-stage { --rail: 168px; --lab: 0px; --cw: min(100% - 168px, 460px); display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .flow-stage h3 { margin: 16px 0 0; }
  .flow-steps { max-width: 460px; }
}
@media (min-width: 1000px) {
  .flow-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
  .flow-head h2 { grid-column: 1 / span 7; }
  .flow-head p { grid-column: 9 / -1; padding-bottom: .5em; }
  .flow-board { margin-top: 12px; } /* more air between the headline and the four columns */
  .flow-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(3, 1fr); gap: var(--gy) var(--gx); }
  .flow-stage { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; }
  .flow-stage h3 { grid-row: 1; margin-bottom: -10px; }
  .flow-steps { grid-column: 1; grid-row: 2 / -1; grid-template-rows: subgrid; }
  /* The line runs in the gap between two stages: out of the last card, up, and into the first card of the next stage. */
  .flow-link { position: relative; left: auto; top: auto; grid-column: 1; grid-row: 2 / span var(--n); justify-self: start; width: var(--gx); height: auto; margin-left: calc(-1 * var(--gx)); background: none; transition: none; }
  .flow-link i {
    --e: calc((100% - (var(--n) - 1) * var(--gy)) / (2 * var(--n)));
    display: block; position: absolute; inset: var(--e) 0; clip-path: circle(142% at 0 100%); transition: clip-path .55s ease-out calc(var(--i) * 130ms + 90ms);
  }
  .flow-link i::before, .flow-link i::after { content: ''; position: absolute; border: 0 solid var(--line); }
  .flow-link i::before { left: 0; width: 50%; top: 50%; bottom: 0; border-width: 0 1px 1px 0; border-bottom-right-radius: 12px; }
  .flow-link i::after { left: calc(50% - 1px); right: 0; top: 0; bottom: 50%; border-width: 1px 0 0 1px; border-top-left-radius: 12px; }
  .flow-stage:not(:first-child) .flow-steps > li:first-child .flow-card { transform-origin: 0 50%; }
  .flow-stage:not(:first-child) .flow-steps > li:first-child .flow-card::before { left: -5px; top: calc(50% - 15px); width: 5px; height: 30px; border-radius: 4px 0 0 4px; }
  .flow-stage:not(:last-child) .flow-steps > li:last-child .flow-card::after { left: auto; right: -5px; bottom: calc(50% - 15px); width: 5px; height: 30px; border-radius: 0 4px 4px 0; }
  /* Round the bend the light follows the line itself; script.js measures it into --route. */
  .flow-link > .flow-dot { left: 0; top: 0; offset-path: var(--route); offset-anchor: 50% 50%; offset-rotate: 0deg; }
  .flow-board.is-waiting .flow-link { transform: none; }
  .flow-board.is-waiting .flow-link i { clip-path: circle(0% at 0 100%); transition: none; }
  .flow-board.is-waiting .flow-stage:not(:first-child) .flow-steps > li:first-child .flow-card { transform: translateX(-16px) scale(.94); }
}

/* New order (26 Nov): the logo bar sits directly under the hero, on the page's light ground. */
.proof-bar { display: block; padding: clamp(28px, 3.6vw, 52px) var(--gutter); border-top: 0; background: var(--paper); color: var(--ink, #090908); }
.proof-bar .proof-head .eyebrow { margin-bottom: 20px; }
/* The dark-office sentence opens the Alve block: one dark block, the sentence on top, Alve right under it. */
.dark-first { padding-bottom: clamp(20px, 2.5vw, 36px); }
.dark-first + .alve { padding-top: clamp(28px, 3.5vw, 56px); }
/* The scroll film is the last block: its closing picture carries the buttons. */
.film-run :is(.office-ending, .dispatch-copy) .actions { justify-content: center; margin-top: clamp(24px, 3.5vh, 40px); pointer-events: auto; text-shadow: none; }
.film-run :is(.office-ending, .dispatch-copy) .text-link { color: var(--paper); text-shadow: 0 2px 8px rgba(9, 9, 8, .85); }
/* The closing line is one word longer now, so it runs a little smaller to stay on two lines. */
.film-run .dispatch-copy .dispatch-title { font-size: clamp(2.1rem, min(6.4vw, 9svh), 76px); }

/* Light top half (26 Nov): the dark-office sentence and Alve sit on the page's light ground, so the page does not turn
   dark right under the hero. The flow below is the first dark block. */
.dark-first, .dark-first + .alve { background: var(--paper); color: var(--night); --focus: var(--night); }
.dark-first::before, .dark-first + .alve::before { content: none; }
.dark-first::after { filter: invert(1); }
.dark-first h2 em, .dark-first + .alve h2 em { color: #004B48; }
.dark-first + .alve .alve-copy p { color: rgba(9, 9, 8, .74); }
.dark-first + .alve .alve-screen { border-color: var(--rule-dark); background: #E8EAE2; box-shadow: 0 18px 48px -28px rgba(9, 9, 8, .35); }
.dark-first + .alve .btn { background: var(--night); border-color: var(--night); color: var(--paper); }
.dark-first + .alve .btn:hover { background: var(--deep); border-color: var(--deep); }
/* The large Elfsquad mark behind the dark-office sentence is off: a plain light ground. */
.dark-first::after { content: none; }
/* The Alve mark in front of the name in the Alve title. */
.alve h2 .alve-mark { display: inline-block; width: auto; height: .74em; margin-right: .22em; vertical-align: -.04em; }

/* The logo bar: the count on the left, the way to the customer stories on the right. */
.proof-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.proof-bar .proof-top .eyebrow { margin: 0; }
.proof-top .text-link { font-size: .875rem; }
/* Why Elfsquad, as three short points above the team: one partner, a fixed price, we guide you. */
.team-head:has(.reasons) { max-width: none; gap: clamp(28px, 3.5vw, 48px); }
.reasons { display: grid; gap: 24px clamp(24px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
.reasons li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--rule-dark); }
.reasons h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.reasons p { font-size: 1rem; line-height: 24px; max-width: 26rem; text-wrap: pretty; }
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The team title with a quiet way to the team page on the right. */
.team-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.team-top .text-link { font-size: .875rem; margin-bottom: .5em; }
/* The way to the team page stands to the right of the last person; the row of photos gives up a little width for it. */
.people-row { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(40px, 5vw, 72px); }
.people-row .people { flex: 1 1 0; min-width: 0; margin-top: 0; }
.people-more { flex: none; font-size: .875rem; white-space: nowrap; }
@media (max-width: 900px) { .people-row { flex-direction: column; align-items: flex-start; } .people-row .people { flex: none; width: 100%; } }
/* On two lines, so it takes little width from the photos. */
@media (min-width: 901px) { .people-more { white-space: normal; max-width: 7em; line-height: 1.5; } }
/* The problem, small, above the dark-office sentence that answers it. */
.dark-first-problem { max-width: 32rem; margin: 0 0 clamp(20px, 2.4vw, 32px); font-size: 1.125rem; line-height: 1.5; color: rgba(9, 9, 8, .74); text-wrap: balance; }
/* A little more air between the dark-office sentence and Alve. */
.dark-first { padding-bottom: clamp(36px, 4vw, 60px); }
.dark-first + .alve { padding-top: clamp(44px, 5vw, 76px); }
/* The four industries in the line above the logos, each a quiet link to its own page. */
.proof-top .eyebrow a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(9, 9, 8, .35); }
.proof-top .eyebrow a:hover { text-decoration-color: currentColor; }
.proof-top .text-link { white-space: nowrap; }
/* A small arrow after the team link; it slides a little on hover. */
.people-more .arrow { display: inline-block; margin-left: .4em; transition: transform .2s ease; }
.people-more:hover .arrow { transform: translateX(3px); }
.people-more .keep { white-space: nowrap; }
@media (min-width: 901px) { .people-more { max-width: 9em; } }
@media (min-width: 901px) { .people-more { max-width: 10em; } }
/* The closing picture gets a dark veil behind the title, so the words read well. It fades in with the title. */
.film-run .dispatch-copy::before { content: ''; position: absolute; z-index: -1; inset: -100vh -50vw; background: rgba(9, 9, 8, .5); pointer-events: none; }

/* The language switch in the menu: plain text next to Team, a little smaller than the links. */
.links { align-items: center; }
.links .lang { font-size: .8125rem; }

/* ---------- Closing block ----------
   One still picture: the factory seen from the office, under a dark veil, with the invitation and the buttons on it. */
.enter { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: min(88svh, 780px); padding: var(--section) var(--gutter); background: var(--night) url("https://www.elfsquad.io/hubfs/AI%20new%20vision/Homepage%20new%20restyle/dark-office-2026.webp") center / cover no-repeat; color: var(--paper); text-align: center; --focus: var(--neon); }
.enter::before { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(9, 9, 8, .5); }
.enter h2 { margin: 0; font-size: clamp(2.1rem, 6.4vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 2px 8px rgba(9, 9, 8, .85), 0 4px 24px rgba(9, 9, 8, .7); }
.enter .in-neon { color: var(--neon); }
.enter .actions { justify-content: center; margin-top: clamp(24px, 3.5vh, 40px); }
.enter .text-link { color: var(--paper); text-shadow: 0 2px 8px rgba(9, 9, 8, .85); }

/* ---------- The flow as a morning screen ----------
   Not the process but its result: what the order desk sees at 08:30. One thing needs a person, the rest is done. */
.morning { margin: clamp(40px, 5vw, 80px) 0 clamp(16px, 3vw, 40px); border-radius: 20px; overflow: hidden; background: #111210; border: 1px solid var(--rule-light); box-shadow: 0 40px 80px -48px #000; }
.mb-bar { display: flex; align-items: center; gap: 14px; padding: 16px clamp(18px, 2.4vw, 32px); border-bottom: 1px solid var(--rule-light); font-size: .8125rem; color: rgba(245, 246, 240, .6); }
.mb-bar img { width: 84px; height: auto; }
.mb-bar span { padding-left: 14px; border-left: 1px solid var(--rule-light); }
.mb-bar time { margin-left: auto; font-family: var(--mono); font-size: .75rem; }
.mb-body { display: grid; gap: clamp(24px, 3vw, 40px); padding: clamp(20px, 2.6vw, 36px) clamp(18px, 2.4vw, 32px) clamp(24px, 3vw, 40px); }
.mb-label { margin-bottom: 14px; font-size: .8125rem; font-weight: 500; color: rgba(245, 246, 240, .55); }
.mb-label-you { color: var(--orange); }
.mb-special { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.2vw, 28px); border-radius: 14px; background: color-mix(in srgb, var(--orange) 9%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); }
.mb-special h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -.01em; }
.mb-special p { margin-top: 8px; max-width: 36rem; color: rgba(245, 246, 240, .8); line-height: 1.5; }
.mb-btn { flex: none; padding: 10px 20px; border-radius: 999px; background: var(--orange); color: #111210; font-size: .875rem; font-weight: 600; }
.mb-done ul { margin: 0; padding: 0; list-style: none; }
.mb-done li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(245, 246, 240, .08); color: rgba(245, 246, 240, .62); }
.mb-check { width: 18px; height: 18px; border-radius: 50%; background: var(--neon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23090908' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.mb-done time { font-family: var(--mono); font-size: .75rem; }
.mb-what { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.mb-what b { font-weight: 500; color: rgba(245, 246, 240, .9); }
.mb-what span { font-size: .875rem; }
.mb-who { display: flex; align-items: center; gap: 8px; font-size: .8125rem; }
@media (min-width: 1000px) { .mb-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .mb-special { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .mb-done li { grid-template-columns: auto minmax(0, 1fr); } .mb-done time, .mb-who { display: none; } .mb-special { flex-direction: column; align-items: flex-start; } }
/* The morning screen in motion (the script adds .is-anim; without it the finished screen simply stands there). */
.mb-check { box-sizing: border-box; }
.morning.is-anim .mb-done li { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s var(--ease); }
.morning.is-anim .mb-done li.in { opacity: 1; transform: none; }
.morning.is-anim .mb-done li:not(.ok) .mb-check { background: none; border: 2px solid rgba(245, 246, 240, .22); border-top-color: var(--neon); animation: mb-spin .7s linear infinite; }
.morning.is-anim .mb-done li.ok .mb-check { animation: mb-pop .35s var(--ease); }
.morning.is-anim .mb-you { opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .5s ease, transform .5s var(--ease); }
.morning.is-anim .mb-you.in { opacity: 1; transform: none; }
.morning.is-anim .mb-you.in .mb-special { animation: mb-glow 1.5s ease-out 2; }
@keyframes mb-spin { to { transform: rotate(360deg); } }
@keyframes mb-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes mb-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 50%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* The morning screen as one chain: every job of the night in one list, and the one special as an orange row in it. */
.mb-body { display: block; }
.mb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 6px; }
.mb-head .mb-label { margin: 0; }
.mb-sum { font-size: .9375rem; color: rgba(245, 246, 240, .7); }
.mb-sum b { font-family: var(--mono); font-weight: 500; color: var(--neon); }
.mb-sum b.mb-n-you { color: var(--orange); }
.mb-sum i { font-style: normal; margin-inline: 6px; opacity: .5; }
.mb-list { margin: 0; padding: 0; list-style: none; }
.mb-list li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(245, 246, 240, .08); color: rgba(245, 246, 240, .62); }
.mb-list time { font-family: var(--mono); font-size: .75rem; }
.mb-list li.mb-row-you { margin: 8px -14px; padding: 16px 14px; border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--orange) 9%, transparent); color: rgba(245, 246, 240, .82); }
.mb-list li.mb-row-you + li { border-top-color: transparent; }
.mb-row-you .mb-what b { font-size: 1.0625rem; font-weight: 600; color: var(--paper); }
.mb-row-you time { color: var(--orange); }
.mb-flag { display: grid; place-items: center; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #111210; font-size: .75rem; font-weight: 700; line-height: 1; }
.morning.is-anim .mb-list li { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s var(--ease); }
.morning.is-anim .mb-list li.in { opacity: 1; transform: none; }
.morning.is-anim .mb-list li:not(.ok) .mb-check { background: none; border: 2px solid rgba(245, 246, 240, .22); border-top-color: var(--neon); animation: mb-spin .7s linear infinite; }
.morning.is-anim .mb-list li.ok .mb-check { animation: mb-pop .35s var(--ease); }
.morning.is-anim .mb-list li.mb-row-you.in { animation: mb-glow 1.5s ease-out 2; }
@media (max-width: 600px) { .mb-list li { grid-template-columns: auto minmax(0, 1fr); } .mb-list time, .mb-who { display: none; } .mb-list li.mb-row-you { grid-template-columns: auto minmax(0, 1fr); } .mb-row-you .mb-btn { grid-column: 2; justify-self: start; } }

/* The special waits for a click on Review. The button breathes while it waits; after the click the row turns green
   and the quote that was held back goes out as one more row. */
.mb-btn { border: 0; font-family: inherit; cursor: pointer; transition: transform .2s var(--ease), background .3s, color .3s; }
.mb-btn:hover { transform: translateY(-1px); }
.mb-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.mb-list li.mb-after[hidden] { display: none; }
.morning:not(.is-anim) .mb-row-you:not(.approved) .mb-btn, .morning.is-done .mb-row-you:not(.approved) .mb-btn { animation: mb-wait 1.8s ease-out infinite; }
@keyframes mb-wait { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.mb-list li.mb-row-you { transition: border-color .5s, background .5s; }
.mb-list li.mb-row-you.approved { border-color: rgba(0, 255, 129, .35); background: rgba(0, 255, 129, .06); animation: none; }
.mb-row-you.approved time { color: inherit; }
.mb-row-you.approved .mb-flag { color: transparent; background: var(--neon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23090908' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: mb-pop .35s var(--ease); }
.mb-row-you.approved .mb-btn { background: transparent; color: var(--neon); cursor: default; transform: none; box-shadow: inset 0 0 0 1px rgba(0, 255, 129, .4); }
@media (prefers-reduced-motion: reduce) { .mb-btn { animation: none !important; } }

/* The morning screen per order: each order is its own short chain with a head line (number, product, state). */
.mb-order { margin-top: clamp(18px, 2.2vw, 28px); }
.mb-order-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 10px; font-size: .9375rem; color: rgba(245, 246, 240, .6); }
.mb-order-head b { font-family: var(--mono); font-size: .875rem; font-weight: 500; color: var(--paper); }
.mb-state { margin-left: auto; font-style: normal; font-size: .8125rem; font-weight: 500; color: var(--neon); }
.mb-order-you .mb-state { color: var(--orange); }
.morning .mb-list li.mb-pending { opacity: .42; }
.morning .mb-list li.mb-pending:not(.ok) .mb-check { background: none; border: 2px dashed rgba(245, 246, 240, .4); animation: none; }
.morning.is-anim .mb-order { opacity: 0; transition: opacity .4s ease; }
.morning.is-anim .mb-order.in { opacity: 1; }
.morning.is-anim .mb-state { opacity: 0; transition: opacity .4s ease; }
.morning.is-anim .mb-order.is-stated .mb-state, .morning.is-anim .mb-order.is-sent .mb-state { opacity: 1; }
.morning.is-anim .mb-list li.mb-pending.in { opacity: .42; }

/* The Summit film as the first, wide tile in the team row. A click opens the film; as a narrow strip only the play mark shows. */
.people li.summit { background: radial-gradient(120% 90% at 20% 0%, #14362F 0, #0B1512 55%, #090908 100%); }
.summit-link { position: absolute; inset: 0; display: grid; align-content: end; justify-items: start; padding: clamp(18px, 2.4vw, 32px); color: var(--paper); text-decoration: none; }
.summit-play { position: absolute; left: 50%; top: 44%; width: clamp(54px, 6vw, 84px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--neon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 7.2v9.6L17 12z' fill='%23090908'/%3E%3C/svg%3E") center / 62% no-repeat; transition: transform .3s var(--ease); }
.summit-link:hover .summit-play { transform: translate(-50%, -50%) scale(1.08); }
.summit-cap { display: grid; gap: 6px; max-width: 26rem; opacity: 0; transition: opacity .3s; }
.people li.summit.on .summit-cap { opacity: 1; transition-delay: .25s; }
.summit-cap b { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -.01em; }
.summit-cap span { color: rgba(245, 246, 240, .82); line-height: 1.5; }
.summit-cap i { margin-top: 6px; font-style: normal; font-size: .875rem; font-weight: 600; color: var(--neon); }
.people li.summit:not(.on) .summit-play { width: 34px; }

/* The Summit tile with the film's own title card as its picture. The caption sits on a dark fade at the bottom;
   the round play mark in the middle only shows while the tile is a narrow strip. */
.people li.summit img { filter: none; object-position: 50% 50%; }
.people li.summit.on img, .people li.summit:hover img { filter: none; }
.summit-link { z-index: 1; }
.summit-link::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(0, 20, 18, .92) 0, rgba(0, 20, 18, .6) 45%, rgba(0, 20, 18, 0) 100%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.people li.summit.on .summit-link::after { opacity: 1; }
.summit-cap { position: relative; z-index: 1; }
.summit-cap i { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .9375rem; }
.summit-cap i b { width: 34px; aspect-ratio: 1; border-radius: 50%; background: var(--neon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 7.2v9.6L17 12z' fill='%23090908'/%3E%3C/svg%3E") center / 62% no-repeat; transition: transform .3s var(--ease); }
.summit-link:hover .summit-cap i b { transform: scale(1.1); }
.summit-play { z-index: 1; top: 50%; opacity: 0; transition: opacity .3s; }
.people li.summit:not(.on) .summit-play { opacity: 1; }

/* The dark flow block a little smaller, with the screen closer to the heading. */
.flow { padding-block: clamp(56px, 6vw, 96px) clamp(40px, 4.5vw, 72px); }
.flow .morning { margin: clamp(24px, 2.8vw, 40px) 0 0; }
.mb-body { padding-block: clamp(16px, 2vw, 26px) clamp(18px, 2.2vw, 28px); }
.mb-order { margin-top: clamp(12px, 1.6vw, 20px); }
.mb-list li { padding-block: 11px; }
/* Less dark space between the heading and the screen: the block had its own row gap on top of the margin. */
.flow { row-gap: clamp(20px, 2.2vw, 32px); }
.flow .morning { margin-top: 0; }
.flow { row-gap: clamp(28px, 3.2vw, 48px); }

/* ---------- Block 2 with the painted film ----------
   The film fills the block; the dark-office sentence stands on the left and overlaps the film on a soft light fade. */
.dark-first.has-film { display: block; position: relative; height: clamp(440px, 42vw, 640px); min-height: 0; padding: 0; overflow: hidden; text-align: left; background: var(--paper); }
.dark-first.has-film .df-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.dark-first.has-film::before { content: ''; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 66%; height: auto; pointer-events: none; background: linear-gradient(90deg, var(--paper) 0, var(--paper) 30%, rgba(245, 246, 240, .93) 48%, rgba(245, 246, 240, .74) 66%, rgba(245, 246, 240, .32) 85%, rgba(245, 246, 240, 0) 100%); }
.dark-first.has-film::after { content: ''; position: absolute; z-index: 1; inset: auto 0 0 0; width: auto; height: 64px; aspect-ratio: auto; filter: none; pointer-events: none; background: linear-gradient(0deg, var(--paper) 0, rgba(245, 246, 240, 0) 100%); }
.dark-first.has-film .dark-first-stage { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(37rem, 47%); justify-items: start; }
.dark-first.has-film h2 { max-width: none; font-size: clamp(1.5rem, 2.9vw, 40px); line-height: 1.14; text-align: left; }
.dark-first.has-film + .alve { padding-top: clamp(40px, 4.5vw, 72px); }
@media (max-width: 900px) {
  .dark-first.has-film { height: auto; }
  .dark-first.has-film .df-film { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; display: block; }
  .dark-first.has-film::before, .dark-first.has-film::after { content: none; }
  .dark-first.has-film .dark-first-stage { position: static; transform: none; width: auto; padding: 28px var(--gutter) 8px; }
}

/* The quote in block 2 on four fixed lines; "dark office comes first" a size larger and never broken. */
.dark-first.has-film h2 em { font-size: 1.32em; white-space: nowrap; }
@media (min-width: 901px) {
  .dark-first.has-film .dark-first-stage { width: max-content; max-width: 62%; }
  .dark-first.has-film h2 { font-size: clamp(1.4rem, 2.5vw, 36px); line-height: 1.2; text-wrap: nowrap; }
  .dark-first.has-film h2 .dark-first-said, .dark-first.has-film h2 .df-l { display: block; white-space: nowrap; }
}
/* Block 2 flatter; the type keeps its size. The film is cropped a little lower so the desk and the screen stay in view. */
@media (min-width: 901px) { .dark-first.has-film { height: clamp(330px, 31vw, 460px); } .dark-first.has-film .df-film { object-position: 80% 62%; } .dark-first.has-film::after { height: 44px; } }

/* Block 2: the closing words on the last picture and the replay button, as they were when the film stood in the hero. */
.df-cap { position: absolute; z-index: 2; right: var(--gutter); bottom: 64px; width: min(23rem, 34%); margin: 0; color: var(--paper); opacity: 0; border-radius: 14px; background: rgba(0, 18, 16, .58); box-shadow: 0 0 36px 30px rgba(0, 18, 16, .58); text-shadow: 0 1px 10px rgba(0, 18, 16, .6); }
.df-cap b { display: block; font-size: 1.25rem; font-weight: 600; }
.df-cap span { display: block; margin-top: 6px; font-size: .9375rem; line-height: 1.45; color: rgba(245, 246, 240, .88); }
.df-replay { position: absolute; z-index: 3; right: var(--gutter); bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border: 1px solid rgba(245, 246, 240, .32); border-radius: 999px; background: rgba(0, 34, 31, .5); color: var(--paper); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.df-replay.on { opacity: .85; visibility: visible; transition: opacity .5s, background-color .2s; }
.df-replay.on:hover { opacity: 1; background: rgba(0, 34, 31, .75); }
.df-replay svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .dark-first.has-film { position: relative; }
  .df-cap { right: 12px; left: 12px; bottom: auto; top: calc(100vw * .75 - 96px); width: auto; }
  .df-cap b { font-size: 1rem; } .df-cap span { font-size: .8125rem; margin-top: 2px; }
  .df-replay { right: 12px; bottom: auto; top: 12px; }
}

/* Alve: the screen recording on the left, the words on the right (wide screens; on narrow ones the words stay on top). */
@media (min-width: 1000px) { .alve { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .alve .alve-screen { order: -1; } }

/* A little more air between the blocks. */
.proof-bar { padding-bottom: clamp(44px, 5vw, 76px); }
.dark-first.has-film + .alve { padding-top: clamp(64px, 6.5vw, 104px); }
.alve { padding-bottom: clamp(80px, 9vw, 136px); }
.flow { padding-block: clamp(72px, 7.5vw, 116px) clamp(64px, 6.5vw, 100px); }

/* Block 2, after the film: no closing words, but a link to the dark-office page next to the replay button. */
.df-more { position: absolute; z-index: 3; right: calc(var(--gutter) + 104px); bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper); color: var(--night); font-size: .8125rem; font-weight: 600; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s, transform .2s var(--ease); }
.df-more.on { opacity: 1; visibility: visible; transition: opacity .5s, transform .2s var(--ease); }
.df-more:hover { transform: translateY(-1px); }
.df-more span { transition: transform .2s var(--ease); }
.df-more:hover span { transform: translateX(3px); }
.df-replay { bottom: 14px; padding-block: 7px; }
@media (max-width: 900px) { .df-more { right: 12px; bottom: auto; top: calc(100vw * .75 - 46px); } }

/* Closing block: a green glow comes off the screen on the desk, like a monitor lighting a dark room.
   A soft cone of light with faint scan lines in it; it breathes slowly and flickers once in a while. */
.enter::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 129, .07) 0 1px, rgba(0, 255, 129, 0) 1px 4px),
    radial-gradient(ellipse 46% 62% at var(--gx, 9%) var(--gy, 52%), rgba(0, 255, 129, .5) 0, rgba(0, 255, 129, .22) 32%, rgba(0, 255, 129, .07) 58%, rgba(0, 255, 129, 0) 78%);
  -webkit-mask-image: radial-gradient(ellipse 52% 70% at var(--gx, 9%) var(--gy, 52%), #000 0, #000 45%, transparent 82%);
  mask-image: radial-gradient(ellipse 52% 70% at var(--gx, 9%) var(--gy, 52%), #000 0, #000 45%, transparent 82%);
  animation: enter-glow 5s ease-in-out infinite; }
@keyframes enter-glow { 0%, 100% { opacity: .78; } 45% { opacity: 1; } 47% { opacity: .82; } 49% { opacity: 1; } 70% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .enter::after { animation: none; opacity: .9; } }
/* The glow in three parts: a bright core on the screen itself, the wide cone into the room, and the spill on the keyboard. */
.enter::after {
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 129, .07) 0 1px, rgba(0, 255, 129, 0) 1px 4px),
    radial-gradient(ellipse 9% 24% at 6% 55%, rgba(120, 255, 190, .6) 0, rgba(0, 255, 129, .28) 55%, rgba(0, 255, 129, 0) 100%),
    radial-gradient(ellipse 24% 13% at 13% 87%, rgba(0, 255, 129, .34) 0, rgba(0, 255, 129, 0) 100%),
    radial-gradient(ellipse 48% 64% at 9% 54%, rgba(0, 255, 129, .42) 0, rgba(0, 255, 129, .2) 32%, rgba(0, 255, 129, .07) 58%, rgba(0, 255, 129, 0) 78%);
  -webkit-mask-image: radial-gradient(ellipse 58% 82% at 9% 60%, #000 0, #000 50%, transparent 86%);
  mask-image: radial-gradient(ellipse 58% 82% at 9% 60%, #000 0, #000 50%, transparent 86%); }
/* The film in block 2 sits a little higher in its frame, so the top bar of the screen (with Alve on it) stays in view during the zoom. */
@media (min-width: 901px) { .dark-first.has-film .df-film { object-position: 80% 50%; } }

/* ---------- Customer stories under the logo bar ----------
   A row of photo cards that slides slowly to the left; each card opens its customer story. It pauses under the pointer. */
.stories { margin: clamp(28px, 3.4vw, 48px) calc(-1 * var(--gutter)) 0; overflow: hidden; }
.stories-track { display: flex; width: max-content; }
.story-list { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.story-list li { flex: none; width: clamp(260px, 29vw, 420px); }
.story-list a { position: relative; display: block; aspect-ratio: 7 / 5; border-radius: 18px; overflow: hidden; background: #E3E5DC; color: var(--paper); text-decoration: none; }
.story-list img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-list a:hover img { transform: scale(1.04); }
.story-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 56px 18px 16px; background: linear-gradient(to top, rgba(9, 9, 8, .82) 0, rgba(9, 9, 8, .5) 50%, rgba(9, 9, 8, 0) 100%); }
.story-cap b { font-size: 1.0625rem; font-weight: 600; }
.story-cap span { font-size: .875rem; line-height: 1.35; color: rgba(245, 246, 240, .88); }
.story-list a:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; }
.story-list[aria-hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .story-list[aria-hidden] { display: flex; }
  .stories-track { animation: stories-slide 90s linear infinite; }
  .stories:hover .stories-track, .stories:focus-within .stories-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .stories { overflow-x: auto; } }
@keyframes stories-slide { to { transform: translateX(-50%); } }
/* The story cards a size smaller, and the row slides to the right: against the logos above it, which slide to the left. */
.story-list { gap: 12px; padding-right: 12px; }
.story-list li { width: clamp(190px, 20vw, 290px); }
.story-list a { border-radius: 14px; }
@media (prefers-reduced-motion: no-preference) { .stories-track { animation-direction: reverse; animation-duration: 110s; } }
@media (prefers-reduced-motion: no-preference) { .stories-track { animation-duration: 150s; } }

/* The story row without the logo bar above it: it can be scrolled or dragged sideways by hand; the script moves it slowly when left alone. */
.stories { margin-top: clamp(18px, 2vw, 28px); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.stories::-webkit-scrollbar { display: none; }
.stories.is-live { cursor: grab; }
.stories.is-live.is-drag { cursor: grabbing; user-select: none; }
.stories.is-live.is-drag a { pointer-events: none; }
.stories.is-live .stories-track { animation: none; }
.story-list img { -webkit-user-drag: none; user-select: none; }
.proof-bar .proof-top { margin-bottom: 0; }

/* The four industries as buttons next to the count; each opens its industry page. */
.proof-top { align-items: center; }
.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.sectors .eyebrow { margin: 0; white-space: nowrap; }
.sector-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sector-list a { display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid var(--rule-dark); border-radius: 999px; font-size: .875rem; font-weight: 500; line-height: 1.2; color: var(--night); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.sector-list a:hover { background: var(--night); border-color: var(--night); color: var(--paper); transform: translateY(-1px); }
/* The link to the dark-office page is off for now: that page does not exist yet. The markup stays, hidden. */
.df-more { display: none !important; }

/* Closing block flatter. The photo is cropped lower so the desk and the screen stay in view; the glow follows the screen. */
.enter { min-height: clamp(360px, 38vw, 560px); padding-block: clamp(56px, 6vw, 96px); background-position: center 72%; }
.enter::after {
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 129, .07) 0 1px, rgba(0, 255, 129, 0) 1px 4px),
    radial-gradient(ellipse 9% 30% at 6% 46%, rgba(120, 255, 190, .6) 0, rgba(0, 255, 129, .28) 55%, rgba(0, 255, 129, 0) 100%),
    radial-gradient(ellipse 24% 17% at 13% 91%, rgba(0, 255, 129, .34) 0, rgba(0, 255, 129, 0) 100%),
    radial-gradient(ellipse 48% 80% at 9% 47%, rgba(0, 255, 129, .42) 0, rgba(0, 255, 129, .2) 32%, rgba(0, 255, 129, .07) 58%, rgba(0, 255, 129, 0) 78%);
  -webkit-mask-image: radial-gradient(ellipse 58% 100% at 9% 56%, #000 0, #000 50%, transparent 86%);
  mask-image: radial-gradient(ellipse 58% 100% at 9% 56%, #000 0, #000 50%, transparent 86%); }

/* ---------- The configurator block ----------
   Light, right under Alve: the words on the left, a customer's own configurator on the right (the mirror of the Alve block). */
.config { display: grid; gap: clamp(32px, 4vw, 56px); padding: 0 var(--gutter) clamp(80px, 9vw, 136px); background: var(--paper); color: var(--night); --focus: var(--night); }
.config-head { display: grid; gap: 24px; align-content: center; }
.config h2 { max-width: 14em; font-size: clamp(1.75rem, 4.4vw, 48px); }
.config h2 em { color: #004B48; }
.config-copy { display: grid; justify-items: start; gap: 28px; }
.config-copy p { max-width: 34rem; color: rgba(9, 9, 8, .74); text-wrap: pretty; }
.config-screen { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #E8EAE2; border: 1px solid var(--rule-dark); box-shadow: 0 18px 48px -28px rgba(9, 9, 8, .35); }
.config-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .config { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; column-gap: clamp(48px, 7vw, 120px); }
  .config h2 { font-size: clamp(2.1rem, 3.2vw, 46px); }
}
/* The configurator block now sits above the dark-office block: a little less room under it, since the film follows. */
.config { padding-bottom: clamp(56px, 6vw, 96px); }

/* A small label above the Alve title that ties the block to the dark-office sentence before it. */
.alve-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 -8px; font-size: .9375rem; font-weight: 600; color: #004B48; }
.alve-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #00B95C; box-shadow: 0 0 0 4px rgba(0, 185, 92, .18); }
/* The story cards another size smaller. */
.story-list { gap: 10px; padding-right: 10px; }
.story-list li { width: clamp(150px, 16vw, 232px); }
.story-list a { border-radius: 12px; }
/* The screen recordings carry a dark line of one or two pixels on their right edge; the video is set a few pixels wider than its frame so that line falls outside it. */
.config-screen video { width: calc(100% + 8px); max-width: none; }
/* The team headline is two full sentences now: a size smaller, so the second sentence does not leave one word alone on a third line. */
#team-title { font-size: clamp(1.7rem, 3.5vw, 50px); line-height: 1.12; max-width: none; text-wrap: balance; }
/* The team headline is short again: back to its full size. */
#team-title { font-size: clamp(1.9rem, 4.2vw, 60px); line-height: 1.05; }
/* "Our people" in the same deep green as the dark-office words in the quote. */
#team-title .team-hl { color: #004B48; }

/* ---------- Type per the Elfsquad font package ----------
   Headings in Roobert (Bold for the large ones, SemiBold for the small ones), running text in Instrument Sans,
   accent words in Instrument Serif italic. */


h1, h2, h3, h4 { font-family: 'Roobert', 'Instrument Sans', sans-serif; }
h1, h2, .enter h2, #team-title, .config h2, .alve h2, .flow h2, .dark-first h2 { font-weight: 700; letter-spacing: -.025em; }
h3, h4, .reasons h3, .flow-card h4 { font-weight: 600; }
h1 em, h2 em { font-family: 'Instrument Serif', 'Instrument Sans', serif; font-weight: 400; letter-spacing: -.015em; }
/* The configurator headline is one word longer: a slightly wider text column and a size smaller, so it stays on three lines. */
@media (min-width: 1000px) { .config { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr); column-gap: clamp(40px, 5vw, 80px); } .config h2 { max-width: none; font-size: clamp(1.9rem, 2.65vw, 38px); } }

/* ---------- FAQ ----------
   In the light card under the team: the title on the left, five questions on the right that open one by one. */
.faq { display: grid; gap: clamp(24px, 3vw, 40px); padding: clamp(56px, 6vw, 96px) var(--gutter); border-top: 1px solid var(--rule-dark); color: var(--night); --focus: var(--night); }
.faq h2 { font-size: clamp(1.75rem, 3vw, 44px); line-height: 1.08; }
.faq h2 em { color: #004B48; }
.faq-list { border-bottom: 1px solid var(--rule-dark); }
.faq details { border-top: 1px solid var(--rule-dark); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; font-family: 'Roobert', 'Instrument Sans', sans-serif; font-size: 1.125rem; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.faq summary:focus-visible { outline: 2px solid var(--night); outline-offset: 4px; }
.faq details p { max-width: 44rem; margin: 0; padding: 0 40px 24px 0; color: rgba(9, 9, 8, .78); line-height: 1.6; text-wrap: pretty; }
@media (min-width: 1000px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: clamp(48px, 7vw, 120px); align-items: start; } }

/* The team row uses the full width; the link to the team page sits under it, on the left, below the Summit tile. */
.people-row { flex-direction: column; align-items: flex-start; gap: 18px; }
.people-row .people { flex: none; width: 100%; }
.people-more { max-width: none !important; white-space: nowrap !important; }

/* ---------- The closing film ----------
   The story as one film across the page. Lines stand bottom left; a small demo button stays top right while it plays.
   At the end the picture settles on the factory seen from the office, with the green glow, the invitation and the buttons. */
.ef { background: var(--night); color: var(--paper); --focus: var(--neon); }
.ef-stage { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: clamp(380px, 56.25vw, 86svh); background: #0A0F0E; }
.ef-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.ef-layer.on { opacity: 1; }
.ef-stage.is-playing img.ef-layer.on { animation: ef-drift 3.4s linear both; }
@keyframes ef-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.ef-stage::after { content: ''; position: absolute; z-index: 1; inset: 45% 0 0; background: linear-gradient(to top, rgba(4, 12, 11, .86) 0, rgba(4, 12, 11, .5) 45%, rgba(4, 12, 11, 0) 100%); pointer-events: none; transition: opacity .5s; }
.ef-stage.is-done::after { opacity: 0; }
.ef-end { background: var(--night) url("https://www.elfsquad.io/hubfs/AI%20new%20vision/Homepage%20new%20restyle/dark-office-2026.webp") center / cover no-repeat; }
.ef-end::before { content: ''; position: absolute; inset: 0; background: rgba(9, 9, 8, .5); }
.ef-end::after { content: ''; position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 129, .07) 0 1px, rgba(0, 255, 129, 0) 1px 4px),
    radial-gradient(ellipse 9% 24% at 6% 55%, rgba(120, 255, 190, .6) 0, rgba(0, 255, 129, .28) 55%, rgba(0, 255, 129, 0) 100%),
    radial-gradient(ellipse 24% 13% at 13% 87%, rgba(0, 255, 129, .34) 0, rgba(0, 255, 129, 0) 100%),
    radial-gradient(ellipse 48% 64% at 9% 54%, rgba(0, 255, 129, .42) 0, rgba(0, 255, 129, .2) 32%, rgba(0, 255, 129, .07) 58%, rgba(0, 255, 129, 0) 78%);
  -webkit-mask-image: radial-gradient(ellipse 58% 82% at 9% 60%, #000 0, #000 50%, transparent 86%);
  mask-image: radial-gradient(ellipse 58% 82% at 9% 60%, #000 0, #000 50%, transparent 86%);
  animation: enter-glow 5s ease-in-out infinite; }
.ef-words { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(26px, 4.4vw, 64px); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.ef-words.on { opacity: 1; transform: none; }
.ef-when { margin: 0 0 10px; font-family: var(--mono); font-size: clamp(.6875rem, 1vw, .875rem); letter-spacing: .02em; color: rgba(245, 246, 240, .82); }
.ef-line { margin: 0; font-family: 'Roobert', 'Instrument Sans', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 14px rgba(4, 12, 11, .6); }
.ef-line em { font-family: 'Instrument Serif', 'Instrument Sans', serif; font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -.01em; }
.ef-reply { margin: 12px 0 0; min-height: 1.5em; font-size: clamp(.9375rem, 1.5vw, 1.375rem); color: rgba(245, 246, 240, .9); }
.ef-cta { position: absolute; z-index: 3; right: var(--gutter); top: clamp(16px, 2.4vw, 32px); transition: opacity .4s, visibility 0s; }
.ef-stage.is-done .ef-cta { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.ef-final { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(24px, 3.5vh, 40px); padding: var(--gutter); text-align: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s ease .25s, transform .6s var(--ease) .25s, visibility 0s .85s; }
.ef-stage.is-done .ef-final { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .25s, transform .6s var(--ease) .25s, visibility 0s; }
.ef-final h2 { margin: 0; font-size: clamp(2.1rem, 6.4vw, 76px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; text-shadow: 0 2px 8px rgba(9, 9, 8, .85), 0 4px 24px rgba(9, 9, 8, .7); }
.ef-final .in-neon { color: var(--neon); }
.ef-final .actions { justify-content: center; }
.ef-final .text-link { color: var(--paper); text-shadow: 0 2px 8px rgba(9, 9, 8, .85); }
.ef-again { position: absolute; z-index: 4; right: var(--gutter); bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 10px; border: 1px solid rgba(245, 246, 240, .34); border-radius: 999px; background: rgba(0, 34, 31, .55); color: var(--paper); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.ef-stage.is-done .ef-again { opacity: .9; visibility: visible; transition: opacity .5s 1s; }
.ef-again:hover { opacity: 1; background: rgba(0, 34, 31, .8); }
.ef-again svg { width: 14px; height: 14px; }
.ef-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(245, 246, 240, .16); transition: opacity .5s; }
.ef-bar i { display: block; height: 100%; width: 0; background: var(--neon); }
.ef-stage.is-done .ef-bar { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ef-stage img.ef-layer.on, .ef-end::after { animation: none; } .ef-layer, .ef-words, .ef-final { transition: none; } }

/* The closing picture is the film's own last frame, so nothing jumps when the film stops: the picture stays,
   and only the dark veil, the glow and the words come in over it. */
.ef-end { background-image: url("https://www.elfsquad.io/hubfs/AI%20new%20vision/Homepage%20new%20restyle/dark-office-green.webp"); transition: none; }
.ef-end::before { background: rgba(4, 12, 11, .42); opacity: 0; transition: opacity 1.1s ease; }
.ef-end::after { opacity: 0; animation: none; transition: opacity 1.4s ease .3s; }
.ef-stage.is-done .ef-end::before { opacity: 1; }
.ef-stage.is-done .ef-end::after { opacity: 1; animation: enter-glow 5s ease-in-out 1.7s infinite; }
.ef-stage.is-done .ef-final { transition: opacity .9s ease .5s, transform .9s var(--ease) .5s, visibility 0s; }

.es-body { display: block; overflow-x: clip; }
section[id] { scroll-margin-top: 90px; }

.es-body { visibility: visible !important; }
