/* Fein Media Productions. One stylesheet. Design direction and reasoning: PROJECT-NOTES.md (Design direction). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
}

:root {
  /* colour (owner, 2026-10-26: less black and white, and no red or orange anywhere): deep petrol from the logo's
     hue instead of black, the logo's cyan for actions, markers and big brand moments, paper white for text */
  --ink: #0e2125;          /* petrol night: the page */
  --ink-2: #142c31;        /* raised surfaces */
  --ink-deep: #0a191c;     /* footer */
  --paper: #f4efe6;
  --paper-dim: #d3dcda;
  --stone: #9db1b2;        /* secondary text on petrol, 7.3:1 */
  --line: rgba(244, 239, 230, 0.14);
  --line-strong: rgba(244, 239, 230, 0.46);  /* control borders, 3:1 on petrol */
  --cyan: #50e7fc;         /* the logo's colour */
  --on-cyan: #0e2125;      /* text on cyan, 10.6:1 */
  --on-cyan-2: #24545b;    /* secondary text on cyan, 5.1:1 */
  --scrim: rgba(14, 33, 37, 0.8);

  /* type: Archivo at three widths */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --narrow: 62%;
  --mid: 75%;
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 17px;
  --t-lg: clamp(18px, 1.35vw, 21px);
  --t-statement: clamp(26px, 3.3vw, 48px);
  /* the hero's two lines are measured: "PRODUCTIONS" is 5.15em wide, "FEIN MEDIA" 4.05em; the size follows the width */
  --d-hero: min(calc((100vw - 2 * var(--gutter)) / 5.4), 104px);
  --d-page: clamp(56px, 9.5vw, 152px);
  --d-h2: clamp(44px, 6.6vw, 104px);

  /* space and layout */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(64px, 9vw, 128px);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 62px;        /* the header once the page has scrolled */
  --header-top: 76px;    /* at the top of the page (owner, 2026-10-26: a little bigger, shrinking on scroll) */
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--t-md) / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* The background is not one flat colour (owner, 2026-10-26: changing smoothly, barely noticeable): two fixed layers
   behind everything, each with very soft fields of light, the logo's cyan and a lighter petrol. They drift a little
   as the page scrolls (site.js sets --sp, 0 at the top to 1 at the bottom). Only transform changes, so nothing is
   repainted while scrolling; with reduced motion they stay where they are. */
