/* ============================================================
   STARSTRUCK LAB — home.css
   0  Opening animation     5  Services
   1  Hero                  6  Who we work with
   2  The problem + demo    7  Process
   3  The research          8  About
   4  The Journal           9  Contact   10  Final call   11  Floating offer
   ============================================================ */

/* ---------- 0  Opening animation ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  color: var(--ivory);
  background: radial-gradient(circle farthest-corner at 50% 48%, #870F39 0%, #800D35 36%, #59081D 100%);
}
.intro-on .intro { display: block; }
html.intro-on { overflow: hidden; }
.intro.is-open { background: none; pointer-events: none; }
.intro__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__line {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: miter; stroke-miterlimit: 4;
  vector-effect: non-scaling-stroke;
}
.intro__star { fill: currentColor; }
.intro [data-intro-logo],
.intro [data-intro-edge] { visibility: hidden; }
.intro-run .intro [data-intro-logo],
.intro-run .intro [data-intro-edge] { visibility: visible; }
.intro__word {
  position: absolute; left: 50%; top: 50%;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, 0);
  white-space: nowrap;
}
.intro__word .brand__name { font-size: clamp(1.25rem, 2vw, 1.625rem); }

/* While the opening plays, the hero's own eye stays hidden; the logo lands on it. */
.intro-on .observatory [data-eye] { visibility: hidden; }

