/* Royal Smalt · royalsmalt.com
   Mobile first. Light and dark follow prefers-color-scheme; the hero,
   marquee, contact and footer stay dark, like a lit wall in a gallery. */

@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/syne-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --ink: #0b1020;
  --ink-2: #0f1630;
  --smalt: #2b4a9a;
  --royal: #4f6fd6;
  --pale: #e9eefb;
  --gold: #c8a24a;
  --facet-1: #5b7db8;
  --facet-2: #2a4272;
  --facet-3: #3a5a92;
  --facet-4: #8fa9d6;
  --facet-5: #5a5399;

  /* Theme tokens (dark default) */
  --bg: var(--ink);
  --bg-alt: #0d1428;
  --surface: rgba(233, 238, 251, 0.04);
  --surface-2: rgba(233, 238, 251, 0.07);
  --line: rgba(233, 238, 251, 0.14);
  --text: var(--pale);
  --muted: #a9b4d6;
  --link: #8fa9d6;
  --accent: var(--gold);
  --focus: #c9d6f2;

  /* Type */
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fc;
    --bg-alt: #eceffa;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --line: rgba(11, 16, 32, 0.12);
    --text: var(--ink);
    --muted: #475373;
    --link: var(--smalt);
    --accent: #8a6a1f;
    --focus: var(--smalt);
    color-scheme: light;
  }
}

/* Sections that stay dark in both schemes */
.theme-dark {
  --bg: var(--ink);
  --bg-alt: #0d1428;
  --surface: rgba(233, 238, 251, 0.04);
  --surface-2: rgba(233, 238, 251, 0.07);
  --line: rgba(233, 238, 251, 0.14);
  --text: var(--pale);
  --muted: #a9b4d6;
  --link: #8fa9d6;
  --accent: var(--gold);
  --focus: #c9d6f2;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.2em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--pale);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--pale);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.is-scrolled .site-header {
  background: rgba(11, 16, 32, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: rgba(233, 238, 251, 0.08);
}
@media (prefers-color-scheme: light) {
  .is-past-hero .site-header {
    background: rgba(246, 247, 252, 0.78);
    color: var(--ink);
    border-bottom-color: rgba(11, 16, 32, 0.08);
  }
  .is-past-hero .site-header .pill { background: var(--ink); color: var(--pale); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}
.brand .crown { flex: none; width: 38px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
}
.nav a:hover { text-decoration: underline; }
.nav .pill {
  padding-inline: 1rem;
  margin-left: 0.25rem;
  background: var(--pale);
  color: var(--ink);
}
.nav .pill:hover { text-decoration: none; background: #fff; }

@media (max-width: 479px) {
  .brand .crown { width: 32px; }
  .brand__name { font-size: 1.05rem; }
  .nav a { padding-inline: 0.55rem; font-size: 0.95rem; }
  .nav .pill { padding-inline: 0.95rem; }
  .nav__wide { display: none; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, border-color 0.25s ease;
}
.btn--primary { background: var(--pale); color: var(--ink); }
.btn--primary:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(233, 238, 251, 0.35); color: var(--pale); }
.btn--ghost:hover { border-color: var(--pale); transform: translateY(-2px); }
.btn__icon {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--pale);
  font-size: 0.85rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.arrow-link:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(3rem, 9vh, 6rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(90, 83, 153, 0.45), transparent 70%),
    radial-gradient(70% 60% at 20% 85%, rgba(43, 74, 154, 0.55), transparent 70%),
    var(--ink);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__canvas.is-ready { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.6) 0%, rgba(11, 16, 32, 0) 20%),
    linear-gradient(0deg, rgba(11, 16, 32, 0.96) 0%, rgba(11, 16, 32, 0.82) 38%, rgba(11, 16, 32, 0.35) 62%, rgba(11, 16, 32, 0) 85%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(11, 16, 32, 0.6) 0%, rgba(11, 16, 32, 0) 20%),
      linear-gradient(90deg, rgba(11, 16, 32, 0.85) 0%, rgba(11, 16, 32, 0.45) 45%, rgba(11, 16, 32, 0) 70%),
      linear-gradient(0deg, rgba(11, 16, 32, 0.9) 0%, rgba(11, 16, 32, 0) 55%);
  }
}
.hero__inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  max-width: 13.5ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, 1rem + 6.6vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.facet-text {
  background: linear-gradient(100deg, #dfe7fa 0%, #8fa9d6 35%, #a9a2e8 70%, #e4cf94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Rotating badge */
.badge {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 9vh, 6rem);
  display: none;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 238, 251, 0.14);
}
.badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--pale);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: spin 26s linear infinite;
}
.badge__crown {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  transform: translate(-50%, -54%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .badge { display: block; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__list { display: flex; }
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  white-space: nowrap;
  color: var(--text);
}
.marquee__list li::after {
  content: "";
  width: 22px;
  height: 15px;
  background: url("/assets/crown.svg") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 768px) {
  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .section-head .section-label { grid-column: 1 / -1; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-label__num {
  color: var(--accent);
  font-weight: 700;
}
.section-label__num::after {
  content: "—";
  margin-left: 0.6rem;
  color: var(--muted);
  font-weight: 400;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1rem + 4.6vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- Work ---------- */
.work { background: var(--bg-alt); }

.projects {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 768px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects .card:first-child { grid-column: 1 / -1; }
}

.card { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 80svh;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #05070f;
  box-shadow: 0 1px 0 rgba(233, 238, 251, 0.06) inset, 0 30px 60px -30px rgba(11, 16, 32, 0.6);
}

.facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s ease;
}
.facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 15, 0.45), transparent 45%);
  pointer-events: none;
}
.facade:hover img,
.facade:focus-visible img { transform: scale(1.035); }
.facade:focus-visible { outline-offset: -4px; border-radius: var(--radius); }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 238, 251, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}
.play svg { width: 24px; height: 24px; margin-left: 4px; fill: var(--pale); }
.facade:hover .play,
.facade:focus-visible .play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(43, 74, 154, 0.85);
}

