/* ============================================================
   EUROPE'S FOUNDRY — the website
   White on black, underlined links, a red dot for "on film". Everything sits in one column.

   Type: two fonts, each with one job (website/DESIGN.md has the why):
   - JetBrains Mono (--mono): everything by default. Menu, labels, body text, the list,
     buttons, page titles.
   - Nothing You Could Do (--hand): a handwritten moment, at most one per page: a big
     headline (about 40px and up), or a word or short phrase inside a title (.hand). Never for
     body text, labels or buttons.
   ============================================================ */

:root {
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "Nothing You Could Do", "Bradley Hand", cursive;
  --bg: #050505;
  --fg: #fff;
  --muted: rgba(255,255,255,0.6);
  --dim: rgba(255,255,255,0.36);
  --line: rgba(255,255,255,0.16);
  --rec: #ff3b30;
  --pad: clamp(20px, 4vw, 48px);
  --col: 860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  background: var(--bg) url('/assets/noise.png') repeat;
  color: var(--fg);
  font: 400 15px/1.6 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; }

/* every link looks like a link */
a { color: inherit; text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -100px; z-index: 30; padding: 8px 12px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 12px; }

/* the small capital line above each part */
.label { font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); vertical-align: 0.15em; margin-left: 0.4em; }

/* the column */
.top, main, .foot { max-width: calc(var(--col) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* ---- top ---- */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 28px; }
.top__mark { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.top__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.top__nav a, .foot a { padding: 8px 0; }

/* ---- intro ---- */
.intro { padding-top: clamp(64px, 10vw, 136px); }
.intro h1 { font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.02em; margin-top: 18px; max-width: 24ch; }
.intro__text { color: var(--muted); margin-top: 16px; max-width: 54ch; }
.reel { margin-top: clamp(36px, 5vw, 64px); aspect-ratio: 2.39 / 1; overflow: hidden; background: #111; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.reel__bar .dot { margin: 0 0.5em 0 0; }
.reel__bar button { background: none; border: 0; padding: 8px 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; text-underline-offset: 0.28em; }
.reel__bar button:hover { color: var(--fg); }

/* ---- blocks ---- */
.block { margin-top: clamp(72px, 10vw, 136px); padding-top: 20px; border-top: 1px solid var(--line); }
.note { margin-top: 18px; max-width: 58ch; }

/* ---- search and filters ---- */
.search { display: flex; align-items: baseline; gap: 1ch; margin-top: 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search:focus-within { border-bottom-color: var(--fg); color: var(--fg); }
.search input { flex: 1; min-width: 0; background: none; border: 0; border-radius: 0; padding: 12px 0; color: var(--fg); }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-top: 18px; }
.chip { background: none; border: 0; padding: 7px 0; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
.chip sup { font-size: inherit; vertical-align: baseline; color: var(--dim); margin-left: 0.6ch; display: inline-block; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); text-decoration: none; padding-inline: 8px; margin-inline: -8px; }
.chip[aria-pressed="true"] sup { color: rgba(0,0,0,0.55); }
.chip--film::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); margin-left: 0.6em; vertical-align: 0.15em; }

/* ---- the list: three columns of links, A to Z down each ---- */
.count { margin-top: clamp(36px, 5vw, 56px); }
.rows { margin-top: 18px; columns: 3; column-gap: 32px; line-height: 1.3; }
.rows li { padding: 0.36em 0; break-inside: avoid; }
.rows li.has-film::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); margin-left: 0.7em; vertical-align: 0.15em; }
.rows a { transition: opacity 0.2s ease; }
@media (hover: hover) {
  .rows:hover a { opacity: 0.4; }
  .rows a:hover { opacity: 1; }
}
.rows__empty { column-span: all; color: var(--muted); padding: 24px 0; }