/* ---------- 1  Hero ---------- */
.hero {
  display: grid;
  min-height: max(100svh, 700px);
  overflow: clip;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(46% 44% at 0% 100%, rgba(128, 13, 53, .34), rgba(128, 13, 53, 0) 72%);
}
.hero__figure::before {
  content: "";
  position: absolute; inset: -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(128, 13, 53, .82) 0%, rgba(128, 13, 53, .36) 42%, rgba(128, 13, 53, 0) 78%);
}
.hero__figure {
  position: absolute; z-index: 1;
  top: 50%;
  /* anchored to the frame, so the composition holds on very wide screens */
  right: calc(max(var(--edge), (100vw - var(--frame)) / 2) - 124px);
  width: min(66vw, 112vh, 950px);
  aspect-ratio: 1;
  transform: translateY(-54%);
  pointer-events: none;
}
.observatory { width: 100%; height: 100%; overflow: visible; color: var(--ivory); }
.orbit {
  fill: none;
  stroke: currentColor; stroke-opacity: .2; stroke-width: 1.3;
}
.orbit--dash {
  stroke-opacity: .34; stroke-dasharray: 2 10;
  transform-box: fill-box; transform-origin: center;
  animation: spin 160s linear infinite;
}
.orbit__dot { fill: currentColor; }
.observatory__orbits {
  transform-box: fill-box; transform-origin: center;
  transition: opacity 1.8s var(--ease-out) .25s, transform 2.4s var(--ease-out) .25s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__frame {
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
}
.hero__copy {
  align-self: center;
  max-width: 920px;
  padding-block: clamp(28px, 5vh, 64px) clamp(32px, 6vh, 72px);
}
.hero__title { margin-bottom: clamp(24px, 2.8vw, 40px); font-size: clamp(3rem, 8vw, 7.25rem); }
.hero__title .line { display: block; clip-path: inset(-.14em -.4em -.2em -.4em); }
.hero__title .line > span { display: block; transition: transform 1.35s var(--ease-out); }
.hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.hero__lead { max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }

.hero__base {
  display: grid; grid-template-columns: repeat(3, minmax(0, 280px));
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  border-top: 1px solid var(--rule);
}
.hero__base li { display: flex; gap: 14px; padding: 22px 28px 26px 0; }
.hero__base li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.hero__base .icon { width: 20px; height: 20px; margin-top: 1px; }
.hero__base b { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; }
.hero__base span { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.45; color: var(--mist); }

/* Entrance: one orchestrated moment, released when the eye has opened. */
.hero [data-enter] { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.hero [data-enter="1"] { transition-delay: 0s; }
.hero [data-enter="3"] { transition-delay: .32s; }
.hero [data-enter="4"] { transition-delay: .42s; }
.hero [data-enter="5"] { transition-delay: .58s; }
.js:not(.is-ready) .hero [data-enter] { opacity: 0; transform: translateY(16px); }
.js:not(.is-ready) .hero__title .line > span { transform: translateY(125%); }
.js:not(.is-ready) .observatory__orbits { opacity: 0; transform: scale(.9) rotate(-8deg); }
.js:not(.is-ready) .page-home .nav { opacity: 0; transform: translateY(-14px); }

@media (max-width: 1100px) {
  .hero__figure { width: min(84vw, 760px); right: -20vw; top: 44%; opacity: .85; }
}
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero__glow { background: radial-gradient(70% 30% at 0% 100%, rgba(128, 13, 53, .3), rgba(128, 13, 53, 0) 72%); }
  .hero__figure {
    top: 0; left: 50%; right: auto;
    width: 118vw; opacity: 1;
    transform: translate(-50%, -16%);
  }
  .hero__frame { padding-top: 0; }
  .hero__copy { padding-top: calc(68vw + 12px); padding-bottom: 40px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__base { grid-template-columns: minmax(0, 1fr); }
  .hero__base li { padding: 16px 0; }
  .hero__base li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- 2  The problem + demo ---------- */
.problem__grid {
  --stage: clamp(340px, min(44vw, (100vh - 196px) * .8), 620px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stage);
  grid-template-areas: "intro stage" "controls stage" "outro stage";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(40px, 6.4vw, 112px);
  align-items: start;
}
@supports (height: 100svh) {
  .problem__grid { --stage: clamp(340px, min(44vw, (100svh - 196px) * .8), 620px); }
}
.problem__intro { grid-area: intro; }
.problem__intro .h2 { margin-bottom: clamp(24px, 2.6vw, 36px); }
.signals {
  max-width: 17em;
  margin-top: clamp(24px, 2.6vw, 36px);
  font-size: clamp(1.375rem, 2.15vw, 1.9375rem); font-weight: 300; line-height: 1.18; letter-spacing: -.034em;
  text-wrap: balance;
}
.problem__outro { grid-area: outro; margin-top: clamp(40px, 4.6vw, 68px); }
.problem__turn {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.3vw, 2.125rem); font-weight: 300; line-height: 1.12; letter-spacing: -.038em;
  color: var(--accent);
}
.problem__close { max-width: 31em; font-size: 1.0625rem; color: var(--fg-2); }

/* The stage: one picture that stays in view while the signals are flipped. */
.lab { grid-area: stage; position: sticky; top: 104px; }
.lab .figcap { padding-top: 14px; }

/* The specimen: a first impression for the fictional brand "exemplar".
   Two screens are stacked; the next state is painted on the hidden one and
   wiped in behind a scan line. */
.specimen {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: #2A0A14;
  container-type: inline-size;
  isolation: isolate;
}
.screen { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.screen.is-back { z-index: 0; visibility: hidden; }
.screen.is-top { z-index: 2; visibility: visible; }
/* film grain over the picture, so it sits in the page like a photograph */
.screen::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background-image: var(--grain);
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.specimen__scan {
  position: absolute; top: 0; bottom: 0; left: -1px; z-index: 3;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95) 16%, rgba(255, 255, 255, .95) 84%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 24px 6px rgba(255, 255, 255, .34);
  opacity: 0;
  pointer-events: none;
}

/* signal: color = which picture */
.screen__photo { position: absolute; inset: 0; z-index: 0; transform-origin: 0 0; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen[data-color="a"] .shot--b, .screen[data-color="b"] .shot--a { opacity: 0; }
.screen[data-color="a"] { --sp-fg: #FFFFFF; --sp-accent: #FFD60A; --sp-on-accent: #D4141F; --sp-band: #FFD60A; --sp-on-band: #06206E; --sp-shadow: rgba(4, 22, 92, .5); }
.screen[data-color="b"] { --sp-fg: #F5F2ED; --sp-accent: #F5F2ED; --sp-on-accent: #5E0B26; --sp-band: #F5F2ED; --sp-on-band: #5E0B26; --sp-shadow: rgba(30, 2, 10, .5); }
/* the label on the bottle is re-rendered for the two crossed states and laid over the picture */
.relabel { position: absolute; left: 43%; top: 56.2%; width: 13.9375%; height: 23.25%; opacity: 0; }
.screen[data-color="a"][data-type="b"] .relabel--ab,
.screen[data-color="b"][data-type="a"] .relabel--ba { opacity: 1; }

/* signal: positioning = what it says, and to whom */
.screen__copy { position: absolute; inset: 0; z-index: 1; color: var(--sp-fg); }
.screen__copy p { margin: 0; }
.screen [data-b] { display: none; }
.screen[data-position="b"] [data-a] { display: none; }
.screen[data-position="b"] [data-b] { display: inline; }

/* signal: composition, crowded = everything centred, product small */
.screen[data-layout="a"] .screen__copy {
  display: grid; grid-template-rows: auto auto 1fr auto;
  justify-items: center; align-content: start;
  gap: 2.2cqw;
  padding-top: 15.5cqw;
  text-align: center;
}
.screen[data-layout="a"] .sp-line { max-width: 86cqw; }
.screen[data-layout="a"] .sp-badge {
  position: absolute; top: 1.6cqw; right: 1.6cqw;
  display: grid; place-items: center;
  width: 23cqw; aspect-ratio: 1; padding: 4.2cqw;
  background: var(--sp-accent); color: var(--sp-on-accent);
  clip-path: polygon(50% 0, 58% 12%, 71% 5%, 74% 19%, 89% 17%, 86% 32%, 100% 37%, 91% 49%, 100% 62%, 87% 67%, 90% 82%, 75% 81%, 72% 95%, 59% 88%, 50% 100%, 41% 88%, 28% 95%, 25% 81%, 10% 82%, 13% 67%, 0 62%, 9% 49%, 0 37%, 14% 32%, 11% 17%, 26% 19%, 29% 5%, 42% 12%);
  transform: rotate(11deg);
}
.screen[data-layout="a"] .sp-claims {
  grid-row: 4; justify-self: stretch;
  padding: 2.5cqw 3cqw 2.7cqw;
  background: var(--sp-band); color: var(--sp-on-band);
}

/* composed = the camera moves in, the words take one corner each */
.screen[data-layout="b"] .screen__photo {
  --z: 1.42; --x: .158; --y: .242;
  transform: translate(calc(var(--x) * var(--z) * -100%), calc(var(--y) * var(--z) * -100%)) scale(var(--z));
}
.screen[data-layout="b"] .sp-name { position: absolute; left: 6.2cqw; top: 5.4cqw; }
.screen[data-layout="b"] .sp-line { position: absolute; left: 6.2cqw; top: 17.5cqw; max-width: 58cqw; }
.screen[data-layout="b"] .sp-badge {
  position: absolute; right: 6.2cqw; top: 6.6cqw;
  padding: .9cqw 2.2cqw 1cqw;
  border-radius: 99cqw;
}
.screen[data-layout="b"] .sp-claims { position: absolute; left: 6.2cqw; bottom: 5.8cqw; max-width: 60cqw; }

/* signal: typography, generic = heavy caps that shout */
.screen[data-type="a"] .sp-name {
  font: 900 12cqw/.9 "Arial Black", "Arial Bold", Arial, sans-serif;
  letter-spacing: -.03em; text-transform: uppercase;
  text-shadow: 0 .75cqw 0 var(--sp-shadow);
}
.screen[data-type="a"] .sp-line { font: 700 5.5cqw/1.06 Arial, Helvetica, sans-serif; text-transform: uppercase; text-shadow: 0 .35cqw 0 var(--sp-shadow); }
.screen[data-type="a"] .sp-claims { font: 700 max(2.75cqw, 9px)/1.2 Arial, Helvetica, sans-serif; text-transform: uppercase; }
.screen[data-type="a"] .sp-badge { font: 900 3.2cqw/.98 "Arial Black", "Arial Bold", Arial, sans-serif; text-transform: uppercase; }
.screen[data-type="a"][data-layout="b"] .sp-name { font-size: 8.4cqw; }
.screen[data-type="a"][data-layout="b"] .sp-line { top: 16cqw; font-size: 5cqw; }
.screen[data-type="a"][data-layout="b"] .sp-badge { font-size: max(2.3cqw, 9px); padding-block: 1.3cqw; background: var(--sp-accent); color: var(--sp-on-accent); }
.screen[data-type="a"][data-layout="b"] .sp-claims { text-shadow: 0 .3cqw 0 var(--sp-shadow); }

/* distinctive = exemplar's own typeface, Tenor Sans, for every word it says */
.screen[data-type="b"] .screen__copy { font-family: var(--exemplar); }
.screen[data-type="b"] .sp-name { font: 400 11.2cqw/.92 var(--exemplar); letter-spacing: .004em; }
.screen[data-type="b"] .sp-line { font: 400 5.1cqw/1.12 var(--exemplar); letter-spacing: -.012em; }
.screen[data-type="b"] .sp-claims { font: 400 max(2.5cqw, 10px)/1.3 var(--exemplar); letter-spacing: .03em; }
.screen[data-type="b"] .sp-badge { font: 400 max(2.25cqw, 9.5px)/1.25 var(--exemplar); letter-spacing: .06em; }
.screen[data-type="b"][data-layout="a"] .sp-badge { font-size: 2.55cqw; line-height: 1.12; letter-spacing: .02em; }
.screen[data-type="b"][data-layout="b"] .sp-name { font-size: 7.4cqw; }
.screen[data-type="b"][data-layout="b"] .sp-line { top: 17cqw; }
.screen[data-type="b"][data-layout="b"] .sp-badge { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sp-fg) 55%, transparent); }
.screen[data-type="b"][data-layout="b"] .sp-claims { opacity: .9; }

/* The four signals, as rows in the copy column. */
.lab__controls { grid-area: controls; margin-top: clamp(32px, 3.4vw, 48px); }
.lab__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.lab__reset {
  display: inline-flex; align-items: center; gap: 7px;
  margin-right: -10px; padding: 6px 10px; border: 0; border-radius: 999px;
  background: none; color: var(--fg-2);
  font-size: .8125rem; font-weight: 600;
  transition: color .2s;
}
.lab__reset:hover { color: var(--fg); }
.lab__reset svg { width: 14px; height: 14px; }
.lab__switches { border-top: 1px solid var(--rule); }
.switch {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center;
  gap: 2px clamp(12px, 1.6vw, 22px);
  width: 100%; padding: 12px 0 13px;
  border: 0; border-bottom: 1px solid var(--rule);
  background: none; color: inherit; text-align: left;
}
.switch__name { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 300; line-height: 1.1; letter-spacing: -.038em; }
.switch__read { font-size: .875rem; line-height: 1.3; color: var(--fg-2); text-align: right; transition: color .3s; }
.switch[aria-checked="true"] .switch__read { color: var(--accent); }
.switch__track {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.switch__thumb {
  position: absolute; top: 4px; left: 4px;
  width: 18px; height: 18px;
  background: var(--ink);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
  transition: transform .6s var(--ease-out), background-color .4s;
}
@media (hover: hover) { .switch:hover .switch__track { box-shadow: inset 0 0 0 1px var(--fg); } }
.switch[aria-checked="true"] .switch__track { background: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(20px) rotate(180deg); background: var(--ivory); }
/* without JavaScript the picture stays on its final state and the switches are not shown */
html:not(.js) .lab__controls { display: none; }

@media (max-width: 980px) {
  .problem__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stage" "controls" "outro"; grid-template-rows: none; }
  .lab { position: static; width: min(100%, 640px); margin-top: clamp(36px, 6vw, 56px); }
  .lab__controls { margin-top: 28px; max-width: 640px; }
}
@media (max-width: 520px) {
  .lab__switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .switch { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0 13px; }
  .switch__name { font-size: 1.1875rem; font-weight: 400; letter-spacing: -.025em; }
  .switch__read { grid-row: 2; grid-column: 1 / -1; text-align: left; font-size: .8125rem; }
  .switch__track { grid-row: 1; grid-column: 2; transform: scale(.87); transform-origin: 100% 50%; }
}

/* ---------- 2b  Same formula, two identities ---------- */
.identity .frame { border-top: 1px solid var(--rule); }
.identity__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 4.4vw, 64px);
}

/* the two portraits meet edge to edge; the seam between them runs on down the sheet */
.duo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.duo__side { position: relative; aspect-ratio: 8 / 9; max-height: min(84vh, 760px); background: #1B0A10; }
.duo__side--a { background: #1D4FE0; }
.duo__side img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo__side figcaption {
  position: absolute; left: clamp(12px, 1.6vw, 22px); top: clamp(12px, 1.6vw, 22px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 15px 5px 5px;
  border-radius: 999px;
  background: rgba(23, 20, 23, .62); color: var(--ivory);
  font-size: .875rem; font-weight: 600; line-height: 1; letter-spacing: -.01em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.duo__side figcaption b {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ivory); color: var(--ink);
  font-size: .6875rem; font-weight: 700;
}

.sheet { border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 10px 10px; background: var(--white); }
.sheet__row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: linear-gradient(var(--rule), var(--rule)) 50% 0 / 1px 100% no-repeat;   /* the seam between A and B */
}
.sheet__row + .sheet__row { border-top: 1px solid var(--rule); }
.sheet__key { grid-column: 1 / -1; padding: 16px clamp(16px, 2vw, 28px) 0; }
.sheet__cell {
  display: flex; align-items: center; min-height: 92px;
  padding: 12px clamp(16px, 2vw, 28px) 22px;
}
.sheet__key + .sheet__cell { margin-top: 0; }
.sheet__cell--split { gap: clamp(14px, 1.8vw, 26px); }
.sheet__mark--a {
  font: 900 clamp(1.75rem, 3.9vw, 3.5rem)/.9 "Arial Black", "Arial Bold", Arial, sans-serif;
  letter-spacing: -.03em; text-transform: uppercase;
  color: #1257F0; text-shadow: 0 .06em 0 #FFCF0A;
}
.sheet__mark--b { font: 400 clamp(1.875rem, 4.3vw, 3.875rem)/1 var(--exemplar); letter-spacing: .004em; color: #6E0F2E; }
.sheet__aa { flex: none; width: 1.7em; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1; }
.sheet__aa--a { font-family: "Arial Black", "Arial Bold", Arial, sans-serif; font-weight: 900; letter-spacing: -.04em; }
.sheet__aa--b { font-family: var(--exemplar); }
.sheet__note { max-width: 24em; font-size: .9375rem; line-height: 1.45; color: var(--fg-2); }
.sheet__note b { display: block; font-weight: 600; color: var(--fg); }
.sheet__note--lg { max-width: 20em; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.3; letter-spacing: -.02em; color: var(--fg); }
.sheet__chips { display: flex; flex: none; }
.sheet__chips i {
  width: clamp(30px, 3.2vw, 42px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--white), inset 0 0 0 1px rgba(23, 20, 23, .1);
}
.sheet__chips i + i { margin-left: -9px; }
.sheet__voice { max-width: 17em; }
.sheet__voice--a { font: 700 clamp(1rem, 1.5vw, 1.25rem)/1.15 Arial, Helvetica, sans-serif; text-transform: uppercase; }
.sheet__voice--b { font: 400 clamp(1.1875rem, 1.9vw, 1.625rem)/1.2 var(--exemplar); letter-spacing: -.008em; color: #6E0F2E; }

/* What each one makes you feel: two marks on one scale per row. */
.feel {
  margin-top: clamp(40px, 5vw, 72px);
}
.feel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-bottom: 18px; }
.feel__key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; font-weight: 500; color: var(--fg-2); }
.feel__key span { display: inline-flex; align-items: center; gap: 8px; }
.feel__dot {
  display: grid; place-items: center;
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  font-size: .6875rem; font-weight: 700; line-height: 1;
}
.feel__dot--a { background: #1257F0; color: #FFFFFF; }
.feel__dot--b { background: var(--burgundy); color: var(--ivory); }
.feel__rows { border-bottom: 1px solid var(--rule); }
.feel__rows li {
  display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) minmax(0, 9.5em);
  align-items: center; gap: clamp(16px, 2.4vw, 36px);
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.feel__pole { font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.2; letter-spacing: -.022em; }
.feel__pole:first-child { text-align: right; color: var(--fg-2); }
.feel__track { position: relative; height: 26px; margin-inline: 13px; }
.feel__track::before {
  content: "";
  position: absolute; left: -13px; right: -13px; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px 8px);
}
.feel__link {
  position: absolute; top: calc(50% - 1px);
  left: calc(min(var(--a), var(--b)) * 100%);
  width: calc((max(var(--a), var(--b)) - min(var(--a), var(--b))) * 100%);
  height: 2px;
  background: var(--fg);
  opacity: .22;
  transition: left 1.3s var(--ease-out), width 1.3s var(--ease-out);
}
.feel__track .feel__dot {
  position: absolute; top: 0;
  transform: translateX(-50%);
  transition: left 1.3s var(--ease-out);
}
.feel__track .feel__dot--a { left: calc(var(--a) * 100%); }
.feel__track .feel__dot--b { left: calc(var(--b) * 100%); }
/* until the chart scrolls into view both marks rest in the middle, then move apart */
@media (prefers-reduced-motion: no-preference) {
  .js .feel:not(.is-in) .feel__track .feel__dot { left: 50%; }
  .js .feel:not(.is-in) .feel__link { left: 50%; width: 0; }
}
.feel__rows li:nth-child(2) * { transition-delay: .06s; }
.feel__rows li:nth-child(3) * { transition-delay: .12s; }
.feel__rows li:nth-child(4) * { transition-delay: .18s; }
.feel__rows li:nth-child(5) * { transition-delay: .24s; }
.feel__rows li:nth-child(6) * { transition-delay: .3s; }
.feel .figcap { padding-top: 14px; }
.identity__turn {
  margin-top: clamp(40px, 5vw, 72px);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: 300; line-height: 1.06; letter-spacing: -.042em;
  text-wrap: balance;
}
.identity__turn em { display: block; }

@media (max-width: 860px) {
  .identity__head { grid-template-columns: minmax(0, 1fr); }
  .sheet__cell--split { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 700px) {
  .duo__side { aspect-ratio: 3 / 4; }
  .duo__side figcaption { padding-right: 11px; font-size: .75rem; gap: 7px; }
  .duo__side figcaption b { width: 20px; height: 20px; }
  .sheet__cell { min-height: 0; padding: 10px 14px 18px; }
  .sheet__key { padding: 14px 14px 0; }
  .sheet__note { font-size: .875rem; }
  .feel__rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 13px 0 15px; }
  .feel__pole:first-child { text-align: left; }
  .feel__pole:nth-child(3) { grid-row: 1; grid-column: 2; text-align: right; }
  .feel__track { grid-row: 2; grid-column: 1 / -1; }
}

/* ---------- 3  The research ---------- */
.science .frame { border-top: 1px solid var(--rule); }
.science__head { display: grid; gap: 22px; max-width: 1040px; margin-bottom: clamp(36px, 4.4vw, 64px); }

.first {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

/* One second, in real time: an instrument, so it is the one dark object on the plate. */
.clock {
  --p: 0;
  display: grid; gap: clamp(20px, 2.3vw, 30px); align-content: start;
  padding: clamp(20px, 2.4vw, 34px);
  border-radius: 10px;
}
.clock__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.clock__read {
  font-size: clamp(1.875rem, 3.2vw, 2.875rem); font-weight: 200; line-height: 1; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.clock__read span { display: inline-block; min-width: 2.5ch; text-align: right; }
.clock__stage {
  display: grid; grid-template-columns: clamp(88px, 9.6vw, 136px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px); align-items: center;
  padding-right: 8px;
}
.clock__view {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.clock__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.clock__view img.is-on, .clock.is-done .clock__view img { opacity: 1; }
.clock__hint { padding: 4px; font-size: .6875rem; line-height: 1.32; text-align: center; color: var(--fg-2); }

.clock__ruler { position: relative; height: 104px; }
.clock__ticks {
  position: absolute; left: 0; right: 0; top: 44px; height: 20px;
  border-top: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong);
  color: var(--rule-strong);
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 25%) 0 0 / 100% 20px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 5%) 0 0 / 100% 9px no-repeat;
}
.clock__fill {
  position: absolute; left: 0; top: 43px;
  width: calc(var(--p) * 100%); height: 3px;
  background: var(--ivory);
}
.clock__head {
  position: absolute; left: calc(var(--p) * 100%); top: 4px;
  width: 1px; height: 62px;
  background: var(--ivory);
  opacity: 0;
}
.clock__head::before {
  content: "";
  position: absolute; left: -7px; top: -8px;
  width: 15px; height: 15px;
  background: var(--ivory);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
}
.clock.is-running .clock__head { opacity: 1; }
.clock__pin {
  position: absolute; left: calc(var(--at) * 100%); top: 6px;
  display: grid; justify-items: center;
  transform: translateX(-50%);
}
.clock__pin b {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ivory); color: var(--ink);
  font-size: .75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.clock__pin::after { content: ""; width: 1px; height: 16px; background: var(--ivory); transition: opacity .2s; }
.clock__scale { position: absolute; left: 0; right: 0; top: 74px; height: 20px; font-size: .6875rem; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.clock__scale i { position: absolute; top: 0; font-style: normal; white-space: nowrap; transform: translateX(-50%); }
.clock__scale i:nth-child(1) { left: 0; transform: none; }
.clock__scale i:nth-child(2) { left: 25%; }
.clock__scale i:nth-child(3) { left: 50%; }
.clock__scale i:nth-child(4) { left: 75%; }
.clock__scale i:nth-child(5) { left: auto; right: 0; transform: none; }

.clock__notes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  counter-reset: note;
}
.clock__notes li {
  display: grid; gap: 6px; align-content: start;
  padding: 16px 18px 2px 0;
  counter-increment: note;
  transition: opacity .25s;
}
.clock__notes li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.clock__notes b { display: flex; align-items: center; gap: 9px; font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.clock__notes b::before {
  content: counter(note);
  display: grid; place-items: center;
  width: 19px; height: 19px; flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: .6875rem; font-weight: 700; letter-spacing: 0;
}
.clock__notes span { font-size: .9375rem; line-height: 1.42; }
.clock__notes small { font-size: .75rem; line-height: 1.4; color: var(--fg-2); }
/* while a run is in progress, only what has already happened is lit */
.clock.is-running .clock__notes li:not(.is-hit) { opacity: .34; }
.clock.is-running .clock__pin:not(.is-hit) b { background: transparent; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.clock.is-running .clock__pin:not(.is-hit)::after { opacity: .4; }

.clock__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.clock .btn:hover .btn__ico svg { animation: none; }   /* a play icon stays put; only the arrows fly */
.clock__slow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 2px; border: 0; background: none; color: var(--fg-2);
  font-size: .875rem; font-weight: 600;
  transition: color .2s;
}
.clock__slow:hover { color: var(--fg); }
.clock__slow svg { width: 15px; height: 15px; }
.clock__cap { display: grid; gap: 4px; padding-top: 4px; }
.clock__cap .src { margin-top: 2px; padding-top: 8px; }

/* A finding: a small figure, one sentence, and the paper in full. */
.finding {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; align-content: start;
  padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2.2vw, 32px) clamp(20px, 2.2vw, 28px) var(--pad);
}
.finding__fig {
  display: grid; place-items: center;
  margin-bottom: 8px; padding: 14px 12px 12px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.fig {
  display: block; width: 100%; height: auto; max-width: 420px;
  color: var(--fg);
  fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.fig .ac { fill: var(--accent); stroke: none; }
.fig .acs { stroke: var(--accent); }
.fig .mu { opacity: .36; }
.fig .mu-fill { fill: currentColor; stroke: none; opacity: .18; }
.fig .solid { fill: currentColor; stroke: none; opacity: .7; }
.fig .tint { fill: var(--accent); stroke: none; opacity: .2; }
.fig text { fill: var(--fg-2); stroke: none; font-size: 8.6px; font-weight: 500; }
.fig text.t-ac { fill: var(--accent); font-weight: 600; }
.fig text.t-big { font-size: 26px; font-weight: 300; letter-spacing: -.055em; }
.fig text.t-note { font-size: 7px; }
.finding p:not(.src) { max-width: 32em; font-size: 1rem; line-height: 1.5; }
.src {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: .8125rem; line-height: 1.5; color: var(--fg-2);
}
.src b { font-weight: 600; color: var(--fg); }
.src__link {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 2px;
  font-weight: 600; color: var(--fg); white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.src__link:hover { text-decoration-color: currentColor; }
.src__link svg { width: 13px; height: 13px; }
.finding--solo {
  padding: clamp(18px, 2vw, 26px);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.finding--solo .finding__fig { background: none; box-shadow: none; margin-bottom: 14px; padding: 4px 0 22px; border-bottom: 1px solid var(--rule); border-radius: 0; }
.finding--solo .fig { max-width: 340px; }
.finding--solo .fig text { font-size: 9.4px; }
.finding--solo .fig text.t-big { font-size: 34px; }

.science__more { display: grid; gap: 8px; margin-top: clamp(56px, 7vw, 104px); }
.science__more p { color: var(--fg-2); }

.tabs { margin-top: clamp(20px, 2.4vw, 30px); }
.tabs__list {
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  padding: 10px 20px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--fg-2);
  font-size: .9375rem; font-weight: 500; letter-spacing: -.012em; white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.tabs__tab:hover { color: var(--fg); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: var(--ivory); }
.tabs__panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(22px, 2.6vw, 34px) calc(var(--pad) * -1) 0;
  border-block: 1px solid var(--rule);
}
.tabs__panel[hidden] { display: none; }
.js .tabs:not(.is-live) .tabs__panel ~ .tabs__panel { display: none; }
.tabs__list { display: none; }
.js .tabs__list { display: inline-flex; }
.tabs__panel:focus-visible { outline-offset: -3px; }
.tabs__panel .finding + .finding { border-left: 1px solid var(--rule); }
.tabs__panel.is-entering .finding { animation: finding-in .7s var(--ease-out) both; }
.tabs__panel.is-entering .finding:nth-child(2) { animation-delay: .06s; }
.tabs__panel.is-entering .finding:nth-child(3) { animation-delay: .12s; }
@keyframes finding-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1080px) {
  .first { grid-template-columns: minmax(0, 1fr); }
  .finding--solo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr auto; column-gap: clamp(18px, 3vw, 36px); }
  .finding--solo .finding__fig { grid-row: 1 / -1; align-self: center; border-bottom: 0; margin: 0; padding: 0; }
}
@media (max-width: 860px) {
  .tabs__panel { grid-template-columns: minmax(0, 1fr); }
  .tabs__panel .finding + .finding { border-left: 0; border-top: 1px solid var(--rule); }
  .tabs__list { margin-inline: calc(var(--pad) * -1 + 8px); max-width: calc(100% + var(--pad) * 2 - 16px); }
  .finding__fig svg { max-width: 360px; }
}
@media (max-width: 700px) {
  .clock__stage { grid-template-columns: minmax(0, 1fr); }
  /* on a phone the picture sits in the top corner, next to the counter */
  .clock__view { position: absolute; top: 18px; right: 18px; width: 60px; }
  .clock__hint { font-size: .5rem; padding: 2px; }
  .clock__bar { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 76px; padding-right: 76px; }
  .clock__read span { min-width: 0; }
  .clock__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock__notes li { padding: 14px 12px 12px 0; }
  .clock__notes li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .clock__notes li:nth-child(even) { padding-left: 14px; }
  .clock__notes li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .clock__pin b { width: 15px; height: 15px; font-size: .5625rem; }
  .clock__pin { top: 13px; }
  .finding--solo { grid-template-columns: minmax(0, 1fr); }
  .finding--solo .finding__fig { grid-row: auto; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .finding--solo .fig { max-width: 250px; }
}

/* ---------- 4  The Journal ---------- */
.journal__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(44px, 5.4vw, 80px);
}

.cases {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  padding-bottom: clamp(24px, 4vw, 64px);
}
.cases li:nth-child(3n + 2) { transform: translateY(clamp(24px, 4vw, 64px)); }
.case {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 14px; align-items: end;
  color: var(--ivory);
  text-decoration: none;
  --focus: var(--ivory);
}
/* The covers are 9:16 reel covers. The frame shows the part that carries the
   name and the line, so nothing important is cut. */
.case__frame {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: #E6E7EC;
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease-out), box-shadow .6s var(--ease-out);
}
/* On hover the cover behaves like a pane of glass: a band of light crosses it once,
   a softer glare sits under the pointer, and the pane leans a few degrees toward it.
   The lean and the glare position come from js/home.js (--rx, --ry, --gx, --gy). */
.case__frame::before,
.case__frame::after {
  content: "";
  position: absolute; z-index: 2;
  pointer-events: none;
}
.case__frame::before {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--gx, 28%) var(--gy, 14%), rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, .16) 26%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(128deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 40%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .85);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.case__frame::after {
  inset: -10% -60%;
  background: linear-gradient(112deg,
    rgba(255, 255, 255, 0) 44%,
    rgba(23, 20, 23, .07) 46.2%,
    rgba(255, 255, 255, .46) 47.6%,
    rgba(255, 255, 255, .9) 49%,
    rgba(255, 255, 255, .4) 50.6%,
    rgba(23, 20, 23, .05) 52%,
    rgba(255, 255, 255, 0) 53.6%,
    rgba(255, 255, 255, .28) 55%,
    rgba(255, 255, 255, 0) 56.3%);
  transform: translateX(-46%);
  opacity: 0;
}
.case__cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  transition: transform 1.4s var(--ease-out);
}
.case__text { display: grid; gap: 4px; min-width: 0; }
.case__name { font-size: clamp(1.3125rem, 1.8vw, 1.5625rem); font-weight: 500; line-height: 1.1; letter-spacing: -.032em; color: var(--ivory); }
.case__topic { font-size: .9375rem; font-weight: 500; line-height: 1.3; letter-spacing: -.012em; color: var(--fg-2); }
.case__go {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 2px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .6s var(--ease-out);
}
.case__go svg { width: 17px; height: 17px; }
@media (hover: hover) {
  .case:hover .case__cover { transform: scale(1.04); }
  .case:hover .case__go { background: var(--ivory); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ivory); transform: rotate(45deg); }
  .case:hover .case__frame { box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .85); transition-duration: .22s, .6s; }
  .case:hover .case__frame::before { opacity: 1; }
  /* the band only animates on the way in; when the pointer leaves it is simply gone */
  .case:hover .case__frame::after { transform: translateX(46%); opacity: 1; transition: transform 1.05s cubic-bezier(.36, .08, .3, 1), opacity .12s; }
}
.case:focus-visible .case__go { background: var(--ivory); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ivory); }
.case:focus-visible .case__frame::before, .case:active .case__frame::before { opacity: 1; }
.case:focus-visible .case__frame::after, .case:active .case__frame::after { transform: translateX(46%); opacity: 1; transition: transform 1.05s cubic-bezier(.36, .08, .3, 1), opacity .12s; }
@media (prefers-reduced-motion: reduce) {
  .case__frame { transform: none; }
  .case__frame::after { display: none; }
}

