/* ==========================================================================
   WAID Studio — main stylesheet
   Editorial, media-first layout system.
   Breakpoints: 480 / 576 / 720 / 864 / 960 / 1152 / 1440
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Waid Display';
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Waid Display';
  src: url('../fonts/poppins-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --sans: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'Waid Display', 'Switzer', 'Helvetica Neue', sans-serif;

  --ink: #2a2530;
  --black: #16131a;
  --paper: #ededeb;
  --off-white: #ffffff;
  --pale: #e9edf4;
  --grey: #a3a3a3;
  --dark-grey: #6a6670;
  --orange: #f2683f;
  --teal: #21b0a0;

  --background-color: var(--paper);
  --text-color: var(--ink);
  --link-color: var(--dark-grey);
  --accent: var(--orange);
  --flash: var(--orange);

  --wrapper: 1192px;
  --pad: 20px;

  /* Vertical rhythm between grid cards — generous, but capped so wide screens
     do not open up half a screen of dead space. */
  --gutter-y: clamp(72px, 11vw, 168px);
}

@media (min-width: 720px) { :root { --pad: 40px; } }

/* Evening palette — flips the site to dark after sunset (see main.js) */
html.is-after-dark {
  --background-color: var(--black);
  --text-color: #f2f0f4;
  --link-color: var(--grey);
  --off-white: #211d26;
  --paper: #16131a;
  --flash: var(--teal);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure, figcaption, blockquote, dl, dd, dt, ul, ol, li {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, video, svg, picture { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.2px;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .4s ease, color .4s ease;
}
@media (min-width: 720px) {
  body { font-size: 20px; line-height: 27px; letter-spacing: -0.1px; }
}

a { color: var(--link-color); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--text-color); }

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

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: var(--text-color); color: var(--background-color);
}

/* ---------- Type scale ---------- */
.t-sm  { font-size: 16px; line-height: 22px; letter-spacing: 0.2px; }
.t-md  { font-size: 20px; line-height: 26px; letter-spacing: -0.1px; }
.t-lg  { font-size: 23px; line-height: 29px; letter-spacing: -0.2px; }
.t-xl  { font-size: 26px; line-height: 32px; letter-spacing: -0.4px; }
.t-2xl { font-size: 30px; line-height: 35px; letter-spacing: -0.8px; }

@media (min-width: 576px) {
  .t-lg  { font-size: 26px; line-height: 32px; letter-spacing: -0.3px; }
  .t-xl  { font-size: 32px; line-height: 38px; letter-spacing: -1px; }
  .t-2xl { font-size: 40px; line-height: 46px; letter-spacing: -1.2px; }
}
@media (min-width: 864px) {
  .t-md  { font-size: 23px; line-height: 29px; letter-spacing: -0.2px; }
  .t-lg  { font-size: 32px; line-height: 38px; letter-spacing: -1px; }
  .t-xl  { font-size: 40px; line-height: 47px; letter-spacing: -1.2px; }
  .t-2xl { font-size: 54px; line-height: 60px; letter-spacing: -1.8px; }
}
@media (min-width: 1152px) {
  .t-2xl { font-size: 64px; line-height: 70px; letter-spacing: -2.4px; }
}

/* ---------- Layout primitives ---------- */
.pad { padding-left: var(--pad); padding-right: var(--pad); }

.container { width: 100%; margin: 0 auto; }
.container--constrained { max-width: var(--wrapper); padding-left: var(--pad); padding-right: var(--pad); }
.container--vpad { padding-top: 120px; padding-bottom: 100px; }
@media (min-width: 960px) { .container--vpad { padding-top: 200px; padding-bottom: 120px; } }

