/* ==========================================================================
   DRAW MEDIA — design system
   Dark premium · charcoal base · brand red #EB0505 · Archivo / Space Grotesk
   ========================================================================== */

:root {
  /* color */
  --bg: #0e0e10;
  --bg-deep: #0a0a0b;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f4f2;
  --muted: #a3a3a8;
  --muted-2: #6e6e74;
  --red: #eb0505;
  --red-hover: #ff1f1f;
  --red-deep: #8f0303;

  /* type */
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", sans-serif;

  /* scale */
  --text-hero: clamp(2.75rem, 8vw, 6.5rem);
  --text-h2: clamp(2rem, 5vw, 3.75rem);
  --text-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --text-lead: clamp(1.05rem, 1.5vw, 1.3rem);

  /* space */
  --space-section: clamp(5rem, 12vh, 9rem);
  --space-gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1200px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-reveal: 700ms;

  /* z scale */
  --z-nav: 50;
  --z-overlay: 80;
  --z-modal: 100;
}

/* ---------- reset / base ---------- */

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

html {
  scroll-behavior: smooth;
}

/* the hidden attribute must win over component display rules
   (e.g. .cms-tabs{display:flex}, .btn{display:inline-flex}) */
[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

/* custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-deep);
}

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

/* ---------- typography helpers ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--red);
  flex: none;
}

.accent {
  color: var(--red);
}

.lead {
  font-size: var(--text-lead);
  color: var(--muted);
  max-width: 38em;
}

/* ---------- layout ---------- */

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

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head h2 {
  font-size: var(--text-h2);
  max-width: 14em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color var(--dur-fast) ease-in-out,
    border-color var(--dur-fast) ease-in-out, color var(--dur-fast) ease-in-out;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-hover);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: #fff;
}

.btn svg {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color var(--dur-med) ease, border-color var(--dur-med) ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(14, 14, 16, 0.82);
  border-bottom-color: var(--line);
}

/* blur on a pseudo-element — backdrop-filter on .nav itself would trap the
   fixed mobile menu inside the header (menu wouldn't open when scrolled) */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  pointer-events: none;
}

.nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur-fast) ease-in-out;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] {
  color: var(--text);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links .btn {
  padding: 0.7rem 1.4rem;
  min-height: 42px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.25rem, 4vh, 2.5rem);
    overflow-y: auto;
    padding-block: 2rem;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(calc(-100% - 80px));
    transition: transform 500ms var(--ease-out), visibility 0s 500ms;
    visibility: hidden;
    z-index: -1;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 500ms var(--ease-out);
  }

  .nav-links a:not(.btn) {
    font-size: 1.4rem;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(7rem, 18vh, 11rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: hero-zoom 18s var(--ease-out) both;
}

/* hero video: the original site's background reel, served locally */
.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* poster === the still behind it === the video's first frame, so the video
     sits visible from the first paint — no fade-in, no mismatched picture */
  opacity: 1;
}

/* video plays on all screen sizes (Dan's request); reduced motion still gets the still */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(14, 14, 16, 0.55) 0%,
      rgba(14, 14, 16, 0.35) 40%,
      rgba(14, 14, 16, 0.92) 88%,
      var(--bg) 100%
    ),
    linear-gradient(100deg, rgba(10, 10, 11, 0.8) 0%, rgba(10, 10, 11, 0.1) 60%);
}

/* .hero-content also carries the .container class — keep its max-width,
   gutters and centering so the title and foot line up with the rest of the
   site instead of bleeding to the viewport edges. */

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: clamp(2.75rem, 7.5vw, 6.25rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
}

/* rolling word — JS cycles concepts/brands/events/sport/stories */
.hero-swap {
  display: inline-block;
  color: var(--red);
  white-space: nowrap;
  vertical-align: bottom;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  transition: width 500ms var(--ease-out);
}

.hero-swap .roll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 500ms var(--ease-out);
}

.hero-swap .roll span {
  display: block;
  height: 1em;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* bottom meta bar: kicker · lead · actions on one rule */
.hero-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: clamp(1.25rem, 3vh, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

/* keep the right-hand CTAs aligned to the top of the row too */
.hero-actions {
  padding-top: 0.15rem;
}

.hero-lead {
  max-width: 38em;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-reel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--red);
  transition: color 200ms ease;
}

.hero-reel:hover {
  color: var(--red);
}

.hero-reel svg {
  width: 12px;
  height: 12px;
  fill: var(--red);
}

@media (max-width: 900px) {
  .hero-foot {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.2rem, 9.5vw, 2.9rem);
  }
}