/* ---- studio: small clips, three across; a clip plays while the pointer is on it ---- */
.studio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; margin-top: 28px; }
.studio button { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.studio video { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.25s ease; }
.studio button:hover video, .studio button.on video { opacity: 1; }
.studio p { display: flex; gap: 2ch; margin-top: 10px; line-height: 1.35; }
.studio p span:first-child { color: var(--dim); }
.studio small { display: block; font-size: inherit; color: var(--muted); }

/* ---- footer ---- */
.foot { margin-top: clamp(96px, 12vw, 168px); padding-bottom: 40px; }
.foot .label { padding-top: 20px; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 2px 24px; margin-top: 14px; color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* ---- a company's page ---- */
.co { padding-top: clamp(56px, 8vw, 112px); min-height: 70svh; }
.co__back { display: inline-block; padding: 8px 0; margin-bottom: clamp(40px, 6vw, 72px); }
.co h1 { font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 14px; overflow-wrap: anywhere; }
.co__facts { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.co__facts > div { display: grid; grid-template-columns: 14ch minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co__facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.co__facts dd { overflow-wrap: anywhere; }
.co__film { margin-top: clamp(40px, 6vw, 72px); }
.frame__pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; margin-bottom: 20px; }
.frame__pic img { width: 100%; height: 100%; object-fit: cover; }
.co__film p { margin: 12px 0 14px; max-width: 58ch; }
.co__next { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 8vw, 104px); padding-top: 20px; border-top: 1px solid var(--line); }
.co__next a { padding: 6px 0; text-decoration: none; }
.co__next a:last-child { text-align: right; }
.co__next small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.co__next a > span { text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }

/* ---- smaller screens ---- */
@media (max-width: 860px) { .rows { columns: 2; } }
@media (max-width: 620px) {
  .studio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) { .rows { columns: 1; } .rows li { padding: 0.55em 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* section headings read as headings: white and bold; the search is a boxed field of its own */
h2.label { color: var(--fg); font-weight: 700; }
.search { margin-top: 28px; padding: 0 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.search:focus-within { border-color: var(--fg); }

/* everything starts on the column's left edge: the search is a line again, with "Search" as its
   heading, and the chosen filter is marked by weight, not by a box that sticks out */
.search { margin-top: 10px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.search:focus-within { border-bottom-color: var(--fg); }
.chip[aria-pressed="true"] { background: none; color: var(--fg); font-weight: 700; text-decoration: none; padding-inline: 0; margin-inline: 0; }
.chip[aria-pressed="true"] sup { color: var(--muted); font-weight: 400; }

/* the intro opens straight on its headline */
.intro h1 { margin-top: 0; }

/* studio: four kinds of film, two across */
.studio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
.studio small { margin-top: 2px; max-width: 34ch; }
@media (max-width: 620px) { .studio { grid-template-columns: 1fr; } }

/* studio tabs: boxed capitals, the chosen one filled white; clips three across */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tab { height: 40px; padding: 0 14px; border: 1px solid var(--line); background: none; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.tab:hover { color: var(--fg); border-color: var(--muted); }
.tab[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.studio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
@media (max-width: 620px) { .studio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* studio tiles: scope frames; under each, the title left and the kind right, in capitals */
.studio { gap: 36px 20px; }
.studio button { aspect-ratio: 2.39 / 1; }
.studio video { opacity: 1; }
.studio p { display: block; margin-top: 12px; }
.studio p span:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--fg); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.studio small { margin: 0; max-width: none; white-space: nowrap; color: var(--muted); }
@media (max-width: 860px) { .studio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .studio { grid-template-columns: 1fr; } }

/* "missing someone" belongs to the list above it: closer, and without a rule of its own */
#add { margin-top: clamp(40px, 5vw, 64px); padding-top: 0; border-top: 0; }


/* ---- text pages: lab, blog, a post, the manifesto ---- */
.text { padding-top: clamp(56px, 8vw, 112px); min-height: 70svh; }
.text h1 { font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.02em; margin-top: 14px; max-width: 26ch; }
.text__lead { color: var(--muted); margin-top: 16px; max-width: 58ch; }
.entries { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.entries li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.entries h2 { font-size: 17px; font-weight: 500; margin-top: 8px; }
.entries li > p:last-child { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.entries__empty { color: var(--muted); }
.prose { margin-top: clamp(36px, 5vw, 56px); max-width: 64ch; }
.prose h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: clamp(44px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); }
.prose p, .prose ul { margin-top: 1.1em; }
.prose li { padding-left: 2ch; text-indent: -2ch; }
.prose li::before { content: "- "; color: var(--dim); }

/* the studio on its own page */
.text .tabs { margin-top: clamp(36px, 5vw, 56px); }
.text__lead a { color: var(--fg); }

/* ============================================================
   Europe's Foundry additions
   ============================================================ */

/* logo instead of a word mark */
.top { align-items: center; }
.top__mark img { height: 26px; width: auto; }
.top__nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
.ext::after { content: " \2197"; text-decoration: none; display: inline-block; margin-left: 0.2ch; color: var(--muted); }

/* newsletter: one line, a field and a button */
.signup { margin-top: 28px; max-width: 520px; }
.signup__row { display: flex; gap: 0; border: 1px solid var(--line); }
.signup__row:focus-within { border-color: var(--fg); }
.signup input { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 14px; color: var(--fg); }
.signup input::placeholder { color: var(--dim); }
.signup input:focus { outline: 0; }
.signup button { border: 0; background: var(--fg); color: var(--bg); padding: 0 18px; cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.signup button:hover { opacity: 0.88; }
.signup__note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.signup__note[data-state="done"] { color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* buttons: boxed capitals, like the studio tabs */
.button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; font-weight: 500; cursor: pointer; }
.button:hover { opacity: 0.88; }
.button--ghost { background: none; color: var(--fg); border-color: var(--line); }
.button--ghost:hover { border-color: var(--fg); opacity: 1; }
.button svg { width: 9px; height: 11px; }

/* start here: three films across */
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; margin-top: 28px; }
.films a { text-decoration: none; display: block; }
.films__pic { aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.films__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.25s ease; opacity: 0.9; }
.films a:hover .films__pic img { transform: scale(1.03); opacity: 1; }
.films p { margin-top: 12px; line-height: 1.4; }
.films p span { display: block; }
.films p span:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.films a:hover p span:first-child { text-decoration: underline; text-underline-offset: 0.28em; }
.films small { font-size: inherit; color: var(--muted); white-space: nowrap; }
.films p span + span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.films__more { margin-top: 24px; }
@media (max-width: 860px) { .films { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .films { grid-template-columns: 1fr; } }

/* get featured */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-top: 18px; }
.featured p { max-width: 52ch; }
@media (max-width: 620px) { .featured { grid-template-columns: 1fr; align-items: start; } }

/* company page: the film plays in place */
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; margin-bottom: 20px; }
.player img, .player iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.player button { position: absolute; inset: 0; display: block; padding: 0; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 38%); border: 0; cursor: pointer; color: var(--fg); }
.player button span { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(5,5,5,0.72); backdrop-filter: blur(6px); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.2s ease; }
.player button span svg { width: 8px; height: 10px; }
.player button:hover span { background: var(--fg); color: var(--bg); }
.player button:focus-visible span { outline: 1px solid var(--fg); outline-offset: 3px; }
.co__desc { font-size: 15px; }
.co__watch { display: inline-block; padding: 6px 0; }

/* lab: each entry leads with its picture, full width in a widescreen frame (like the films),
   then the title and date on the left and the story and the button on the right */
.entries--lab { border-top: 0; }
.lab-entry { padding: 0 0 clamp(48px, 7vw, 88px); border-bottom: 0; }
.lab-entry + .lab-entry { padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.lab-entry__pic { position: relative; display: block; aspect-ratio: 2.39 / 1; overflow: hidden; background: #111; }
.lab-entry__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.lab-entry__pic:hover img { transform: scale(1.03); }
.lab-entry__chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(5,5,5,0.72); backdrop-filter: blur(6px); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.lab-entry__chip svg { width: 8px; height: 10px; }
.lab-entry__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 40px; margin-top: 24px; }
.lab-entry.no-pic .lab-entry__body { margin-top: 0; }
.lab-entry h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; margin-top: 10px; }
.lab-entry h2 a { text-decoration: none; }
.lab-entry h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.lab-entry__body > div:last-child { padding-top: 26px; }
.lab-entry__body p:not(.label) { color: var(--muted); margin-top: 0; }
.lab-entry__body p:not(.label) + p { margin-top: 14px; }
.lab-entry__body p a { color: var(--fg); }
.lab-entry__body .lab-entry__lead { color: var(--fg); }
.button--small { height: 38px; padding: 0 14px; font-size: 13px; margin-top: 22px; }
@media (max-width: 720px) {
  .lab-entry__body { grid-template-columns: 1fr; }
  .lab-entry__body > div:last-child { padding-top: 0; }
  .lab-entry__pic { aspect-ratio: 16 / 9; }
}

/* studio: "coming soon" in the middle of the screen */
main.coming { min-height: calc(100svh - 90px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 48px; }
/* a handwritten word or short phrase inside a Mono title, e.g. Lab's "Experiments" */
.hand { font-family: var(--hand); font-weight: 400; font-size: 1.3em; line-height: 1; letter-spacing: 0; }
/* the handwritten part always starts with a capital ("Stories", "Just"); ::first-letter needs a box */
.hand { display: inline-block; }
.hand::first-letter { text-transform: uppercase; }
.coming h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.3; letter-spacing: 0; margin-top: 16px; }
.coming .text__lead { color: var(--muted); margin-top: 16px; }

/* the footer's newsletter: one rule above it, not the footer's label rule on top of the block's */
.foot .block .label { padding-top: 0; border-top: 0; }

/* ============================================================
   The top bar, the same on every page: full width, logo at the left
   edge, the menu in small capitals at the right edge. On the homepage
   it sits over the film.
   ============================================================ */
.top--wide { max-width: none; padding: 24px clamp(20px, 3vw, 36px) 0; align-items: center; }
.top--wide .top__mark img { height: 30px; }
.top--wide .top__nav a { text-decoration: none; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.top--wide .top__nav a:hover, .top--wide .top__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; font-weight: 400; }
.top--over { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }

/* ============================================================
   Homepage hero: the film full screen and one headline in the middle.
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #000; isolation: isolate; }
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.05) 22%, rgba(0,0,0,0.05) 62%, rgba(0,0,0,0.5)),
    radial-gradient(ellipse 60% 45% at 50% 52%, rgba(0,0,0,0.3), transparent 70%); }
/* centred on the film */
.hero__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.hero h1 { font-family: var(--mono); font-weight: 500; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.15; letter-spacing: -0.04em; max-width: none; text-shadow: 0 2px 30px rgba(0,0,0,0.45); }
/* the headline in Title Case: every word starts with a capital */
.hero h1 { text-transform: capitalize; }
.hero h1 .hand { font-size: 1.25em; line-height: 0.9; letter-spacing: 0; }
@media (max-width: 620px) { .hero h1 br { display: none; } }
.hero__eyebrow { margin-bottom: clamp(12px, 1.4vw, 18px); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-shadow: 0 1px 12px rgba(0,0,0,0.5); }

/* the description and the signup, right under the film */
.hero + main .intro { padding-top: clamp(56px, 8vw, 104px); }
.hero + main .intro .signup { margin-top: 0; }
.list__text { margin-top: 14px; max-width: 60ch; color: var(--muted); }

@media (max-width: 620px) {
  .top--wide { padding-top: 18px; }
  .top--wide .top__nav { gap: 2px 16px; }
}

/* ============================================================
   Contact, Hiring, Shop, Imprint, Privacy
   ============================================================ */
.contact__claim { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.02em; color: var(--fg); margin: 1.2em 0 1em; }
.prose .button { margin-top: 4px; }
.prose--legal h2 { margin-top: clamp(36px, 5vw, 56px); }

/* hiring: each role opens in place */
.text .co__facts { margin-top: clamp(28px, 4vw, 40px); }
.text .co__facts + .prose { margin-top: 28px; }
#roles { margin-top: clamp(56px, 8vw, 96px); }
.roles { margin-top: 18px; border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); }
.role summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; }
.role summary::-webkit-details-marker { display: none; }
.role summary:hover span:first-child { text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
.role__icon { position: relative; width: 14px; height: 14px; flex: none; }
.role__icon::before, .role__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--fg); transition: transform 0.2s ease; }
.role__icon::after { transform: rotate(90deg); }
.role[open] .role__icon::after { transform: rotate(0deg); }
.role__body { padding: 0 0 32px; }
.role__pitch { color: var(--muted); max-width: 62ch; }
.role .prose { margin-top: 8px; }
.role .prose h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 28px; }
.role .prose ul { margin-top: 10px; }
.role .prose strong { font-weight: 500; }
.role .button { margin-top: 28px; }
#roles .note { margin-top: 28px; color: var(--muted); }

/* shop: the photos left, the cap and the reservation right */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); margin-top: 28px; align-items: start; }
.product-stage { aspect-ratio: 1; overflow: hidden; background: #111; }
.product-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
.product-stage img.is-swapping { opacity: 0; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.product-thumb { padding: 0; border: 1px solid transparent; background: #111; cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: 0.55; transition: opacity 0.2s ease, border-color 0.2s ease; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover { opacity: 0.85; }
.product-thumb.is-active { opacity: 1; border-color: var(--fg); }
.product-info h1 { font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.02em; margin-top: 14px; }
.reserve-form { margin-top: 32px; }
.reserve-label { margin-bottom: 12px; }
.reserve-form .newsletter-field-row { display: flex; border: 1px solid var(--line); }
.reserve-form .newsletter-field-row:focus-within { border-color: var(--fg); }
.reserve-form .newsletter-input { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 14px; color: var(--fg); font: inherit; }
.reserve-form .newsletter-input[hidden] { display: none; }
.reserve-form .newsletter-input::placeholder { color: var(--dim); }
.reserve-form .newsletter-input:focus { outline: 0; }
.reserve-form .newsletter-submit { flex: 1 0 auto; border: 0; background: var(--fg); color: var(--bg); padding: 12px 18px; cursor: pointer; font: inherit; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.reserve-form .newsletter-submit:hover { opacity: 0.88; }
.reserve-form .newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reserve-form .newsletter-consent { margin-top: 10px; font-size: 12px; color: var(--muted); }
.reserve-form .newsletter-status { margin-top: 6px; font-size: 12px; }
.reserve-form .newsletter-status--ok { color: var(--fg); }
.reserve-form .newsletter-status--error { color: #ff8a8a; }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; } }

/* a film's links: YouTube, and anything extra like the Thor game */
.co__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.co__links .co__watch { margin-top: 0; }

/* a company's extra, like the Thor game: the picture left, a few lines and the button right */
.co__extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.co__extra .lab-entry__pic { aspect-ratio: 16 / 9; }
.co__extra h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; margin-top: 10px; }
.co__extra h2 a { text-decoration: none; }
.co__extra h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.co__extra p:not(.label) { color: var(--muted); margin-top: 10px; }
@media (max-width: 620px) { .co__extra { grid-template-columns: 1fr; } }


/* 404: Studio's centred layout, but a Mono title with one handwritten word */
.coming h1.mono { font-family: var(--mono); font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.2; }
.coming__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* links: one per row, the whole row is the link */
.links { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); max-width: 560px; }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; text-decoration: none; font-size: 17px; }
.links a::after { content: "->"; color: var(--muted); }
.links a[target="_blank"]::after { content: "↗"; }
.links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; }
.links a:hover::after { color: var(--fg); }

/* homepage: the latest Lab experiment as a compact card. The picture left, then the date,
   the title, the one-line story and the button; the longer text stays on /lab. */
#lab .entries--lab { margin-top: 18px; }
#lab .lab-entry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; padding: 0; border: 1px solid var(--line); transition: border-color 0.25s ease; }
#lab .lab-entry:hover { border-color: rgba(255,255,255,0.4); }
#lab .lab-entry__pic { aspect-ratio: 16 / 10; height: 100%; }
#lab .lab-entry__chip { display: none; }
#lab .lab-entry__body { display: flex; flex-direction: column; justify-content: center; gap: 0; margin: 0; padding: clamp(20px, 2.6vw, 32px); }
#lab .lab-entry__body > div:last-child { padding-top: 0; }
#lab .lab-entry h2 { font-size: clamp(17px, 1.6vw, 20px); margin-top: 8px; }
#lab .lab-entry__lead { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
#lab .lab-entry__body p:not(.label):not(.lab-entry__lead) { display: none; }
#lab .button--small { margin-top: 18px; align-self: flex-start; height: 34px; font-size: 12px; }
@media (max-width: 620px) {
  #lab .lab-entry { grid-template-columns: 1fr; }
  #lab .lab-entry__pic { aspect-ratio: 16 / 9; height: auto; }
}

/* ============================================================
   Phones (620px and under)
   ============================================================ */

/* the menu: a "Menu" button top right; it opens the links as one big list over the page */
.top__menu { display: none; }
@media (max-width: 620px) {
  .top--wide { flex-wrap: nowrap; justify-content: space-between; padding-top: 16px; }
  .top__menu { display: inline-flex; position: relative; z-index: 31; align-items: center; height: 44px; margin-right: -10px; padding: 0 10px;
    background: none; border: 0; color: var(--fg); font: inherit; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
  .top__menu span + span, .is-open .top__menu span:first-child { display: none; }
  .is-open .top__menu span + span { display: inline; }
  .top__mark { position: relative; z-index: 31; }
  .top--wide .top__nav { display: none; }
  .top--wide.is-open .top__nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; position: fixed; inset: 0; z-index: 30; overflow-y: auto;
    padding: 96px 20px 40px; background: var(--bg); animation: menuIn 0.25s ease; }
  .top--wide.is-open .top__nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 24px; letter-spacing: -0.01em; text-transform: none; text-decoration: none; }
  .top--wide.is-open .top__nav a:first-child { border-top: 1px solid var(--line); }
  .top--wide.is-open .top__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
  .menu-open, .menu-open body { overflow: hidden; }
  @keyframes menuIn { from { opacity: 0; } }

  /* 404: the two buttons the same width, one above the other */
  .coming__links { flex-direction: column; align-items: stretch; max-width: 280px; margin-inline: auto; }
}
@media (max-width: 620px) and (prefers-reduced-motion: reduce) { .top--wide.is-open .top__nav { animation: none; } }
.coming__links .button { justify-content: center; }
