/* ---------------------------------------------------------------
   ryandelehanty.com
   --------------------------------------------------------------- */

:root {
  --bg:          #0b0b0c;
  --bg-raise:    #141417;
  --bg-hover:    #1b1b1f;
  --line:        #26262b;
  --text:        #f4f2ef;
  --text-dim:    #9a9792;
  --text-faint:  #6a6763;
  --accent:      #ff4a24;

  --font: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Inter, Arial, sans-serif;

  --gut:      clamp(20px, 5vw, 64px);
  --maxw:     1560px;
  --readable: 62ch;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* --- header ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.wordmark:hover { color: var(--accent); }

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  color: var(--text-dim);
  position: relative;
  padding-block: 4px;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The full wordmark plus three nav items won't fit a phone, so tighten both. */
@media (max-width: 680px) {
  .site-header__inner { height: 58px; gap: 12px; }
  .wordmark { font-size: 11.5px; letter-spacing: .12em; }
  .nav { gap: 16px; font-size: 11.5px; letter-spacing: .08em; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 11px; letter-spacing: .06em; }
  .nav { gap: 13px; font-size: 11px; }
}

/* --- film rows ------------------------------------------------- */

.films {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(10px, 1.4vw, 18px);
}

.row { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.row--solo { grid-template-columns: 1fr; }
.row--pair { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .row--pair { grid-template-columns: 1fr 1fr; }
}

.film { margin: 0; }

.film__link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-raise);
}

.film__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-raise);
}
/* Every source still is 16:9, so cropping a solo film wider would slice the
   title card off the artwork. Solo films get scale instead of a crop. */
.film--solo .film__media { aspect-ratio: 16 / 9; }
.row--solo { max-width: 1560px; margin-inline: auto; width: 100%; }

.film__media img:not(.film__logo),
.film__media .film__loop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s var(--ease);
}
/* Artwork that isn't 16:9 sits whole inside the card rather than being
   cropped to fill it. */
.film__media--contain img:not(.film__logo) { object-fit: contain; }
.film__media--contain { background: #0f0f11; }

/* The clip that reveals on hover (a small looping MP4 laid over the still). */
.film__media .card__anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.film__link:hover .card__anim, .film__link:focus-visible .card__anim { opacity: 1; }

.film__link:hover .film__media img:not(.film__logo),
.film__link:hover .film__media .film__loop,
.film__link:focus-visible .film__media img:not(.film__logo),
.film__link:focus-visible .film__media .film__loop { transform: scale(1.04); }

.film__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%);
  opacity: .7;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.film__link:hover .film__media::after { opacity: .35; }

/* Brand mark for stills that don't already carry one. Centred and forced to
   a white silhouette, so five different brand palettes don't fight the
   photography and it reads like the logos baked into the other stills. */
.film__media .film__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  height: clamp(54px, 6vw, 78px);
  width: auto;
  max-width: 52%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0,0,0,.6));
  opacity: .95;
  z-index: 3;
  transition: opacity .35s var(--ease), scale .5s var(--ease);
}
.film--solo .film__media .film__logo { height: clamp(66px, 7.6vw, 108px); }
.film__link:hover .film__logo { opacity: 1; scale: 1.04; }

/* A logo that keeps its own colours: a self-contained badge that a white
   fill would flatten into a solid disc. Sized a little larger so a dense
   stamp still reads. */
.film__media .film__logo--full {
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.55));
  height: clamp(78px, 8.6vw, 116px);
  max-width: 44%;
}
.film--solo .film__media .film__logo--full { height: clamp(96px, 10vw, 148px); }

/* Cards with a hover animation fade their overlay out, so the GIF plays
   unobstructed. Several of those clips carry the brand mark themselves. */
.film__link[data-anim]:hover .film__logo,
.film__link[data-anim]:focus-visible .film__logo { opacity: 0; scale: 1; }

/* play glyph, so a still reads as a film */
.film__play {
  position: absolute;
  right: clamp(14px, 1.8vw, 26px);
  bottom: clamp(14px, 1.8vw, 26px);
  width: clamp(44px, 4.6vw, 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(12,12,13,.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,.26);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .4s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), scale .35s var(--ease);
  pointer-events: none;
  z-index: 4;
}
.film__play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 3px;
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.film__link:hover .film__play,
.film__link:focus-visible .film__play {
  opacity: 1;
  background: var(--accent);
  border-color: var(--accent);
  scale: 1.06;
}

