/*
 * Productions K: site styles.
 * Hand-written, no build step: edit this file directly (layout.blade.php adds a cache-busting version).
 * Animations only touch transform and opacity, and stop under prefers-reduced-motion.
 */

:root {
  --ink: #141313;
  --ink-2: #1e1c1c;
  --paper: #f6f4f1;
  --white: #fff;
  --muted: #6b6767;
  --line: #e4e0db;
  --accent: #ff585d;
  --accent-ink: #e8464b;
  --error: #c93038;

  --font: 'brandon-grotesque', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 18px 40px -20px rgb(0 0 0 / .28);
}


/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  /* Keeps the page from shifting sideways when a dialog locks scrolling. */
  scrollbar-gutter: stable;
  /* No blue rectangle flashing over links and buttons when tapped on touch screens. */
  -webkit-tap-highlight-color: transparent;
}

html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  /* Dark like the hero (top) and the footer (bottom), which is what elastic scrolling shows. */
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The light sections (services, social, press pages) sit on this. */
main { display: block; background: var(--paper); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.section { padding-block: clamp(80px, 11vw, 150px); }
.section--dark { background: var(--ink); color: var(--white); }
.section--white { background: var(--white); }

.section-title { font-size: clamp(2.1rem, 5vw, 3.75rem); margin-bottom: clamp(36px, 5vw, 64px); }
.section-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 1em 1.7em;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: var(--accent-ink); }

/* Scroll reveal (site.js adds .is-visible). Without JS, everything stays visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }


/* Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / 0));
  transition: background-color .35s, box-shadow .35s;
}
.site-header.is-solid,
.site-header.is-open {
  background: rgb(20 19 19 / .95);
  box-shadow: 0 1px 0 rgb(255 255 255 / .08);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.site-header__brand { display: block; flex: none; }
.site-header__brand .logo { width: auto; height: 30px; }
.site-header__brand .logo-mobile { display: none; }
/* The 20th anniversary "K" logo of the press release pages is square. */
.site-header__brand .logo-k { height: 46px; }

.site-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.site-nav .links { display: flex; gap: 30px; }
.site-nav .links a {
  position: relative;
  padding: 6px 0;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav .links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav .links a:hover::after,
.site-nav .links a.is-current::after { transform: scaleX(1); }

.misc { display: flex; align-items: center; gap: 10px; }
.misc .lang {
  margin-right: 6px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / .35);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.misc .lang:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.misc .social img { width: 28px; height: 28px; opacity: .8; transition: opacity .2s; }
.misc .social:hover img { opacity: 1; }

.burger-nav { display: none; }

@media (max-width: 959px) {
  .burger-nav {
    position: relative;
    display: block;
    flex: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .burger-nav span,
  .burger-nav span::before,
  .burger-nav span::after {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .burger-nav span { top: 21px; }
  .burger-nav span::before,
  .burger-nav span::after { content: ""; left: 0; }
  .burger-nav span::before { transform: translateY(-7px); }
  .burger-nav span::after { transform: translateY(7px); }
  .is-open .burger-nav span { background: transparent; }
  .is-open .burger-nav span::before { transform: rotate(45deg); }
  .is-open .burger-nav span::after { transform: rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin: 0;
    padding: 12px var(--gutter) 32px;
    background: rgb(20 19 19 / .97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .site-nav .links { flex-direction: column; gap: 0; }
  .site-nav .links a {
    padding: 14px 0;
    border-bottom: 1px solid rgb(255 255 255 / .08);
    font-size: 1.35rem;
    letter-spacing: .06em;
  }
  .site-nav .links a::after { display: none; }
}

@media (max-width: 599px) {
  .site-header__brand .logo { display: none; }
  .site-header__brand .logo-mobile,
  .site-header__brand .logo-k { display: block; height: 36px; }
}


/* Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--white);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s 1.2s;
}
.hero__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .2) 55%, rgb(0 0 0 / .82) 100%),
    linear-gradient(90deg, rgb(0 0 0 / .35), transparent 70%);
}

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__bg { animation: hero-zoom 12s ease-out both; }

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: clamp(110px, 16vh, 170px);
}
.hero__content > * { max-width: 760px; }
.hero__slide.is-active .hero__content > * { animation: rise .9s var(--ease) both; }
.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: .24s; }

.hero__logo { width: clamp(56px, 6vw, 80px); margin-bottom: 28px; }
.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: .92;
  text-transform: uppercase;
}
.hero h1 strong { color: var(--accent); font-weight: 900; }
@media (min-width: 768px) { .dont-cut { white-space: nowrap; } }
.hero__content p {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.hero__dots {
  position: absolute;
  right: var(--gutter);
  bottom: 44px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
/* Countdown bar. The button is the 36x4 track (its padding box); the transparent border around it
   is the tap area. ::before is the red fill sliding in with translateX: smooth, sub-pixel motion,
   and its rounded end leads (width would grow in whole-pixel steps, scaleX would squash the ends). */
.hero__dot {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  border: solid transparent;
  border-width: 10px 4px;
  /* Inner (padding box) corners come out at 2px. */
  border-radius: 6px / 12px;
  background: rgb(255 255 255 / .35) padding-box;
  overflow: hidden;
  cursor: pointer;
}
.hero__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-100%);
}
.hero__dot.is-active::before { animation: progress var(--hero-interval, 10s) linear both; }
.hero.is-paused .hero__dot::before,
.hero.is-paused .hero__bg { animation-play-state: paused; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgb(255 255 255 / .6);
  border-radius: 14px;
  transform: translateX(-50%);
}
.hero__scroll::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scroll-cue 1.8s var(--ease) infinite;
}

@media (max-width: 599px) {
  .hero__dots { right: auto; left: calc(var(--gutter) - 4px); bottom: 36px; }
  .hero__content { padding-bottom: 96px; }
}
/* The hero stops at 1000px: on taller screens the next section already shows, so no scroll cue. */
@media (min-height: 1001px) {
  .hero__scroll { display: none; }
}


/* Services
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.service-card {
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.service-card img { width: 88px; height: 88px; margin: -8px 0 20px -8px; }
.service-card h3 { margin-bottom: 16px; font-size: 1.2rem; letter-spacing: .06em; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.8; }


/* Projects (réalisations)
   ========================================================================== */

/* All four filters are the same size: one column on phones, two on tablets, one row on desktop
   (as wide as the longest label). Labels always fit on one line. */
.filters { display: grid; gap: 10px; margin-bottom: 36px; }
@media (min-width: 600px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 540px; }
}
@media (min-width: 1024px) {
  .filters { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; width: fit-content; max-width: none; }
}
.filter {
  padding: .75em 1.25em;
  white-space: nowrap;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 999px;
  background: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.filter:hover { border-color: var(--white); }
.filter.is-active { border-color: var(--accent); background: var(--accent); }

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 16px;
}
.project[hidden] { display: none; }

/* Only the card is rounded; nothing inside is. It clips with a mask instead of overflow: hidden:
   while the zoom runs, Chrome draws the photo on its own layer, and a rounded overflow clip cuts
   the photo and the title gradient separately, so the photo showed through as a light line on the
   edges. The mask clips everything at once (measured: no light pixels on the edge, zoom or not). */
.project__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(#000 0 0);
          mask-image: linear-gradient(#000 0 0);
  color: var(--white);
  text-decoration: none;
}
.project__media { width: 100%; height: 100%; }
.project__media img { width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); transition: transform .8s var(--ease); }
.project__link:hover .project__media img,
.project__link:focus-visible .project__media img { transform: scale(1.06); }

.project__title {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 22px 20px;
  background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .82));
  font-size: .95rem;
  line-height: 1.35;
}
.project__title > div::first-line { font-size: 1.15rem; font-weight: 900; letter-spacing: .04em; }