body::before, body::after {
  content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none; will-change: transform;
}
body::before {
  background:
    radial-gradient(36% 32% at 30% 26%, rgba(80, 231, 252, 0.07), transparent 70%),
    radial-gradient(44% 40% at 76% 64%, rgba(36, 96, 112, 0.4), transparent 72%);
  transform: translate3d(calc(var(--sp, 0) * 8%), calc(var(--sp, 0) * -12%), 0);
}
body::after {
  background:
    radial-gradient(40% 36% at 64% 24%, rgba(26, 72, 86, 0.36), transparent 70%),
    radial-gradient(32% 30% at 22% 74%, rgba(80, 231, 252, 0.05), transparent 70%);
  transform: translate3d(calc(var(--sp, 0) * -10%), calc(var(--sp, 0) * 9%), 0);
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; } /* the one !important: [hidden] must win over any display rule */
::selection { background: var(--cyan); color: var(--on-cyan); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; z-index: 100; inset-inline-start: var(--s4); top: -100px;
  padding: var(--s3) var(--s4); background: var(--cyan); color: var(--on-cyan); font-weight: 600; border-radius: var(--radius);
}
.skip:focus { top: var(--s3); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type roles ---------- */
.display {
  margin: 0;
  font-stretch: var(--narrow);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.h2 { font-size: var(--d-h2); }
.label {
  display: flex; align-items: center; gap: var(--s3);
  margin: 0 0 var(--s4);
  font-size: 13px; font-stretch: var(--mid); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
  color: var(--stone);
}

.lead { margin: var(--s5) 0 0; max-width: 46ch; font-size: var(--t-lg); line-height: 1.55; color: var(--paper-dim); }

/* ---------- buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-stretch: var(--mid); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: var(--on-cyan); }
.btn-primary:hover { background: var(--paper); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  color: var(--paper); text-decoration: none;
  font-size: var(--t-sm); font-stretch: var(--mid); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--cyan); }
.link-arrow:hover svg { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--scrim); color: var(--paper); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--paper); }
.icon-btn:disabled { opacity: 0.35; cursor: default; border-color: var(--line); }

/* ---------- header ---------- */
/* At the top of the page the header is see-through, so the background runs on behind it; once the page scrolls it
   turns nearly solid, so content passing under it never shows through the menu. */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(14, 33, 37, 0);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
body { padding-top: var(--header-top); } /* the space the fixed header covers at the top */
.site-header.is-scrolled { background: rgba(14, 33, 37, 0.94); border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-top); transition: min-height 0.3s var(--ease); }
.site-header.is-scrolled .header-in { min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--paper); text-decoration: none; }
.brand img { width: 54px; height: auto; transition: width 0.3s var(--ease); }
.site-header.is-scrolled .brand img { width: 42px; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: var(--t-sm); font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--paper);
}
.main-nav a:hover { color: var(--cyan); }
.main-nav a[aria-current="page"] { text-decoration: underline 2px var(--cyan); text-underline-offset: 8px; }
.header-cta { display: none; }
@media (max-width: 479px) {
  .main-nav a { padding: 0 8px; }
}
@media (min-width: 760px) {
  :root { --header: 68px; --header-top: 96px; --d-hero: min(calc((min(100vw, var(--wrap) + 2 * var(--gutter)) - 2 * var(--gutter)) / 5.5), 200px); }
  .brand img { width: 70px; }
  .site-header.is-scrolled .brand img { width: 50px; }
  .main-nav a { padding: 0 14px; }
  .header-cta { display: inline-flex; margin-inline-start: var(--s3); }
}
/* Phones (owner, 2026-10-26): the links fold into a menu that drops down under the header, and the WhatsApp button
   stays out in the bar as its mark alone. Only with JavaScript (html.js), which opens the menu; without it the links
   stay in the bar as above. */
.menu-btn { display: none; }
@media (max-width: 759.98px) {
  .js .header-in { gap: var(--s2); }
  .js .header-cta { display: inline-flex; margin-inline-start: auto; width: 44px; padding: 0; }
  .js .header-cta .wa-icon svg { width: 22px; height: 22px; }
  .js .cta-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .js .main-nav { order: 1; margin-inline-start: 0; }
  .js .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--paper); cursor: pointer;
    transition: border-color 0.2s var(--ease);
  }
  .js .menu-btn:hover { border-color: var(--paper); }
  .js .menu-btn svg { width: 22px; height: 22px; }
  .js .menu-btn > span:not(.sr-only) { display: grid; }
  .js .menu-btn[aria-expanded="true"] .i-menu, .js .menu-btn[aria-expanded="false"] .i-close { display: none; }
  .js .main-nav ul {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; padding: var(--s1) var(--gutter) var(--s4);
    background: var(--ink); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translate3d(0, -8px, 0);
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .menu-open .main-nav ul { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .main-nav li + li { border-top: 1px solid var(--line); }
  .js .main-nav a { display: flex; min-height: 56px; padding: 0; font-size: 26px; font-stretch: var(--narrow); font-weight: 800; letter-spacing: 0.01em; }
  .js .main-nav a[aria-current="page"] { color: var(--cyan); text-decoration: none; }
  .js .site-header.menu-open { background: var(--ink); border-bottom-color: var(--line); }
}

/* ---------- reel card (video) ---------- */
.reel { margin: 0; min-width: 0; }
.reel-link { display: block; color: inherit; text-decoration: none; }
.reel-link:focus-visible { outline: none; }
.reel-link:focus-visible .reel-media { outline: 2px solid var(--cyan); outline-offset: 3px; }
.reel-media {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--radius); background: var(--ink-2);
}
.reel-media img, .reel-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.reel-media img { transition: transform 0.6s var(--ease); }
.reel-media video { opacity: 0; transition: opacity 0.3s var(--ease); }
.reel.is-playing .reel-media video { opacity: 1; }
.reel-link:hover .reel-media img { transform: scale(1.03); }
.reel-time, .reel-play { position: absolute; z-index: 1; }
.reel-time {
  inset-block-start: var(--s2); inset-inline-start: var(--s2);
  padding: 3px 6px; border-radius: 2px; background: var(--scrim);
  font-size: var(--t-xs); font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.06em; line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.reel-play {
  inset-block-end: 10px; inset-inline-end: 10px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cyan); color: var(--on-cyan);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.reel-play svg { width: 18px; height: 18px; margin-inline-start: 2px; }
.reel-link:hover .reel-play, .reel-link:focus-visible .reel-play { background: var(--paper); transform: scale(1.06); }
.reel-meta { display: block; padding-top: var(--s3); }
.reel-client {
  display: block; font-size: var(--t-xs); font-stretch: var(--mid); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
}
.reel-title { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.reel-link:hover .reel-title { text-decoration: underline 1px var(--cyan); text-underline-offset: 4px; }

.reel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s3); }
@media (min-width: 700px) {
  .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s5); }
  .reel-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
}
@media (min-width: 1100px) {
  .reel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s7) var(--s5); }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 72px) clamp(56px, 8vw, 112px); overflow: clip; }
