/* ==========================================================================
   Frateur — Faceted Atelier
   Complete stylesheet for index.html
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700,900&display=swap');

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour palette */
  --atelier-ink: #101113;
  --mirror-chrome: #c8cfd6;
  --limewash: #f1ece3;
  --carbon: #171717;
  --signal-lime: #d8ff3e;
  --stage-red: #e23b2e;
  --cosy-timber: #8b5e3c;
  --electric-indigo: #575ecf;
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-display: "Clash Display", "Arial Black", sans-serif;
  --font-body: "Satoshi", "Inter", system-ui, sans-serif;

  /* Modular type scale — ratio 1.25 */
  --step--2: 0.64rem;
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;
  --step-6: 3.815rem;
  --step-7: 4.768rem;
  --step-8: 5.960rem;

  /* 8pt spacing scale */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-7: 3.5rem;   /* 56px */
  --space-8: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */
  --space-12: 6rem;    /* 96px */
  --space-16: 8rem;    /* 128px */
  --space-20: 10rem;   /* 160px */
  --space-24: 12rem;   /* 192px */

  /* Elevation system — hard, workshop-like shadows */
  --elev-0: none;
  --elev-1: 2px 2px 0 0 var(--carbon);
  --elev-2: 4px 4px 0 0 var(--carbon);
  --elev-3: 6px 6px 0 0 var(--carbon);
  --elev-4: 8px 8px 0 0 var(--carbon);
  --elev-dark-1: 2px 2px 0 0 var(--signal-lime);
  --elev-dark-2: 4px 4px 0 0 var(--signal-lime);
  --elev-chrome: 0 0 0 1px rgba(200, 207, 214, 0.15), 4px 4px 0 0 rgba(0, 0, 0, 0.4);

  /* Clip-path facets */
  --facet-btn: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --facet-card: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  --facet-hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 600ms;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--carbon);
  background: var(--limewash);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   3. Page shell / skip link / scroll progress
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  overflow-x: clip;
}

.page--home {
  background: var(--limewash);
}

.shell {
  width: min(100% - var(--space-4), 1280px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--signal-lime);
  color: var(--atelier-ink);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: var(--space-2);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--signal-lime);
  transform-origin: left;
  transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
  .scroll-progress__bar {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes scroll-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 17, 19, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(200, 207, 214, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--limewash);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__facet {
  width: 28px;
  height: 28px;
  background: conic-gradient(
    from 45deg,
    var(--mirror-chrome),
    var(--signal-lime),
    var(--mirror-chrome),
    var(--carbon),
    var(--mirror-chrome)
  );
  clip-path: var(--facet-hex);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.brand:hover .brand__facet {
  transform: rotate(180deg) scale(1.1);
}

.brand__name {
  font-size: var(--step-1);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--space-1);
  color: var(--mirror-chrome);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color var(--dur-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--signal-lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out-expo);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--limewash);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.is-active {
  color: var(--limewash);
}

.nav__link.is-active::after {
  transform: scaleX(1);
  background: var(--signal-lime);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  clip-path: var(--facet-btn);
  filter: drop-shadow(2px 2px 0 var(--carbon));
  transition:
    transform var(--dur-fast) var(--ease-out-expo),
    filter var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-fast),
    color var(--dur-fast);
}

.btn:hover {
  transform: translate(-2px, -2px);
  filter: drop-shadow(4px 4px 0 var(--carbon));
}

.btn:active {
  transform: translate(0, 0);
  filter: drop-shadow(1px 1px 0 var(--carbon));
}

.btn--primary {
  background: var(--signal-lime);
  color: var(--atelier-ink);
}

.btn--primary:hover {
  background: #e6ff66;
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--limewash);
  filter: drop-shadow(2px 2px 0 var(--signal-lime));
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  filter: drop-shadow(4px 4px 0 var(--signal-lime));
}

.btn--dark {
  background: var(--carbon);
  color: var(--limewash);
  filter: drop-shadow(2px 2px 0 var(--signal-lime));
}

.btn--dark:hover {
  background: var(--atelier-ink);
  filter: drop-shadow(4px 4px 0 var(--signal-lime));
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--step--2);
}

