/* arthur de wilde · filmmaker
   Dark and cinematic so the footage leads. Cream type, moss green only as a small signal. */

/* fonts served from this site (not Google), so no visitor data goes to a third party. Open Font License, see assets/fonts. */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("assets/fonts/poppins-light.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-semibold.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic.ttf") format("truetype"); }

:root {
  --bg: #0c1110;
  --bg-2: #121917;
  --bg-3: #18211f;
  --ink: #efe8dc;
  --dim: rgba(239, 232, 220, 0.58);
  --faint: rgba(239, 232, 220, 0.32);
  --line: rgba(239, 232, 220, 0.12);
  --accent: #6a994e;
  --accent-soft: #8fbd70;
  --rec: #e5372a;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(18px, 3.4vw, 56px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* no lonely last words: headings balance their lines, text avoids a single word on the last line */
h1, h2, h3, blockquote, .label { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; border-radius: 4px; }

.label {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.ink { color: var(--ink); }

/* ============ Navigation ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); /* keeps white readable over bright footage */
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}
/* always visible: once the page scrolls, a soft dark fade behind it keeps the links readable over any section */
.nav::before { content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; background: linear-gradient(to bottom, rgba(12, 17, 16, 0.78), rgba(12, 17, 16, 0)); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.nav.is-scrolled::before { opacity: 1; }
.nav__mark { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 13px; letter-spacing: 0.02em; }
.nav__links a { position: relative; }
/* on hover the letters roll up in a random order and a copy rolls in from below (built in main.js) */
.swap { display: inline-flex; white-space: pre; }
.swap__l { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.4; }
.swap__l > i { display: block; font-style: normal; transition: transform 0.6s cubic-bezier(0.34, 1.45, 0.64, 1) var(--d, 0s); }
.swap__l > i + i { position: absolute; left: 0; top: 100%; }
.is-swapped .swap__l > i { transform: translateY(-100%); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent-soft); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 34px; height: 34px; position: relative; }
.nav__toggle span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.nav__toggle span:first-child { top: 13px; }
.nav__toggle span:last-child { top: 20px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--pad); background: var(--bg);
  font-size: clamp(40px, 12vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1;
}
.menu[hidden] { display: none; }

/* ============ Hero ============ */
:root { --worked-h: 112px; }
/* hero + "trusted by" band fill exactly one screen, so the band always sits on the bottom edge */
.hero { position: relative; height: calc(100vh - var(--worked-h)); height: calc(100svh - var(--worked-h)); min-height: 460px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; transform-origin: 50% 30%; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12, 17, 16, 0.92) 0%, rgba(12, 17, 16, 0.25) 42%, rgba(12, 17, 16, 0.1) 70%, rgba(12, 17, 16, 0.45) 100%),
    linear-gradient(to right, rgba(12, 17, 16, 0.55), rgba(12, 17, 16, 0) 60%);
}
.hero__content {
  position: absolute; inset: auto 0 0 0;
  padding: 0 var(--pad) clamp(28px, 5vh, 56px);
}
.hero__kicker { margin-bottom: 18px; }
.hero__title {
  margin: 0;
  font-size: clamp(40px, 6.8vw, 128px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.hero__title em { font-size: 1.06em; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease-out); }
.line:nth-child(2) > span { transition-delay: 0.1s; }
body.is-ready .line > span { transform: none; }
.hero__foot {
  margin-top: clamp(22px, 4vh, 40px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.hero__foot .hero__view { grid-column: 2; }
.hero__sub { margin: 0; color: #ffffff; font-size: 15px; text-wrap: balance; }
/* "view work": thin ring with an arrow, centred in the hero's bottom line */
.hero__view { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.08em; color: var(--ink); white-space: nowrap; }
.hero__view-ring { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(239, 232, 220, 0.55); border-radius: 50%; transition: border-color 0.3s, background 0.3s; }
.hero__view-ring svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease) infinite; }
.hero__view:hover .hero__view-ring { border-color: var(--accent-soft); background: rgba(106, 153, 78, 0.25); }
@keyframes drip { 0% { top: -40%; } 100% { top: 100%; } }
[data-rise] { opacity: 0; transform: translateY(16px); transition: opacity 1s 0.5s, transform 1.2s 0.5s var(--ease-out); }
body.is-ready [data-rise] { opacity: 1; transform: none; }

/* ============ Worked with: a slim band right under the hero, already in view on landing ============ */
.trusted {
  position: relative; height: var(--worked-h);
  display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 64px);
  padding: 0 var(--pad);
  background: linear-gradient(100deg, #2a3130 0%, #1a2223 34%, #121c1e 70%, #0e181a 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trusted__label { margin: 0; white-space: nowrap; }
.trusted__logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(26px, 5vw, 80px);
}
.trusted__logos li { display: flex; align-items: center; }
/* --h is each logo's optical size; the band shows them at about 60 % of it */
.trusted__logos img {
  height: calc(var(--h, 26px) * 0.6 + 6px); width: auto; max-width: none; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.78; transition: opacity 0.4s;
}
.trusted__logos img:hover { opacity: 1; }
.trusted__logos .is-placeholder span {
  display: grid; place-items: center; width: 92px; height: 30px;
  border: 1px dashed rgba(239, 232, 220, 0.22); border-radius: 6px;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
}

/* ============ Title scenes: a big word behind the subject ============ */
.title-scene { position: relative; height: 230vh; background: var(--bg); }
.title-scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.title-scene__bg, .title-scene__cut {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: translate3d(0, var(--img-y, 0px), 0) scale(var(--img-s, 1.14));
  transform-origin: 50% 60%;
  will-change: transform;
}
.title-scene__bg { filter: saturate(0.92) brightness(0.86); }
.title-scene__word {
  position: absolute; left: 0; right: 0; top: var(--word-y, 50%);
  margin: 0; text-align: center;
  font-size: var(--fit, 24vw);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.8;
  white-space: nowrap;
  color: var(--ink);
  transform: translate3d(0, calc(-50% + var(--word-shift, 0px)), 0) scale(var(--word-s, 1));
  opacity: var(--word-o, 0);
  will-change: transform, opacity;
}
.title-scene__word span { display: inline-block; }
.title-scene--two .title-scene__word { display: flex; flex-direction: column; align-items: center; }
.title-scene__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(12, 17, 16, 0) 16%, rgba(12, 17, 16, 0) 72%, var(--bg) 100%),
    rgba(12, 17, 16, var(--dark, 0));
}
.title-scene__index { position: absolute; left: var(--pad); bottom: clamp(24px, 5vh, 48px); color: var(--ink); opacity: 0.85; }