.hero-title { font-size: var(--d-hero); }
.hero-line { display: block; }
.hero-line + .hero-line { color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
.hero-grid { display: grid; gap: var(--s7); margin-top: var(--s5); }
.hero-copy .lead { margin-top: 0; max-width: 40ch; }
.hero-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.hero-reel-2 { margin-top: var(--s7); }
.hero-reels .reel-title { font-size: 15px; }
@media (max-width: 559px) {
  .hero-reels .reel-meta { display: none; }   /* too narrow for titles here; each link keeps its full name */
  .hero-reels .reel-play { width: 32px; height: 32px; inset-block-end: 6px; inset-inline-end: 6px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s8); align-items: start; margin-top: var(--s7); }
  .hero-reels { gap: var(--s4); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-line { transform: translate3d(calc(var(--hp, 0) * -7vw), 0, 0); }
  .js .hero-line + .hero-line { transform: translate3d(calc(var(--hp, 0) * 7vw), 0, 0); }
  .js .hero-reel-1 { transform: translate3d(0, calc(var(--hp, 0) * -60px), 0); }
  .js .hero-reel-2 { transform: translate3d(0, calc(var(--hp, 0) * 50px), 0); }
  .js .hero-reel-3 { transform: translate3d(0, calc(var(--hp, 0) * -110px), 0); }
}

/* ---------- intro statement ---------- */
.intro { padding-block: var(--section); border-top: 1px solid var(--line); }
.statement { margin: 0; max-width: 1120px; font-size: var(--t-statement); font-weight: 500; line-height: 1.16; letter-spacing: -0.012em; text-wrap: balance; }
.intro-text { margin: var(--s6) 0 0; max-width: 44ch; font-size: var(--t-lg); color: var(--stone); }

/* ---------- marquee band: moves only with the scroll ---------- */
.band { overflow: hidden; padding-block: clamp(10px, 1.2vw, 14px); background: var(--cyan); color: var(--on-cyan); }
.band-track { display: flex; width: max-content; transform: translate3d(var(--bx, 0px), 0, 0); }
.band span {
  padding-inline: 0.3em;
  font-size: clamp(22px, 2.6vw, 36px); font-stretch: var(--narrow); font-weight: 800; line-height: 1;
  text-transform: uppercase; white-space: nowrap;
}
.band span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--on-cyan); }
@media (prefers-reduced-motion: reduce) { .band-track { transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s4) var(--s6); margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head .label { flex-basis: 100%; margin: 0; }

/* ---------- the edit ("The Fein Edge", laid out as on the old site: picture left, text right; owner 2026-10-26) ---------- */
.edit { padding-bottom: 0; overflow-x: clip; }   /* the side entrances never widen the page */
.edit-grid { display: grid; gap: var(--s6); align-items: center; }
.edit-copy { order: -1; }   /* phones: the text first, as on the old site */
.edit-copy .h2 .accent { color: var(--cyan); }
.edit-copy p:not(.label) { margin: var(--s5) 0 0; max-width: 46ch; font-size: var(--t-lg); color: var(--stone); }
.edit-frame { aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.edit-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .edit-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s8); }
  .edit-copy { order: 0; }
}