/* --------------------------------------------------------------------------
   6. Mobile navigation
   -------------------------------------------------------------------------- */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(200, 207, 214, 0.2);
  background: rgba(255, 255, 255, 0.04);
  clip-path: var(--facet-btn);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mirror-chrome);
  transition:
    transform var(--dur-med) var(--ease-out-expo),
    opacity var(--dur-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 90;
  display: none;
  padding: var(--space-6);
  background: rgba(16, 17, 19, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
}

.mobile-nav.is-open,
.nav-toggle[aria-expanded="true"] ~ .mobile-nav {
  display: block;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav__link {
  display: block;
  padding-block: var(--space-2);
  border-bottom: 1px solid rgba(200, 207, 214, 0.12);
  color: var(--limewash);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition:
    color var(--dur-fast),
    padding-left var(--dur-med) var(--ease-out-expo);
}

.mobile-nav__link:hover {
  color: var(--signal-lime);
  padding-left: var(--space-2);
}

.mobile-nav__link--cta {
  color: var(--signal-lime);
}

.mobile-nav__contact {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(200, 207, 214, 0.12);
  color: var(--mirror-chrome);
  font-size: var(--step--1);
  line-height: 2;
}

.mobile-nav__contact a {
  display: block;
  transition: color var(--dur-fast);
}

.mobile-nav__contact a:hover {
  color: var(--signal-lime);
}

/* --------------------------------------------------------------------------
   7. Chapters — general
   -------------------------------------------------------------------------- */

.chapter {
  position: relative;
  padding-block: var(--space-20);
  overflow: clip;
}

.chapter__number {
  position: absolute;
  top: var(--space-8);
  left: 0;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(10rem, 24vw, 18rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  user-select: none;
  mix-blend-mode: overlay;
}

.chapter--atelier .chapter__number {
  color: rgba(255, 255, 255, 0.04);
}

.chapter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.chapter__grid--atelier {
  grid-template-columns: 1fr;
}

.chapter__copy {
  max-width: 60ch;
}

.chapter__header {
  max-width: 70ch;
  margin-bottom: var(--space-10);
}

/* --------------------------------------------------------------------------
   8. Grain texture
   -------------------------------------------------------------------------- */

.grain {
  position: relative;
}

.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --------------------------------------------------------------------------
   9. Typography utilities
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal-lime);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  background: var(--signal-lime);
  clip-path: var(--facet-hex);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.display--hero {
  font-size: clamp(2.5rem, 8vw, var(--step-8));
  max-width: 14ch;
  margin-bottom: var(--space-4);
}

.chrome {
  background: linear-gradient(
    135deg,
    var(--mirror-chrome) 0%,
    var(--white) 35%,
    var(--mirror-chrome) 50%,
    #6b7280 75%,
    var(--mirror-chrome) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--mirror-chrome);
  max-width: 50ch;
}

.lead--narrow {
  max-width: 42ch;
}

.body {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--carbon);
}

.body--muted {
  color: rgba(23, 23, 23, 0.7);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--step-6));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--step-4));
  font-weight: 600;
  line-height: 1.1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.mark {
  position: relative;
  display: inline-block;
  padding: 0 var(--space-1);
  background: var(--signal-lime);
  color: var(--atelier-ink);
  font-weight: 700;
  clip-path: var(--facet-btn);
}

.mark--atelier {
  background: var(--cosy-timber);
  color: var(--limewash);
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
}

.ticks li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--step--1);
  color: var(--mirror-chrome);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 10px;
  height: 10px;
  background: var(--signal-lime);
  clip-path: var(--facet-hex);
}

/* --------------------------------------------------------------------------
   10. Media
   -------------------------------------------------------------------------- */

.chapter__media {
  position: relative;
}

.chapter__media--atelier {
  clip-path: var(--facet-card);
}

.chapter__media--offset {
  margin-top: var(--space-8);
}

.media__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.media__img--mask {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.media__img--radial {
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 30%,
    transparent 75%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    black 30%,
    transparent 75%
  );
}

.media__caption {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--mirror-chrome);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   11. Chapter — Atelier
   -------------------------------------------------------------------------- */

.chapter--atelier {
  background: var(--atelier-ink);
  color: var(--limewash);
}

.chapter--atelier .body {
  color: var(--mirror-chrome);
}