.journal__note { max-width: 46em; margin-top: clamp(40px, 5vw, 72px); font-size: .875rem; line-height: 1.5; color: var(--fg-2); }
.journal__note b { font-weight: 600; color: var(--fg); }
.journal__bridge {
  margin: clamp(56px, 8vw, 128px) calc(var(--pad) * -1) 0;
  padding: clamp(28px, 3.6vw, 52px) var(--pad) 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(2.25rem, 6.4vw, 6.25rem); font-weight: 300; line-height: 1; letter-spacing: -.048em;
}
.journal__bridge em { white-space: nowrap; }
.journal .frame--section { padding-bottom: clamp(64px, 8vw, 120px); }

@media (max-width: 1000px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases li:nth-child(3n + 2) { transform: none; }
  .cases li:nth-child(even) { transform: translateY(clamp(24px, 4vw, 48px)); }
}
@media (max-width: 860px) {
  .journal__head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cases {
    display: flex; gap: 12px;
    margin-inline: calc(var(--pad) * -1);
    padding: 0 var(--pad) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .cases::-webkit-scrollbar { display: none; }
  .cases li { flex: 0 0 76vw; min-width: 0; scroll-snap-align: start; }
  .cases li:nth-child(3n + 2), .cases li:nth-child(even) { transform: none; }
}

/* ---------- 5  Services ---------- */
.services__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.services__list { margin-inline: calc(var(--pad) * -1); border-top: 1px solid var(--rule); }
.service { border-bottom: 1px solid var(--rule); transition: background-color .5s var(--ease-out); }
.service.is-open { background: color-mix(in srgb, var(--white) 62%, transparent); }
.service__head button {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 44px;
  align-items: center; gap: 16px;
  width: 100%;
  padding: clamp(20px, 2.3vw, 30px) var(--pad);
  border: 0; background: none; text-align: left;
}
.service__head button:focus-visible { outline-offset: -4px; }
.service__no { font-size: .875rem; font-weight: 600; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.service__name {
  font-size: clamp(1.5rem, 3.1vw, 2.875rem); font-weight: 300; line-height: 1.04; letter-spacing: -.042em;
  transition: transform .7s var(--ease-out);
}
.service__price {
  display: flex; align-items: baseline; gap: 8px;
  padding-right: clamp(0px, 2vw, 28px);
  font-size: clamp(1.25rem, 2.1vw, 1.875rem); font-weight: 300; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.service__price small { font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--fg-2); }
.service__toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), transform .7s var(--ease-out), box-shadow .4s;
}
.service__toggle svg { width: 18px; height: 18px; }
.service.is-open .service__toggle { background: var(--burgundy); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--burgundy); transform: rotate(135deg); }
@media (hover: hover) {
  .service:not(.is-open) .service__head button:hover .service__name { transform: translateX(10px); }
  .service:not(.is-open) .service__head button:hover .service__toggle { box-shadow: inset 0 0 0 1px var(--fg); }
}

