/* ==========================================================================
   FONTS
   Titles: Helvetica Bold, tracking -60. Body: Helvetica Regular, tracking -30.
   Helvetica is built into Macs, iPhones and iPads; Windows and Android show Arial.
   (The old font files in assets/fonts are no longer used and can be deleted.)

   To use your own: with Creative Cloud you can use any Adobe Fonts typeface.
   Create a Web Project at fonts.adobe.com, add this line at the very top
   of this file:  @import url("https://use.typekit.net/XXXXXXX.css");
   then change --serif / --sans below to the family names Adobe gives you.
   ========================================================================== */
/* ==========================================================================
   DESIGN TOKENS: change colours and type here
   ========================================================================== */
:root {
  /* Off-white on black, black on off-white */
  --bg: #1C1818;               /* black */
  --ink: #F3F2EF;              /* off-white */
  --muted: rgba(243, 242, 239, 0.62);
  --line: rgba(243, 242, 239, 0.3);
  --paper: #F3F2EF;            /* light section ("What I do") */
  --paper-ink: #1C1818;
  --accent: #FC6D05;           /* orange: footer + "Next project" tile */
  --on-accent: #1C1818;
  --placeholder: #262020;      /* shows behind images while they load */

  /* Type: one family. --display is titles, --sans is body text. */
  --sans: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
  --leading: 1.2;
  --tracking: -0.03em;         /* body text: -30 */
  --title-tracking: -0.06em;   /* titles: -60 */

  --fs-display: clamp(2.2rem, 0.9rem + 2.6vw, 4.8rem);
  --fs-h2: clamp(1.9rem, 1rem + 2.3vw, 3.8rem);
  --fs-h3: clamp(1.2rem, 1rem + 0.5vw, 1.6rem);
  --fs-body: clamp(0.98rem, 0.88rem + 0.28vw, 1.2rem);
  --fs-label: 0.8rem;

  /* Layout: a 22-column grid inside a centred column, like the reference */
  --edge: clamp(20px, 2.7vw, 64px);                              /* header side margin */
  --col: min(calc(100vw - 40px), max(60vw, 760px), 1480px);      /* content column width */
  --gap: clamp(10px, 1.1vw, 22px);                               /* space between images */
  --space: clamp(72px, 9vw, 168px);                              /* space between sections */
  --space-sm: clamp(48px, 5.5vw, 104px);
  --radius: 4px;
  --ease-tile: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 136px;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--leading);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
/* Titles: Helvetica Bold, tracking -60 */
h1, h2, h3, .logo, .nav a, .menu-btn, .title-sm, .t-title, .f-name, .marquee li {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: var(--title-tracking);
  line-height: var(--leading);
}
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Images fade in once loaded */
.fade { opacity: 0; transition: opacity 0.7s ease; }
.fade.is-loaded { opacity: 1; }

/* ==========================================================================
   GRID
   ========================================================================== */
.wrap { width: var(--col); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(22, minmax(0, 1fr)); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  /* logo and menu sit 39px from the top of a 136px bar, as in the mockup;
     the bar tightens to 88px once you scroll */
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 39px var(--edge) 0;
  background: var(--bg);
  transition: background-color 0.3s ease, height 0.3s ease, padding 0.3s ease;
}
.site-header.over-image { background: linear-gradient(rgba(28, 24, 24, 0.45), rgba(28, 24, 24, 0)); }
.site-header.is-solid { background: var(--bg); height: 88px; padding-top: 21px; }
.logo { display: flex; align-items: center; height: 46px; font-size: 1.75rem; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; height: 46px; gap: clamp(1.2rem, 2vw, 2.15rem); }
.nav a { font-size: 1.75rem; text-decoration: none; transition: opacity 0.2s ease; }
.nav a:hover { opacity: 0.6; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font-size: 1.25rem; cursor: pointer; padding: 8px 0; }

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .site-header, .site-header.is-solid { height: var(--header-h); padding-top: 0; align-items: center; }
  .logo, .logo img { height: 28px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; height: auto;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.4rem;
    padding: 0 20px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  }
  .nav a { font-size: 2.6rem; }
  .menu-open .nav { opacity: 1; visibility: visible; }
}
}