.approach { padding-block: var(--section); }
.approach-list { display: grid; gap: 0 var(--s6); margin: 0; padding: 0; list-style: none; }
.approach-item { padding-block: var(--s6); border-top: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.approach-num { display: block; font-size: 15px; font-stretch: var(--mid); font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .approach-item:hover { border-top-color: var(--cyan); }
  .approach-item:hover .approach-num { transform: translateX(4px); }
}
.approach-item h3 {
  margin: var(--s4) 0 var(--s3); font-size: clamp(28px, 2.6vw, 38px); font-stretch: var(--narrow); font-weight: 800;
  line-height: 0.95; text-transform: uppercase;
}
.approach-item p { margin: 0; color: var(--stone); max-width: 40ch; }
@media (min-width: 700px) { .approach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .approach-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- services: a grid of pictures, like the old site's gallery (owner, 2026-10-26) ---------- */
.services-note { margin: 0; max-width: 40ch; color: var(--stone); font-size: var(--t-lg); }
.tiles { display: grid; grid-auto-rows: 260px; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.tile-event { grid-row: span 2; }
.tile { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); transition: border-color 0.3s var(--ease); }
.tile-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper); text-decoration: none; }
.tile-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
/* The text always sits on its own dark panel (owner, 2026-10-26: some tiles were hard to read on a busy picture):
   near-solid behind the words, fading out above them, so no part of the picture shows through the text. */
.tile-text {
  position: relative; z-index: 1; padding: var(--s8) var(--s5) var(--s5);
  background: linear-gradient(to top, rgba(10, 25, 28, 0.98) 0%, rgba(10, 25, 28, 0.97) calc(100% - 64px), rgba(10, 25, 28, 0) 100%);
}
.tile h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-stretch: var(--narrow); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
.tile p { margin: var(--s2) 0 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--paper); }
.tile-watch {
  display: block; margin-top: var(--s3); line-height: 1.4;
  font-size: 13px; font-stretch: var(--mid); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
}
.tile-watch svg { display: inline-block; width: 16px; height: 16px; margin-inline-start: 4px; vertical-align: -3px; transition: transform 0.2s var(--ease); }  /* the arrow follows the last word */
/* hover (owner, 2026-10-26: every tile answers the mouse, linked or not): the picture moves in a little and the
   edge lights up; only linked tiles move their arrow, and only they get the pointer */
@media (hover: hover) {
  .tile:hover { border-color: var(--line-strong); }
  .tile:hover .tile-in img { transform: scale(1.05); }
  a.tile-in:hover .tile-watch svg { transform: translateX(3px); }
}
a.tile-in:focus-visible { outline-offset: -4px; }
.tile-promo .tile-in img { object-position: center 20%; }
.tile-iphone .tile-in img { object-position: center 30%; }
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; gap: var(--s4); }
  .tile-event, .tile-social, .tile-strategy { grid-column: span 2; }
  .tile-event { grid-row: span 1; }
  .tile-promo { grid-row: span 2; }
}
@media (min-width: 1100px) {
  /* row 1-2: event (2 x 2), promo (tall), editing; iPhone under editing; row 3: social and strategy, half each */
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 17vw, 260px); }
  .tile-event { grid-column: span 2; grid-row: span 2; }
  .tile-social, .tile-strategy { grid-column: span 2; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: var(--s7); }
.contact-text { margin: var(--s5) 0 0; max-width: 46ch; color: var(--stone); font-size: var(--t-lg); }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list div { padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: var(--t-xs); font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.contact-list dd { margin: var(--s1) 0 0; }
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; text-decoration: none; overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--cyan); }
@media (min-width: 960px) {
  .intro-text { margin-inline-start: min(40%, 560px); }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s8); align-items: end; }
}

.cta-strip { padding-block: var(--section); border-top: 1px solid var(--line); }
.cta-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5) var(--s7); }
.cta-in .reach { margin: 0; }