.service__body { display: grid; grid-template-rows: 1fr; }
.js .service__body { grid-template-rows: 0fr; transition: grid-template-rows .75s var(--ease-out); }
.js .service.is-open .service__body { grid-template-rows: 1fr; }
.service__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0 clamp(24px, 5vw, 88px);
  min-height: 0; overflow: hidden;
  padding-left: calc(var(--pad) + 80px); padding-right: var(--pad);
}
.js .service:not(.is-open) .service__inner { visibility: hidden; transition: visibility 0s .75s; }
.service__about, .service__deliver { padding-bottom: clamp(30px, 3.6vw, 52px); }
.service__about { display: grid; gap: 18px; align-content: start; justify-items: start; padding-top: 4px; }
.service__desc { max-width: 27em; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; letter-spacing: -.012em; }
.service__note { display: flex; align-items: flex-start; gap: 9px; font-size: .875rem; line-height: 1.45; color: var(--fg-2); }
.service__note svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.service__about .btn { margin-top: 8px; }
.service__deliver { display: grid; gap: 14px; align-content: start; padding-top: 6px; }
.starlist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

@media (max-width: 860px) {
  .services__head { grid-template-columns: minmax(0, 1fr); }
  .service__head button {
    grid-template-columns: 34px minmax(0, 1fr) 44px;
    grid-template-areas: "no name toggle" ". price toggle";
    gap: 6px 10px;
  }
  .service__no { grid-area: no; font-size: 1.25rem; align-self: start; padding-top: .28em; }
  .service__name { grid-area: name; }
  .service__price { grid-area: price; padding-right: 0; }
  .service__toggle { grid-area: toggle; align-self: center; }
  .service__inner { grid-template-columns: minmax(0, 1fr); padding-left: calc(var(--pad) + 44px); }
  .service__about { padding-bottom: 26px; }
}
@media (max-width: 480px) {
  .starlist--cols { grid-template-columns: minmax(0, 1fr); }
  .service__inner { padding-left: var(--pad); }
}