/* staggered entrance */
.hero [data-entrance] {
  opacity: 0;
  transform: translateY(36px);
  animation: fade-in-up 900ms var(--ease-out) forwards;
  animation-delay: calc(250ms + var(--i, 0) * 130ms);
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- stats ---------- */

.stats {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value em {
  font-style: normal;
  color: var(--red);
}

.stat-label {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat + .stat::before {
    left: 20%;
    top: 0;
    width: 60%;
    height: 1px;
  }
}

/* ---------- services ---------- */

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-fast) ease;
  position: relative;
  cursor: pointer;
}

.service-row:first-of-type {
  border-top: 1px solid var(--line);
}

.service-num {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted-2);
  letter-spacing: 0.15em;
  min-width: 3ch;
}

.service-body h3 {
  font-size: var(--text-h3);
  transition: color var(--dur-fast) ease-in-out, transform var(--dur-med) var(--ease-out);
}

.service-body p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 44em;
  font-size: 0.98rem;
}

.service-row:hover h3 {
  color: var(--red);
  transform: translateX(8px);
}

.service-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast) ease-in-out, border-color var(--dur-fast) ease-in-out;
  flex: none;
}

.service-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-med) var(--ease-out);
}

.service-row:hover .service-arrow {
  background: var(--red);
  border-color: var(--red);
}

.service-row:hover .service-arrow svg {
  transform: rotate(-45deg);
}

/* ---------- work grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.work-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  display: block;
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out), opacity var(--dur-med) ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.05);
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.75));
  opacity: 0.9;
  transition: opacity var(--dur-fast) ease;
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast) ease-in-out, border-color var(--dur-fast) ease-in-out;
  z-index: 1;
}

.play-badge svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 3px;
  fill: #fff;
}

.work-card:hover .play-badge {
  background: var(--red);
  border-color: var(--red);
}

.work-meta {
  padding: 1.25rem 1.4rem 1.5rem;
}

.work-cat {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

.work-title {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.filter-pill {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all var(--dur-fast) ease-in-out;
  min-height: 44px;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--text);
}

.filter-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.work-card.hidden {
  display: none;
}

/* ---------- logo marquee ---------- */

.clients {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 2.5rem;
  background: var(--bg-deep);
  position: relative;
}

.clients::before,
.clients::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}

.clients::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-deep), transparent);
}

.clients::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-deep), transparent);
}

.marquee {
  display: flex;
  gap: clamp(3rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 38s linear infinite;
}

.clients:hover .marquee {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity var(--dur-fast) ease-in-out;
}

.marquee img:hover {
  opacity: 1;
}

/* JPEG logos have no alpha — invert to white-on-black and screen-blend the black away */
.marquee img[src$=".jpg"] {
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
}

/* logos with opaque colored backgrounds (NHS blue, navy): darken the bg,
   keep the light lettering, screen-blend the rest away */
.marquee img[src*="client-11"],
.marquee img[src*="client-4"] {
  filter: grayscale(1) contrast(1.9);
  mix-blend-mode: screen;
}

/* ---------- testimonial ---------- */

.quote {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.quote-mark {
  width: 3rem;
  height: 3rem;
  fill: var(--red);
}

.quote blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quote-author strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-author span {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: #fff;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.cta-band h2 {
  font-size: var(--text-h2);
  max-width: 12em;
}

.cta-band .btn {
  background: #0e0e10;
  color: #fff;
}

.cta-band .btn:hover {
  background: #000;
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding-top: clamp(9rem, 20vh, 13rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
}

.page-hero .lead {
  margin-top: 1.5rem;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split + .split {
  margin-top: var(--space-section);
}

.split-media {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 800ms var(--ease-out);
}

.split-media:hover img {
  transform: scale(1.04);
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split-copy h2 {
  font-size: var(--text-h2);
}

.split-copy p {
  color: var(--muted);
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.flip .split-media {
    order: -1;
  }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font: inherit;
  transition: border-color var(--dur-fast) ease-in-out;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field .error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--red-hover);
}

.field.invalid input {
  border-color: var(--red);
}

.field.invalid .error-msg {
  display: block;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color var(--dur-fast) ease-in-out, transform var(--dur-med) var(--ease-out);
}

.contact-card:hover {
  border-color: var(--red);
  transform: translateX(6px);
}

.contact-card svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--red);
  flex: none;
}

.contact-card div {
  display: flex;
  flex-direction: column;
}

.contact-card small {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card span {
  font-weight: 500;
}

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

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 30em;
}

.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer ul a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color var(--dur-fast) ease-in-out;
}

.footer ul a:hover {
  color: var(--red-hover);
}

.socials {
  display: flex;
  gap: 0.9rem;
}

.socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast) ease-in-out, border-color var(--dur-fast) ease-in-out;
}