.card__meta { display: grid; gap: 0.45rem; }
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.card__info {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card__blurb { color: var(--muted); max-width: 60ch; }
.card__watch {
  justify-self: start;
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Portrait strip */
.subhead {
  display: grid;
  gap: 0.4rem;
  margin: clamp(4rem, 8vw, 6.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}
.subhead__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  letter-spacing: -0.02em;
}
.subhead__text { color: var(--muted); }

.verticals {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(64vw, 270px);
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.verticals .card { scroll-snap-align: start; }
.verticals .card__title { font-size: 1.1rem; }
.verticals .card__blurb { font-size: 0.95rem; }
.verticals .play { width: 56px; height: 56px; }
.verticals .play svg { width: 20px; height: 20px; }

@media (min-width: 768px) {
  .verticals {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 2.5rem 1.5rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 1200px) {
  .verticals { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
}

.noscript { margin-top: 2rem; color: var(--muted); }

/* ---------- Player dialog: sized to the video's real shape (8:27, 9:16, 16:9) ---------- */
html:has(.player[open]) { overflow: hidden; }

.player {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.player::backdrop {
  background: rgba(5, 7, 15, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.player__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 100%;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.player__frame {
  /* --arn is width / height, set from the data */
  position: relative;
  height: min(calc(100svh - 7rem), calc((100vw - 2rem) / var(--arn, 1.7778)));
  aspect-ratio: var(--arn, 1.7778);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(233, 238, 251, 0.08);
}
.player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.25rem;
  max-width: min(46rem, 100%);
}
.player__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pale);
  text-align: center;
}
.player__watch { font-size: 0.95rem; }
.player__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(233, 238, 251, 0.3);
  background: rgba(11, 16, 32, 0.6);
  cursor: pointer;
}
.player__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--pale);
  stroke-width: 2;
  stroke-linecap: round;
}
.player__close:hover { border-color: var(--pale); }

/* ---------- Studio ---------- */
.studio__intro {
  display: grid;
  gap: 2rem;
}
.studio__intro .section-label { margin-bottom: 1rem; }
.studio__about {
  max-width: 40rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
}
@media (min-width: 960px) {
  .studio__intro {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: end;
  }
}

.stats {
  display: grid;
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.stat {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.stat dt {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat dd { color: var(--muted); }
.stat__num {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 960px) {
  .stats { grid-template-columns: 1.3fr 1fr 1fr; border-bottom: 1px solid var(--line); }
  .stat { padding: 2rem 1.5rem 2rem 0; border-bottom: 0; }
  .stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}

.caps {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .caps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.cap {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 2rem 1.6rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cap p { color: var(--muted); }
.cap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
}
.cap__facet {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  width: 44px;
  height: 30px;
  background:
    linear-gradient(135deg, var(--facet-1) 0 50%, transparent 50%),
    linear-gradient(225deg, var(--facet-5) 0 50%, var(--facet-3) 50%);
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
}
.cap__facet--2 {
  background: linear-gradient(90deg, var(--facet-3) 0 50%, var(--facet-4) 50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.cap__facet--3 {
  background: linear-gradient(90deg, var(--facet-2) 0 50%, var(--facet-5) 50%);
  clip-path: polygon(0 35%, 25% 70%, 50% 0, 75% 70%, 100% 35%, 100% 100%, 0 100%);
}

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }
.tags li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 100% 100%, rgba(43, 74, 154, 0.5), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(90, 83, 153, 0.25), transparent 70%),
    var(--ink);
}
.contact .section-title {
  max-width: 16ch;
  margin-top: 1rem;
  font-size: clamp(1.8rem, 1rem + 3.4vw, 3.8rem);
  color: var(--muted);
}
.contact__email {
  display: inline-block;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 0.6rem + 6.2vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--pale);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s ease;
}
.contact__email:hover,
.contact__email:focus-visible {
  background-size: 100% 2px;
  color: #fff;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--pale);
  text-decoration: none;
  font-weight: 600;
}
.socials a:hover { border-color: var(--pale); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
}
.brand--small .crown { width: 30px; }
.brand--small .brand__name { font-size: 1rem; }
.site-footer__meta { color: var(--muted); font-size: 0.9rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; }
.notfound .hero__title { max-width: 12ch; }

/* ---------- Reveal on scroll (JS adds .is-hidden only below the fold) ---------- */
[data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-hidden { opacity: 0; transform: translateY(24px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .badge__ring { animation: none; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
}