/* ---------- 6  Who we work with ---------- */
.audience .frame { border-top: 1px solid var(--rule); }
.audience__head { max-width: 960px; margin-bottom: clamp(28px, 3.6vw, 52px); }
.constellation { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.constellation__sky {
  position: relative;
  aspect-ratio: 1000 / 600;
  width: 100%; max-width: 1180px;
  margin-inline: auto;
}
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation__lines path {
  fill: none;
  stroke: var(--rule-strong); stroke-width: 1.2;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.6s var(--ease-io);
}
.constellation__corner {
  position: absolute; left: var(--x); top: var(--y);
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--ink); opacity: .55;
}
.constellation__core {
  position: absolute; left: 50%; top: 50%;
  width: clamp(64px, 9vw, 116px); height: auto;
  margin: calc(clamp(64px, 9vw, 116px) / -2) 0 0 calc(clamp(64px, 9vw, 116px) / -2);
  fill: var(--burgundy);
  animation: spin 48s linear infinite;
}
.constellation__nodes li {
  position: absolute; left: var(--x); top: var(--y);
  width: 0; height: 0;
}
.constellation__nodes li::before {
  content: "";
  position: absolute; left: -9px; top: -9px;
  width: 18px; height: 18px;
  background: var(--burgundy);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
  transition: transform 1s var(--ease-out), opacity .6s;
  transition-delay: calc(var(--i) * 110ms + 300ms);
}
.constellation__nodes span {
  position: absolute; left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(.9375rem, 1.35vw, 1.1875rem); font-weight: 500; line-height: 1.2; letter-spacing: -.022em;
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * 110ms + 380ms);
}
.constellation__nodes .is-up span { bottom: 20px; }
.constellation__nodes .is-down span { top: 20px; }
.constellation__nodes .is-left span,
.constellation__nodes .is-right span {
  top: 0; bottom: auto;
  width: max-content; max-width: 9.5em;
  white-space: normal;
}
.constellation__nodes .is-left span { left: auto; right: 22px; transform: translateY(-50%); text-align: right; }
.constellation__nodes .is-right span { left: 22px; transform: translateY(-50%); }
.js .constellation:not(.is-in) .constellation__lines path { stroke-dashoffset: 1; }
.js .constellation:not(.is-in) .constellation__nodes li::before { transform: scale(0) rotate(-180deg); opacity: 0; }
.js .constellation:not(.is-in) .constellation__nodes span { opacity: 0; }
.constellation .figcap { max-width: none; }