/* ==========================================================================
   FULL-BLEED HEROES
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: var(--placeholder); }
.hero--project { height: 76svh; min-height: 420px; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero--reel video, .hero--project video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Homepage carousel: fills the whole screen, every image cropped to fit (centre kept) */
.hero--reel .carousel, .hero--reel .c-frame { position: absolute; inset: 0; }
.hero--reel .c-frame { aspect-ratio: auto; border-radius: 0; }
.hero--reel .c-slide > img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* automatic slideshow: a quick 0.4s fade between images (the same pace as joseph-tubridy.com) */
.carousel--auto .c-slide { transition: opacity 0.4s cubic-bezier(0.2, 0.6, 0.3, 1); }
.reel-placeholder { height: 100%; display: grid; place-items: center; background: var(--placeholder); }
.reel-placeholder span { font-family: var(--sans); font-size: var(--fs-label); color: var(--muted); letter-spacing: var(--tracking); }

/* Client logos: one row scrolling left to right, like joseph-tubridy.com/about.
   Each logo is sized by its "size" value in content.js so they carry the same weight. */
.logo-strip {
  --logo-h: clamp(28px, 4.2vw, 60px);
  --ls-gap: clamp(56px, 12.5vw, 200px);
  overflow: hidden; margin: clamp(2rem, 4vw, 3.5rem) 0 0;   /* edge to edge */
}
.ls-track { display: flex; width: max-content; animation: ls-move var(--ls-dur, 40s) linear infinite; }
.ls-set {
  display: flex; align-items: center; gap: var(--ls-gap); padding-right: var(--ls-gap);
  min-height: calc(var(--logo-h) * 1.95); margin: 0; list-style: none;
}
.ls-set li { flex: none; display: flex; align-items: center; }
.ls-set img { display: block; height: calc(var(--logo-h) * var(--s, 1)); width: auto; max-width: none; }
@keyframes ls-move { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ls-track { animation: none; width: auto; justify-content: center; }
  .ls-set { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 2rem; }
  .ls-set[aria-hidden] { display: none; }
}

/* ==========================================================================
   ARCHIVE: masonry grid, laid out like benrpotts.co.uk/archive
   3 columns (2 on smaller screens), 33px gaps, every piece at its own shape
   ========================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.archive {
  --a-gap: 33px;
  display: flex; align-items: flex-start; gap: var(--a-gap);
  padding: calc(var(--header-h) + clamp(16px, 3vw, 44px)) var(--edge) 0;
}
.a-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--a-gap); }
.a-item { display: block; width: 100%; padding: 0; border: 0; background: var(--placeholder); cursor: zoom-in; overflow: hidden; }
.a-item img, .a-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.a-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) { .archive { --a-gap: 12px; } }

/* Lightbox: the page dims behind, the piece fills the screen, click either half to move */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 24, 24, 0.94);
  opacity: 0; transition: opacity 0.35s ease;
}
.lightbox.is-open { opacity: 1; }
.lb-stage { position: absolute; inset: 7vh calc(3vw + 56px); }
.lb-item {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.6s ease;
}
.lb-item.is-on { opacity: 1; }
.lb-item img, .lb-item video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-zone {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.lb-prev { left: 0; cursor: w-resize; }
.lb-next { right: 0; cursor: e-resize; }
.lb-chev {
  position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  opacity: 0.75; transition: opacity 0.3s ease;
}
.lb-prev .lb-chev { left: 3vw; transform: rotate(45deg); }
.lb-next .lb-chev { right: 3vw; transform: rotate(-135deg); }
.lb-zone:hover .lb-chev, .lb-zone:focus-visible .lb-chev { opacity: 1; }
.lb-close {
  position: absolute; top: 18px; right: calc(3vw - 6px); z-index: 2;
  width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  opacity: 0.75; transition: opacity 0.3s ease;
}
.lb-close:hover, .lb-close:focus-visible { opacity: 1; }
.lightbox :focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.lb-close::before, .lb-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; margin: -0.75px 0 0 -11px;
  background: currentColor; transform: rotate(45deg);
}
.lb-close::after { transform: rotate(-45deg); }
/* a video sits above the click zones so its own controls work */
.lb-item video { position: relative; z-index: 3; }
@media (max-width: 760px) {
  .lb-stage { inset: 64px 12px; }
  .lb-chev { display: none; }
}