/* ============ Client work carousel ============ */
.reel {
  position: relative; overflow: hidden;
  padding: clamp(60px, 9vh, 100px) 0 clamp(36px, 6vh, 64px);
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none;
}
.reel__backdrop { position: absolute; inset: 0; z-index: 0; }
.reel__bg {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  filter: blur(42px) brightness(0.42) saturate(1.1);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.reel__bg.is-on { opacity: 1; }
.reel__backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(12, 17, 16, 0.1), rgba(12, 17, 16, 0.85) 100%),
    linear-gradient(to bottom, var(--bg), rgba(12, 17, 16, 0) 18%, rgba(12, 17, 16, 0) 82%, var(--bg));
}
.reel__head { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 var(--pad); text-align: center; }
.reel__label { font-size: 22px; letter-spacing: 0.18em; color: var(--ink); }
.reel__stage {
  --cw: clamp(220px, 26vw, 430px);
  --ch: calc(var(--cw) * 1.36);
  position: relative; z-index: 1; flex: 1;
  min-height: calc(var(--ch) + 140px);
  perspective: 1700px;
  cursor: grab;
  touch-action: pan-y;
}
.reel__stage.is-dragging { cursor: grabbing; }
.reel__ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.card {
  position: absolute; left: 50%; top: 50%;
  width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  border-radius: 6px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card video { opacity: 0; transition: opacity 0.6s; }
.card.is-active video.is-playing { opacity: 1; }
.card__veil { position: absolute; inset: 0; background: #070a0a; opacity: var(--veil, 0); pointer-events: none; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 10, 10, 0.55), rgba(7, 10, 10, 0) 45%);
}
.reel__caption {
  position: absolute; z-index: 5; left: 50%; top: 50%;
  width: min(92vw, 1100px);
  transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.reel__title {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 96px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.35s, transform 0.6s var(--ease-out);
}
.reel__rule { display: block; width: 46px; height: 1px; margin: 22px auto 14px; background: var(--ink); opacity: 0.8; }
.reel__sub { margin: 0; font-size: 15px; color: var(--ink); opacity: 0.85; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5); transition: opacity 0.35s; }
.reel__caption.is-swapping .reel__title { opacity: 0; transform: translateY(14px); }
.reel__caption.is-swapping .reel__sub { opacity: 0; }
.reel__arrow {
  position: absolute; z-index: 6; top: 50%;
  width: 54px; height: 54px; margin-top: -27px;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(239, 232, 220, 0.3);
  background: rgba(12, 17, 16, 0.25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.reel__arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.reel__arrow:active { transform: scale(0.94); }
.reel__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.reel__arrow--prev { left: var(--pad); }
.reel__arrow--next { right: var(--pad); }
.reel__hint { position: relative; z-index: 2; text-align: center; color: var(--faint); }

/* ============ Vision ============ */
.vision { padding: clamp(60px, 10vh, 120px) var(--pad) clamp(90px, 16vh, 180px); }
.vision__quote {
  margin: 0 0 clamp(60px, 10vh, 120px);
  font-size: clamp(38px, 6.4vw, 112px);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1;
}
.vision__quote em { font-size: 1.05em; color: var(--accent-soft); }
.vision__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px); align-items: end; }
.vision__portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.vision__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vision__text p { margin: 0 0 1.3em; max-width: 52ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--dim); }
.vision__text p:first-child { color: var(--ink); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; font-weight: 300; }
.facts { margin: 40px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15px; text-wrap: balance; }