@media (max-width: 820px) {
  .constellation__sky { aspect-ratio: auto; }
  .constellation__lines, .constellation__corner, .constellation__core { display: none; }
  .constellation__nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: calc(var(--pad) * -1); border-bottom: 1px solid var(--rule); }
  .constellation__nodes li {
    position: relative; left: auto; top: auto;
    width: auto; height: auto;
    padding: 16px 12px 16px calc(var(--pad) + 24px);
    border-top: 1px solid var(--rule);
  }
  .constellation__nodes li:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 40px; }
  .constellation__nodes li::before { left: var(--pad); top: 50%; margin-top: -7px; width: 14px; height: 14px; }
  .constellation__nodes li:nth-child(even)::before { left: 16px; }
  .constellation__nodes li span { position: static; transform: none; width: auto; max-width: none; white-space: normal; text-align: left; font-size: .9375rem; }
}
@media (max-width: 420px) {
  .constellation__nodes { grid-template-columns: minmax(0, 1fr); }
  .constellation__nodes li:nth-child(even) { border-left: 0; padding-left: calc(var(--pad) + 24px); }
  .constellation__nodes li:nth-child(even)::before { left: var(--pad); }
}

/* ---------- 7  Process ---------- */
.process .frame { border-top: 1px solid var(--rule); }
.process__head { margin-bottom: clamp(44px, 5.4vw, 80px); }
.steps { position: relative; --p: 0; }
.steps__track {
  position: relative;
  height: 1px;
  margin-inline: calc(var(--pad) * -1);
  background: var(--rule-strong);
}
.steps__fill {
  position: absolute; left: 0; top: -1px;
  width: calc(var(--p) * 100%); height: 3px;
  background: var(--burgundy);
}
.steps__star {
  position: absolute; left: calc(var(--p) * 100%); top: 0;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  fill: var(--burgundy);
  transform: rotate(calc(var(--p) * 360deg));
}
.steps__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: calc(var(--pad) * -1);
}
.step {
  padding: clamp(28px, 3vw, 44px) clamp(18px, 2.2vw, 32px) 8px clamp(18px, 2.2vw, 32px);
  border-left: 1px solid var(--rule);
  transition: opacity .7s var(--ease-out);
}
.step:first-child { padding-left: var(--pad); border-left: 0; }
.step__no {
  display: block;
  font-size: clamp(2.75rem, 4.8vw, 4.375rem); font-weight: 200; line-height: .9; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.step__icon { width: 22px; height: 22px; margin: clamp(28px, 4vw, 56px) 0 14px; }
.step .h3 { margin-bottom: 10px; }
.step p { max-width: 22em; color: var(--fg-2); }
.js .steps.is-live .step:not(.is-on) { opacity: .34; }

@media (max-width: 860px) {
  .steps__track {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px; height: auto;
    margin: 0;
  }
  .steps__fill { left: -1px; top: 0; width: 3px; height: calc(var(--p) * 100%); }
  .steps__star { left: 0; top: calc(var(--p) * 100%); }
  .steps__list { grid-template-columns: minmax(0, 1fr); margin: 0; }
  .step, .step:first-child { padding: 0 0 40px 34px; border-left: 0; }
  .step:last-child { padding-bottom: 0; }
  .step__icon { margin-top: 18px; }
}

/* ---------- 8  About ---------- */
.about { overflow: clip; }
.about__glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(52% 60% at 100% 0%, rgba(128, 13, 53, .55), rgba(128, 13, 53, 0) 72%);
}
.about__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__copy { display: grid; gap: 18px; padding-top: 10px; }
.about__copy p:not(.lead) { color: var(--fg-2); }
.about__copy .lead { color: var(--fg); }
.beliefs { margin-top: clamp(56px, 8vw, 120px); }
.beliefs ul { margin-inline: calc(var(--pad) * -1); border-top: 1px solid var(--rule); }
.beliefs li {
  display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem minmax(0, 1.3fr);
  align-items: baseline; gap: 6px clamp(16px, 3vw, 48px);
  padding: clamp(16px, 2.1vw, 28px) var(--pad) clamp(18px, 2.3vw, 32px);
  border-bottom: 1px solid var(--rule);
  font-size: clamp(2rem, 5.4vw, 5rem); font-weight: 300; line-height: 1; letter-spacing: -.048em;
}
.beliefs small { font-size: .875rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--fg-2); white-space: nowrap; }
.about__close {
  max-width: 22em;
  margin-top: clamp(40px, 5vw, 72px);
  font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -.028em;
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .beliefs li { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 9  Contact ---------- */
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px clamp(40px, 6vw, 104px);
  align-items: start;
}
.contact__copy { position: sticky; top: 120px; display: grid; gap: 22px; }
.contact__ways { display: grid; gap: 18px; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--rule); }
.contact__ways li { display: flex; align-items: flex-start; gap: 14px; }
.contact__ways li[hidden] { display: none; }
.contact__ways .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.contact__ways .label { display: block; margin-bottom: 1px; }
.contact__ways a { font-size: 1.0625rem; letter-spacing: -.012em; }
.contact__form {
  padding: clamp(22px, 3.2vw, 46px);
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--white);
}
@media (max-width: 980px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__copy { position: static; }
}
@media (max-width: 520px) {
  .contact__form { margin-inline: -6px; padding: 20px 16px 22px; }
}