/* ---------- his platforms: each with its own mark on its own colour (owner, 2026-10-26) ---------- */
.social { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; color: var(--paper); text-decoration: none; }
.social-icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; color: #fff;
  transition: transform 0.2s var(--ease);
}
.social-icon svg { width: 20px; height: 20px; }
.social-instagram .social-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-tiktok .social-icon { background: #000; }
.social-tiktok .social-icon svg { filter: drop-shadow(1.2px 1.2px 0 #fe2c55) drop-shadow(-1.2px -1.2px 0 #25f4ee); }
.social-facebook .social-icon { background: #0866ff; }
.social-linkedin .social-icon { background: #0a66c2; }
.social:hover .social-icon { transform: translateY(-2px); }
.social:hover .social-name { text-decoration: underline 1px var(--cyan); text-underline-offset: 4px; }
.social-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); margin: var(--s2) 0 0; padding: 0; list-style: none; }
.social-list .social { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; }
.wa-icon { display: inline-grid; color: #25d366; }
.wa-icon svg { width: 18px; height: 18px; }
.btn .wa-icon svg { transition: none; }
.btn:hover .wa-icon svg { transform: none; }
.btn-primary .wa-icon { color: currentColor; }  /* WhatsApp green on cyan would not read; the mark takes the label's colour */

/* WhatsApp as the one button, email right under it (owner, 2026-10-26) */
.reach { margin-top: var(--s6); }
.reach-mail { margin: var(--s2) 0 0; color: var(--stone); }
.reach-mail a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--paper); font-weight: 500; text-decoration: underline 1px var(--cyan); text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.reach-mail a:hover { color: var(--cyan); }

/* ---------- page heads, work filters ---------- */
.page-head { padding-top: clamp(36px, 6vw, 88px); }
.page-title { font-size: var(--d-page); }
.work-all { padding-top: clamp(32px, 4vw, 56px); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: clamp(28px, 4vw, 48px); }
html:not(.js) .filters { display: none; } /* no dead controls without the script; every video is listed anyway */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--paper); cursor: pointer;
  font-size: 13px; font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip span { color: var(--stone); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }
.chip[aria-pressed="true"] span { color: var(--on-cyan-2); }

/* ---------- a video's own page ---------- */
.watch { padding-top: var(--s4); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; font-size: var(--t-sm); color: var(--stone); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--s2); color: var(--line-strong); }
.crumbs a { color: var(--stone); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--paper); }
.watch-grid { display: grid; gap: var(--s6); }
.watch-video video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); }
.watch-title { font-size: clamp(48px, 7vw, 104px); }
.watch-desc { margin: var(--s5) 0 0; max-width: 44ch; font-size: var(--t-lg); color: var(--paper-dim); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s6) 0 0; border-top: 1px solid var(--line); }
.facts div { padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--t-xs); font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
@media (min-width: 900px) {
  .watch-grid { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s8); align-items: center; }
  .watch-video video { width: auto; height: min(80vh, 860px); }
}
.more { border-top: 1px solid var(--line); margin-top: var(--section); }

/* ---------- player dialog ---------- */
.player {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--paper);
}
.player::backdrop { background: rgba(10, 25, 28, 0.95); }
.player-in {
  position: relative; display: grid; justify-items: center; align-content: start; gap: var(--s4);
  min-height: 100%; padding: 64px var(--gutter) var(--s5);
}
.player-video {
  width: min(100%, calc((100svh - 230px) * 0.5625)); height: auto; aspect-ratio: 9 / 16;
  background: #000; border-radius: var(--radius);
}
.player-info { width: min(100%, 420px); }
.player-info .label { margin-bottom: var(--s2); }
.player-title { margin: 0; font-size: clamp(30px, 4vw, 48px); font-stretch: var(--narrow); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
.player-desc { margin: var(--s3) 0 0; color: var(--paper-dim); }
.player-len { margin: var(--s2) 0 0; font-size: var(--t-sm); color: var(--stone); font-variant-numeric: tabular-nums; }
.player-nav { display: flex; gap: var(--s2); margin-top: var(--s4); }
.player-close { position: absolute; top: var(--s3); inset-inline-end: var(--gutter); }
@media (max-width: 899px) {
  .player-desc { display: none; } /* small screens: the video and its title; the description is on the video's page */
}
@media (min-width: 900px) {
  .player-in { grid-template-columns: auto 360px; justify-content: center; align-items: center; align-content: center; column-gap: var(--s7); padding: var(--s6); }
  .player-video { width: auto; height: min(86vh, 900px); }
  .player-close { top: var(--s5); inset-inline-end: var(--s5); }
}

/* ---------- text pages ---------- */
.prose { max-width: calc(68ch + 2 * var(--gutter)); margin-inline: 0; padding-block: clamp(36px, 6vw, 88px) var(--section); }
@media (min-width: 1000px) { .prose { margin-inline: auto; } }
.prose .page-title { margin-bottom: var(--s6); font-size: clamp(44px, 6.4vw, 88px); }
.prose h2 { margin: var(--s7) 0 var(--s3); font-size: clamp(28px, 3.2vw, 40px); font-stretch: var(--narrow); font-weight: 800; line-height: 1; text-transform: uppercase; }
.prose p, .prose li { color: var(--paper-dim); }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.prose ul.plain { list-style: none; padding: 0; }
.prose a:not(.btn) { color: var(--paper); text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--cyan); }
.updated { margin-top: var(--s7); font-size: var(--t-sm); color: var(--stone); }
.not-found p { font-size: var(--t-lg); }

