/* &Co. Entrepreneur Hub
   Black and white only, taken from the logo. One idea per screen.
   Serif voice: Times New Roman italic (the quote face). Everything else: Inter. */
:root {
  --black: #000;
  --paper: #fff;
  --dim: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .16);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Times New Roman", Times, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
p, figure, h1, h2, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 6px; }
::selection { background: var(--paper); color: var(--black); }

/* ---------- The brand brackets ---------- */
.brackets, .hover-brackets { position: relative; }
.brackets::before,
.hover-brackets::before {
  content: "";
  position: absolute;
  inset: calc(var(--off, 14px) * -1);
  pointer-events: none;
  --c: var(--paper);
  --len: var(--len-size, 22px);
  --w: var(--w-size, 1.5px);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--len) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--len) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--len) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--len) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--len) no-repeat;
}
/* Hover brackets: hidden until hovered, then they close in on the word */
.hover-brackets { --off: 9px; --len-size: 9px; --w-size: 1.5px; }
.hover-brackets::before { opacity: 0; transform: scale(1.18); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.hover-brackets:hover::before,
.hover-brackets:focus-visible::before { opacity: 1; transform: scale(1); }
.hover-brackets.brackets::before { opacity: 1; transform: none; }

/* ---------- Screens ---------- */
.screen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}

