/* ==========================================================================
   LIVNI & FRIENDS — "&"
   The ampersand is the raw material: portal, transition, mask, cursor, menu.
   ========================================================================== */

:root {
  --paper: #f2eee5;
  --paper-2: #e8e2d4;
  --ink: #0f0f10;
  --blue: #2b5cff;
  --blue-deep: #1d44d6;
  --marker: #ff4d1f;
  --muted: rgba(15, 15, 16, .62);

  --f-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(18px, 4vw, 64px);
  --hdr: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: var(--paper); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared atoms ---------- */
.eyebrow {
  font: 700 .76rem/1.2 var(--f-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: .55em;
}
.eyebrow::before {
  content: '&';
  font: italic 400 1.9em/0 var(--f-serif);
  letter-spacing: 0;
  color: var(--blue);
  transform: translateY(.12em);
}
.amp-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--blue); }
.note {
  font: 600 clamp(1.35rem, 1.9vw, 2rem)/1.05 var(--f-hand);
  color: var(--marker);
  transform: rotate(-4deg);
  letter-spacing: .01em;
}
.scribble { width: 92px; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.45em;
  border-radius: 999px;
  font: 700 .95rem/1 var(--f-body);
  text-decoration: none;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); }
.btn--line { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--paper); color: var(--ink); }
.btn--line-light { box-shadow: inset 0 0 0 2px rgba(242, 238, 229, .5); color: var(--paper); }
.btn--line-light:hover { background: var(--paper); color: var(--ink); box-shadow: none; }
.btn--xl { font-size: clamp(1rem, 1.4vw, 1.25rem); padding: 1.1em 1.7em; }

/* ---------- header ---------- */
/* logo and controls are separate fixed layers so the logo can blend with whatever world is behind it */
.hdr__logo { position: fixed; z-index: 80; left: var(--pad); top: calc(var(--hdr) / 2); translate: 0 -50%; mix-blend-mode: difference; display: block; }
.hdr__logo img { width: clamp(150px, 15vw, 210px); height: auto; }
.hdr__logo { transition: transform .5s var(--ease), opacity .3s; }
.logo-away .hdr__logo { transform: translateY(-140%); opacity: 0; }
.hdr__right { position: fixed; z-index: 96; right: var(--pad); top: calc(var(--hdr) / 2); translate: 0 -50%; display: flex; align-items: center; gap: 10px; }
.hdr__talk {
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 700 .9rem/1 var(--f-body); padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(242, 238, 229, .18);
  transition: background-color .25s;
}
.hdr__talk:hover { background: var(--blue); }
.hdr__menu {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--paper);
  transition: transform .5s var(--ease);
  position: relative; z-index: 95;
}
.hdr__menu svg { width: 22px; height: auto; fill: #fff; transition: transform .6s var(--ease); }
.hdr__menu:hover svg { transform: rotate(-14deg) scale(1.08); }
.hdr__menu[aria-expanded='true'] { background: var(--paper); }
.hdr__menu[aria-expanded='true'] svg { fill: var(--blue); transform: rotate(180deg); }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--blue); color: var(--paper);
  padding: calc(var(--hdr) + 4vh) var(--pad) 5vh;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - var(--pad) - 25px) calc(var(--hdr) / 2));
  transition: clip-path .8s cubic-bezier(.7, 0, .2, 1);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(150% at calc(100% - var(--pad) - 25px) calc(var(--hdr) / 2)); }
.menu__list a {
  display: flex; align-items: baseline; gap: .25em;
  font: 650 clamp(2.8rem, 9.5vw, 9rem)/.98 var(--f-display);
  font-stretch: 75%;
  text-decoration: none; letter-spacing: -.01em;
  transition: transform .5s var(--ease);
}
.menu__list a .amp-i { color: var(--paper); opacity: .55; transition: transform .6s var(--ease), opacity .3s; display: inline-block; font-size: .9em; }
.menu__list a:hover, .menu__list a:focus-visible { transform: translateX(.18em); }
.menu__list a:hover .amp-i { opacity: 1; transform: rotate(-12deg); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; }
.menu__foot a { text-decoration: none; border-bottom: 2px solid rgba(242, 238, 229, .4); }

