/* ==========================================================================
   They Are Creative — v2 stylesheet ("the deck, alive")
   Dark, cinematic base; giant type layered over and under photography,
   like the Firefly Málaga slides. Mobile-first.
   Brand colours + fonts live in :root — swap them there.
   ========================================================================== */

:root {
  /* Deck palette */
  --ink: #141216;
  --ink-2: #1e1b21;
  --paper: #efebe3;
  --white: #ffffff;
  --red: #d0101a;
  --orange: #f07320;
  --violet: #3a2a8f;
  --magenta: #d25ab8;
  --purple: #9a4db0;
  --green: #2e9e3e;
  --yellow: #f7e52e;
  --mustard: #c9a227;
  --sky: #4fa6e3;
  --navy: #10305f;
  --blush: #f3bccb;
  --line: rgb(239 235 227 / .22);

  /* The two "active" accents — the shuffle button rotates these */
  --accent: var(--red);
  --accent-2: var(--yellow);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --bounce: cubic-bezier(.3, 1.6, .5, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.nav-open { overflow: hidden; }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Wide black display type */
h1, h2, .mega {
  margin: 0 0 .35em;
  font-weight: 900;
  font-stretch: 125%;
  line-height: .86;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
/* Tall condensed display type */
.tall { font-stretch: 62%; letter-spacing: -.01em; line-height: .84; }
h3, h4 { margin: 0 0 .4em; font-weight: 900; font-stretch: 112%; line-height: .95; text-transform: uppercase; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 1000;
  background: var(--paper); color: var(--ink); padding: .6em 1em; border-radius: 999px;
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 140px); }

/* Colour bands */
.band { color: var(--band-fg, var(--paper)); background: var(--band-bg, var(--ink)); overflow-x: clip; }
.band--violet { --band-bg: var(--violet); --band-fg: var(--paper); }
.band--red { --band-bg: var(--red); --band-fg: var(--paper); }
.band--blush { --band-bg: var(--blush); --band-fg: var(--ink); }
.band--green { --band-bg: var(--green); --band-fg: var(--ink); }
.band--ink-2 { --band-bg: var(--ink-2); }

.c-red { color: var(--red); }
.c-orange { color: var(--orange); }
.c-green { color: var(--green); }
.c-magenta { color: var(--magenta); }
.c-yellow { color: var(--yellow); }
.c-purple { color: var(--purple); }
.c-mustard { color: var(--mustard); }
.c-accent { color: var(--accent); }
.c-accent-2 { color: var(--accent-2); }

.lede { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 600; line-height: 1.3; max-width: 36ch; }
.label {
  display: inline-block;
  margin-bottom: 1.2em;
  font-size: .78rem; font-weight: 800; font-stretch: 112%;
  letter-spacing: .08em; text-transform: uppercase;
}
.label::before {
  content: "";
  display: inline-block;
  width: 1.5em; height: 1.5em;
  margin-right: .35em;
  vertical-align: -.45em;
  background: var(--accent);
  -webkit-mask: url("../img/favicon.svg") center / contain no-repeat;
  mask: url("../img/favicon.svg") center / contain no-repeat;
}
.band .label::before { background: currentColor; }

/* ---------- Hand-drawn icons ---------- */
.ico { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: middle; overflow: visible; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 1em 1.5em;
  font: 900 .9rem/1 var(--font); font-stretch: 112%;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent-2);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .3s var(--bounce), background .2s, color .2s;
}
.btn:hover { transform: rotate(-3deg) scale(1.04); }
.btn:active { transform: scale(.96); }
.btn--accent { color: var(--paper); background: var(--accent); }
.btn--ghost { color: inherit; background: transparent; border-color: currentColor; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 1.6em; }
.arrow { width: 1.35em; height: 1.35em; margin: -.3em 0; transition: transform .3s var(--bounce); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px) rotate(-8deg); }
.link-arrow {
  font-weight: 900; font-stretch: 112%; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; border-bottom: 3px solid var(--accent);
}