/* ---------- 10  Final call ---------- */
.finale { overflow: clip; }
.finale__glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(54% 64% at 80% 34%, rgba(196, 52, 104, .5) 0%, rgba(196, 52, 104, 0) 70%),
    radial-gradient(70% 70% at 0% 100%, rgba(89, 8, 29, .9) 0%, rgba(89, 8, 29, 0) 72%);
}
.finale__frame { padding-bottom: clamp(36px, 4vw, 56px); }
.finale__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 5vw, 88px);
  align-items: center;
}
.finale__title {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-size: clamp(2.5rem, 6.3vw, 6.25rem); font-weight: 300; line-height: .96; letter-spacing: -.05em;
}
.finale__title em { display: block; }
.finale__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }
.finale__eye { color: var(--ivory); }
.finale__eye svg { width: 100%; height: auto; }
.finale__sign {
  display: flex; align-items: center; gap: .16em;
  margin: clamp(64px, 9vw, 136px) calc(var(--pad) * -1) 0;
  padding: clamp(24px, 3vw, 44px) var(--pad) 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(2.5rem, 9.6vw, 9.75rem); font-weight: 300; line-height: .92; letter-spacing: -.062em;
  white-space: nowrap;
}
.finale__star { width: .46em; height: .46em; animation: spin 26s linear infinite; }
@media (max-width: 860px) {
  .finale__grid { grid-template-columns: minmax(0, 1fr); }
  .finale__eye { order: -1; width: min(78%, 360px); }
  .finale__actions .btn { flex: 1 1 100%; }
}