/* ---------- footer ---------- */
.site-footer { padding-block: var(--s8) var(--s5); background: var(--ink-deep); font-size: 15px; color: var(--stone); }
.footer-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s5); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 72px; height: auto; }
.footer-name { margin: var(--s4) 0 var(--s2); font-size: 28px; font-stretch: var(--narrow); font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--paper); }
.footer-line { margin: 0; max-width: 32ch; }
.footer-est { margin: var(--s2) 0 0; font-size: var(--t-xs); font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.footer-h { margin: 0 0 var(--s2); font-size: var(--t-xs); font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--stone); text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline 1px var(--cyan); text-underline-offset: 4px; }
.footer-mail { overflow-wrap: anywhere; }
.footer-social .social { min-height: 40px; gap: 10px; color: var(--stone); }
.footer-social .social:hover { color: var(--paper); }
.footer-social .social-icon { width: 28px; height: 28px; border-radius: 7px; }
.footer-social .social-icon svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5);
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--t-sm);
}
.footer-bottom p { margin: 0; }
/* SimplySite credit (SimplySite skill section 15): the studio's logo, small, on a light chip because the footer is dark */
.credit { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--stone); text-decoration: none; }
.credit img { width: auto; height: 28px; padding: 5px 9px; box-sizing: content-box; background: #fbf6ec; border-radius: var(--radius); transition: transform 0.2s var(--ease); }
.credit:hover { color: var(--paper); }
.credit:hover img { transform: translateY(-1px); }
.credit-float {
  position: fixed; z-index: 40; inset-inline-end: var(--s4); bottom: calc(var(--s4) + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 6px 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--scrim); color: var(--stone);
  font-size: 10px; font-stretch: var(--mid); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s var(--ease);
}
.credit-float img { width: auto; height: 22px; padding: 4px 7px; box-sizing: content-box; background: #fbf6ec; border-radius: 2px; }
.credit-float:hover { border-color: var(--line-strong); color: var(--paper); }
.credit-float.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 559px) {
  /* phones: the logo alone, so it covers as little as possible ("Built by" stays for screen readers) */
  .credit-float { inset-inline-end: var(--s3); bottom: calc(var(--s3) + env(safe-area-inset-bottom)); min-height: 0; padding: 4px; }
  .credit-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .credit-float img { height: 18px; }
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); } /* room for the email on one line */
  .footer-top.no-follow { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr); }
  .footer-brand { grid-column: auto; }
}

/* ---------- motion: the home intro, then each part as it comes into view ---------- */
/* Everything here is off with prefers-reduced-motion. html.intro-wait (set in <head>) holds the hero until the font
   is ready (site.js) or 1.5 s have passed, so the title never animates in the fallback font. */