/* ---------- Header: transparent over the hero, solid on scroll ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 14px var(--gutter);
  color: var(--paper);
  transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.is-scrolled { padding-block: 8px; background: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo {
  position: relative; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  margin-right: auto;
  font-size: .95rem; font-weight: 900; font-stretch: 125%; line-height: .85; text-transform: uppercase;
  text-decoration: none;
}
.logo-mark { width: 44px; height: 44px; color: var(--accent); animation: wiggle 3.2s ease-in-out infinite; }
.logo:hover .logo-mark { animation: spin 1.4s linear infinite; }
.nav-open .logo-mark { color: var(--paper); }

.icon-btn {
  position: relative; z-index: 60;
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  padding: 0;
  font-size: 30px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .4s var(--bounce), border-radius .5s var(--bounce);
}
.shuffle { font-size: 40px; }
.shuffle:hover { transform: rotate(120deg); }
.shuffle:active { transform: rotate(240deg) scale(.9); }
.burger { color: var(--ink); background: var(--accent-2); border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
.burger:hover { border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%; transform: rotate(-6deg); }
.burger .ico-close { display: none; }
.burger[aria-expanded="true"] .ico-open { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; animation: pop .4s var(--bounce); }

.nav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  color: var(--paper);
  background: var(--accent);
  clip-path: circle(0 at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s;
}
.nav.is-open {
  clip-path: circle(150% at calc(100% - 44px) 38px);
  visibility: visible;
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1);
}
.nav ul { list-style: none; padding: 0; }
.nav a {
  display: inline-block;
  font-size: clamp(3.6rem, 19vw, 7rem); font-weight: 900; font-stretch: 62%; line-height: .95; text-transform: uppercase;
  text-decoration: none;
  transition: transform .3s var(--bounce), color .2s;
}
.nav a:hover { transform: translateX(10px) rotate(-2deg); }
.nav a[aria-current="page"] { color: var(--accent-2); }
.nav-foot { margin-top: 2rem; font-weight: 700; }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav {
    position: static; display: block;
    padding: 0; background: none;
    clip-path: none; visibility: visible; transition: none;
  }
  .nav ul { display: flex; gap: 2px; }
  .nav a {
    padding: .65em 1em;
    font-size: .82rem; font-stretch: 112%; letter-spacing: .04em; line-height: 1;
    border-radius: 999px;
  }
  .nav a:hover { color: var(--accent-2); transform: rotate(-3deg); }
  .nav a[aria-current="page"] { color: var(--paper); background: var(--accent); }
  .nav-foot { display: none; }
}

/* ---------- Home hero: one full-screen image with giant type ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
/* Centred cover: phones show the middle of the image, wider screens reveal more of it */
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(20 18 22 / .45), transparent 28%, transparent 62%, rgb(20 18 22 / .55));
}
.hero h1 {
  position: absolute; inset: 92px var(--gutter) 76px;
  display: flex; flex-direction: column; justify-content: space-between;
  margin: 0;
  color: var(--red);
  font-size: clamp(3rem, 15vw, 13rem);
}
.hero h1 span:last-child { align-self: flex-end; text-align: right; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 14px;
  font-size: 44px; color: var(--paper);
  transform: translateX(-50%);
  animation: nudge 1.8s ease-in-out infinite;
}
.scroll-cue .ico { transform: rotate(90deg); }