.film__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(14px, 1.6vw, 22px) clamp(16px, 1.8vw, 26px);
  background: var(--bg-raise);
  transition: background .35s var(--ease);
}
.film__link:hover .film__bar { background: var(--bg-hover); }

.film__title {
  margin: 0;
  font-size: clamp(.95rem, 1.35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.3;
  transition: color .3s var(--ease);
}
.film--solo .film__title { font-size: clamp(1.05rem, 1.9vw, 1.7rem); }
.film__link:hover .film__title { color: var(--accent); }


/* --- header intro strip ------------------------------------------ */

.site-header__inner { align-items: center; }

.wordmark-block { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.wordmark-block .wordmark { font-size: 13px; }
.wordmark-block .wordmark-role {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 680px) {
  .wordmark-block .wordmark-role { display: none; }
}

/* --- drawer -------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
}
.drawer[hidden] { display: none; }

/* Defensive: until the panel is actually open, the scrim must never swallow
   clicks. If opening ever fails halfway the page stays usable. */
.drawer:not(.is-open) { pointer-events: none; }
.drawer.is-open { pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5,5,6,.66);
  opacity: 0;
  transition: opacity .45s var(--ease);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(1180px, 94vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0,0,0,.5);
  overflow-y: auto;
  overscroll-behavior: contain;
  translate: 100% 0;
  transition: translate .52s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.drawer.is-open .drawer__panel { translate: 0 0; }

.drawer__close {
  position: sticky;
  top: clamp(12px, 2vw, 20px);
  float: right;
  margin: clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px) 0 0;
  z-index: 5;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-raise) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), rotate .35s var(--ease);
}
.drawer__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  rotate: 90deg;
}

.drawer__body .project-head { padding-top: clamp(28px, 5vw, 56px); }
.drawer__body .wrap { padding-inline: clamp(20px, 4vw, 56px); }

.drawer__loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--text-faint);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.drawer__more {
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px);
}
.drawer__more a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .25s var(--ease);
}
.drawer__more a:hover { color: var(--accent); }

body.drawer-open { overflow: hidden; }

.inline-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color .25s var(--ease);
}
.inline-link:hover { color: var(--accent); }

/* --- section label --------------------------------------------- */

.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 clamp(24px, 4vw, 44px);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --- project page ----------------------------------------------- */

.project-head {
  padding-block: clamp(48px, 9vw, 104px) clamp(32px, 5vw, 56px);
}

.project-head__client {
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 clamp(16px, 2.5vw, 26px);
}

.project-head__title {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 5rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.032em;
  max-width: 20ch;
}

.project-head__standfirst {
  margin: clamp(22px, 3.5vw, 36px) 0 0;
  max-width: var(--readable);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-dim);
}

.project-body { padding-bottom: clamp(64px, 10vw, 128px); }

.block { margin-block: clamp(32px, 5vw, 64px); }

.block-p {
  max-width: var(--readable);
  margin-block: clamp(20px, 2.6vw, 30px);
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.72;
}

.block-h {
  margin: clamp(56px, 8vw, 104px) 0 clamp(20px, 3vw, 32px);
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-faint);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.block-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block: clamp(20px, 3vw, 32px);
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn::after { content: "↗"; font-size: 14px; }

/* --- video facade ------------------------------------------------ */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-raise);
  border-radius: 3px;
  overflow: hidden;
  margin-block: clamp(20px, 3vw, 34px);
}

.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video img { object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }

.video__btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

/* Self-hosted video: native controls, letterboxed rather than cropped so
   footage that isn't 16:9 still shows in full. */
.video--file { background: #000; }
.video--file video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.video-grid .video { margin-block: 0; }

.video__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.12);
  transition: background .4s var(--ease);
}

.video__play {
  position: relative;
  width: clamp(58px, 7vw, 82px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(12,12,13,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  display: grid;
  place-items: center;
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.video__play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.video__btn:hover .video__play,
.video__btn:focus-visible .video__play {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.07);
}
.video__btn:hover::before { background: rgba(0,0,0,.08); }
.video__btn:hover ~ img,
.video__btn:hover + img { transform: scale(1.03); }

.video__caption,
.media-caption {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: .01em;
}

/* video that has no working embed */
.video--offsite {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--bg-raise);
  padding: 32px;
}
.video--offsite p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 42ch;
}