/* ==========================================================================
   SCENE — hero + worlds
   Base (flow) layout = mobile & reduced motion. `.cinema` = desktop film.
   ========================================================================== */
.scene__stage { display: flex; flex-direction: column; }

/* ---------- hero: a full-screen, full-colour reel of real worlds ---------- */
.hero {
  position: relative;
  height: max(100svh, 600px);
  overflow: hidden;
  background: #0b0b0c;
  color: #fff;
  isolation: isolate;
}
.hero__reel { position: absolute; inset: 0; transform-origin: 50% 55%; }
.hero__slide {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero__slide img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__slide img { transform: scale(1.1); }
.hero__slide.is-in img { transform: scale(1); transition: transform 7.5s cubic-bezier(.2, .6, .3, 1); }
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(8, 8, 10, .78) 0%, rgba(8, 8, 10, .35) 32%, rgba(8, 8, 10, 0) 58%),
    linear-gradient(180deg, rgba(8, 8, 10, .45) 0%, rgba(8, 8, 10, 0) 22%);
}
.hero__rim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0; overflow: visible; }
.hero__rim path { fill: none; stroke: var(--blue); stroke-width: 10; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hero__type {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad);
  bottom: clamp(92px, 15vh, 150px);
  text-align: center; pointer-events: none;
}
.hero__type a { pointer-events: auto; }
.hero__line {
  font: 700 clamp(2.7rem, 12vw, 9rem)/.88 var(--f-display);
  font-stretch: 75%; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__line .hl { display: block; }
.hero__line .hl-b { color: #8aa5ff; }
.hero__line .w { display: inline-block; }
.hero__sub { margin: 18px auto 0; max-width: 46ch; font-weight: 600; font-size: .98rem; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero__ctas { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue); color: #fff; }

/* the bar: what's on screen (click to watch) + the ruler */
.hero__bar {
  position: absolute; z-index: 5; left: var(--pad); right: var(--pad); bottom: clamp(22px, 4vh, 40px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.hero__now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-align: left; color: #fff; font: 600 .82rem/1.3 var(--f-body); }
.hero__now-k { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.hero__now b { font-weight: 700; }
.hero__now-go { opacity: .7; border-bottom: 1.5px solid rgba(255, 255, 255, .5); }
.hero__now:hover .hero__now-go { opacity: 1; border-color: #fff; }
.hero__ruler { display: flex; gap: 6px; }
.hero__ruler button { width: 34px; height: 22px; display: flex; align-items: flex-end; padding: 0; }
.hero__ruler button span { position: relative; display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; transition: height .3s; }
.hero__ruler button span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__ruler button.is-on span::after { transform: scaleX(1); }
.hero__ruler button.is-run span::after { transform: scaleX(0); animation: ruler var(--slot, 5s) linear forwards; }
.hero__ruler button:hover span { height: 4px; }
@keyframes ruler { to { transform: scaleX(1); } }


/* ---------- worlds (base = swipe deck) ---------- */
.worlds { background: var(--ink); color: var(--paper); padding: 72px 0 56px; }
.worlds__intro { padding: 0 var(--pad) 28px; }
.worlds__title { font: 650 clamp(2.4rem, 9vw, 6rem)/.95 var(--f-display); font-stretch: 75%; margin-top: 14px; letter-spacing: -.01em; }
.worlds__title .amp-i { font-size: 1.1em; }
.worlds__track {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.worlds__track::-webkit-scrollbar { display: none; }
.world {
  --bg: #222; --ink: #fff; --accent: var(--blue);
  position: relative; flex: 0 0 min(86vw, 760px);
  height: min(80svh, 720px); min-height: 520px;
  border-radius: 24px; overflow: hidden;
  background: var(--bg); color: var(--ink);
  scroll-snap-align: start;
  isolation: isolate;
}
.world__media { position: absolute; inset: 0 0 42% 0; overflow: hidden; }
.world__media img, .world__gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world__gal img { opacity: 0; transition: opacity 1s ease; }
.world__gal img.is-on { opacity: 1; }
.world__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.world__video.is-on { opacity: 1; }
.world__video iframe { position: absolute; top: 50%; left: 50%; border: 0; width: max(100%, calc(var(--vh-h, 100%) * 1.7778)); aspect-ratio: 16 / 9; height: auto; min-height: 100%; transform: translate(-50%, -50%) scale(1.22); }
.world__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--bg) 99%); }
.world__inner { position: absolute; inset: auto 0 0 0; padding: 0 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.world__meta { position: absolute; top: 16px; left: 16px; max-width: 56%; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; font: 700 .62rem/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(10, 10, 10, .55); backdrop-filter: blur(6px); padding: 7px 11px; border-radius: 12px; }
.world__num { color: var(--accent); }
.world__eq { font: 700 clamp(2.4rem, 11.5vw, 10rem)/.86 var(--f-display); font-stretch: 75%; letter-spacing: -.02em; }
.eq-l { display: block; }
.eq-r { display: inline; }
.eq-amp { display: inline-block; font: italic 400 1.18em/0 var(--f-serif); color: var(--accent); margin-right: .06em; transform-origin: 50% 60%; }
.world__title { font: 700 1rem/1.3 var(--f-body); }
.world__desc { font-size: .92rem; line-height: 1.5; max-width: 46ch; opacity: .86; display: none; }
.world__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.world__play {
  display: inline-flex; align-items: center; gap: .65em;
  background: var(--ink); color: var(--bg);
  padding: .85em 1.3em .85em 1em; border-radius: 999px;
  font: 700 .9rem/1 var(--f-body);
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.world__play:hover { transform: translateY(-2px); background: var(--accent); color: var(--bg); }
.world__play .tri { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.world__note { position: absolute; top: 18px; right: 18px; color: var(--accent); max-width: 15ch; text-align: right; font-size: 1.35rem; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.55); }
.world__note .scribble { display: none; }
.world__hit { position: absolute; inset: 0 0 42% 0; z-index: 1; }
.worlds__dots { display: flex; gap: 6px; padding: 18px var(--pad) 0; align-items: center; }
.worlds__dots span { width: 22px; height: 3px; border-radius: 3px; background: rgba(242, 238, 229, .25); transition: background-color .3s, width .3s; }
.worlds__dots span.is-on { background: var(--paper); width: 44px; }
.worlds__dots em { margin-left: auto; font: 600 1.25rem/1 var(--f-hand); font-style: normal; color: var(--marker); }
.reel-index { display: none; }

/* ---------- cinema (desktop) ---------- */
.cinema .scene__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: block; }
.cinema .hero { position: absolute; inset: 0; height: auto; z-index: 0; }
.cinema .worlds { position: absolute; inset: 0; padding: 0; background: transparent; z-index: 1; pointer-events: none; }
.cinema .world:not(.is-active), .cinema .world:not(.is-active) * { pointer-events: none !important; }
.cinema .world.is-active { pointer-events: auto; }
.cinema .worlds__intro { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cinema .worlds__track { display: block; overflow: visible; padding: 0; height: 100%; position: relative; }
.cinema .worlds__dots { display: none; }
.cinema .world {
  position: absolute; inset: 0; height: auto; min-height: 0; border-radius: 0;
  flex: none;
  -webkit-mask-image: var(--amp-mask); mask-image: var(--amp-mask);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: var(--mx, 50%) var(--my, 50%); mask-position: var(--mx, 50%) var(--my, 50%);
  -webkit-mask-size: auto calc(var(--m, 0) * 1vh); mask-size: auto calc(var(--m, 0) * 1vh);
}
.cinema .world.is-full { -webkit-mask-image: none; mask-image: none; }
.cinema .world__media { inset: 0; }
.cinema .world__hit { inset: 0; }
.cinema .world__shade {
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 26%, color-mix(in srgb, var(--bg) 30%, transparent) 50%, transparent 66%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 60%, transparent) 0%, transparent 35%);
}
.cinema .world__inner { inset: auto auto 0 0; width: min(62vw, 1100px); padding: 0 0 clamp(36px, 8vh, 96px) var(--pad); gap: 18px; z-index: 2; pointer-events: none; }
.cinema .world__inner .world__actions { pointer-events: auto; }
.cinema .world__meta { top: calc(var(--hdr) + 10px); left: var(--pad); max-width: 40vw; font-size: .72rem; color: var(--ink); background: none; backdrop-filter: none; padding: 0; }
.cinema .world__eq { font-size: clamp(4rem, 8.6vw, 11.5rem); }
.cinema .world__desc { display: block; }
.cinema .world__note { top: 20vh; right: auto; left: 64vw; font-size: clamp(1.6rem, 2.1vw, 2.3rem); max-width: 16ch; text-align: left; z-index: 2; }
.cinema .world__note .scribble { display: block; margin: 8px 0 0 -20px; transform: scaleX(-1) rotate(10deg); }
.rim { display: none; }
.cinema .rim { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; opacity: 0; overflow: visible; }
.rim path { fill: none; stroke: var(--blue); stroke-width: 10; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cinema .reel-index {
  display: flex; position: absolute; z-index: 6; right: var(--pad); bottom: clamp(28px, 6vh, 70px);
  gap: 6px; align-items: flex-end; color: #fff; mix-blend-mode: difference;
}
.reel-index button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font: 700 .68rem/1 var(--f-body); letter-spacing: .12em; padding: 8px 2px; opacity: .6; transition: opacity .3s; }
.reel-index button::after { content: ''; width: 26px; height: 2px; background: currentColor; transition: width .5s var(--ease); }
.reel-index button.is-on { opacity: 1; }
.reel-index button.is-on::after { width: 64px; }
.reel-index button:hover { opacity: 1; }

/* ==========================================================================
   FRIENDS
   ========================================================================== */
.friends { padding: clamp(90px, 16vh, 200px) var(--pad) clamp(80px, 14vh, 180px); position: relative; overflow: hidden; }
.friends__title {
  margin-top: 22px; max-width: 12ch;
  font: 700 clamp(3.2rem, 10.5vw, 12rem)/.88 var(--f-display); font-stretch: 75%; letter-spacing: -.025em;
}
.friends__title .line { display: block; }
.friends__title { max-width: none; }
.friends__crew { margin-top: 26px; max-width: 34ch; font: 400 clamp(1.4rem, 2.5vw, 2.5rem)/1.15 var(--f-serif); }
.friends__ai { color: var(--blue); white-space: nowrap; font-style: italic; }
.friends__ai .amp-i { font-size: 1.15em; }
.friends__grid { display: grid; gap: 48px; margin-top: clamp(40px, 8vh, 110px); }
.friends__portrait { margin: 0; position: relative; max-width: 520px; }
.friends__mask { position: relative; aspect-ratio: 2 / 3; }
.friends__mask::before {
  content: ''; position: absolute; inset: -6% -14% 4% -8%; z-index: 0;
  background: var(--blue);
  -webkit-mask: var(--amp-mask-italic) center / contain no-repeat; mask: var(--amp-mask-italic) center / contain no-repeat;
  transform: rotate(-4deg);
}
.friends__mask img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.05); }
.friends__portrait .note { position: absolute; right: -4%; top: 2%; max-width: 12ch; text-align: right; z-index: 2; }
.friends__portrait .note .scribble { margin: 6px 0 0 auto; width: 70px; }
.chain { font: 600 clamp(1.7rem, 3.3vw, 3.3rem)/1.1 var(--f-display); font-stretch: 82%; letter-spacing: -.01em; }
.chain .c-w { transition: opacity .2s; }
.chain .c-amp { font: italic 400 1.15em/1 var(--f-serif); color: var(--blue); margin: 0 .12em; }
.chain .c-last { color: var(--blue); }
.friends__statement { margin-top: clamp(40px, 7vh, 80px); font: 400 clamp(2rem, 4.2vw, 4.4rem)/1.02 var(--f-serif); max-width: 18ch; }
.friends__statement em { color: var(--blue); }
.friends__body { margin-top: 32px; display: grid; gap: 18px; max-width: 62ch; font-size: 1.04rem; color: rgba(15, 15, 16, .82); }
.friends__sig { margin-top: 34px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sig { font: 700 clamp(2.4rem, 4vw, 3.6rem)/1 var(--f-hand); color: var(--marker); transform: rotate(-3deg); display: inline-block; }
.friends__role { font: 700 .74rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   & MACHINE
   ========================================================================== */
.machine {
  background: var(--ink); color: var(--paper);
  padding: clamp(90px, 14vh, 170px) var(--pad);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.machine__title { margin-top: 16px; font: 400 clamp(1.8rem, 3.6vw, 3.6rem)/1.05 var(--f-serif); max-width: 20ch; }
/* one sentence on one line: [idea]  &  [possibility] — both halves level, centred on the & */
.machine__stage {
  width: 100%; max-width: 1600px; margin: clamp(36px, 7vh, 80px) 0 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(10px, 2.4vw, 44px);
}
.m-side { display: block; overflow: hidden; padding: .1em .05em; }
.m-l { text-align: right; }
.m-r { text-align: left; }
.m-word { display: block; font: 700 clamp(1.5rem, 5.6vw, 7rem)/.95 var(--f-display); font-stretch: 75%; letter-spacing: -.02em; }
.m-l .m-word { margin-left: auto; max-width: 12ch; }
.m-r .m-word { max-width: 12ch; }
/* explicit width (not aspect-ratio): Safari sizes buttons by their content otherwise */
.machine__amp { --ah: clamp(150px, 36vh, 440px); height: var(--ah); width: calc(var(--ah) * 520 / 739); border-radius: 30%; display: block; }
.machine__amp svg { display: block; width: 100%; height: 100%; fill: var(--blue); overflow: visible; transition: fill .3s; }
.m-side { min-width: 0; }
.machine__amp:hover svg { fill: #4d78ff; }
.machine__amp:active svg { transform: scale(.96); }
.machine__count { margin-top: 18px; font: 700 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.machine__sub { max-width: 44ch; margin: 6px 0 26px; color: rgba(242, 238, 229, .75); font-size: 1.05rem; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--blue); color: var(--paper); padding: clamp(90px, 14vh, 170px) var(--pad) clamp(70px, 10vh, 130px); overflow: hidden; }
.services .eyebrow::before, .services .amp-i { color: var(--paper); }
.services__title { margin-top: 18px; font: 400 clamp(1.9rem, 3.8vw, 3.8rem)/1.04 var(--f-serif); max-width: 22ch; }
.svc { margin-top: clamp(40px, 8vh, 90px); border-bottom: 1.5px solid rgba(242, 238, 229, .35); }
.svc__item { border-top: 1.5px solid rgba(242, 238, 229, .35); }
.svc__btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 clamp(12px, 2vw, 32px); text-align: left; padding: clamp(14px, 2.4vh, 26px) 0; }
.svc__num { font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; align-self: start; padding-top: .9em; }
.svc__word { font: 700 clamp(3rem, 12.4vw, 15.5rem)/.86 var(--f-display); font-stretch: 75%; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; display: block; }
.svc__word .ch { display: inline-block; transition: font-variation-settings .25s; }
.svc__word .amp-i { color: var(--paper); text-transform: none; font-size: .9em; margin-left: .08em; opacity: .9; }
.svc__stage { font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.svc__plus { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper); display: grid; place-items: center; font-size: 1.4rem; transition: transform .5s var(--ease), background-color .25s, color .25s; }
.svc__btn[aria-expanded='true'] .svc__plus { transform: rotate(45deg); background: var(--paper); color: var(--blue); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__panel > div { overflow: hidden; }
.svc__panel.is-open { grid-template-rows: 1fr; }
.svc__inner { display: grid; gap: 14px 6vw; padding: 0 0 clamp(24px, 4vh, 44px); }
.svc__lead { font: 600 clamp(1.4rem, 2.4vw, 2.3rem)/1.1 var(--f-display); font-stretch: 85%; }
.svc__text { font-size: 1.05rem; max-width: 52ch; color: rgba(242, 238, 229, .88); }
.services__foot { margin-top: 30px; font: 600 clamp(1.5rem, 2.4vw, 2.3rem)/1.1 var(--f-hand); color: var(--paper); transform: rotate(-2deg); display: inline-block; }

/* ==========================================================================
   CLIENTS
   ========================================================================== */
.clients { padding: clamp(90px, 14vh, 170px) var(--pad); position: relative; }
/* room above the first line for the handwritten note on Johnson & Johnson (always first in the list) */
.clients__chain { margin-top: calc(30px + clamp(2.6rem, 3.6vw, 4rem)); font: 650 clamp(2rem, 5.6vw, 6.4rem)/1.02 var(--f-display); font-stretch: 78%; letter-spacing: -.015em; }
.cl { display: inline; cursor: default; transition: color .2s; }
.cl:hover { color: var(--blue); }
.cl-amp { font: italic 400 1.1em/1 var(--f-serif); color: var(--blue); margin: 0 .14em; display: inline-block; }
.cl-inner-amp { font-family: inherit; color: inherit; font-style: normal; }
.cl--jj { position: relative; white-space: nowrap; }
.cl-note { position: absolute; left: 30%; bottom: 100%; white-space: nowrap; font-size: clamp(1.1rem, 1.5vw, 1.6rem); pointer-events: none; }
.touch .cl[data-logo] { text-decoration: underline dotted rgba(15, 15, 16, .25); text-decoration-thickness: .06em; text-underline-offset: .12em; cursor: pointer; }
@media (max-width: 719px) {
  .cl-note { left: 0; white-space: normal; width: max-content; max-width: min(78vw, 280px); }
  .clients__logo { width: 140px; height: 140px; padding: 14px; }
}
.cl-note .scribble { width: 46px; transform: rotate(80deg); margin: 0 0 -6px 30px; }
.clients__end { color: var(--muted); }
.clients__logo { position: fixed; left: 0; top: 0; z-index: 70; width: 168px; height: 168px; border-radius: 22px; background: #fff; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.18); pointer-events: none; opacity: 0; transform: scale(.6) rotate(-8deg); transition: opacity .25s, transform .4s var(--ease); }
.clients__logo.is-on { opacity: 1; transform: scale(1) rotate(-4deg); }
.clients__logo img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact { background: var(--ink); color: var(--paper); padding: clamp(90px, 14vh, 170px) var(--pad) clamp(60px, 9vh, 110px); }
.contact__title { margin-top: 10px; font: 700 clamp(5rem, 22vw, 26rem)/.82 var(--f-display); font-stretch: 75%; letter-spacing: -.03em; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .12em; }
.contact__title .amp-i { font-size: 1.12em; line-height: 0; display: inline-block; }
.contact__sub { margin-top: 26px; font-size: 1.1rem; max-width: 44ch; color: rgba(242, 238, 229, .8); }
.composer { margin-top: clamp(40px, 8vh, 90px); }
.composer__line { font: 600 clamp(1.6rem, 3.7vw, 3.6rem)/1.35 var(--f-display); font-stretch: 85%; max-width: 26ch; }
.composer__line .amp-i { font-size: 1.15em; }
.pick { display: inline-block; position: relative; }
.pick select, .pick input {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; border-radius: 0;
  border-bottom: .08em solid var(--blue);
  color: var(--blue);
  font: inherit; font-stretch: inherit; line-height: 1.1;
  padding: 0 1.05em 0 .05em; margin: 0 .1em;
  cursor: pointer; max-width: 100%;
}
.pick input { padding-right: .1em; width: 9.6ch; cursor: text; color: var(--paper); }
.pick input::placeholder { color: rgba(242, 238, 229, .35); }
.pick select option { color: var(--ink); background: var(--paper); font-size: 1rem; }
.pick::after { content: '▾'; position: absolute; right: .25em; top: 50%; translate: 0 -45%; font-size: .55em; color: var(--blue); pointer-events: none; }
.pick--text::after { content: none; }
.composer__name { white-space: nowrap; }
.composer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact__details { margin-top: clamp(60px, 10vh, 110px); display: grid; gap: 22px 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1.5px solid rgba(242, 238, 229, .2); padding-top: 28px; }
.contact__details small { display: block; font: 700 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 238, 229, .5); margin-bottom: 10px; }
.contact__details a { font-weight: 600; font-size: 1.1rem; text-decoration: none; border-bottom: 2px solid rgba(43, 92, 255, .7); }
.contact__details a:hover { color: #7f9cff; }

.foot { background: var(--ink); color: var(--paper); padding: 0 var(--pad) 36px; overflow: hidden; }
.foot__big { font: 700 clamp(4rem, 17vw, 20rem)/.8 var(--f-display); font-stretch: 75%; letter-spacing: -.03em; white-space: nowrap; border-top: 1.5px solid rgba(242, 238, 229, .2); padding-top: 40px; }
.foot__big .amp-i { display: inline-block; }
.foot__roll { color: var(--blue); }
.foot__row { margin-top: 40px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; font-size: .9rem; color: rgba(242, 238, 229, .7); }
.foot__row img { width: 170px; height: auto; }
.foot__top { justify-self: end; text-decoration: none; font-weight: 700; color: var(--paper); }

/* ==========================================================================
   THEATER
   ========================================================================== */
.theater {
  width: min(1240px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 22px;
  background: #0b0b0c; color: var(--paper); overflow: auto;
}
.theater::backdrop { background: rgba(8, 8, 10, .82); backdrop-filter: blur(8px); }
.theater[open] { animation: thIn .55s var(--ease); }
@keyframes thIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.theater__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.theater__count { font: 700 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.theater__close { font-weight: 700; padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(242, 238, 229, .3); }
.theater__close:hover { background: var(--paper); color: var(--ink); }
.theater__media { aspect-ratio: 16 / 9; background: #000; position: relative; width: min(100%, calc(66vh * 16 / 9)); margin-inline: auto; }
.theater__media iframe { width: 100%; height: 100%; border: 0; }
.gal { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; }
.gal__frame { position: relative; overflow: hidden; }
.gal__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gal__ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px; background: #0b0b0c; font-weight: 700; font-size: .85rem; }
.gal__ctrl button { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(242, 238, 229, .3); }
.gal__ctrl button:hover { background: var(--paper); color: var(--ink); }
.theater__info { display: grid; gap: 16px 40px; padding: 24px clamp(18px, 3vw, 36px) 30px; grid-template-columns: 1fr; }
.theater__info h2 { font: 700 clamp(1.8rem, 3.6vw, 3.4rem)/.95 var(--f-display); font-stretch: 78%; margin-top: 10px; }
.theater__info > p { color: rgba(242, 238, 229, .8); max-width: 60ch; }
.theater__nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.theater__yt { margin-left: auto; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--blue); }

.toast {
  position: fixed; z-index: 260; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--paper); color: var(--ink); padding: 14px 20px; border-radius: 999px;
  font: 600 .95rem/1.2 var(--f-body); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  transition: opacity .3s, translate .4s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   CURSOR
   ========================================================================== */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--blue); color: #fff;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .2s;
    opacity: 0;
  }
  .cursor.is-on { opacity: 1; }
  .cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .cursor__label { font: 700 .7rem/1.1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; text-align: center; opacity: 0; transition: opacity .2s; padding: 0 8px; }
  .cursor.has-label .cursor__label { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 720px) {
  .hero__line { font-size: clamp(3.4rem, 8.6vw, 9rem); }
  .friends__grid { grid-template-columns: minmax(280px, 5fr) 7fr; align-items: start; gap: 6vw; }
  .friends__portrait { position: sticky; top: 14vh; }
  .svc__inner { grid-template-columns: minmax(240px, 1fr) 1.4fr; padding-left: calc(.78rem + clamp(12px, 2vw, 32px) + 1.5em); }
  .theater__info { grid-template-columns: 1fr 1.2fr; }
  .theater__nav { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  /* one sentence, one line */
  .hero__line { font-size: clamp(3.6rem, 6.9vw, 9.4rem); white-space: nowrap; }
  .hero__line .hl { display: inline; }
}
@media (max-width: 719px) {
  :root { --hdr: 64px; }
  .hdr__talk { display: none; }
  .hdr__menu { width: 46px; height: 46px; }
  .hero__type { bottom: 108px; }
  .hero__now-k { display: none; }
  .hero__ruler button { width: 22px; }
  .hero__sub { font-size: .9rem; }
  .svc__btn { grid-template-columns: 1fr auto; }
  .svc__num { display: none; }
  .svc__stage span:first-child { display: none; }
  .svc__word { font-size: clamp(2.6rem, 14.6vw, 6rem); }
  .m-word { font-size: clamp(1.3rem, 6.4vw, 2.2rem); }
  .machine__amp { --ah: 120px; }
  .machine__stage { column-gap: 10px; }
  .friends__portrait { max-width: 78vw; margin: 0 auto; }
  .composer__line { font-size: clamp(1.45rem, 7vw, 2.2rem); }
  .composer__actions .btn { width: 100%; justify-content: center; }
  .foot__top { justify-self: start; }
  .contact__title { font-size: 25vw; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