/* ---------- Intro ---------- */
.intro { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.35fr 1fr; } }
.intro h2 { font-size: clamp(2.6rem, 10.5vw, 7rem); }
.intro-pics { position: relative; height: clamp(340px, 90vw, 540px); max-width: 520px; width: 100%; justify-self: center; }
.intro-pics img {
  position: absolute;
  width: 58%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  transition: transform .4s var(--bounce);
}
.intro-pics img:nth-child(1) { left: 0; top: 4%; transform: rotate(-6deg); }
.intro-pics img:nth-child(2) { right: 0; bottom: 0; transform: rotate(5deg); }
.intro-pics img:hover { transform: rotate(0) scale(1.03); } /* stays in its layer, so the front photo stays in front */
.bubble {
  position: absolute; z-index: 3;
  display: grid; place-items: center;
  width: clamp(160px, 44vw, 240px); aspect-ratio: 1.45;
  padding: 16px 24px;
  font-size: clamp(.8rem, 1vw, .95rem); font-weight: 800; line-height: 1.2; text-align: center;
  color: var(--paper);
  background: var(--magenta);
  border-radius: 50%;
  animation: bob 5s ease-in-out infinite;
}
.intro-pics .bubble { left: 0; right: auto; bottom: -14%; } /* bottom left, clear of the faces in both photos */
.intro { overflow-x: clip; }
.intro-pics { margin-bottom: clamp(40px, 12vw, 70px); } /* room for the bubble hanging below */ /* the bobbing bubble never pushes the page sideways */
/* The speech bubble is a solid round circle */
.bubble {
  width: clamp(160px, 42vw, 215px); aspect-ratio: 1;
  padding: 24px 20px;
  border-radius: 50%;
  font-size: clamp(.88rem, 1.2vw, 1rem); line-height: 1.15;
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: clamp(20px, 4vw, 48px); }
.marquee {
  overflow: hidden;
  margin-inline: -20px;
  padding-block: .5em;
  color: var(--paper);
  background: var(--accent);
  transform: rotate(-2deg);
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span {
  padding-right: .5em;
  font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; display: inline-block; padding-inline: .15em; }
.marquee-track .ico { width: .8em; height: .8em; vertical-align: -.06em; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section-head h2 { margin: 0; font-size: clamp(2.4rem, 8.5vw, 6.5rem); }
.section-head h2.tall { font-size: clamp(4rem, 20vw, 12rem); }

/* ---------- Work cards (title over image) ---------- */
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  text-decoration: none;
  background: var(--violet);
  border-radius: var(--radius);
  transition: transform .4s var(--bounce);
}
.work-card[hidden] { display: none; }
.work-card:hover { transform: rotate(-1.5deg); }
.work-card:nth-child(even):hover { transform: rotate(1.5deg); }
.work-media { position: absolute; inset: 0; }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.work-card:hover .work-media img { transform: scale(1.07); }
.platform {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: .45em .75em;
  font: 800 .66rem/1 var(--font); font-stretch: 112%; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
}
.play {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-size: 26px;
  color: var(--paper);
  background: var(--accent);
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  transition: transform .3s var(--bounce);
}
.work-card:hover .play { transform: scale(1.15) rotate(-10deg); }
.work-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 48px 14px 14px;
  background: linear-gradient(transparent, rgb(20 18 22 / .88));
}
.work-meta h3 { margin: 0 0 .2em; font-size: clamp(1.5rem, 4.2vw, 2.3rem); font-stretch: 62%; line-height: .9; }
.work-meta p { margin: 0; font-size: .78rem; font-weight: 600; opacity: .75; }

/* Swipeable rail on the home page */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px);
  gap: 14px;
  overflow-x: auto;
  padding: 6px var(--gutter) 24px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) { .rail { grid-auto-columns: 300px; } }
.rail-hint { display: flex; align-items: center; gap: .4em; margin: 0 var(--gutter); font-size: .8rem; font-weight: 700; opacity: .6; }