.chapter--atelier .h3 {
  color: var(--limewash);
}

/* --------------------------------------------------------------------------
   12. Stats band
   -------------------------------------------------------------------------- */

.stats-band {
  position: relative;
  padding-block: var(--space-12);
  background: var(--carbon);
  color: var(--limewash);
  overflow: clip;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--step-6));
  font-weight: 700;
  line-height: 1;
  color: var(--signal-lime);
}

.stats__suffix {
  font-size: var(--step-2);
  color: var(--mirror-chrome);
}

.stats__label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mirror-chrome);
}

/* --------------------------------------------------------------------------
   13. Chapter — Mirrorball
   -------------------------------------------------------------------------- */

.chapter--mirrorball {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-block: var(--space-24);
  background: var(--atelier-ink);
  color: var(--limewash);
  overflow: clip;
}

.chapter__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.stage__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 17, 19, 0.2) 0%,
    rgba(16, 17, 19, 0.6) 50%,
    rgba(16, 17, 19, 0.95) 100%
  );
}

.stage__title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--space-4);
}

.display--blend {
  mix-blend-mode: difference;
  color: var(--limewash);
  font-size: clamp(3rem, 12vw, var(--step-8));
}

/* --------------------------------------------------------------------------
   14. Chapter — Split layouts
   -------------------------------------------------------------------------- */

.chapter__grid--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   15. Chapter — Decor
   -------------------------------------------------------------------------- */

.chapter--decor {
  background: var(--limewash);
  color: var(--carbon);
}

.chapter--decor .eyebrow {
  color: var(--cosy-timber);
}

.chapter--decor .eyebrow__dot {
  background: var(--cosy-timber);
}

.chapter--decor .lead {
  color: var(--carbon);
}

/* --------------------------------------------------------------------------
   16. Gallery
   -------------------------------------------------------------------------- */

.gallery-first {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.gallery__cell {
  position: relative;
  overflow: hidden;
  background: var(--atelier-ink);
  clip-path: var(--facet-card);
  min-height: 200px;
}

.gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.gallery__cell:hover img {
  transform: scale(1.06);
}

.gallery__cell--tall {
  grid-row: span 2;
}

.gallery__cell--wide {
  grid-column: span 2;
}

.gallery__cell--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6);
  background: var(--cosy-timber);
  color: var(--limewash);
}

.gallery__cell--text .h3 {
  color: var(--limewash);
}

.gallery__cell--text .body {
  color: rgba(241, 236, 227, 0.85);
}

.gallery__caption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 2;
  padding: var(--space-1) var(--space-2);
  background: rgba(16, 17, 19, 0.8);
  color: var(--limewash);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clip-path: var(--facet-btn);
}

/* --------------------------------------------------------------------------
   17. Clients list
   -------------------------------------------------------------------------- */

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, var(--step-3));
  font-weight: 600;
  color: var(--mirror-chrome);
}

.clients-list li {
  position: relative;
  transition:
    color var(--dur-fast),
    transform var(--dur-fast) var(--ease-out-expo);
}

.clients-list li:hover {
  color: var(--signal-lime);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   18. Scroll-driven reveals
   -------------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
  .chapter__copy,
  .chapter__media,
  .stats__item,
  .gallery__cell,
  .clients-list li {
    animation: reveal-up var(--dur-slow) var(--ease-out-expo) both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  @keyframes reveal-up {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* --------------------------------------------------------------------------
   19. Responsive breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-first {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery__cell--wide {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .chapter__grid--atelier {
    grid-template-columns: 1.2fr 1fr;
  }

  .chapter__grid--split {
    grid-template-columns: 1fr 1fr;
  }

  .chapter__media--offset {
    margin-top: 0;
  }

  .header__inner {
    min-height: 88px;
  }
}

@media (min-width: 1024px) {
  .shell {
    width: min(100% - var(--space-8), 1280px);
  }

  .chapter {
    padding-block: var(--space-24);
  }

  .chapter__number {
    top: var(--space-12);
  }

  .gallery-first {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery__cell--tall {
    grid-row: span 2;
  }

  .gallery__cell--wide {
    grid-column: span 3;
  }

  .gallery__cell--text {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */

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