.video--missing {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(255,255,255,.018) 10px, rgba(255,255,255,.018) 20px);
  padding: 32px;
}
.video--missing p {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
  max-width: 44ch;
  letter-spacing: .01em;
}
.video--missing strong {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

/* --- gallery ------------------------------------------------------ */

/* Campaign artwork is posters, press ads and stills at wildly different
   shapes, and cropping them cuts the headline off. Every gallery image shows
   whole; cells align to the top so uneven heights read as deliberate. */
/* Campaign artwork is posters, press ads and stills at wildly different
   shapes, and cropping them cuts the headline off. Nothing is cropped, so the
   gallery flows in columns rather than a grid: a tall poster beside a wide
   one would otherwise force a row to its height and leave big holes. */
/* Masonry columns. Nothing is cropped, so images of different shapes pack
   tightly down each column instead of leaving a portrait to blow out a grid
   row and strand the landscapes beside it with dead space. */
.gallery {
  column-gap: clamp(12px, 1.6vw, 20px);
  margin-block: clamp(28px, 4vw, 48px);
  columns: 3;
}
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

.gallery--single { columns: 1; max-width: 900px; }

/* A single image given the full column width, edge to edge. */
.gallery--stack { columns: 1; }
.gallery--stack button { margin-bottom: 0; }

.gallery button {
  padding: 0;
  border: 0;
  background: var(--bg-raise);
  border-radius: 3px;
  cursor: zoom-in;
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: clamp(12px, 1.6vw, 20px);
  transition: outline-color .25s var(--ease);
  outline: 1px solid transparent;
  outline-offset: -1px;
}
.gallery button:hover { outline-color: var(--line); }
.gallery img {
  width: 100%;
  height: auto;
  transition: opacity .4s var(--ease);
}
.gallery button:hover img { opacity: .82; }

/* --- lightbox ----------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,6,7,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
.lightbox[open] { opacity: 1; pointer-events: auto; }
.lightbox::backdrop { background: transparent; }

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: background .25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }

.lightbox__close { top: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 30px); }
.lightbox__nav--prev { left: clamp(10px, 2.5vw, 28px); top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: clamp(10px, 2.5vw, 28px); top: 50%; translate: 0 -50%; }

.lightbox__count {
  position: absolute;
  bottom: clamp(14px, 3vw, 30px);
  left: 50%;
  translate: -50% 0;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* --- next project -------------------------------------------------- */

.next {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 8vw, 96px);
}
.next a {
  text-decoration: none;
  display: block;
  color: inherit;
}
.next__label {
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.next__title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.next a:hover .next__title { color: var(--accent); }
.next__title::after {
  content: "→";
  font-size: .55em;
  transition: transform .35s var(--ease);
}
.next a:hover .next__title::after { transform: translateX(8px); }

/* --- about --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: 0 clamp(48px, 8vw, 96px);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

.about-copy p {
  max-width: var(--readable);
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.62;
}
.about-copy p:first-of-type { color: var(--text); }

.about-portrait {
  border-radius: 3px;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.contact-link {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease), color .3s var(--ease);
  padding-bottom: 3px;
}
.contact-link:hover { color: var(--accent); background-size: 100% 1px; }

/* The award artwork is a mix of black line art and full-colour logos, so no
   single filter reads well on a dark page. Sit each one on a light chip. */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 900px;
}
.awards img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: 18px;
  background: #f4f2ef;
  border-radius: 3px;
  opacity: .8;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.awards img:hover { opacity: 1; transform: translateY(-3px); }

/* --- footer -------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px);
}

.footer-cta {
  font-size: clamp(1.6rem, 5.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.08;
  margin: 0 0 clamp(24px, 4vw, 40px);
}

/* The word swaps on click. Sized in em so it tracks the headline. */
.shuffle {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0 .06em .04em;
  margin: 0;
  cursor: pointer;
  position: relative;
  display: inline-block;
  letter-spacing: inherit;
  border-bottom: .06em solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color .3s var(--ease);
}
.shuffle:hover { border-bottom-color: var(--accent); }

.shuffle.is-swapping { animation: shuffleSwap .32s var(--ease); }
@keyframes shuffleSwap {
  0%   { opacity: 1; transform: translateY(0) }
  45%  { opacity: 0; transform: translateY(-.16em) }
  55%  { opacity: 0; transform: translateY(.16em) }
  100% { opacity: 1; transform: translateY(0) }
}
@media (prefers-reduced-motion: reduce) {
  .shuffle.is-swapping { animation: none; }
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --- scroll reveal ---------------------------------------------------- */

/* Only hide reveal targets when JS is actually running, so a script failure
   can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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