/* Work page grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); }
.chip {
  padding: .7em 1.1em;
  font: 800 .78rem/1 var(--font); font-stretch: 112%; text-transform: uppercase; letter-spacing: .05em;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s var(--bounce), background .2s, border-color .2s;
}
.chip:hover { transform: rotate(-4deg); border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.work-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Featured films: the headline video work ---------- */
.films-intro { max-width: 30ch; margin: 0; font-weight: 600; opacity: .75; }
/* Phones: films sit side by side and swipe; desktop: three across */
.films {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.films::-webkit-scrollbar { display: none; }
.film { scroll-snap-align: start; min-width: 0; }
@media (min-width: 900px) {
  .films { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); margin-inline: 0; padding-inline: 0; overflow: visible; }
  .films-hint { display: none; }
}
.film-card { aspect-ratio: 9 / 16; }
.film-card .play {
  top: 50%; left: 50%; right: auto;
  width: clamp(72px, 7vw, 96px); height: clamp(72px, 7vw, 96px);
  font-size: clamp(38px, 3.6vw, 50px);
  transform: translate(-50%, -50%);
}
.film-card:hover .play { transform: translate(-50%, -50%) scale(1.12) rotate(-8deg); }
.film-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 60%, rgb(20 18 22 / .45)); pointer-events: none; }
.film-meta { padding: 16px 2px 0; }
.film-client { margin: 0 0 .5em; font-size: .78rem; font-weight: 800; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.film-meta h3 { margin: 0 0 .3em; font-size: clamp(2rem, 4vw, 3.2rem); font-stretch: 62%; line-height: .9; }
.film-meta p:last-child { margin: 0; max-width: 34ch; font-size: .98rem; opacity: .8; }

/* ---------- Video modal ---------- */
.modal {
  width: min(400px, 92vw);
  padding: 0;
  overflow: visible;
  color: var(--paper);
  background: var(--ink-2);
  border: 0;
  border-radius: var(--radius);
}
.modal::backdrop { background: rgb(20 18 22 / .88); }
.modal-frame { height: min(78vh, 720px); overflow: hidden; border-radius: var(--radius); }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-empty { display: grid; place-content: center; gap: .5em; height: 100%; padding: 28px; text-align: center; }
.modal-empty strong { font-size: 2.4rem; font-weight: 900; font-stretch: 62%; line-height: .9; text-transform: uppercase; color: var(--accent-2); }
.modal-close { position: absolute; top: -18px; right: -14px; color: var(--paper); background: var(--accent); border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }

/* ---------- Why AI ---------- */
.why { padding-block: clamp(72px, 11vw, 150px); color: #d8d4cb; background: linear-gradient(180deg, #0b1f45, var(--navy) 60%, #1d4d8f); overflow-x: clip; }
.why-grid { display: grid; gap: 28px; }
.why-title { margin: 0; font-size: clamp(3.6rem, 17vw, 11rem); }
.why-img { justify-self: center; width: min(70%, 320px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); transform: rotate(3deg); }
.why-quote { margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 700; line-height: 1.35; }
.why-answer { margin: 0; font-size: clamp(1.7rem, 5.6vw, 3rem); }
@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "title title title" "quote img answer";
    align-items: center; column-gap: 48px;
  }
  .why-title { grid-area: title; position: relative; z-index: 0; }
  .why-quote { grid-area: quote; }
  .why-img { grid-area: img; position: relative; z-index: 1; margin-top: -1.6em; width: 320px; }
  .why-answer { grid-area: answer; }
}

/* Why AI over a full-width photo: text sits left and right, the picture shows through the middle */
.why--photo { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(620px, 100svh, 980px); background: #0b1f45; }
.why-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.why--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(11 31 69 / .82), rgb(11 31 69 / .55) 45%, rgb(11 31 69 / .85));
}
.why--photo .why-quote, .why--photo .why-answer { text-shadow: 0 2px 18px rgb(0 0 0 / .45); }
@media (min-width: 960px) {
  .why--photo::after {
    background:
      linear-gradient(90deg, rgb(11 31 69 / .88), rgb(11 31 69 / .25) 34%, rgb(11 31 69 / .25) 66%, rgb(11 31 69 / .88)),
      linear-gradient(180deg, rgb(11 31 69 / .7), transparent 35%);
  }
  .why--photo .why-grid { grid-template-columns: 1fr minmax(240px, .9fr) 1fr; grid-template-areas: "title title title" "quote . answer"; }
}