/* ---------- 11  Floating offer ---------- */
.dock {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  color: var(--ivory);
  --focus: var(--ivory);
  --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bg-hover: var(--white);
  pointer-events: none;
}
.dock__card,
.dock__pill {
  pointer-events: auto;
  border: 1px solid rgba(245, 242, 237, .16);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
  transition: opacity .5s var(--ease-out), transform .8s var(--ease-out), visibility 0s;
}
.dock__card {
  position: relative;
  display: grid; gap: 10px;
  width: 332px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(38, 32, 36, .58);
  transform-origin: 100% 100%;
}
.dock__label { font-size: .8125rem; font-weight: 600; color: var(--mist); }
.dock__text { padding-right: 28px; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.022em; }
.dock__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.dock__price b { font-size: 1.75rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.dock__price span { font-size: .8125rem; line-height: 1.35; color: var(--mist); }
.dock__close,
.dock__x {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--mist);
  transition: color .2s, background-color .2s;
}
.dock__close { position: absolute; top: 8px; right: 8px; }
.dock__close:hover, .dock__x:hover { color: var(--ivory); background: rgba(245, 242, 237, .1); }
.dock__close svg, .dock__x svg { width: 15px; height: 15px; }

.dock__pill {
  position: absolute; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 2px;
  height: 54px;
  padding: 0 6px 0 6px;
  border-radius: 999px;
  background: rgba(23, 20, 23, .8);
  white-space: nowrap;
}
.dock__pill a {
  display: flex; align-items: center; gap: 12px;
  height: 100%;
  padding-left: 16px;
  color: inherit; text-decoration: none;
  font-size: .875rem; font-weight: 600; letter-spacing: -.012em;
  border-radius: 999px;
}
.dock__pill b { font-weight: 300; font-size: 1.125rem; letter-spacing: -.03em; }
.dock__pill .btn__ico { width: 38px; height: 38px; background: var(--ivory); color: var(--ink); }

.dock[data-state="card"] .dock__pill,
.dock[data-state="pill"] .dock__card,
.dock[data-state="hidden"] .dock__card,
.dock[data-state="hidden"] .dock__pill,
.dock:not([data-state]) .dock__card,
.dock:not([data-state]) .dock__pill {
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .6s var(--ease-out), visibility 0s .6s;
}
.dock[data-state="pill"] .dock__card,
.dock[data-state="hidden"] .dock__card,
.dock:not([data-state]) .dock__card { transform: translateY(14px) scale(.94); }
.dock[data-state="card"] .dock__pill,
.dock[data-state="hidden"] .dock__pill,
.dock:not([data-state]) .dock__pill { transform: translateY(14px); }

@media (max-width: 1100px) {
  .dock__card { display: none; }
}
@media (max-width: 720px) {
  .dock { left: 12px; right: 12px; bottom: 12px; }
  .dock__pill { left: 0; }
  .dock__pill a { flex: 1; }
  .dock__pill .dock__pill-text { margin-right: auto; }
}