/* ==========================================================================
   SHARED PIECES
   ========================================================================== */
.section { padding-top: var(--space); }
.page-top { padding-top: calc(var(--header-h) + var(--space)); }

.statement { grid-column: 1 / 15; font-size: var(--fs-display); }
.lede { color: var(--muted); max-width: 60ch; margin-top: 1.8rem; }
.lede + .lede { margin-top: 1rem; }

.label { font-family: var(--sans); font-size: var(--fs-label); color: var(--muted); line-height: var(--leading); display: block; }
.title-sm { font-family: var(--serif); font-size: var(--fs-h3); line-height: var(--leading); letter-spacing: var(--title-tracking); }

.text-link { font-family: var(--serif); font-size: 1.15rem; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1.25rem;
  color: inherit; background: transparent; text-decoration: none;
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 0.9rem 2.6rem; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pill:hover { background: var(--ink); color: var(--bg); }

.card-img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--placeholder); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card { text-decoration: none; display: block; }
.card .caption { margin-top: 0.75rem; }
.card:hover .title-sm { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ==========================================================================
   HOME
   ========================================================================== */
.home-intro .statement { grid-column: 1 / 16; }
.home-intro .lede { grid-column: 1 / 13; }
.home-intro .cta { grid-column: 17 / 23; align-self: end; justify-self: end; }

.page-end { height: var(--space); }

/* Contact page: one line, dead centre */
.contact-page {
  min-height: 100svh; display: grid; place-items: center;
  padding: var(--header-h) var(--edge) calc(var(--header-h) * 0.5);
  text-align: center;
}
.contact-page h1 { font-size: clamp(2rem, 1rem + 3.6vw, 5rem); max-width: 22ch; text-wrap: balance; }
.contact-page a { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; transition: color 0.2s ease; }
.contact-page a:hover { color: var(--accent); }

.light { background: var(--paper); color: var(--paper-ink); padding-block: var(--space); margin-top: var(--space); }
.light .label { color: rgba(28, 24, 24, 0.6); }
.cap-head { grid-column: 1 / 7; }
.cap-head h2 { font-size: var(--fs-h2); }
.cap-head .text-link { display: inline-block; margin-top: 1.2rem; }
.cap-list { grid-column: 9 / 23; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem); }
.cap-list h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.cap-list p { color: var(--muted); max-width: 36ch; }

/* ==========================================================================
   PROJECTS INDEX: portrait tiles. 1 column on phones, 2 from 640px, 3 from 1080px.
   One gap value sets the space between tiles across, down and at the sides.
   Hover fills the tile with the project's colour (hoverBg / hoverInk in content.js).
   ========================================================================== */
.statement.is-centred { grid-column: 1 / -1; justify-self: center; max-width: 16em; text-align: center; text-wrap: balance; }

.work-grid {
  /* spacing copied from violaineetjeremy.fr: 18px between columns and at the sides,
     73px between rows (their 40px gap plus the caption that sits under each image) */
  --tile-gap: 18px;
  --row-gap: 73px;
  display: grid; grid-template-columns: 1fr; gap: var(--row-gap) var(--tile-gap);
  margin: clamp(40px, 5vw, 80px) var(--tile-gap) 0;
}
@media (max-width: 639px)  { .work-grid { --tile-gap: 10px; } }
@media (min-width: 640px)  { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work-grid--home { margin-top: calc(var(--header-h) + var(--tile-gap)); }   /* homepage: work straight under the header */
@media (min-width: 1080px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile { display: block; text-decoration: none; color: var(--ink); }
.tile:focus-visible { outline: none; }
.tile-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--placeholder); }
.tile-media img, .tile-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* the coloured layer */
.tile-hover {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem;
  background: var(--tile-bg, var(--accent)); color: var(--tile-ink, var(--on-accent));
  opacity: 0; transition: opacity 0.35s var(--ease-tile);
}