/* ---------- Worlds we've built: scrolling gallery of 16:9 images ---------- */
.worlds { padding-bottom: clamp(48px, 7vw, 100px); }
.worlds-strip { overflow: hidden; }
.worlds-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.worlds-strip:hover .worlds-track { animation-play-state: paused; }
.worlds-track img {
  height: clamp(170px, 24vw, 340px); aspect-ratio: 16 / 9; width: auto; object-fit: cover;
  margin-right: clamp(10px, 1.4vw, 18px); /* margin, not gap, so the -50% loop is seamless */
  border-radius: var(--radius);
}

/* ---------- Photo bands: Adobe partnership and About ethos ---------- */
.adobe-band, .ethos { position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; }
.adobe-band { min-height: clamp(520px, 80svh, 820px); padding-block: clamp(72px, 10vw, 140px); }
.adobe-bg, .ethos-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.adobe-band::after, .ethos::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.adobe-band::after { background: linear-gradient(90deg, rgb(20 18 22 / .85), rgb(20 18 22 / .45) 55%, rgb(20 18 22 / .1)); }
.adobe-inner h2 { font-size: clamp(2.6rem, 9vw, 7rem); max-width: 12ch; }
.adobe-inner .lede, .adobe-note { max-width: 34ch; text-shadow: 0 2px 14px rgb(0 0 0 / .4); }
.adobe-note { font-weight: 800; color: var(--accent-2); }
/* Statement sits top-left over the photo, clear of the figure in the centre */
.ethos { align-items: start; min-height: clamp(520px, 80svh, 820px); padding-block: clamp(96px, 10vw, 140px) clamp(48px, 8vw, 100px); }
.ethos::after { background: linear-gradient(180deg, rgb(20 18 22 / .88), rgb(20 18 22 / .35) 45%, transparent 70%); }
@media (min-width: 900px) {
  .ethos { align-items: center; }
  .ethos::after { background: linear-gradient(90deg, rgb(20 18 22 / .9), rgb(20 18 22 / .55) 32%, transparent 52%); }
}
.ethos .manifesto { max-width: 22ch; font-size: clamp(1.3rem, 2.4vw, 2.1rem); text-shadow: 0 2px 18px rgb(0 0 0 / .5); }

/* Wide video player for landscape films */
.modal--wide { width: min(1100px, 94vw); }
.modal--wide .modal-frame { height: auto; aspect-ratio: 16 / 9; }

/* Instagram posts: the frame grows to the post's own height (set by main.js); very tall posts
   scroll inside the frame without a visible scrollbar, so there's no strip down the side */
.modal--ig .modal-frame { height: auto; max-height: min(88vh, 900px); overflow-y: auto; background: var(--white); scrollbar-width: none; }
.modal--ig .modal-frame::-webkit-scrollbar { display: none; }
.modal--ig .modal-frame iframe { display: block; height: 640px; }

/* ---------- Services list (home) ---------- */
.svc-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(14px, 2.4vw, 24px);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding .35s var(--bounce);
}
.svc-row .num { font-size: .85rem; font-weight: 900; font-stretch: 125%; opacity: .6; }
.svc-row h3 { margin: 0; font-size: clamp(2.3rem, 10vw, 6rem); font-stretch: 62%; line-height: .88; }
.svc-row .ico { font-size: clamp(30px, 5vw, 52px); transition: transform .35s var(--bounce); }
.svc-row:hover { color: var(--accent-2); padding-left: 14px; }
.svc-row:hover .ico { transform: rotate(-35deg); }