/* ============ Shared section heads ============ */
.section-head { padding: 0 var(--pad); margin-bottom: clamp(40px, 7vh, 80px); }
.section-head .label { margin-bottom: 18px; font-size: 22px; letter-spacing: 0.18em; }
.big-title {
  margin: 0;
  font-size: clamp(44px, 8.4vw, 150px);
  font-weight: 500; letter-spacing: -0.05em; line-height: 0.92;
}
.big-title > span { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.big-title { will-change: transform; }
.big-title > span > .w { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.3s var(--ease-out); }
.big-title > span + span > .w { transition-delay: 0.12s; }
.big-title.is-in > span > .w { transform: none; }

/* ============ Services ============ */
.services { padding: clamp(80px, 14vh, 160px) 0 clamp(90px, 16vh, 180px); border-top: 1px solid var(--line); }
.services__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding: 0 var(--pad); }
.services__for { margin-bottom: 18px; }
/* each column sits on its own film: client work left, personal shots right, under a dark tint that keeps the text readable */
.services__col { position: relative; isolation: isolate; overflow: hidden; border-radius: 6px; padding: clamp(24px, 3vw, 44px) clamp(22px, 2.8vw, 40px) clamp(10px, 1.6vw, 20px); background: var(--bg-2); }
.services__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.services__bg video { width: 100%; height: 100%; object-fit: cover; }
.services__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 17, 16, 0.74) 0%, rgba(12, 17, 16, 0.78) 50%, rgba(12, 17, 16, 0.84) 100%); }
.services__col .offer p { color: rgba(239, 232, 220, 0.78); }
.services__col .offer__no { color: rgba(239, 232, 220, 0.72); }
.services__col .label { color: rgba(239, 232, 220, 0.82); }
.services__col h3, .services__col p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
/* laptops: heading and both columns fit one screen with space below them, so the section-by-section scroll shows it whole */
@media (min-width: 901px) {
  .services .section-head { margin-bottom: clamp(24px, 4vh, 80px); }
  .services .big-title { font-size: clamp(44px, min(8.4vw, 9.5vh), 150px); }
  .services .offer li { padding: clamp(14px, 2.4vh, 26px) 0 clamp(16px, 2.6vh, 28px); }
}
.offer { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.offer li {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 26px 0 28px; border-bottom: 1px solid var(--line);
}
.offer__no { font-size: 12px; letter-spacing: 0.1em; color: var(--faint); padding-top: 10px; transition: color 0.4s; }
.offer h3 { margin: 0 0 6px; font-size: clamp(24px, 2.5vw, 38px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; transition: transform 0.6s var(--ease-out); }
.offer p { margin: 0; max-width: 44ch; color: var(--dim); font-size: 15px; }
.offer li:hover h3 { transform: translateX(10px); }
.offer li:hover .offer__no { color: var(--accent-soft); }

/* ============ Process: an edit timeline ============ */
.process { position: relative; height: 250vh; border-top: 1px solid var(--line); }
.process__next {
  align-self: center; margin-top: clamp(36px, 7vh, 72px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
  opacity: var(--next-o, 0.35); transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.process__next span { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
.process__next:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.process__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(70px, 10vh, 100px) 0 clamp(40px, 6vh, 70px);
}
.process__head { margin-bottom: clamp(36px, 6vh, 70px); }
/* background film: covers the pinned frame; a dark tint (stronger where the small text sits) keeps everything readable,
   and the top and bottom fade into the dark sections around it */
.process__sticky { overflow: hidden; }
.process__sticky > :not(.process__bg) { position: relative; z-index: 1; }
.process__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.process__bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.process__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(12, 17, 16, 0.5) 14%, rgba(12, 17, 16, 0.58) 36%, rgba(12, 17, 16, 0.84) 50%, rgba(12, 17, 16, 0.86) 84%, var(--bg) 100%);
}
.process .big-title, .process .clip h3, .process .clip p { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.process .clip h3 { color: rgba(239, 232, 220, 0.72); }
.process .clip p { color: rgba(239, 232, 220, 0.7); }
.process .clip.is-active h3 { color: var(--ink); }
.process .clip.is-active p { color: rgba(239, 232, 220, 0.86); }
.process .clip__bar { background: rgba(18, 25, 23, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.process .timeline__tc { color: rgba(239, 232, 220, 0.75); }
.timeline { position: relative; margin: 0 var(--pad); }
.timeline__ruler {
  position: relative; height: 28px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(to right, rgba(239, 232, 220, 0.3) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(to right, rgba(239, 232, 220, 0.14) 0 1px, transparent 1px 100%);
  background-size: 120px 12px, 24px 6px;
  background-repeat: repeat-x;
  background-position: 0 100%, 0 100%;
}
.timeline__tc { position: absolute; right: 0; top: 0; font-size: 11px; letter-spacing: 0.14em; color: var(--dim); font-variant-numeric: tabular-nums; }
.timeline__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.clip { flex: var(--w, 1) 1 0; min-width: 0; }
.clip__bar {
  position: relative; height: 58px; border-radius: 5px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 14px;
  font-size: 12px; letter-spacing: 0.14em; color: var(--dim);
}
.clip__bar::before {
  content: ""; position: absolute; inset: 0;
  /* every step has its own colour (--c on the clip, as "r g b"); set checked for colour blindness on the dark background */
  background: linear-gradient(90deg, rgb(var(--c, 106 153 78) / 0.62), rgb(var(--c, 106 153 78) / 0.3));
  transform: scaleX(var(--fill, 0)); transform-origin: left;
}
.clip__bar span { position: relative; }
.clip h3 { margin: 18px 0 8px; font-size: clamp(17px, 1.45vw, 22px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.4s; color: var(--faint); }
.clip p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--faint); max-width: 30ch; transition: color 0.4s; padding-right: 10px; }
.clip.is-active h3 { color: var(--ink); }
.clip.is-active p { color: var(--dim); }
.clip.is-active .clip__bar { color: var(--ink); border-color: rgb(var(--c, 106 153 78) / 0.55); }
/* the two lightest greens: a cream number would fade into the fill, so it turns dark once the bar is filled */
.clip.is-active:nth-child(-n+2) .clip__bar { color: var(--bg); }
.timeline__head {
  position: absolute; top: 0; left: 0; height: 100px; width: 0;
  transform: translate3d(var(--x, 0px), 0, 0);
  pointer-events: none;
}
.timeline__head::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 0; width: 1px; background: var(--rec); }
.timeline__head i { position: absolute; left: -6px; top: 0; width: 13px; height: 13px; background: var(--rec); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

/* ============ Own stills ============ */
.stills { overflow-x: clip; padding: clamp(90px, 15vh, 170px) 0 clamp(100px, 16vh, 180px); border-top: 1px solid var(--line); }
/* text centred on the page, the Instagram badge under it */
.stills__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 3vh, 28px); }
.stills__head .label { margin-bottom: 0; }
.insta.insta--small { width: clamp(104px, 8.5vw, 130px); flex: none; }
.insta.insta--small .insta__ring text { font-size: 15px; }
.stills__intro { margin: 0; max-width: 30ch; font-size: clamp(19px, 1.6vw, 28px); line-height: 1.35; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
/* short films rolling right to left on their own; the track holds the set twice and moves by one set, then starts again */
.strip { margin-top: clamp(32px, 6vh, 64px); overflow: hidden; }
/* its own compositor layer, so the roll never waits for the page's other work (duration set in main.js) */
.strip__track { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; animation: strip-roll var(--roll, 70s) linear infinite; will-change: transform; backface-visibility: hidden; }
.strip__item { margin: 0; flex: none; width: clamp(240px, 30vw, 460px); aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--bg-2); transform: translateZ(0); }
.strip__item video { width: 100%; height: 100%; object-fit: cover; }
/* one set = half the track, gap included: the copy starts exactly where the first set began */
@keyframes strip-roll { to { transform: translate3d(calc(-50% - clamp(12px, 1.4vw, 20px) / 2), 0, 0); } }
@media (prefers-reduced-motion: reduce) { .strip { overflow-x: auto; } .strip__track { animation: none; } }
.stills__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding: 0 var(--pad); align-items: start; }
.s { margin: 0; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.s img, .s video { display: block; width: 100%; height: 116%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: translate3d(0, calc(-7% + var(--py, 0px)), 0); will-change: transform; }
.s--a { grid-column: 1 / 8; aspect-ratio: 16 / 10; }
.s--b { grid-column: 8 / 13; aspect-ratio: 4 / 5; margin-top: 16vh; }
.s--c { grid-column: 2 / 7; aspect-ratio: 4 / 5; margin-top: -8vh; }
.s--d { grid-column: 7 / 13; aspect-ratio: 16 / 10; margin-top: 10vh; }
.s--e { grid-column: 1 / 6; aspect-ratio: 16 / 11; margin-top: 4vh; }
.s--f { grid-column: 6 / 12; aspect-ratio: 16 / 10; margin-top: 14vh; }

/* ============ Contact ============ */
.contact { padding: clamp(40px, 8vh, 90px) var(--pad) clamp(90px, 14vh, 150px); }
.contact__line {
  margin: 0 0 clamp(50px, 9vh, 100px);
  font-size: clamp(42px, 7.6vw, 136px);
  font-weight: 500; letter-spacing: -0.05em; line-height: 0.98;
}
.contact__line em { color: var(--accent-soft); }
.contact__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border-top: 1px solid var(--line); padding-top: clamp(36px, 6vh, 60px); }
.contact__mail {
  display: inline-block; margin: 14px 0 12px;
  font-size: clamp(30px, 4.6vw, 76px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1;
  /* always underlined in moss green so it reads as a link; a touch brighter on hover */
  padding-bottom: 0.06em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% max(2px, 0.045em) no-repeat;
  transition: background-image 0.3s, color 0.3s;
}
.contact__mail:hover { background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); }
.contact__note { margin: 0; color: var(--dim); max-width: 44ch; }

/* Instagram: lens + recording dot, wrapped in turning text */
.insta { position: relative; display: grid; place-items: center; width: clamp(170px, 17vw, 236px); aspect-ratio: 1; color: var(--ink); }
.insta__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.insta__ring text { font-family: var(--sans); font-size: 13.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--dim); transition: fill 0.4s; }
.insta__glyph { position: relative; width: 34%; height: 34%; overflow: visible; transition: transform 0.6s var(--ease-out); }
.insta__body { fill: none; stroke: currentColor; stroke-width: 2.4; }
.insta__lens { fill: none; stroke: currentColor; stroke-width: 2.4; transform-origin: 24px 24px; transition: transform 0.6s var(--ease-out); }
.insta__rec { fill: var(--rec); transform-origin: 34.5px 13.5px; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
.insta__handle {
  position: absolute; left: 50%; bottom: -34px; transform: translate(-50%, 6px);
  font-size: 12px; letter-spacing: 0.08em; color: var(--dim); white-space: nowrap;
  opacity: 0; transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.insta:hover .insta__glyph { transform: scale(1.12) rotate(-6deg); }
.insta:hover .insta__lens { transform: scale(1.22); }
.insta:hover .insta__ring text { fill: var(--ink); }
.insta:hover .insta__handle { opacity: 1; transform: translate(-50%, 0); }

/* ============ About page: where to go next ============ */
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.about-next {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(60px, 10vh, 120px);
}
.about-next__link {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(40px, 7vh, 80px) var(--pad);
  transition: background 0.5s;
}
.about-next__link + .about-next__link { border-left: 1px solid var(--line); }
.about-next__link:hover { background: var(--bg-2); }
.about-next__title { font-size: clamp(32px, 4.6vw, 76px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.about-next__title em { color: var(--accent-soft); }
.about-next__title span { display: inline-block; transition: transform 0.6s var(--ease-out); }
.about-next__link:hover .about-next__title span { transform: translateX(10px); }
@media (max-width: 700px) {
  .about-next { grid-template-columns: 1fr; }
  .about-next__link + .about-next__link { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============ Legal & privacy ============ */
.legal { max-width: 860px; margin: 0 auto; padding: clamp(130px, 18vh, 190px) var(--pad) clamp(80px, 12vh, 140px); }
.legal__title { margin: 14px 0 10px; font-size: clamp(40px, 6vw, 76px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.legal__updated { margin: 0 0 clamp(40px, 6vh, 64px); color: var(--faint); font-size: 13px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 14px; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.legal p { margin: 0 0 12px; max-width: 64ch; color: var(--dim); line-height: 1.7; }
.legal a { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; }
.legal .facts { margin: 0; }
.legal__after { margin-top: 28px !important; }
.legal strong { color: var(--ink); font-weight: 500; }

/* ============ Footer: details in columns (like the reference site), then the big wordmark ============ */
.footer { padding: clamp(60px, 9vh, 100px) var(--pad) 28px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px clamp(20px, 3vw, 48px); margin-bottom: clamp(50px, 8vh, 90px); font-size: 13px; }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer__name { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.footer__role { margin: 0 0 10px; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; }
.footer__details, .footer__cols a { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease-out); }
.footer__details { color: var(--dim); background-size: 100% 1px; background-image: linear-gradient(rgba(239, 232, 220, 0.35), rgba(239, 232, 220, 0.35)); }
.footer__cols a:hover { background-size: 100% 1px; }
.footer__details:hover { color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); }
.footer__h { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.footer__k { margin: 6px 0 0; color: var(--faint); font-size: 12px; }
.footer__k:first-of-type { margin-top: 0; }
.footer__addr { margin: 0; color: var(--dim); line-height: 1.6; }
.footer__mark {
  margin: 0; font-size: var(--fit, 15vw); font-weight: 600; letter-spacing: -0.06em; line-height: 0.82;
  color: rgba(239, 232, 220, 0.85); white-space: nowrap; display: inline-block; /* cream, readable on the dark footer */
}
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.08em; color: var(--dim);
}
.footer__row a:hover { color: var(--ink); }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ============ Recording light + timecode (top centre) ============ */
.hud {
  /* the REC dot stays in the middle of the bar; the timecode slides out to its left, away from the menu links */
  position: fixed; top: 18px; right: calc(50% - 39px); z-index: 61; height: 33px;
  display: flex; flex-direction: row-reverse; align-items: center;
  padding: 0 16px; border-radius: 99px;
  background: rgba(12, 17, 16, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 11px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity 1s 0.6s var(--ease-out);
}
body.is-ready .hud { opacity: 1; }
.hud__tc { display: inline-flex; gap: 0.6em; max-width: 0; margin-left: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.6s var(--ease-out), margin-right 0.6s var(--ease-out), opacity 0.4s; }
.hud:hover .hud__tc, .hud.is-open .hud__tc { max-width: 190px; margin-right: 22px; opacity: 1; }
.hud__rec { display: inline-flex; align-items: center; gap: 8px; }
.hud__rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 8px rgba(229, 55, 42, 0.7); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* Arthur's own browser (?stats=off): the camera is on standby, the dot goes grey and stops blinking */
.rec-off .hud__rec i { background: var(--faint); box-shadow: none; animation: none; }
/* timecode: fixed-width slots so the pill never changes width (widest Poppins digit ≈ 0.92em + spacing) */
[data-page-tc] { display: inline-flex; letter-spacing: 0; }
.tc-d { display: inline-block; width: 1.2em; text-align: center; }
.tc-sep { display: inline-block; width: 0.55em; text-align: center; }
/* between phone and wide laptop the menu links need the room; phones show the dot in the middle of the bar */
@media (min-width: 901px) and (max-width: 1279px) { .hud { display: none; } }
@media (max-width: 900px) {
  .hud { top: 20px; height: 30px; padding: 0 12px; font-size: 10px; letter-spacing: 0.2em; right: calc(50% - 33px); }
  .hud:hover .hud__tc, .hud.is-open .hud__tc { margin-right: 12px; }
}

/* ============ Carousel cursor ============ */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transform: translate3d(-50%, -50%, 0) scale(0.4);
  opacity: 0; transition: opacity 0.3s, scale 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-play { background: var(--rec); color: var(--ink); }

/* ============ Player ============ */
.player {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; align-content: center; gap: 18px;
  padding: 70px var(--pad) 40px;
  background: rgba(7, 10, 10, 0.96);
  opacity: 0; transition: opacity 0.5s;
}
.player[hidden] { display: none; }
.player.is-open { opacity: 1; }
.player__frame { position: relative; width: min(100%, 1280px); aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.player__video, .player__soon video { width: 100%; height: 100%; object-fit: contain; }
.player__soon { position: absolute; inset: 0; display: none; }
.player__soon video { object-fit: cover; filter: brightness(0.45) blur(2px); }
.player__soon p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.player.is-soon .player__soon { display: block; }
.player.is-soon .player__video { display: none; }
.player__meta { width: min(100%, 1280px); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.player__meta span:first-child { color: var(--ink); }
.player__close { position: absolute; top: 22px; right: var(--pad); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.player__close span { font-size: 20px; margin-left: 6px; vertical-align: -2px; }

/* ============ Reveals ============ */
[data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-img] { clip-path: inset(14% 10% 14% 10% round 4px); transition: clip-path 1.5s var(--ease-out); }
[data-reveal-img] img, [data-reveal-img] video { scale: 1.18; transition: scale 1.8s var(--ease-out); }
[data-reveal-img].is-in { clip-path: inset(0 0 0 0 round 4px); }
[data-reveal-img].is-in img, [data-reveal-img].is-in video { scale: 1; }
[data-lines] > span { display: block; overflow: hidden; padding-bottom: 0.06em; }
[data-lines] > span > .w { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
[data-lines].is-in > span > .w { transform: none; }

/* ============ Smaller screens ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .vision__grid, .services__cols { grid-template-columns: 1fr; }
  .vision__portrait { max-width: 420px; }
  .facts div { grid-template-columns: 110px 1fr; }
  .process { height: auto; }
  .process__next { display: none; }
  .process__sticky { position: static; height: auto; padding: clamp(80px, 12vh, 120px) 0; }
  .timeline__ruler, .timeline__head { display: none; }
  .timeline__track { flex-direction: column; gap: 0; border-left: 1px solid var(--line); }
  .clip { padding: 0 0 30px 22px; position: relative; }
  .clip__bar { height: auto; width: max-content; padding: 6px 12px; border-radius: 999px; color: var(--ink); border-color: rgb(var(--c, 106 153 78) / 0.55); }
  .clip__bar::before { transform: none; }
  .clip:nth-child(-n+2) .clip__bar { color: var(--bg); }
  .clip h3, .clip p { color: var(--ink); }
  .clip p { color: var(--dim); max-width: 44ch; }
  .process .clip h3 { color: var(--ink); }
  .process .clip p { color: rgba(239, 232, 220, 0.86); }
  /* phones: the whole list sits on the film, so the tint is evenly strong from top to bottom */
  .process__bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 17, 16, 0.84) 8%, rgba(12, 17, 16, 0.84) 92%, var(--bg) 100%); }
  .stills__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .s--a { grid-column: 1 / 7; }
  .s--b { grid-column: 1 / 4; margin-top: 0; }
  .s--c { grid-column: 4 / 7; margin-top: 8vh; }
  .s--d { grid-column: 1 / 7; margin-top: 0; }
  .s--e { grid-column: 1 / 4; margin-top: 0; }
  .s--f { grid-column: 4 / 7; margin-top: 6vh; }
  .contact__grid { grid-template-columns: 1fr; justify-items: start; }
  .insta { margin: 10px 0 30px; }
  .insta.insta--small { margin: 0; }
  .insta__handle { opacity: 1; transform: translate(-50%, 0); }
  .reel__stage { --cw: clamp(190px, 56vw, 300px); min-height: calc(var(--ch) + 130px); }
  .reel__arrow { top: calc(50% + var(--ch) / 2 + 22px); margin-top: 0; width: 48px; height: 48px; }
  .reel__arrow--prev { left: calc(50% - 58px); }
  .reel__arrow--next { right: calc(50% - 58px); }
  .reel__hint { display: none; }
  .trusted__logos img { height: calc(var(--h, 26px) * 0.78); }
  .title-scene__word { top: var(--word-y-m, var(--word-y, 50%)); }
  .reel__title { font-size: clamp(30px, 9vw, 52px); }
}
@media (max-width: 560px) {
  .hero__foot { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .hero__foot .hero__view { grid-column: 1; }
  :root { --worked-h: 132px; }
  .trusted { flex-direction: column; gap: 16px; }
  .trusted__logos { gap: 18px; }
  .trusted__logos img { height: calc(var(--h, 26px) * 0.4 + 5px); }
  /* the email address stays on one line and fits the screen */
  .contact__mail { font-size: 5.6vw; white-space: nowrap; }
  .contact__mailbox { min-width: 0; }
  /* phones: let the headline wrap naturally (balanced) instead of fixed lines, and fade it in */
  .hero__title { opacity: 0; transition: opacity 1.2s 0.1s; }
  body.is-ready .hero__title { opacity: 1; }
  .hero__title .line { display: inline; overflow: visible; padding: 0; }
  .hero__title .line > span { display: inline; transform: none; }
  .title-scene { height: 190vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .line > span, [data-lines] > span > .w, .big-title > span > .w { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal-img] { clip-path: none; }
  [data-reveal-img] img, [data-reveal-img] video { scale: 1; }
}

/* ============ Back to top: a small ring in the corner, on every page ============ */
.to-top {
  position: fixed; right: var(--pad); bottom: clamp(18px, 3vh, 30px); z-index: 58;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(239, 232, 220, 0.45); color: var(--ink);
  background: rgba(12, 17, 16, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s, transform 0.5s var(--ease-out), border-color 0.3s, background 0.3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent-soft); background: rgba(106, 153, 78, 0.3); }
.to-top svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