/* title and category, centred: bold title, category on the line below */
.tile-label {
  display: flex; flex-direction: column; align-items: center; row-gap: 0.15em;
  padding: 0 1.2em; text-align: center; text-wrap: balance; letter-spacing: var(--tracking);
  font-size: clamp(1.1rem, 0.85rem + 0.6vw, 1.5rem); line-height: var(--leading);
  transform: translateY(0.5em); transition: transform 0.6s var(--ease-tile);
}
.t-title { font-weight: 700; }
.t-cat { font-family: var(--sans); font-weight: 400; font-style: normal; }
.t-sep { display: none; }

/* hover on mouse and trackpad only, so taps on phones go straight to the project */
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-hover { opacity: 1; }
  .tile:hover .tile-label { transform: none; }
}
.tile:focus-visible .tile-hover { opacity: 1; }
.tile:focus-visible .tile-label { transform: none; }

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
.p-intro h1 { font-size: var(--fs-display); }
.p-main { grid-column: 1 / 14; }
.p-meta { grid-column: 17 / 23; display: grid; gap: 1.6rem; align-content: start; padding-top: 0.6rem; }
.p-meta dd { font-family: var(--serif); font-size: 1.25rem; line-height: var(--leading); margin-top: 0.25rem; }

.gallery { display: flex; flex-direction: column; gap: var(--gap); margin-top: var(--space); }
.gallery img { width: 100%; height: auto; border-radius: var(--radius); background: var(--placeholder); }
/* a section title inside a gallery, e.g. one venue of several */
.g-heading { padding: clamp(48px, 6vw, 96px) 0 clamp(8px, 1vw, 16px); }
.g-heading h2 { font-size: var(--fs-h2, clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem)); line-height: var(--leading); }
.g-heading .lede { margin-top: 0.5rem; color: var(--muted); }
.g-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: var(--gap); }
.g-row img { aspect-ratio: var(--ratio, 4 / 5); height: auto; object-fit: cover; }
.g-row video { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio, 4 / 5); object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
/* natural: true — same height, nothing cropped (widths follow each image's shape) */
.g-row--natural { display: flex; align-items: flex-start; }
.g-row--natural > img, .g-row--natural > video { flex: var(--ar, 1) 1 0; min-width: 0; aspect-ratio: auto; }
.g-full { width: 100vw; margin-left: calc(50% - 50vw); }
.g-full img { border-radius: 0; }
.g-mp4 video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--placeholder); }
.g-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); }
.g-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Carousel: one 16:9 frame per venue. Landscape images fill it, portraits sit whole. */
.c-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg); border-radius: var(--radius);
  container-type: size; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.c-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.9s var(--ease-tile);
}
.c-slide.is-active { opacity: 1; z-index: 1; }
.c-slide > img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 0; background: none; }
.c-slide > img.is-cover, .c-video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Pairs: two equal halves that fill the frame, cropped to fit, with a gap of 30px per 1920px of frame */
.c-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  gap: calc(100cqw * 30 / 1920); width: 100%; height: 100%; overflow: hidden;
}
.c-pair img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; object-fit: cover; object-position: center; border-radius: 0; background: none; }
.c-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--placeholder); color: var(--muted); font-family: var(--serif); font-size: var(--fs-h3); }

/* Arrows: plain off-white chevrons on the left and right edges, no circle */
.c-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: clamp(44px, 4.5vw, 72px); height: clamp(56px, 6vw, 96px); padding: 0;
  color: var(--ink); background: none; border: 0; cursor: pointer; opacity: 0.85;
  filter: drop-shadow(0 0 1px rgba(28, 24, 24, 0.75)) drop-shadow(0 1px 6px rgba(28, 24, 24, 0.3));
  transition: opacity 0.2s ease;
}
.c-arrow svg { width: clamp(10px, 0.9vw, 15px); height: auto; overflow: visible; }
.c-prev { left: clamp(2px, 0.8vw, 14px); }
.c-prev svg { transform: scaleX(-1); }
.c-next { right: clamp(2px, 0.8vw, 14px); }
.c-arrow:hover { opacity: 1; }
.c-arrow:focus-visible { outline: 1px solid var(--ink); outline-offset: -8px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .c-slide { transition-duration: 0.01s; } }