/* ---------- Showreel ---------- */
.reel {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(120deg, var(--red), var(--orange), var(--yellow), var(--green), var(--sky), var(--violet), var(--magenta));
  background-size: 400% 400%;
  border-radius: var(--radius);
  animation: gradient 16s ease infinite;
}
@media (min-width: 600px) { .reel { aspect-ratio: 16 / 9; } }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-title { position: absolute; left: 4%; right: 4%; top: 4%; margin: 0; font-size: clamp(2.2rem, 9.5vw, 10rem); color: var(--paper); mix-blend-mode: overlay; }
.reel-title--bottom { top: auto; bottom: 4%; text-align: right; }
.reel-play {
  position: absolute; inset: 0; margin: auto;
  display: grid; place-items: center;
  width: clamp(110px, 18vw, 170px); aspect-ratio: 1;
  font-size: clamp(56px, 8vw, 84px);
  color: var(--red);
  background: var(--paper);
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  animation: wobble 6s ease-in-out infinite;
}

/* ---------- Social proof ---------- */
.ig-comment {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 560px;
  margin: 0;
  padding: 18px 22px;
  color: #f2f2f2;
  background: #26262a;
  border-radius: 22px;
  transform: rotate(-1.5deg);
}
.ig-comment .avatar-dot { flex: none; width: 44px; height: 44px; background: linear-gradient(135deg, var(--yellow), var(--orange), var(--magenta), var(--violet)); border-radius: 50%; }
.ig-comment blockquote { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.ig-comment figcaption { margin-bottom: .2em; font-size: .9rem; font-weight: 800; }
.ig-comment figcaption span { font-weight: 500; opacity: .6; }
.proof { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .proof { grid-template-columns: 1.2fr 1fr; } }
.proof h2 { margin: 0; font-size: clamp(2.6rem, 9vw, 7rem); }

/* ---------- Poster: giant type above and below a photo ---------- */
.page-hero { padding: 110px var(--gutter) clamp(48px, 8vw, 100px); }
.poster {
  position: relative;
  display: grid; justify-items: center;
  margin: 0 auto;
  max-width: var(--max);
  font-size: clamp(2.4rem, 10.5vw, 9rem);
  text-align: center;
}
.poster-line { position: relative; display: block; font-size: 1em; }
.poster-line--top { z-index: 0; }
.poster-line--bottom { z-index: 2; }
.poster-img {
  position: relative; z-index: 1;
  display: block;
  width: min(62%, 360px); aspect-ratio: 4 / 5;
  margin: -.1em 0 -.3em;
  object-fit: cover;
  border-radius: var(--radius);
  transform: rotate(-2deg);
}
.poster + .lede { margin: 1.4em auto 0; text-align: center; }
/* A poster with only a top line: the photo ends the heading, so no overlap below it */
.poster .poster-img:last-child { margin-bottom: 0; }
.page-title { font-size: clamp(5rem, 30vw, 16rem); margin: 0; }

/* ---------- Services page ---------- */
.service-list { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(18px, 3vw, 30px);
  list-style: none;
  cursor: pointer;
}
.service summary::-webkit-details-marker { display: none; }
.service .num { font-size: .9rem; font-weight: 900; font-stretch: 125%; opacity: .6; }
.service h3 { margin: 0; font-size: clamp(2.2rem, 9vw, 5.6rem); font-stretch: 62%; line-height: .88; transition: transform .35s var(--bounce), color .2s; }
.service summary:hover h3 { transform: translateX(8px); color: var(--svc, var(--accent)); }
.service[open] h3 { color: var(--svc, var(--accent)); }
.service .toggle {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  font-size: 28px;
  color: var(--paper);
  background: var(--svc, var(--accent));
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  transition: transform .35s var(--bounce);
}
.service[open] .toggle { transform: rotate(135deg); }
.service-body { display: grid; gap: 20px; padding-bottom: 32px; }
.service-body p { max-width: 52ch; font-size: 1.1rem; }
@media (min-width: 900px) { .service-body { grid-template-columns: 1.3fr 1fr; padding-left: 4.2rem; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; padding: 0; list-style: none; }
.tags li {
  padding: .5em .9em;
  font: 800 .72rem/1 var(--font); font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em;
  color: var(--paper);
  background: var(--svc, var(--accent));
  border-radius: 999px;
}
.note { padding: clamp(28px, 5vw, 64px); border-radius: var(--radius); }
.note h2 { font-size: clamp(1.6rem, 6.5vw, 5rem); max-width: 14ch; }
.note p { max-width: 55ch; font-size: 1.15rem; }

.steps { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 26px; color: var(--ink); background: var(--card-bg, var(--paper)); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .3em; font-size: 4rem; font-weight: 900; font-stretch: 62%; line-height: 1; }
.steps h3 { font-size: 1.5rem; }
.steps p { margin: 0; }
.bg-yellow { --card-bg: var(--yellow); }
.bg-blush { --card-bg: var(--blush); }
.bg-sky { --card-bg: var(--sky); }
.bg-orange { --card-bg: var(--orange); }
.bg-green { --card-bg: var(--green); }
.bg-magenta { --card-bg: var(--magenta); }

/* ---------- About page ---------- */
.manifesto { margin: 0; max-width: 24ch; font-size: clamp(1.7rem, 4.8vw, 3.6rem); font-weight: 800; font-stretch: 105%; line-height: 1.1; letter-spacing: -.02em; }
.founder-copy { max-width: 46ch; margin: 2em auto 0; text-align: center; }
.founder-copy .role { font-weight: 800; color: var(--orange); }
.founder-copy { max-width: 32ch; }
/* Siobhán's words as a pull quote: orange quote marks, larger bold text, attribution underneath */
.founder-quote { margin: 0 0 1.8em; }
.founder-quote blockquote { margin: 0; }
.founder-quote blockquote p { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.founder-quote blockquote p::before { content: "“"; color: var(--orange); }
.founder-quote blockquote p::after { content: "”"; color: var(--orange); }
.founder-quote figcaption { margin-top: 1em; font-size: .8rem; font-weight: 800; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.founder-quote figcaption::before { content: "— "; }

.team { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member h3 { margin: 14px 0 .25em; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-stretch: 62%; }
.member .role { margin-bottom: .5em; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.member p:last-child { font-size: .95rem; }
.avatar {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  font-size: clamp(3rem, 12vw, 6rem); font-weight: 900; font-stretch: 62%;
  color: var(--ink);
  background: var(--card-bg, var(--accent));
  border-radius: var(--radius);
  transition: transform .4s var(--bounce);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member:hover .avatar { transform: rotate(-3deg); }

.logos { display: grid; gap: 10px; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1100px) { .logos { grid-template-columns: repeat(9, 1fr); } }
.logos li {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--bounce), border-color .2s;
}
.logos li:hover { border-color: var(--accent-2); transform: rotate(-4deg); }
/* Wordmarks fill the width; square/upright marks (class="tall") are capped by height instead */
.logos img { width: auto; height: auto; max-width: 82%; max-height: clamp(18px, 2.6vw, 30px); opacity: .9; transition: opacity .2s; }
.logos img.tall { max-height: clamp(34px, 4.6vw, 56px); }
.logos li:hover img { opacity: 1; }

.quotes { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: clamp(22px, 3vw, 32px); color: var(--ink); background: var(--card-bg, var(--paper)); border-radius: var(--radius); }
.quote:nth-child(odd) { transform: rotate(-1.2deg); }
.quote:nth-child(even) { transform: rotate(1.2deg); }
.quote blockquote { margin: 0 0 1em; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.quote blockquote::before { content: "“"; display: block; height: .5em; font-size: 4.5rem; font-weight: 900; line-height: 1; }
.quote figcaption { font-size: .82rem; font-weight: 700; }

/* ---------- Contact page: photo one side, form the other ---------- */
.contact-split { display: grid; }
.contact-photo { position: relative; height: 62svh; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.contact-photo h1 {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px;
  margin: 0;
  color: var(--yellow);
  font-size: clamp(5rem, 30vw, 13rem);
}
.contact-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgb(20 18 22 / .6)); }
.contact-photo h1 { z-index: 1; }
.contact-body { padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 110px); }
@media (min-width: 960px) {
  .contact-split { grid-template-columns: 1fr 1.15fr; }
  .contact-photo { position: sticky; top: 0; height: 100svh; }
}
.form { display: grid; gap: 20px; margin-top: 2rem; }
.row-2 { display: grid; gap: 20px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field label, .field legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: .8rem; font-weight: 900; font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase;
}
.field .opt { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .6; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: max(16px, 1rem);
  color: var(--paper);
  background: rgb(239 235 227 / .06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-2); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block;
  padding: .65em 1em;
  font: 800 .76rem/1 var(--font); font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s var(--bounce), background .2s, border-color .2s;
}
.choice span:hover { transform: rotate(-3deg); border-color: var(--paper); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); transform: rotate(-3deg); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 700; }
.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="error"] { color: var(--orange); }
.contact-info { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 600px) { .contact-info { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.info-block { padding: 18px 0; border-top: 1px solid var(--line); }
.info-block h2 { margin-bottom: .5em; font-size: .78rem; font-stretch: 112%; letter-spacing: .06em; opacity: .7; }
.info-block a, .info-block p { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 9vw, 120px) 28px; color: var(--ink); background: var(--accent-2); }
.site-footer .label::before { background: currentColor; }
.footer-cta {
  display: block;
  margin-bottom: .45em;
  font-size: clamp(4.4rem, 24vw, 15rem); font-weight: 900; font-stretch: 62%; line-height: .84; text-transform: uppercase;
  text-decoration: none;
}
.footer-cta .ico { width: .6em; height: .6em; vertical-align: .05em; transition: transform .35s var(--bounce); }
.footer-cta:hover .ico { transform: translateX(.1em) rotate(-12deg); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-label { margin-bottom: .7em; font-size: .75rem; font-stretch: 112%; letter-spacing: .08em; opacity: .65; }
.footer-grid a { font-weight: 700; text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.socials a {
  display: inline-block;
  padding: .5em .95em;
  font-size: .9rem;
  text-decoration: none;
  border: 2px solid currentColor;
  border-radius: 999px;
  transition: background .2s, color .2s, transform .2s var(--bounce);
}
.socials a:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); transform: rotate(-4deg); }
.fineprint {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 56px; padding-top: 20px;
  font-size: .8rem;
  border-top: 1px solid rgb(20 18 22 / .25);
  opacity: .75;
}

/* ---------- Doodles (draw on when scrolled into view) ---------- */
.marked { position: relative; display: inline-block; }
.doodle {
  position: absolute; z-index: 0;
  overflow: visible;
  pointer-events: none;
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}
.doodle path { stroke-width: var(--sw, 7); }
.js .doodle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6, 0, .25, 1) .25s; }
.js .doodle path + path { transition-delay: .9s; }
.js .doodle path + path + path { transition-delay: 1.2s; }
.js .doodle.in path { stroke-dashoffset: 0; }
.doodle--underline { left: -3%; bottom: -.1em; width: 106%; height: .24em; --sw: 9; }
.doodle--circle { left: -14%; top: -30%; width: 128%; height: 160%; --sw: 5; }
.doodle--heart { right: -.78em; top: -.18em; width: .62em; height: .58em; transform: rotate(14deg); --sw: 5; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor {
    position: fixed; top: 0; left: 0; z-index: 999;
    display: block;
    width: 18px; height: 18px; margin: -9px 0 0 -9px;
    background: var(--accent-2);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: width .25s var(--bounce), height .25s var(--bounce), margin .25s var(--bounce), opacity .2s;
  }
  .cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.04); } }
@keyframes pop { from { transform: scale(.4) rotate(-40deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes marquee { to { transform: translateX(-50%); } }

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

/* Pages whose top section is light (e.g. About): dark header text until scrolled */
.on-light .site-header:not(.is-scrolled) { color: var(--ink); }
.on-light.nav-open .site-header { color: var(--paper); }