.socials a:hover {
  background: var(--red);
  border-color: var(--red);
}

.socials svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-gutter);
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
  animation: lb-in 300ms ease-out;
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-frame {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: rgba(14, 14, 16, 0.6);
  transition: background-color var(--dur-fast) ease-in-out, border-color var(--dur-fast) ease-in-out;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-close svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: #fff;
}

/* ---------- motion: progress bar, word reveals, tilt ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
  pointer-events: none;
}

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

[data-split] .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 700ms var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms);
}

[data-split].split-in .w > span {
  transform: translateY(0);
}

.work-card {
  transform-style: preserve-3d;
}

/* ---------- scroll reveals ---------- */

/* reveals only hide when JS is running (html.js set inline in <head>) —
   no-JS visitors and crawlers always see content */
html.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- quiz ---------- */

.quiz-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space-gutter);
  border-bottom: 1px solid var(--line);
}

.quiz-header img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.quiz-exit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur-fast) ease-in-out;
  min-height: 44px;
}

.quiz-exit:hover {
  color: var(--text);
}

.quiz-progress {
  height: 3px;
  background: var(--surface-2);
  position: relative;
}

.quiz-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--red);
  transition: width 500ms var(--ease-out);
}

/* steps are top-anchored, not centered — question stays in one place
   while options of different counts grow downward */
.quiz-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.5rem, 10vh, 6rem) var(--space-gutter) clamp(2rem, 5vh, 3rem);
}

#quiz-root {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quiz-step {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: quiz-in 450ms var(--ease-out);
}

/* back/hint row sits at a stable bottom edge instead of trailing the content */
.quiz-step > .quiz-nav {
  margin-top: auto;
}

/* the success screen is a destination, not a step — recentre it */
.quiz-step.quiz-success {
  justify-content: center;
}

@keyframes quiz-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-step.leaving {
  animation: quiz-out 250ms ease-in forwards;
}

@keyframes quiz-out {
  to {
    opacity: 0;
    transform: translateY(-24px);
  }
}

.quiz-count {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

.quiz-q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.quiz-sub {
  color: var(--muted);
  margin-top: -1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: left;
  font-size: 1.02rem;
  transition: border-color var(--dur-fast) ease-in-out, background-color var(--dur-fast) ease-in-out,
    transform var(--dur-fast) var(--ease-out);
  min-height: 56px;
}

.quiz-option:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--red);
  background: rgba(235, 5, 5, 0.08);
}

.quiz-key {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  flex: none;
  transition: all var(--dur-fast) ease-in-out;
}

.quiz-option:hover .quiz-key,
.quiz-option.selected .quiz-key {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--dur-fast) ease-in-out;
  min-height: 44px;
}

.quiz-back:hover {
  color: var(--text);
}

.quiz-back svg {
  width: 1rem;
  height: 1rem;
}

.quiz-hint {
  font-size: 0.8rem;
  color: var(--muted-2);
}

.quiz-hint kbd {
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
}

/* keyboard hints are noise on touch devices */
@media (hover: none) {
  .quiz-hint {
    display: none;
  }
}

.quiz-q:focus {
  outline: none;
}

/* success */
.quiz-success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.success-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(235, 5, 5, 0.1);
  border: 1px solid var(--red);
  display: grid;
  place-items: center;
  animation: scale-in 600ms var(--ease-out);
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-badge svg {
  width: 2.2rem;
  height: 2.2rem;
  stroke: var(--red);
}

/* ---------- blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--dur-fast) ease-in-out, transform var(--dur-med) var(--ease-out);
  cursor: pointer;
}

.post-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.post-card-cover {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.post-card:hover .post-card-cover img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-card-meta .cat {
  color: var(--red);
  font-weight: 500;
}

.post-card-meta .date {
  color: var(--muted-2);
}

.post-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.post-card p {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .read-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-hover);
  font-weight: 500;
}

/* featured (latest) post */
.post-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease-in-out;
}

.post-featured:hover {
  border-color: var(--red);
}

.post-featured .post-card-cover {
  aspect-ratio: auto;
  min-height: 320px;
}

.post-featured .post-card-body {
  padding: clamp(1.75rem, 4vw, 3rem);
  justify-content: center;
}