.measure { max-width: 17em; }
.measure-wide { max-width: 21em; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 24px; left: var(--pad); right: var(--pad);
  z-index: 60;
  display: flex; flex-direction: column; row-gap: 16px;
  pointer-events: none;
  mix-blend-mode: difference;
}
@media (min-width: 720px) { .site-nav { top: 36px; row-gap: 28px; } }
@media (min-width: 960px) {
  .site-nav { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.site-nav a { color: #fff !important; text-decoration: none; }
html.is-after-dark .site-nav { mix-blend-mode: normal; }
html.is-after-dark .site-nav a { color: var(--text-color) !important; }

/* Small screens have no room for a permanently parked header, so it gets out
   of the way while you read and comes back the moment you scroll up. */
@media (max-width: 959px) {
  .site-nav { transition: transform .35s cubic-bezier(.25,.46,.45,.94), opacity .25s ease; }
  .site-nav.is-tucked { transform: translateY(calc(-100% - 40px)); opacity: 0; }
}

.brand { display: flex; align-items: center; gap: 10px; pointer-events: auto; z-index: 1; }
.brand__mark { width: 26px; height: 26px; flex: none; color: #fff; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word {
  font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1;
  letter-spacing: -0.045em; color: #fff;
}
@media (min-width: 720px) {
  .brand { gap: 14px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__word { font-size: 42px; }
}
.brand img.custom-logo { width: auto; height: 40px; }

.nav-links, .nav-links > ul {
  display: flex; flex-direction: row; column-gap: 20px;
  pointer-events: auto;
  font-size: 16px; line-height: 22px; letter-spacing: 0.2px;
}
@media (min-width: 720px) {
  .nav-links, .nav-links > ul { column-gap: 32px; font-size: 22px; line-height: 27px; }
}
@media (min-width: 960px) {
  .nav-links, .nav-links > ul { column-gap: 40px; font-size: 26px; line-height: 32px; letter-spacing: -0.3px; }
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.nav-links a:hover::after, .nav-links li.current-menu-item > a::after { transform: scaleX(1); }

/* ==========================================================================
   Hero video (home)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 480px;
  background: var(--black);
  overflow: hidden;
}
.hero .media-frame, .hero video, .hero img { width: 100%; height: 100%; object-fit: cover; }
.hero__credit {
  position: absolute; left: var(--pad); bottom: 24px; z-index: 3;
  color: #fff; font-size: 16px; line-height: 22px; letter-spacing: 0.2px;
  display: flex; flex-wrap: wrap; gap: .4em; align-items: baseline;
  text-shadow: 0 1px 20px rgba(0,0,0,.35);
}
.hero__credit a { color: #fff !important; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: 26px; z-index: 3; color: #fff;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  display: none;
}
@media (min-width: 720px) { .hero__scroll { display: block; } }
.hero__scroll span { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ==========================================================================
   Media frame (shared video / image wrapper)
   ========================================================================== */
.media-frame {
  position: relative; overflow: hidden; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white);
}
.media-frame__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(6px); transform: scale(1.08);
  opacity: 1; transition: opacity .4s ease; pointer-events: none;
}
.media-frame video {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease-in; display: block;
}
.media-frame.is-loaded video { opacity: 1; }
.media-frame.is-loaded .media-frame__poster { opacity: 0; }
/* If the clip cannot play, keep the still visible rather than a black box. */
.media-frame.has-error video { display: none; }
.media-frame.has-error .media-frame__poster { opacity: 1; filter: none; transform: none; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Project list — scattered editorial grid
   ========================================================================== */
.project-list { padding: 0; }

.project-card {
  display: block; text-decoration: none; color: inherit;
  margin-bottom: var(--gutter-y);
  transition: opacity .45s cubic-bezier(.25,.46,.45,.94);
}
.project-card:first-of-type { margin-top: 0 !important; }
.project-card:hover { opacity: .88; }
.project-card:hover .project-card__title { color: var(--accent); }

.project-card__media { position: relative; width: 100%; background: var(--off-white); }
.project-card__media video { width: 100%; height: 100%; margin: 0; display: block; }

.project-card__title {
  font-size: 16px; line-height: 22px; letter-spacing: 0.2px;
  max-width: 17em; padding: 14px 0 0; color: var(--text-color);
  transition: color .3s ease;
}
@media (min-width: 864px) { .project-card__title { font-size: 23px; line-height: 29px; letter-spacing: -0.2px; } }
.project-card__name { display: block; }
.project-card__meta { display: block; color: var(--grey); }

/* Scatter is driven by inline custom properties set in PHP */
@media (min-width: 576px) {
  .project-card {
    width: var(--w, 60%);
    margin-left: var(--ml, 0%);
    margin-top: var(--mt, 0%);
  }
}
@media (max-width: 575px) {
  .project-card { width: 100% !important; margin-left: 0 !important; margin-top: 0 !important; margin-bottom: 64px; }
  /* The archive grid is full-bleed on desktop; on phones it needs the page
     margin back so titles do not run into the edge. */
  .container:not(.container--constrained) > .project-list { padding-left: var(--pad); padding-right: var(--pad); }
}

.project-list__statement {
  max-width: 17em; margin: 0 auto var(--gutter-y); padding: 0 22px;
}
@media (min-width: 480px) { .project-list__statement { padding: 0 32px; } }
.project-list__statement p + p { margin-top: 1em; }

.project-list__interstitial { max-width: 21em; margin: 6vw auto var(--gutter-y); padding: 0 22px; }
.project-list__interstitial p + p { margin-top: 26px; }

.see-more { display: flex; justify-content: center; margin: 8vw auto 2vw; padding: 0 22px; }
.link-underline { position: relative; display: inline-block; text-decoration: none; color: var(--text-color); }
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background-color: currentColor; transform-origin: right; transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.link-underline:hover { color: var(--accent); }
.link-underline:hover::after { transform: scaleX(0); }

/* ==========================================================================
   Filters (projects archive)
   ========================================================================== */
.filters {
  display: flex; flex-flow: row wrap; justify-content: center;
  width: 100%; padding-bottom: 10vh; user-select: none;
  font-size: 20px; line-height: 26px;
}
@media (min-width: 864px) { .filters { font-size: 26px; line-height: 32px; letter-spacing: -0.3px; padding-bottom: 14vh; } }
.filters__btn {
  appearance: none; border: 0; background: none; cursor: pointer;
  text-transform: lowercase; padding: 10px 14px; color: var(--grey);
  transition: color .3s ease, opacity .3s ease;
}
@media (min-width: 720px) { .filters__btn { padding: 16px 20px; } }
.filters__btn:hover { color: var(--text-color); }
.filters__btn.is-active { color: var(--text-color); }
.filters__btn.is-active::after { content: ''; }

.crossfade { transition: opacity .25s ease; }
.crossfade.is-hidden { opacity: 0; }

.project-list__empty { text-align: center; padding: 10vh 0 20vh; color: var(--grey); }

/* ==========================================================================
   Project detail
   ========================================================================== */
.project-detail { width: 100%; padding: 160px 0 0; overflow-x: hidden; }
@media (min-width: 576px) { .project-detail { padding-top: 220px; } }

.project-detail__head { padding: 0 22px; margin: 0 auto; max-width: 1024px; }
@media (min-width: 576px) { .project-detail__head { padding: 0 64px; } }
.project-detail__title { font-weight: 300; max-width: 20em; }
.project-detail__intro { margin-top: 1.2em; max-width: 30em; }
.project-detail__intro p + p { margin-top: 1.375em; }
.project-detail__facts {
  display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 2.2em; color: var(--grey);
  font-size: 16px; line-height: 22px; letter-spacing: .2px;
}

/* Content blocks */
.blocks { margin-top: 10vw; }
.block { position: relative; margin-bottom: 12vw; }
.block video, .block img { width: 100%; display: block; }
@media (min-width: 576px) {
  .block {
    width: var(--w, 100%);
    margin-left: var(--ml, 0%);
    margin-top: var(--mt, 0%);
    margin-bottom: 10%;
  }
}
@media (max-width: 575px) {
  .block { width: 100% !important; margin-left: 0 !important; margin-top: 0 !important; margin-bottom: 64px; }
}

.block--text { margin: 10vw 0; padding: 0 22px; }
@media (min-width: 576px) { .block--text { margin-top: 8vw; margin-bottom: 8vw; padding: 0 64px; } }
.block--text p + p { margin-top: 1.375em; }
.block--text a { text-decoration: underline; }
.block--text.is-centered { text-align: center; }
.block--text .block__inner { max-width: 30em; }
.block--text.is-centered .block__inner { margin: 0 auto; }

.block--quote { margin: 12vw 0; padding: 0 22px; text-align: center; }
@media (min-width: 576px) { .block--quote { padding: 0 64px; } }
.block--quote blockquote { max-width: 16em; margin: 0 auto; }
.block--quote cite { display: block; margin-top: 1.5em; font-style: normal; color: var(--grey); font-size: 16px; letter-spacing: .2px; }

.block__caption {
  padding: 12px 22px 0; max-width: 368px; color: var(--grey);
  font-size: 16px; line-height: 22px; letter-spacing: .2px;
}
@media (min-width: 576px) { .block__caption { padding: 8px 0 0; } }

.block--duo { display: flex; flex-direction: column; gap: 8vw; }
@media (min-width: 576px) { .block--duo { flex-direction: row; gap: 24px; align-items: flex-start; } }
.block--duo > * { flex: 1 1 0; min-width: 0; }

/* Carousel */
.carousel { position: relative; }
.carousel__slides { position: relative; cursor: e-resize; }
.carousel__slide { width: 100%; opacity: 0; }
.carousel__slide:not(:first-child) { position: absolute; inset: 0; }
.carousel__slide[data-visible='false'] { pointer-events: none; }
.carousel__slide[data-visible='true'] { opacity: 1; transition: opacity 1s ease; }
.carousel__dots { display: flex; gap: 8px; padding-top: 14px; }
.carousel__dot {
  width: 22px; height: 2px; background: currentColor; opacity: .25; border: 0; padding: 0;
  cursor: pointer; transition: opacity .3s ease;
}
.carousel__dot.is-active { opacity: 1; }
.carousel__count { padding-top: 12px; color: var(--grey); font-size: 16px; letter-spacing: .2px; }

/* Credits */
.credits {
  margin: 10vw auto 5%; padding: 120px 22px 0; max-width: 1024px;
  font-size: 20px; line-height: 26px;
}
@media (min-width: 576px) { .credits { padding: 120px 64px 0; font-size: 23px; line-height: 29px; letter-spacing: -0.2px; } }
.credits__row { display: flex; flex-direction: column; padding-bottom: 22px; }
@media (min-width: 576px) { .credits__row { flex-direction: row; } }
.credits__role { color: var(--grey); min-width: 200px; padding-right: 38px; }
.credits__value { flex: 1; }

/* Related projects slider */
.related { --spacing-left: 20px; margin-top: 12vw; padding-bottom: 4vw; }
@media (min-width: 576px) { .related { --spacing-left: 64px; } }
@media (min-width: 864px) { .related { --spacing-left: 0px; max-width: 640px; margin: 12vw auto 0; } }
@media (min-width: 1152px) { .related { max-width: 896px; } }
.related__title { margin-bottom: 28px; padding-left: var(--spacing-left); }
.related__track {
  display: flex; flex-flow: row nowrap; overflow-x: auto; width: 100vw;
  padding-left: var(--spacing-left); scroll-padding-left: var(--spacing-left);
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
@media (min-width: 864px) { .related__track { width: 100%; } }
.related__track::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
.related__card { text-decoration: none; color: inherit; scroll-snap-align: start; flex: none; }
.related__card + .related__card { margin-left: 12px; }
@media (min-width: 864px) { .related__card + .related__card { margin-left: 24px; } }
.related__thumb { width: 268px; height: 336px; overflow: hidden; background: var(--off-white); }
@media (min-width: 864px) { .related__thumb { width: 322px; height: 404px; } }
@media (min-width: 1152px) { .related__thumb { width: 408px; height: 512px; } }
.related__thumb img, .related__thumb video { width: 100%; height: 100%; object-fit: cover; }
.related__card p { margin-top: 18px; max-width: 268px; }
.related__spacer { flex: none; padding-right: calc(100vw - 300px); }
@media (min-width: 864px) { .related__spacer { padding-right: 0; } }

/* Back scrim / next project bar */
.next-project {
  display: block; text-align: center; text-decoration: none; color: inherit;
  padding: 12vh var(--pad); border-top: 1px solid rgba(128,128,128,.25);
}
.next-project span { display: block; color: var(--grey); margin-bottom: .6em; font-size: 16px; letter-spacing: .2px; }

/* ==========================================================================
   Studio page
   ========================================================================== */
.studio__blurb { max-width: 17em; margin-bottom: 12vw; }
.studio__section { margin-bottom: 14vw; }
.studio__label { color: var(--grey); margin-bottom: 22px; font-size: 16px; letter-spacing: .2px; }
.studio__cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) { .studio__cols { grid-template-columns: repeat(2, 1fr); gap: 60px; } }
.studio__block { max-width: 21em; }
.studio__block + .studio__block { margin-top: 8vw; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-grid h4 { font-weight: 300; color: var(--grey); margin-bottom: 6px; font-size: 16px; letter-spacing: .2px; }

.jobs { border-top: 1px solid rgba(128,128,128,.3); margin-top: 8vw; }
.jobs__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid rgba(128,128,128,.3);
  text-decoration: none; color: inherit; transition: padding-left .35s cubic-bezier(.25,.46,.45,.94);
}
.jobs__item:hover { padding-left: 14px; color: var(--accent); }
.jobs__loc { color: var(--grey); flex: none; font-size: 16px; letter-spacing: .2px; }

/* ==========================================================================
   Innovation page — alternating sections
   ========================================================================== */
.section { position: relative; padding: 60px var(--pad); background: var(--paper); }
@media (min-width: 720px) { .section { padding: 120px var(--pad); } }
.section:nth-of-type(2n+1) { background: var(--off-white); }
.section__inner { max-width: var(--wrapper); margin: 0 auto; }
.section__inner--narrow { max-width: 864px; }
.section__heading { max-width: 21em; margin-bottom: 60px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.card__num { color: var(--accent); margin-bottom: 14px; font-size: 16px; letter-spacing: .2px; }
.card h3 { font-weight: 300; margin-bottom: 12px; }
.card p { color: var(--dark-grey); }

.table { border-top: 1px solid rgba(128,128,128,.3); }
.table__row {
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid rgba(128,128,128,.3);
}
.table__row span:last-child { color: var(--grey); }

.hscroll { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.hscroll::-webkit-scrollbar { height: 0; }
.hscroll > * { flex: 0 0 78%; }
@media (min-width: 720px) { .hscroll > * { flex: 0 0 32%; } }
.hscroll img { width: 100%; height: 300px; object-fit: cover; }
@media (min-width: 720px) { .hscroll img { height: 420px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 80px 0; display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 720px) {
  .site-footer { flex-direction: row; justify-content: space-between; align-items: stretch; padding-bottom: 104px; }
  .site-footer { font-size: 16px; line-height: 22px; letter-spacing: .2px; }
}
.site-footer a { color: var(--link-color); text-decoration: none; }
.site-footer a:hover { color: var(--text-color); }
.footer__studio { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .footer__studio { grid-template-columns: repeat(2, 1fr); width: 50%; gap: 32px; } }
.footer__right { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 960px) { .footer__right { width: 46%; flex-direction: row-reverse; justify-content: space-between; } }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__socials { display: flex; flex-direction: row; column-gap: 24px; margin-top: auto; }
.footer__emails a { display: block; margin-bottom: 8px; }
.copy-email { cursor: pointer; position: relative; }
.copy-email .copied {
  position: absolute; left: calc(100% + 10px); top: 0; white-space: nowrap;
  opacity: 0; transition: opacity .25s ease; color: var(--accent);
}
.copy-email.is-copied .copied { opacity: 1; }

.newsletter__form { position: relative; max-width: 320px; }
.newsletter__input {
  min-width: 100%; background: transparent; padding: 0 28px 12px 0; outline: none;
  color: inherit; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  font: inherit;
}
.newsletter__submit {
  background: transparent; border: 0; position: absolute; right: 0; bottom: 10px;
  cursor: pointer; padding: 0; line-height: 1;
}
.footer__mark { width: 44px; height: 44px; color: var(--text-color); opacity: .9; }
.footer__legal { color: var(--grey); }

/* ==========================================================================
   Misc
   ========================================================================== */
.page-flash {
  position: fixed; inset: 0; background: var(--flash); pointer-events: none; z-index: 200;
  animation: flash-out .55s ease forwards;
}
@keyframes flash-out { from { opacity: 1; } to { opacity: 0; } }

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.25,.46,.45,.94), transform .9s cubic-bezier(.25,.46,.45,.94); }

.error-404 { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: var(--pad); text-align: center; }
.error-404 .brand__mark { width: 72px; height: 72px; color: var(--text-color); }

.page-content { max-width: 34em; }
.page-content.t-lg, .t-lg .page-content { max-width: 24em; }
.page-content.t-md { max-width: 30em; }
.page-content p + p, .page-content ul + p, .page-content p + ul { margin-top: 1.375em; }
.page-content h2, .page-content h3 { font-weight: 300; margin: 2em 0 .6em; }
.page-content ul { list-style: disc; padding-left: 1.2em; }

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