/* "+" badge, drawn with two centred bars so it sits exactly in the middle. */
.project__link::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgb(20 19 19 / .55);
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(var(--white), var(--white));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 2px, 2px 16px;
  transition: background-color .2s;
}
.project__link:hover::after,
.project__link:focus-visible::after { background-color: var(--accent); }

::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }


/* Clients
   ========================================================================== */

.clients .section-title { margin-bottom: clamp(28px, 4vw, 48px); }

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  margin: 0;
  padding: 12px clamp(40px, 6vw, 88px) 12px 0;
  list-style: none;
  animation: marquee var(--marquee-duration, 50s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; width: clamp(110px, 12vw, 160px); }
.marquee__track img { width: 100%; opacity: .75; transition: opacity .3s; }
.marquee__track li:hover img { opacity: 1; }


/* Social (on ne fait pas juste travailler)
   ========================================================================== */

.social__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
}
/* Same rule as the project cards: the photo alone at the top corners, the text block alone at the
   bottom ones, so the card has no background of its own. */
.social-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ink-2); }
.social-card figcaption {
  flex: 1;
  background: var(--ink-2);
  padding: clamp(22px, 3vw, 32px);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}


/* Contact + footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--white); }

.contact {
  display: grid;
  gap: 16px;
  padding-block: clamp(80px, 11vw, 140px) clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* Photo and dark overlay are one background, so the rounded corners have a single edge. */
.contact__card {
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgb(20 19 19 / .92), rgb(20 19 19 / .72)),
    url('../images/img-contact3.jpg') center / cover var(--ink-2);
}
.contact__card .section-title { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3rem); }
.contact__address { font-size: 1.2rem; line-height: 1.5; }
.contact__tel { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 28px; font-size: 1.1rem; }
.contact__tel a { text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .3); transition: border-color .2s; }
.contact__tel a:hover { border-color: var(--accent); }
.contact__social { display: flex; gap: 10px; margin-bottom: 36px; }
.contact__social img { width: 40px; height: 40px; opacity: .85; transition: opacity .2s; }
.contact__social a:hover img { opacity: 1; }

.contact__map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
}
/* Shown until (or instead of) the Google map. */
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 70% 35%, rgb(255 88 93 / .35), transparent 30%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 48px),
    var(--ink-2);
  color: var(--white);
  text-decoration: none;
}
.map-fallback strong { font-size: 1.15rem; }
.map-fallback span { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }

.copy {
  margin: 0;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid rgb(255 255 255 / .08);
  color: rgb(255 255 255 / .5);
  font-size: .85rem;
  text-align: center;
}


/* Dialogs (contact form, project details, flash message)
   ========================================================================== */

.dialog {
  width: min(100% - 32px, 1100px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--white);
  color: var(--ink);
}
.dialog::backdrop { background: rgb(10 10 10 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in .35s var(--ease); }
.dialog[open]::backdrop { animation: fade-in .3s ease; }
.dialog.is-closing { animation: dialog-out .2s ease forwards; }
.dialog.is-closing::backdrop { animation: fade-out .2s ease forwards; }

.dialog__inner { position: relative; }

.dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .92);
  box-shadow: 0 4px 14px -4px rgb(0 0 0 / .35);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s;
}
/* Only the shade changes on hover: swapping icon and background colours made the icon blink. */
.dialog__close:hover { background: #e9e6e2; }

/* site.js / the browser focus the dialog itself on open, not its first button. */
.dialog__inner:focus { outline: none; }

/* Icons are SVG strokes drawn in a 24x24 box, centred by the grid of their button. */
.dialog__close svg,
.gallery__nav svg,
.flash__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact / job application form */
.popup { width: min(100% - 32px, 720px); }
.popup .text { padding: clamp(28px, 5vw, 56px); }
.popup .text[hidden] { display: none; }
.popup__title { margin-bottom: 28px; padding-right: 48px; font-size: clamp(1.6rem, 3vw, 2.25rem); }

.main-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.main-form label { display: grid; gap: 6px; }
.main-form label > span:not(.field-error) { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.main-form input:not([type=hidden], [type=file]),
.main-form textarea {
  width: 100%;
  padding: .85em 1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #faf9f7;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.main-form textarea { min-height: 150px; resize: vertical; }
.main-form input:focus,
.main-form textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgb(255 88 93 / .15); }
/* Errors come from site.js (initForms) after a submit attempt. */
.main-form input[aria-invalid="true"],
.main-form textarea[aria-invalid="true"] { border-color: var(--error); background: #fff6f6; }
.main-form input[aria-invalid="true"]:focus,
.main-form textarea[aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 4px rgb(201 48 56 / .14); }
.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--error);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
}
/* "!" icon in front of the message (SVG from site.js, like every icon). */
.field-error svg { display: block; flex: none; width: 16px; height: 16px; }
.field-error circle { fill: var(--error); }
.field-error path { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; }
.main-form input[type=file] { font-size: .9rem; }
.main-form input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: .6em 1em;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.main-form .btn { display: flex; width: fit-content; margin: 8px auto 0; }
@media (max-width: 599px) { .main-form .btn { width: 100%; } }

/* Project details */
/* Dark like the gallery, so nothing light sits behind its corners; the text column is white. */
.project-dialog { background: var(--ink); }
.project-dialog .dialog__inner { min-height: 240px; }
.project-dialog .project-detail__status { color: rgb(255 255 255 / .7); }
.project-detail { display: grid; }
@media (min-width: 860px) {
  .project-detail { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.project-detail__text { padding: clamp(28px, 4vw, 52px); background: var(--white); }
.project-detail__text h2 { margin-bottom: 12px; padding-right: 40px; font-size: clamp(1.8rem, 3vw, 2.5rem); text-transform: uppercase; }
.project-detail__subtitle { margin: 0 0 24px; color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-detail__desc { margin: 0; color: var(--muted); line-height: 1.8; }
.project-detail__status { display: grid; place-items: center; min-height: 240px; padding: 40px; color: var(--muted); text-align: center; }

.gallery { position: relative; background: var(--ink); }
.gallery__track {
  display: flex;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gallery__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .82);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s, opacity .2s;
}
.gallery__nav:hover:not(:disabled) { background: var(--white); }
/* At the first or last image the arrow stays in place, dimmed. */
.gallery__nav:disabled { opacity: .35; cursor: default; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / .55);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Flash message after a form */
.flash { width: min(100% - 32px, 440px); text-align: center; }
.flash .dialog__inner { padding: 44px 32px 32px; }
.flash__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgb(255 88 93 / .12);
  color: var(--accent);
  animation: pop .5s var(--ease) .15s both;
}
.flash__icon svg { width: 30px; height: 30px; stroke-width: 2.5; }
.flash h2 { margin-bottom: 10px; font-size: 1.9rem; }
.flash p { margin-bottom: 24px; color: var(--muted); }
.flash p:last-child { margin-bottom: 0; }


/* Press release pages
   ========================================================================== */

.press { padding: calc(var(--header-h) + 48px) var(--gutter) 24px; text-align: center; }
.press img { margin-inline: auto; }
.press .image-pressrelease { width: min(100%, 1000px); margin-bottom: 16px; border-radius: 8px; box-shadow: var(--shadow); }
.press__confetti { width: 101px; margin: 0 0 24px auto !important; }


/* Animations
   ========================================================================== */

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes progress { to { transform: translateX(0); } }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; padding-right: 0; animation: none; }
  .marquee__track[aria-hidden] { display: none; }
}