.post-featured h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

@media (max-width: 760px) {
  .post-featured {
    grid-template-columns: 1fr;
  }
  .post-featured .post-card-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* single post article */
.post-article {
  max-width: 760px;
  margin-inline: auto;
}

.post-article .post-card-meta {
  margin-bottom: 1.25rem;
}

.post-article h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.post-cover {
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-body {
  color: #cfcdc9;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.post-body h2,
.post-body h3 {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  margin-top: 1rem;
}

.post-body h2 {
  font-size: 1.5rem;
}

.post-body h3 {
  font-size: 1.2rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.post-body li::marker {
  color: var(--red);
}

.post-body blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.25rem;
  color: var(--muted);
  font-style: italic;
}

.post-body a {
  color: var(--red-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--dur-fast) ease-in-out;
  max-width: 45%;
}

.post-nav a:hover {
  color: var(--red-hover);
}

.cms-note {
  background: rgba(235, 5, 5, 0.08);
  border: 1px solid var(--red-deep);
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- CMS (admin.html) ---------- */

.cms-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.cms-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem var(--space-gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}

.cms-toolbar .spacer {
  flex: 1;
}

.cms-status {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cms-status.dirty {
  color: var(--red-hover);
}

.cms-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 0;
}

@media (max-width: 900px) {
  .cms-layout {
    grid-template-columns: 1fr;
  }
}

.cms-list {
  border-right: 1px solid var(--line);
  overflow-y: auto;
  max-height: calc(100svh - 70px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cms-list-item {
  text-align: left;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background-color var(--dur-fast) ease-in-out;
}

.cms-list-item:hover {
  background: var(--surface);
}

.cms-list-item.active {
  background: var(--surface);
  border-color: var(--red);
}

.cms-list-item strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.cms-list-item small {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cms-editor {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow-y: auto;
  max-height: calc(100svh - 70px);
}

.cms-editor .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .cms-editor .field-row {
    grid-template-columns: 1fr;
  }
}

.cms-richbar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.cms-richbar button {
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--dur-fast) ease-in-out;
}

.cms-richbar button:hover {
  color: #fff;
  border-color: var(--red);
}

.cms-body-editor {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem;
  min-height: 320px;
  outline: none;
  color: #cfcdc9;
  display: block;
}

.cms-body-editor:focus {
  border-color: var(--red);
}

.cms-body-editor h2,
.cms-body-editor h3 {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 0.8em 0 0.4em;
}

.cms-body-editor h2 { font-size: 1.4rem; }
.cms-body-editor h3 { font-size: 1.15rem; }
.cms-body-editor p { margin-bottom: 0.8em; }
.cms-body-editor ul,
.cms-body-editor ol { padding-left: 1.4rem; margin-bottom: 0.8em; }
.cms-body-editor blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  color: var(--muted);
  margin-bottom: 0.8em;
}
.cms-body-editor a { color: var(--red-hover); text-decoration: underline; }

.cms-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-danger {
  border: 1px solid var(--red-deep);
  color: var(--red-hover);
}

.btn-danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- CMS studio: tabs, gate, media rows ---------- */

.cms-tabs {
  display: flex;
  gap: 0.4rem;
}

.cms-tab {
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.cms-tab:hover {
  color: var(--text);
}

.cms-tab.active {
  color: #fff;
  border-color: var(--red);
}

.cms-gate {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.cms-gate-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.cms-gate-card h1 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.cms-gate-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.studio {
  max-width: 1000px;
  margin-inline: auto;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.studio-head h1 {
  font-size: 1.6rem;
  text-transform: none;
  letter-spacing: 0;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 0.75rem;
}

.media-row .thumb {
  width: 92px;
  height: 56px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--surface-2);
  flex: none;
}

.media-row .thumb.logo {
  object-fit: contain;
  padding: 6px;
  filter: brightness(0) invert(1);
}

.media-row .grow {
  flex: 1;
  min-width: 0;
}

.media-row .grow strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-row .grow small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-row .row-actions {
  display: flex;
  gap: 0.4rem;
  flex: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  transition: all var(--dur-fast) ease;
}

.icon-btn:hover {
  color: #fff;
  border-color: var(--red);
}

.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.uploader {
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.uploader small {
  color: var(--muted-2);
  font-size: 0.78rem;
}

.upload-progress {
  font-size: 0.82rem;
  color: var(--red-hover);
}

.cms-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--red);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  transition: transform var(--dur-med) var(--ease-out);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cms-toast.show {
  transform: translateX(-50%) translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- misc ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