.related h2 { font-size: var(--fs-h3); margin-bottom: 1.6rem; }
.related-grid { display: grid; grid-template-columns: 4fr 3fr 3fr; gap: clamp(16px, 2.6vw, 40px); }
.related .card-img, .next-tile { height: clamp(150px, 15vw, 320px); }
.next-tile {
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius);
  font-family: var(--serif); font-size: var(--fs-h3); text-decoration: none;
}
.next-tile:hover span { transform: translateX(4px); }
.next-tile span { transition: transform 0.2s ease; }

/* ==========================================================================
   LOGOS PAGE
   ========================================================================== */
.logos-intro .feature { grid-column: 1 / 9; align-self: center; }
.logos-intro .feature .card-img { aspect-ratio: 3 / 2; }
.logos-intro .statement { grid-column: 11 / 23; align-self: center; font-size: var(--fs-h2); }
.logo-entry { margin-top: var(--space-sm); }
.logo-entry .stack { display: flex; flex-direction: column; gap: var(--gap); }
.logo-entry .card-img { aspect-ratio: 16 / 9; }
.logo-entry .caption { margin-top: 0.75rem; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-top .portrait { grid-column: 14 / 23; }   /* copy on the left, portrait on the right */
.about-top .portrait .card-img { aspect-ratio: 2 / 3; }
.about-text { grid-column: 1 / 12; }
.about-text h1 { font-size: var(--fs-h2); }
.about-text .text-link { display: inline-block; margin-top: 1.4rem; }
.about-text .body { margin-top: clamp(2.5rem, 5vw, 5rem); display: grid; gap: 1.2rem; }
.about-text .body p { font-family: var(--serif); font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.4rem); line-height: var(--leading); max-width: 34em; }

.brands h2 { font-size: var(--fs-h2); text-align: center; }
.marquee { overflow: hidden; margin-top: clamp(2rem, 4vw, 4rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(3rem, 7vw, 7rem); list-style: none; margin: 0; padding: 0 clamp(1.5rem, 3.5vw, 3.5rem); }
.marquee li { font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 2.2vw, 3.2rem); white-space: nowrap; letter-spacing: var(--title-tracking); }
.marquee li img { height: clamp(36px, 4vw, 64px); width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   GET IN TOUCH
   ========================================================================== */
.contact { padding-block: var(--space); }
.contact-text { grid-column: 1 / 10; }
.contact-text h2 { font-size: var(--fs-h2); }
.contact-text p { margin-top: 1.6rem; max-width: 46ch; }
.contact-form { grid-column: 12 / 23; display: grid; gap: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { font-family: var(--serif); font-size: 1.05rem; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font: inherit; font-size: 1rem; padding: 0.55rem 0;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form .pill { width: 100%; margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--accent); color: var(--on-accent); }
/* one row, like benrpotts.co.uk: logo left, email centred, links right; half the old height */
.f-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
  min-height: 224px; padding: clamp(40px, 5vw, 72px) var(--edge);
}
.f-logo { justify-self: start; display: block; line-height: 1; text-decoration: none; font-size: 2rem; }
.f-logo img { display: block; height: clamp(44px, 4.4vw, 64px); width: auto; }
.f-email, .f-links a { font-size: clamp(1rem, 0.9rem + 0.25vw, 1.15rem); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: opacity 0.2s ease; }
.f-email { justify-self: center; }
.f-links { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem clamp(1.2rem, 2vw, 2.2rem); }
.f-email:hover, .f-links a:hover { opacity: 0.6; }

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .grid > * { grid-column: 1 / -1 !important; }
  .home-intro .cta { justify-self: start; margin-top: 2rem; }
  .cap-list { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .p-meta { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
  .g-row { grid-template-columns: 1fr; }
  .g-row--natural { flex-direction: column; align-items: stretch; }
  .g-row--natural > img, .g-row--natural > video { flex: none; width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .logos-intro .statement { margin-top: 2rem; }
  .about-top .portrait { margin-top: 2.5rem; }
  .contact-form { margin-top: 2.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; justify-items: start; gap: 1.1rem; min-height: 0; padding-block: 44px; }
  .f-email, .f-links { justify-self: start; }
  .f-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
}
