/* ==========================================================================
   Absurd Studio — base styles
   One stylesheet, four self-hosted font files, no dependencies.
   ========================================================================== */

@font-face {
  font-family: "Climate Crisis";
  src: url("/assets/fonts/climate-crisis-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Climate Crisis", "Arial Black", Impact, sans-serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --paper: #ffffff;
  --ink: #0b0b0b;
  --muted: #6c6c6c;
  --line: #e4e4e0;
  --accent: #ff3c00;
  --night: #080808;

  --header-h: clamp(4.5rem, 6.5vw, 7rem);
  --edge: clamp(1.25rem, 1.8vw, 2.5rem);
  --edge-tight: clamp(1rem, 1.35vw, 1.6rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --container: 1600px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-header="overlay"] {
  background: var(--night);
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

body[data-header="overlay"] ::selection {
  background: #fff;
  color: var(--ink);
}

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

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

.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;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: var(--gutter);
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

body[data-header="overlay"] .skip-link {
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .index {
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.icon-arrow {
  width: 0.8rem;
  height: 0.8rem;
  flex: none;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: var(--ink);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.arrow-link .icon-arrow {
  transition: transform 0.35s var(--ease-out);
}

.arrow-link:hover .icon-arrow {
  transform: translate(2px, -2px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  border-bottom: 0;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-inline: var(--edge);
}

.site-logo {
  justify-self: start;
  margin-block: -0.2em;
  padding-block: 0.2em;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.35vw, 1.9rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 2vw, 2.4rem);
  justify-self: center;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.45vw, 1.75rem);
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
}

.site-header:not(.site-header--overlay) .site-nav a {
  color: var(--muted);
}

.site-header:not(.site-header--overlay) .site-nav a:hover,
.site-header:not(.site-header--overlay) .site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.7rem;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-header--overlay .header-btn {
  background: rgba(24, 24, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header--overlay .header-btn:hover {
  background: rgba(40, 40, 40, 0.92);
}

.site-header:not(.site-header--overlay) .header-btn {
  background: var(--ink);
  color: var(--paper);
}

.site-header:not(.site-header--overlay) .header-btn:hover {
  background: #242424;
}

.header-btn:active {
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.78);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.site-header:not(.site-header--overlay) .menu-toggle {
  background: var(--ink);
}

.menu-toggle:hover {
  background: rgba(44, 44, 44, 0.92);
}

.site-header:not(.site-header--overlay) .menu-toggle:hover {
  background: #242424;
}

.menu-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Mobile menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  width: 100%;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #1b1c1e 0%, #0a0a0a 58%, #080808 100%);
  color: #fff;
  overflow-y: auto;
}

.mobile-menu::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mobile-menu[open] {
  animation: menu-in 0.45s var(--ease-out) both;
}

.mobile-menu[open]::backdrop {
  animation: fade-in 0.4s ease both;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--edge) max(1.5rem, env(safe-area-inset-bottom));
}

.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.mobile-menu__brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 0.82;
  letter-spacing: -0.015em;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: clamp(2.5rem, 9vh, 6rem);
}

.mobile-menu__nav a {
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  font-style: italic;
  line-height: 1.05;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.2s ease, opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.mobile-menu__nav a.menu-link-in {
  animation: menu-link-in 0.45s var(--ease-out) forwards;
}

.mobile-menu__nav a.menu-link-in:nth-child(1) { animation-delay: 0.12s; }
.mobile-menu__nav a.menu-link-in:nth-child(2) { animation-delay: 0.24s; }
.mobile-menu__nav a.menu-link-in:nth-child(3) { animation-delay: 0.36s; }
.mobile-menu__nav a.menu-link-in:nth-child(4) { animation-delay: 0.48s; }

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

.mobile-menu__nav a:hover,
.mobile-menu__nav a[aria-current="page"] {
  color: #fff;
}

.mobile-menu__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 2.5rem;
}

.mobile-menu .header-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-menu .header-btn:hover {
  background: rgba(255, 255, 255, 0.17);
}

body.menu-open {
  overflow: hidden;
}

/* Studio hero
   ========================================================================== */

.studio-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.studio-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.studio-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: brightness(0.9) saturate(0.92) contrast(1.02);
  transform-origin: center;
  animation: studio-drift 38s ease-in-out infinite alternate;
  will-change: transform;
}

.studio-hero.is-paused .studio-hero__media img {
  animation-play-state: paused;
}

.studio-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.58) 0%, rgba(4, 5, 7, 0.22) 15%,
      rgba(4, 5, 7, 0) 38%, rgba(4, 5, 7, 0) 62%, rgba(4, 5, 7, 0.36) 84%,
      rgba(4, 5, 7, 0.74) 100%),
    radial-gradient(120% 90% at 50% 42%, rgba(4, 5, 7, 0) 42%,
      rgba(4, 5, 7, 0.34) 100%);
}