@media (prefers-reduced-motion: no-preference) {
  /* the intro (owner, 2026-10-26): FEIN MEDIA slides in from the left, PRODUCTIONS from the right, then the text and
     the reels rise. It moves `translate`, so the scroll drift on `transform` still works after it. */
  .intro-wait .hero-line { translate: -100vw 0; }
  .intro-wait .hero-line + .hero-line { translate: 100vw 0; }
  .intro-wait .hero-reel > .reel, .intro-wait .hero-copy > * { opacity: 0; }
  .js:not(.intro-wait) .hero-line { animation: from-left 1.1s var(--ease-out) both; }
  .js:not(.intro-wait) .hero-line + .hero-line { animation-name: from-right; animation-delay: 0.12s; }
  .js:not(.intro-wait) .hero-reel > .reel { animation: drop-in 0.9s var(--ease-out) both; }
  .js:not(.intro-wait) .hero-reel-1 > .reel { animation-delay: 0.55s; }
  .js:not(.intro-wait) .hero-reel-2 > .reel { animation-delay: 0.67s; }
  .js:not(.intro-wait) .hero-reel-3 > .reel { animation-delay: 0.79s; }
  .js:not(.intro-wait) .hero-copy > * { animation: rise 0.7s var(--ease-out) both; }
  .js:not(.intro-wait) .hero-copy > :first-child { animation-delay: 0.6s; }
  .js:not(.intro-wait) .hero-copy > :nth-child(2) { animation-delay: 0.72s; }

  /* on the way in: a block rises */
  .js [data-reveal] { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease-out); }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
  /* from the side: the picture from the left, its text from the right (the edit section) */
  .js [data-reveal="left"]:not(.is-in) { transform: translate3d(-72px, 0, 0); }
  .js [data-reveal="right"]:not(.is-in) { transform: translate3d(72px, 0, 0); }
  .js [data-reveal="left"], .js [data-reveal="right"] { transition-duration: 0.9s, 1.1s; }
  .js .edit-frame img { transition: transform 1.6s var(--ease-out); }
  .js [data-reveal="left"]:not(.is-in) .edit-frame img { transform: scale(1.14); }
  /* a heading block: the big title is cut in from the left, the rest rises after it */
  .js [data-reveal="head"], .js [data-reveal="stagger"] { transition: none; }
  .js [data-reveal="head"]:not(.is-in), .js [data-reveal="stagger"]:not(.is-in) { opacity: 1; transform: none; }
  .js [data-reveal="head"] > * { transition: opacity 0.6s var(--ease) 0.18s, transform 0.7s var(--ease-out) 0.18s; }
  .js [data-reveal="head"]:not(.is-in) > * { opacity: 0; transform: translate3d(0, 18px, 0); }
  .js [data-reveal="head"] > .display { clip-path: inset(-10% 0 -10% 0); transition: clip-path 0.95s var(--ease-out), transform 0.95s var(--ease-out); }
  .js [data-reveal="head"]:not(.is-in) > .display { opacity: 1; clip-path: inset(-10% 100% -10% 0); transform: translate3d(-16px, 0, 0); }
  /* a list or grid: each item rises in turn (site.js numbers the items that arrive together: --i) */
  .js [data-reveal="stagger"] > * {
    transition: opacity 0.6s var(--ease) calc(var(--i, 0) * 90ms), transform 0.85s var(--ease-out) calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal="stagger"] > :not(.is-in) { opacity: 0; transform: translate3d(0, 44px, 0); }
  /* video cards: the frame opens from the bottom, like a clip dropped on the timeline */
  .js [data-reveal="stagger"] > .reel .reel-media { clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path 0.9s var(--ease-out) calc(var(--i, 0) * 90ms); }
  .js [data-reveal="stagger"] > .reel:not(.is-in) .reel-media { clip-path: inset(100% 0 0 0 round var(--radius)); }
  .js [data-reveal="stagger"] > .tile { clip-path: inset(0 0 0 0 round var(--radius)); transition: opacity 0.6s var(--ease) calc(var(--i, 0) * 90ms), transform 0.85s var(--ease-out) calc(var(--i, 0) * 90ms), clip-path 1s var(--ease-out) calc(var(--i, 0) * 90ms); }
  .js [data-reveal="stagger"] > .tile:not(.is-in) { clip-path: inset(100% 0 0 0 round var(--radius)); }
}
@keyframes from-left { from { translate: -100vw 0; } to { translate: 0 0; } }
@keyframes from-right { from { translate: 100vw 0; } to { translate: 0 0; } }
@keyframes drop-in { from { opacity: 0; transform: translate3d(0, 64px, 0) scale(0.94); clip-path: inset(100% 0 0 0 round var(--radius)); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  /* the one place with !important: every transition and animation ends at once, whatever set it */
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
}