/* 1. Opening screen: logo dead centre, words and arrow on one axis below */
.hero-logo {
  /* Sits a little above centre; the words below follow its size, so nothing collides on short screens */
  --logo-w: min(80vw, 640px, 78vh);
  position: absolute;
  left: 50%;
  top: 43%;
  width: var(--logo-w);
  transform: translate(-50%, -50%);
}
.hero-logo img, .bar-logo img, .foot-mark { height: auto; }
.hero-logo img { width: 100%; }
.hero .words {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(43% + min(80vw, 640px, 78vh) * .257 + clamp(28px, 6vh, 64px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  letter-spacing: .01em;
}
.hero .words a:first-child { justify-self: end; }
.hero .words a:last-child { justify-self: start; }
.hero .words .sep { width: 1px; height: 26px; background: var(--paper); opacity: .6; }
.chevron {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 22px;
  margin-left: -11px;
  opacity: .75;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Top bar */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 20vw;
  background: linear-gradient(#000 60%, rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
body.is-scrolled .bar { opacity: 1; transform: none; pointer-events: auto; }
.bar-word { justify-self: start; padding: 6px 10px; font-size: .95rem; }
.bar-word.right { justify-self: end; }
.bar-logo { display: block; padding: 6px 10px; --off: 4px; --len-size: 10px; --w-size: 1.5px; }
.bar-logo img { width: 92px; height: auto; }

/* 2. Quote: big enough to own the screen */
.quote-screen { min-height: 0; padding: 12vh 24px 13vh; }
.quote { width: min(720px, 100%); text-align: left; }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.9vw, 2.45rem);
  line-height: 1.22;
  text-align: justify;
  text-align-last: left;
  hanging-punctuation: first;
}
.quote figcaption {
  margin-top: 22px;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--dim);
}
.quote figcaption::before { content: "— "; }

/* 3. Space: headline, pitch, map, what you can do */
.space-screen { position: relative; padding: 9vh 0 4vh; text-align: center; overflow-x: clip; }
.space { position: relative; z-index: 2; padding: 0 24px; }
.space-lead { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300; }
.space-main {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.space-pitch {
  margin: 26px auto 0;
  max-width: 30em;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
  color: var(--dim);
  text-wrap: balance;
}

.map { position: relative; z-index: 0; display: block; margin-top: -2vw; }
.map { aspect-ratio: 1366 / 768; overflow: hidden; }
.map-img { width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#000 0%, #000 9%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0) 64%, #000 91%, #000 100%);
}
.map-svg .bank { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1; }
.map-svg .bridge { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.map-svg .ring { fill: none; stroke: rgba(128, 128, 128, .35); stroke-width: 1; stroke-dasharray: 2 6; }
.map-svg text { font-family: var(--sans); fill: rgba(128, 128, 128, .6); }
.map-svg .ring-label { font-size: 11px; letter-spacing: .08em; }
.map-svg .land { fill: rgba(255, 255, 255, .45); }
.map-svg .land-label { font-size: 12px; }
.map-svg .river-label { font-family: var(--serif); font-style: italic; font-size: 17px; fill: rgba(255, 255, 255, .5); }
.map-svg .pin { fill: #808080; }
.map-svg .pulse { fill: none; stroke: var(--paper); stroke-width: 1; transform-box: fill-box; transform-origin: center; stroke: #808080; animation: pulse 2.6s var(--ease) infinite; }
.map-svg .leader { stroke: rgba(128, 128, 128, .6); stroke-width: 1; }
.map-svg .pin-label { font-size: 18px; font-weight: 500; fill: #808080; }
.map-svg .pin-sub { font-size: 13px; fill: #7a7a7a; }
.map:hover .pin-sub { fill: #a0a0a0; text-decoration: underline; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(4.2); opacity: 0; } }

.cats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 56px;
  padding: 0 24px;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: .02em;
}

/* 4. The place: sharp, no glow, Join under it */
.video-screen { padding-top: 120px; gap: 56px; }
.video-inner { display: flex; flex-direction: column; align-items: center; gap: 44px; }
.vert {
  width: min(400px, 78vw);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  background: #0b0b0b;
}
.join {
  --off: 14px;
  --len-size: 18px;
  padding: 12px 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  transition: letter-spacing .35s var(--ease);
}
.join:hover { letter-spacing: .06em; }

/* 5. Ongoing: one centre line through every screen; each company hangs off it by a dot */
.ongoing-seg { position: relative; }
.ongoing-seg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .7);
}
.pair { gap: clamp(56px, 12vh, 140px); padding: 120px 0 72px; }
.co {
  --tile: clamp(170px, 16vw, 230px);
  --gap: clamp(90px, 14vw, 240px);
  position: relative;
  width: 100%;
  height: var(--tile);
}
/* Dot on the line */
.co::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--paper);
}
/* Connector from the tile to the dot */
.co::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  left: calc(50% - var(--gap));
  width: var(--gap);
  background: var(--paper);
  transform-origin: right center;
}
.co.flip::after { left: 50%; transform-origin: left center; }

.tile {
  position: absolute;
  top: 0;
  left: calc(50% - var(--gap) - var(--tile));
  width: var(--tile);
  height: var(--tile);
  display: grid;
  place-items: center;
  border: 1px solid var(--faint);
  background: #050505;
  transition: border-color .3s var(--ease);
}
.co.flip .tile { left: calc(50% + var(--gap)); }
.tile:hover { border-color: rgba(255, 255, 255, .5); }
.tile img { width: 80%; height: 80%; object-fit: contain; }
/* Each tile takes the logo's own background colour, so the logo sits in its own block */
.tile-sophy, .tile-paraplu, .tile-mastermind, .tile-lucretio { background: #fff; border-color: #fff; }
.tile-coffee { background: #293D33; border-color: #293D33; }
.tile-trigger { background: #EB6C07; border-color: #EB6C07; }
.tile-coffee img, .tile-trigger img { width: 100%; height: 100%; }

.co p {
  position: absolute;
  top: 50%;
  left: calc(50% + 64px);
  width: min(360px, calc(50% - 96px));
  transform: translateY(-50%);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  text-align: left;
}
.co.flip p { left: auto; right: calc(50% + 64px); text-align: right; }

/* Ongoing arrives quietly: connector draws, tile and text settle */
.co.pre::after { transform: scaleX(0); }
.co.pre .tile, .co.pre p { opacity: 0; }
.co.pre .tile { translate: 0 14px; }
.co.in::after { transform: scaleX(1); transition: transform .7s var(--ease); }
.co.in .tile, .co.in p { opacity: 1; translate: 0 0; transition: opacity .7s var(--ease) .15s, translate .7s var(--ease) .15s; }
.reveal.pre { opacity: 0; translate: 0 18px; }
.reveal.in { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease), translate .9s var(--ease); }

/* 4. Ongoing: all companies on one screen, veiled in a black mist that clears around the cursor */
.ongoing { position: relative; z-index: 3; gap: clamp(28px, 6vh, 64px); padding-top: 96px; padding-bottom: 56px; }
.ongoing-title {
  position: relative; z-index: 3;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem); color: rgba(255, 255, 255, .78);
}
.ongoing-title em { font-style: italic; }
.companies {
  --t: clamp(104px, min(9.5vw, 15vh), 150px);
  --gx: clamp(36px, 4.6vw, 80px);
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(22px, 4vh, 44px) var(--gx);
  max-width: calc(var(--t) * 4 + 3 * var(--gx) + 2px);
}
.company { width: var(--t); display: flex; flex-direction: column; align-items: center; gap: 18px; outline: none; }
/* A gentle stagger, so the grid reads as a gathering rather than a spreadsheet */
.company:nth-child(2n) { transform: translateY(22px); }
.company:nth-child(5), .company:nth-child(7) { transform: translateY(18px); }
.company:nth-child(6) { transform: translateY(-6px); }
.companies .tile {
  position: relative; left: auto; top: auto; width: var(--t); height: var(--t);
  border: 0; --off: 12px; --len-size: 14px; --w-size: 1.5px;
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: saturate(.85);
}
.companies .tile img { transition: transform .6s var(--ease); }
.company p {
  min-height: 3.2em; max-width: 17em; width: max-content;
  font-size: .8rem; line-height: 1.55; color: rgba(255, 255, 255, .78); text-align: center; text-wrap: balance;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.company:hover .tile, .company:focus-visible .tile { transform: translateY(-4px); filter: none; }
.company:hover .tile img, .company:focus-visible .tile img { transform: scale(1.04); }
.company:hover p, .company:focus-visible p { opacity: 1; transform: none; }
.company:hover .tile::before, .company:focus-visible .tile::before { opacity: 1; transform: scale(1); }

/* The mist: near-black veil with slow drifting haze; a soft clear circle follows the cursor */
.mist {
  --mx: -999px; --my: -999px; --mr: 0px;
  position: absolute; inset: -90px -140px; z-index: 2; pointer-events: none;
  /* soft-edged veil: dense in the middle, fading out at the edges so there is no visible box */
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, .66) 72%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 0%, rgba(0, 0, 0, .35) 45%, #000 100%);
          mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 0%, rgba(0, 0, 0, .35) 45%, #000 100%);
}
.mist::before, .mist::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(30% 24% at 34% 42%, rgba(255, 255, 255, .04), transparent 70%),
    radial-gradient(28% 22% at 66% 60%, rgba(255, 255, 255, .03), transparent 70%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate;
}
.mist::after { animation-duration: 31s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes drift { from { transform: translate(-4%, -2%) scale(1); } to { transform: translate(5%, 3%) scale(1.08); } }
/* While dragging the layout, lift the veil so you can see what you move */
.editing .mist { display: none; }

/* 6. Create */
.create-frame {
  --off: 28px;
  --len-size: 34px;
  --w-size: 2px;
  width: min(620px, calc(100vw - 96px));
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.create-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}
.create-frame textarea {
  width: 100%;
  resize: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  color: var(--paper);
  font: 400 1.05rem/1.6 var(--sans);
  text-align: center;
  padding: 8px 4px;
  transition: border-color .3s var(--ease);
}
.create-frame textarea::placeholder { color: rgba(255, 255, 255, .38); }
.create-frame textarea:focus { outline: none; border-color: var(--paper); }
.send {
  padding: 12px 34px;
  background: var(--paper);
  color: var(--black);
  border: 0;
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .2s;
}
.send:hover { opacity: .85; }

/* Footer */
.foot {
  padding: 96px 24px 40px;
  border-top: 1px solid var(--faint);
  display: grid;
  justify-items: center;
  gap: 40px;
  text-align: center;
}
.foot-mark { width: 110px; height: auto; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; justify-content: center; font-size: .98rem; line-height: 1.6; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-k { display: block; margin-bottom: 6px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.foot-small { font-size: .78rem; color: rgba(255, 255, 255, .4); }

/* Layout editor */
.drag-btn { position: fixed; left: 16px; bottom: 16px; z-index: 30; padding: 9px 16px; background: #fff; color: #000; border: 0; font: 500 12px/1 var(--sans); letter-spacing: .04em; cursor: pointer; }
.drag-btn[hidden] { display: none; }
.drag-btn:disabled { opacity: .7; cursor: default; }
.edit-bar { position: fixed; left: 16px; bottom: 16px; z-index: 30; display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: #111; border: 1px solid rgba(255, 255, 255, .3); font: 500 12px/1 var(--sans); }
.edit-bar button { font: inherit; padding: 6px 10px; background: #fff; color: #000; border: 0; cursor: pointer; }
.guide { position: fixed; z-index: 20; background: #FF3D7F; pointer-events: none; }
#guide-v { top: 0; bottom: 0; width: 1px; }
#guide-h { left: 0; right: 0; height: 1px; }
.guide[hidden] { display: none; }
.editing [data-drag] { cursor: ns-resize; touch-action: none; outline: 1px dashed rgba(255, 255, 255, .45); outline-offset: 6px; transition: none !important; }
.editing [data-drag]:hover { outline-color: #FF3D7F; }
.editing [data-drag] * { pointer-events: none; }

/* ---------- Phones: the line moves to the left edge, companies stack beside it ---------- */
@media (max-width: 760px) {
  .screen { padding: 88px 22px; }
  .hero .words { gap: 22px; }
  .bar { padding: 14px 22px; }
  .bar-logo img { width: 80px; }
  .space-screen { padding-top: 7vh; }
  .quote-screen { padding: 10vh 22px 9vh; }
  .map { margin: 4vh -45% 0; }
  .map-svg .land-label, .map-svg .ring-label { font-size: 19px; }
  .map-svg .pin-label { font-size: 28px; }
  .map-svg .pin-sub { font-size: 21px; }
  .cats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 0; text-align: center; }
  .cats li:last-child { grid-column: 1 / -1; }

  .ongoing-seg::before { left: 28px; }
  .companies { --t: 92px; --gx: 16px; gap: 26px 16px; max-width: 330px; }
  .company p { font-size: .68rem; opacity: 1; transform: none; max-width: 9.5em; color: rgba(255,255,255,.7); }
  .company:nth-child(n) { transform: none; }
  .ongoing { padding-top: 96px; }
  .pair { gap: 64px; padding: 104px 0 56px; align-items: stretch; }
  .co { --tile: 132px; height: auto; padding: 0 22px 0 76px; display: grid; gap: 18px; }
  .co::before { left: 28px; top: 66px; }
  .co::after, .co.flip::after { left: 28px; width: 48px; top: 66px; transform-origin: left center; }
  .tile, .co.flip .tile { position: relative; left: auto; top: auto; }
  .co p, .co.flip p { position: static; transform: none; width: auto; text-align: left; }

  .create-frame { padding: 44px 26px; }
  .quote p { text-align: left; }
  .foot-cols { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chevron, .map-svg .pulse, .mist::before, .mist::after { animation: none; }
}


/* =====================================================================
   Below the map. One idea: &Co. means "and company".
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  font-size: .78rem; letter-spacing: .06em; color: rgba(255, 255, 255, .45);
}
.eyebrow span { color: var(--paper); letter-spacing: .28em; text-transform: uppercase; font-size: .7rem; }

/* ---------- 4. Ongoing: the index ---------- */
.idx-sec { position: relative; z-index: 3; margin-top: -5vh; padding: 2vh 24px 10vh; text-align: center; }
.idx-title {
  margin-top: 16px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.01em;
}
.idx-hint { margin-top: 18px; font-size: .82rem; letter-spacing: .04em; color: rgba(255, 255, 255, .45); }
.idx-hint .when-open, .is-open .idx-hint .when-closed { display: none; }
.is-open .idx-hint .when-open { display: inline; }

.idx-wrap { margin-top: clamp(36px, 6vh, 64px); }
.idx {
  --gap: 34px;             /* distance from the line to the content */
  position: relative;
  /* Two columns either side of the spine; each company spans two half-rows, so left and right interlock */
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  max-width: 1040px; margin: 0 auto; padding: 18px 0; list-style: none;
  cursor: pointer; outline: none;
}
.is-open .idx { cursor: default; }
/* The spine */
.idx::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .7) 6%, rgba(255, 255, 255, .7) 94%, rgba(255, 255, 255, 0));
}
.idx-item {
  position: relative;
  min-height: 30px;
  transition: padding .9s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.idx-item.l { grid-column: 1; }
.idx-item.r { grid-column: 2; }
.idx-dot { position: absolute; top: 15px; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; transition: transform .6s var(--ease), top .9s var(--ease); }
.idx-item.l .idx-dot { right: -2.5px; }
.idx-item.r .idx-dot { left: -2.5px; }
.idx-tick { position: absolute; top: 15px; height: 1px; width: 18px; background: rgba(255, 255, 255, .7); transition: width .9s var(--ease), top .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.idx-item.l .idx-tick { right: 0; }
.idx-item.r .idx-tick { left: 0; }
.idx-item.l .idx-body { margin-right: var(--gap); text-align: right; }
.idx-item.r .idx-body { margin-left: var(--gap); text-align: left; }

/* Closed: a compact table of contents */
.idx-label {
  display: block; line-height: 30px;
  font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: rgba(255, 255, 255, .78);
  transition: opacity .4s var(--ease), max-height .6s var(--ease);
  max-height: 30px; overflow: hidden;
}
.idx-label .idx-no { font-family: var(--sans); font-style: normal; font-size: .62rem; letter-spacing: .22em; color: rgba(255, 255, 255, .38); margin: 0 8px; }
.idx:hover .idx-label { color: #fff; }

/* Open: each company unfolds into a framed piece with its story */
.idx-open { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.idx-card { overflow: hidden; min-height: 0; }
.idx-card > * { opacity: 0; translate: 0 14px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(200ms + var(--i) * 70ms); }
.idx-frame { display: inline-block; padding: 14px; border: 1px solid rgba(255, 255, 255, .16); }
.idx-tile { width: clamp(170px, 17vw, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.idx-tile img { width: 76%; height: 76%; object-fit: contain; }
.idx-tile.fill img { width: 100%; height: 100%; }
.idx-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.idx-item.l .idx-meta { align-items: flex-end; }
.idx-meta .idx-no { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.idx-name { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; color: #fff; }
.idx-desc { max-width: 24em; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .6); }

.is-open .idx { --gap: 92px; }
.is-open .idx-item { padding: 0 0 clamp(36px, 5vh, 56px); }
.is-open .idx-item:last-child { padding-bottom: 8px; }
.is-open .idx-label { opacity: 0; max-height: 0; }
.is-open .idx-open { grid-template-rows: 1fr; }
.is-open .idx-card > * { opacity: 1; translate: 0 0; }
.is-open .idx-tick { width: 92px; top: calc(14px + clamp(170px, 17vw, 230px) / 2); }
.is-open .idx-dot { top: calc(14px + clamp(170px, 17vw, 230px) / 2); transform: scale(1.8); }
.is-open .idx-frame { transition: border-color .5s var(--ease); }
.is-open .idx-item:hover .idx-frame { border-color: rgba(255, 255, 255, .55); }
.is-open .idx-item:hover .idx-tick { background: #fff; }

.gal-you { display: inline-block; margin-top: clamp(40px, 7vh, 72px); font-size: .9rem; color: rgba(255, 255, 255, .55); transition: color .3s; }
.gal-you em { font-family: var(--serif); font-size: 1.15em; color: #fff; }
.gal-you:hover { color: #fff; }
/* ---------- 5. What happens here ---------- */
.offer {
  position: relative;
  /* Video left, list right; the pair is centred as one group on the page axis */
  display: grid; grid-template-columns: auto auto; justify-content: center;
  align-items: center; gap: clamp(56px, 8vw, 128px);
  max-width: 1240px; margin: 0 auto;
  padding: 10vh 6vw 12vh;
}
.viewfinder { --off: 18px; --len-size: 30px; --w-size: 2px; position: relative; width: min(400px, 34vw); }
/* The viewfinder brackets only appear while the mouse is on the video */
.viewfinder:hover::before { opacity: 1; transform: scale(1); }
.viewfinder video { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #0b0b0b; }
.vf-tl, .vf-br { position: absolute; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.vf-tl { top: 16px; left: 16px; }
.vf-br { bottom: 16px; right: 16px; }
.offer-text { display: flex; flex-direction: column; align-items: flex-start; width: min(520px, 42vw); }
.offer-text .eyebrow { justify-content: flex-start; margin-bottom: 26px; }
.offers { width: 100%; margin: 0; padding: 0; list-style: none; }
.offers li {
  position: relative;
  display: flex; align-items: baseline; justify-content: flex-start;
  padding: 18px 0 18px 3.2em;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.offers li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.offers .n { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2.2em; text-align: left; font-size: .75rem; letter-spacing: .1em; color: rgba(255, 255, 255, .35); transition: color .4s var(--ease); }
.offers .t {
  font-size: clamp(1.6rem, 3.1vw, 2.7rem); font-weight: 300; letter-spacing: -.01em;
  transition: translate .5s var(--ease), font-style .2s;
}
.offers li:hover .t { translate: 12px 0; font-family: var(--serif); font-style: italic; font-weight: 400; }
.offers li:hover .n { color: var(--paper); }
.offer .join { margin-top: 44px; font-size: 1.35rem; padding: 12px 30px; }

/* ---------- 6. Create ---------- */
.make {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 4vh, 40px);
  padding: 10vh 24px 16vh;
  text-align: center;
}
.make-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 8.6rem); line-height: .95; letter-spacing: -.02em;
}
.make-form { width: min(760px, 100%); display: flex; flex-direction: column; align-items: center; gap: 34px; margin-top: 2vh; }
.make-field { --off: 16px; --len-size: 18px; --w-size: 1.5px; width: 100%; padding: 22px 26px; }
.make-field::before { transition: inset .5s var(--ease); }
.make-field:focus-within::before { inset: -6px; }
.make-field textarea {
  display: block; width: 100%; resize: none; overflow: hidden;
  background: transparent; border: 0; color: var(--paper);
  font: 300 clamp(1.05rem, 1.6vw, 1.3rem)/1.6 var(--sans); text-align: center;
}
.make-field textarea::placeholder { color: rgba(255, 255, 255, .36); }
.make-field textarea:focus { outline: none; }
.make .send {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 30px; background: var(--paper); color: var(--black); border: 0;
  font: 500 .95rem/1 var(--sans); letter-spacing: .04em; cursor: pointer;
  transition: gap .4s var(--ease), opacity .2s;
}
.make .send:hover { gap: 20px; }

/* ---------- Footer ---------- */
.end { position: relative; padding: 12vh 6vw 28px; border-top: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.end-cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; font-size: 1rem; line-height: 1.6; }
.end-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.end-k { display: block; margin-bottom: 8px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.end-logo img { display: block; width: 96px; height: auto; }
.end-small { max-width: 1240px; margin: 8vh auto 0; font-size: .74rem; color: rgba(255, 255, 255, .38); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  /* Phones: the spine runs down the left; everything hangs to its right, one after another */
  .idx { grid-template-columns: 1fr; }
  .idx-item, .idx-item.l, .idx-item.r { grid-column: 1; grid-row: auto !important; }
  .idx::before { left: 14px; }
  .idx-item.l .idx-dot, .idx-item.r .idx-dot { left: 11.5px; right: auto; }
  .idx-item.l .idx-tick, .idx-item.r .idx-tick { left: 14px; right: auto; }
  .idx-item.l .idx-body, .idx-item.r .idx-body { margin-left: calc(14px + var(--gap)); margin-right: 0; text-align: left; }
  .idx-item.l .idx-meta { align-items: flex-start; }
  .is-open .idx { --gap: 40px; }
  .is-open .idx-tick { width: 40px; top: calc(14px + 150px / 2); }
  .is-open .idx-dot { top: calc(14px + 150px / 2); }
  .idx-tile { width: 150px; }
  /* Phones: the tapped company opens right under the names, in the flow of the page */
  .peek.docked { position: relative; left: auto; top: auto; transform: none !important; display: none; width: 190px; margin: -8px auto 0; }
  .peek.docked.show { display: block; }
  .roll-names.focus ~ .roll-hint { display: none; }
  .roll-hint::after { content: ""; }
  .offer { grid-template-columns: 1fr; justify-items: center; padding: 10vh 22px; gap: 52px; }
  .offer-text { width: 100%; }
  .viewfinder { justify-self: center; width: min(320px, 82vw); }
  .offers .t { font-size: 1.7rem; }
  .make-title { font-size: 3.2rem; }
  .end-cols { flex-direction: column; gap: 28px; }
}
@media (hover: none) {
  .roll-hint { font-size: 0; }
  .roll-hint::before { content: "Tap a name"; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .roll .name, .roll .amp { translate: none !important; }
}