.studio-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(1rem, 2.5vh, 2rem)) var(--edge)
    clamp(4.5rem, 9vh, 6.5rem);
  text-align: center;
}

.studio-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: min(9vw, 25svh);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.18);
  animation: studio-rise 0.9s var(--ease-out) both;
}

.studio-subtitle {
  max-width: 38em;
  margin: clamp(1rem, 2.4vh, 1.9rem) 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.75vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
  animation: studio-rise 0.9s 0.09s var(--ease-out) both;
}

.studio-credit {
  position: absolute;
  left: var(--edge-tight);
  bottom: clamp(1rem, 2.2vh, 1.8rem);
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
  animation: fade-in 0.9s 0.35s ease both;
}

.studio-controls {
  position: absolute;
  right: var(--edge-tight);
  bottom: clamp(1rem, 2.2vh, 1.8rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.7vw, 0.7rem);
  animation: fade-in 0.9s 0.35s ease both;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn .icon {
  width: 1.65rem;
  height: 1.65rem;
}

.studio-hero .icon-muted,
.studio-hero .icon-sound,
.studio-hero .icon-pause,
.studio-hero .icon-play {
  display: none;
}

.studio-hero.is-muted .icon-muted {
  display: block;
}

.studio-hero:not(.is-muted) .icon-muted {
  display: none;
}

.studio-hero:not(.is-muted) .icon-sound {
  display: block;
}

.studio-hero:not(.is-paused) .icon-pause {
  display: block;
}

.studio-hero.is-paused .icon-pause {
  display: none;
}

.studio-hero.is-paused .icon-play {
  display: block;
}

/* Section pages
   ========================================================================== */

.section-hero {
  padding-block: clamp(3.5rem, 8vh, 6rem) clamp(2rem, 4vh, 3rem);
  border-bottom: 1px solid var(--line);
}

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

.section-title {
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 8.5vw, 8.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-wrap: balance;
  animation: rise 0.9s var(--ease-out) both;
}

.section-body {
  padding-block: clamp(2.5rem, 6vh, 5rem) clamp(5rem, 12vh, 9rem);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.section-lead {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-detail {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.section-detail p {
  max-width: 36ch;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-sup {
  align-self: flex-start;
  margin-top: 0.1rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.5rem;
}

.footer-tagline {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding-top: 0.35rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Motion
   ========================================================================== */

@keyframes studio-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-0.7%, -0.5%, 0);
  }
}

@keyframes studio-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-lead {
    max-width: 22ch;
  }

  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav {
    gap: 0.45rem 1rem;
    padding-top: 0;
  }

  .footer-nav a {
    font-size: 0.8125rem;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .studio-credit {
    bottom: 4.75rem;
    font-size: 0.72rem;
  }

  .studio-controls {
    bottom: 0.9rem;
  }

  .studio-title {
    font-size: min(8.6vw, 25svh);
  }

  .studio-subtitle {
    font-size: clamp(1rem, 4.4vw, 1.2rem);
  }
}

@media (max-width: 420px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 0.45rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sup {
    display: none;
  }
}

@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;
  }
}
