@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Doto:wght@400..700&display=swap");

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.roboto-mono-thin {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

:root {
  --background-color: #0b0c0c;
  --surface-color: rgba(26, 28, 29, 0.96);
  --surface-elevated: rgba(33, 35, 36, 0.94);
  --padding-color: rgb(55, 59, 60);
  --heading-color: #d6c398;
  --text-color: #d6c398;
  --muted-color: #8c847d;
  --accent-color: #a6a29f;
  --accent-soft: rgba(166, 162, 159, 0.18);
  --border-color: rgba(166, 162, 159, 0.22);
  --error-color: #ffb2b2;
  --error-border: rgba(255, 178, 178, 0.55);
  --error-surface: rgba(255, 178, 178, 0.12);
  --shadow-soft: 0 28px 65px #121110;
  --font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  --transition-default: 0.25s ease;
  --footer-reveal-gap: clamp(6rem, 24vh, 12rem);
  --header-padding-inline: clamp(1.5rem, 5vw, 3rem);
  --header-padding-block: 0.8rem;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--background-color);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header,
.site-footer {
  color: var(--heading-color);
  padding-inline: var(--header-padding-inline);
}

.site-header {
  background-color: var(--background-color);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 0px solid rgba(166, 162, 159, 0.18);
  box-shadow: none;
  padding-block: var(--header-padding-block);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.3s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.site-footer {
  --footer-padding-block: 0.8rem;
  background-color: var(--padding-color);
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding-block 1.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    max-height 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);

  max-height: 0;
  overflow: hidden;
  padding-block: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 420px;

  padding-block: var(--footer-padding-block);
  pointer-events: auto;
}

.footer-reveal-sentinel {
  position: relative;
  width: 100%;
  height: var(--footer-reveal-gap);
  pointer-events: none;
}

.header-inner,
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner {
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.site-logo {
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "ROND" 100;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--heading-color);
  text-decoration: none;
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  transition: color var(--transition-default);
}

.site-logo:focus-visible,
.site-logo:hover {
  color: #d0ccc8;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--heading-color);
  text-decoration: none;
  transition: color var(--transition-default);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: transparent;
  transition: background-color var(--transition-default),
    transform var(--transition-default);
  transform: scaleX(0);
  transform-origin: center;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #d0ccc8;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  background-color: var(--accent-color);
  transform: scaleX(1);
}

.nav-link.active {
  color: #d0ccc8;
}

#hamburger-trigger-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-navigation {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  order: 1;
}

.hamburger-button {
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(166, 162, 159, 0.45);

  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-default),
    background-color var(--transition-default), opacity 0.3s ease,
    visibility 0.3s ease;
}

.hamburger-button:hover,
.hamburger-button:focus-visible {
  border-color: rgba(166, 162, 159, 0.65);
  background-color: rgba(166, 162, 159, 0.18);
}

.hamburger-button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.hamburger-button.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hamburger-icon {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background-color: var(--heading-color);
  transition: background-color var(--transition-default);
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: var(--heading-color);
  transform-origin: center;
  transition: transform var(--transition-default),
    opacity var(--transition-default);
}

.hamburger-icon::before {
  transform: translateY(-6px);
}

.hamburger-icon::after {
  transform: translateY(6px);
}

.hamburger-button.menu-open .hamburger-icon {
  background-color: transparent;
}

.hamburger-button.menu-open .hamburger-icon::before {
  transform: translateY(0) rotate(45deg);
}

.hamburger-button.menu-open .hamburger-icon::after {
  transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
  --menu-item-stagger: 0.12s;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  padding: 5.5rem 2.25rem 3rem;
  background-color: rgba(35, 37, 38, 0.25);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
  border-right: 0px solid var(--border-color);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 50;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu .nav-link {
  --menu-item-index: 0;
  justify-content: flex-start;
  font-size: 1rem;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.mobile-menu.is-open .nav-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(
    (var(--menu-item-index) + 1) * var(--menu-item-stagger)
  );
}

.mobile-menu:not(.is-open) .nav-link {
  transition-delay: 0s;
}

.mobile-menu__close-button {
  position: fixed;
  top: var(--header-padding-block);
  left: var(--header-padding-inline);
  opacity: 0;
  transform: translate(-12px, -12px) scale(0.95);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  z-index: 60;
}

.mobile-menu.is-open-complete .mobile-menu__close-button {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu__close-button {
    transition: none;
    transform: none;
  }
}

.mobile-menu .nav-link:nth-of-type(1) {
  --menu-item-index: 0;
}

.mobile-menu .nav-link:nth-of-type(2) {
  --menu-item-index: 1;
}

.mobile-menu .nav-link:nth-of-type(3) {
  --menu-item-index: 2;
}

.mobile-menu .nav-link:nth-of-type(4) {
  --menu-item-index: 3;
}

.mobile-menu .nav-link:nth-of-type(5) {
  --menu-item-index: 4;
}

.mobile-menu .nav-link:nth-of-type(6) {
  --menu-item-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }

  .mobile-menu .nav-link {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
}

.hidden {
  display: none !important;
}

.site-main {
  flex: 1;
  background-color: var(--background-color);
}

.page-section {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.content-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);

  transition-delay: var(--fade-delay, 0s);
  will-change: opacity, transform;
}

.content-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow,
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted-color);
}

.section-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading-color);
}

.section-title-image {
  display: block;
  width: clamp(200px, 52vw, 430px);
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  filter: drop-shadow(0 22px 45px rgba(0, 0, 0, 0.45));
}

h1,
h2,
h3,
h4 {
  color: var(--heading-color);
  line-height: 1.2;
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color var(--transition-default), opacity var(--transition-default);
}

a:hover,
a:focus-visible {
  color: #d0ccc8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-default),
    box-shadow var(--transition-default),
    background-color var(--transition-default),
    border-color var(--transition-default), color var(--transition-default);
}

.button--primary {
  background-color: var(--heading-color);
  color: #0b0c0d;
  box-shadow: none;
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
  background-color: #bbb6b2;
}

.button--ghost {
  background: transparent;
  border-color: rgba(166, 162, 159, 0.35);
  color: var(--heading-color);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(166, 162, 159, 0.5);
  background-color: rgba(166, 162, 159, 0.1);
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(70vh, 85vh, 92vh);
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
  align-items: center;
  text-align: center;
}

.home-hero__title {
  font-size: clamp(3rem, 8vw, 4.75rem);
  letter-spacing: 0.08em;
}

.home-hero__title-image {
  display: block;
  width: min(85vw, 420px);
  max-width: 100%;
  height: auto;
}

.home-hero__divider {
  width: min(70vw, 360px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(166, 162, 159, 0) 0%,
    rgba(166, 162, 159, 0.65) 50%,
    rgba(166, 162, 159, 0) 100%
  );
}

.home-hero__title.bebas-neue-regular,
.section-title.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
}

.home-hero__lead {
  margin: 0;
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  letter-spacing: 0.28em;
  color: rgba(249, 230, 188, 0.78);
  text-align: center;
}

.home-hero--matrix {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-hero--matrix .page-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(70vh, 85vh, 92vh);
}

.matrix-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(60vh, 80vw, 92vh);
  border-radius: 1.75rem;
  overflow: hidden;
  background-color: var(--surface-color);
  border: 1px solid rgba(166, 162, 159, 0.12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.matrix-stage::before,
.matrix-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.falling-dots {
  --dot-radius: 10px;
  --dot-diameter: calc(var(--dot-radius) * 2);
  --dot-gap: 28px;
  --dot-spacing: calc(var(--dot-diameter) + var(--dot-gap));
  --dot-duration: 4.5s;
  --dot-color: #8c847d;

  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

.falling-dots::before,
.falling-dots::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--dot-color) 0 var(--dot-radius),
    transparent var(--dot-radius)
  );
  background-size: var(--dot-spacing) var(--dot-spacing);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.falling-dots::before {
  opacity: 0.85;
  animation-name: falling-dot-scroll-primary;
  animation-duration: var(--dot-duration);
}

.falling-dots::after {
  opacity: 0.55;
  background-position: calc(var(--dot-spacing) * 0.5)
    calc(var(--dot-spacing) * -0.5);
  animation-name: falling-dot-scroll-secondary;
  animation-duration: calc(var(--dot-duration) * 1.5);
}

.falling-dots--static::before,
.falling-dots--static::after {
  animation: none;
}

@keyframes falling-dot-scroll-primary {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 var(--dot-spacing);
  }
}

@keyframes falling-dot-scroll-secondary {
  from {
    background-position: calc(var(--dot-spacing) * 0.5)
      calc(var(--dot-spacing) * -0.5);
  }

  to {
    background-position: calc(var(--dot-spacing) * 0.5)
      calc(var(--dot-spacing) * 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .falling-dots::before,
  .falling-dots::after {
    animation: none;
  }
}

@media (max-width: 720px) {
  .matrix-stage {
    min-height: clamp(60vh, 120vw, 92vh);
    border-radius: 1.25rem;
  }
}

.two-column {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

#about-page .page-content {
  text-align: center;
}

#about-page .two-column {
  justify-items: center;
}

#about-page .two-column > * {
  width: min(100%, 720px);
}

.info-card {
  background: var(--surface-color);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

#about-page .info-card {
  text-align: center;
  align-items: center;
}

.info-card__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card__section {
  display: grid;
  gap: 0.75rem;
}

#about-page .info-card__section {
  justify-items: center;
}

.info-card__section + .info-card__section {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card__section h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#about-page .pill-group {
  justify-content: center;
}

.about-actions {
  margin-top: clamp(1.5rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.about-actions__button {
  min-width: clamp(12.5rem, 40vw, 16.25rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.35rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.card-grid {
  display: grid;
  /* make cards slightly larger by increasing the minimum size and keep them responsive */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* reduce the gap between cards */
  gap: clamp(0rem, 12vw, 2.5rem);
}

.card {
  background: var(--surface-color);
  border-radius: 0.25rem;
  overflow: hidden;
  border: 0.5px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-default),
    box-shadow var(--transition-default);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card__media {
  width: 100%;
  /* increase media height so cards read as slightly larger */
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.card__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin: 0;
}

.card__title {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.card__link {
  margin-top: auto;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card__link::after {
  content: "\2192";
  margin-left: 0.35rem;
  transition: transform var(--transition-default);
}

.card__link:hover::after,
.card__link:focus-visible::after {
  transform: translateX(4px);
}

/*
  Portfolio carousel shell and gutters
  ------------------------------------
  The carousel margin pulls it away from the section heading, while the
  negative slick-list margin balances the 0.85rem slide padding to create a
  consistent horizontal gutter on both sides of the viewport.
*/
.portfolio-carousel {
  margin-top: clamp(4rem, 5vw, 3rem);
  position: relative;
}

.portfolio-carousel:focus,
.portfolio-carousel:focus-visible {
  outline: none;
  box-shadow: none;
}

.portfolio-carousel .slick-list {
  margin: 0 -0.85rem;
}

/*
  Slick slide layout
  ------------------
  Each slide is centered and padded to produce a 1.7rem combined gutter
  between cards (0.85rem on each side). The transition keeps the center mode
  animation smooth when Slick swaps slides.
*/
.portfolio-carousel .slick-slide {
  display: flex !important;
  justify-content: center;
  padding: 0.1 0.1rem;
  transition: transform 240ms ease, opacity 240ms ease, box-shadow 240ms ease;
}

.portfolio-carousel .slick-slide:focus,
.portfolio-carousel .slick-slide:focus-visible {
  outline: none;
  box-shadow: none;
}

/*
  Non-centered slides scale down and fade slightly so the center item pops.
  These values coordinate with the JS centerMode settings for the slick
  carousel.
*/
.portfolio-carousel .slick-slide:not(.slick-center) {
  transform: scale(0.85);
  opacity: 0.55;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

/*
  The active (center) slide maintains full scale and opacity for focus.
*/
.portfolio-carousel .slick-slide.slick-center {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

/*
  Carousel controls container keeps the arrows grouped under the track and
  allows the buttons to wrap on narrow screens.
*/
.portfolio-carousel__controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/*
  Arrow button styling mirrors the rest of the UI. The 3rem square ensures the
  hit target exceeds WCAG touch guidelines and matches the slick arrow glyphs.
*/
.portfolio-carousel__arrow {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--surface-elevated);
  color: var(--heading-color);
  font-size: 0;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  cursor: pointer;
  transition: border-color var(--transition-default),
    background var(--transition-default), color var(--transition-default),
    transform 180ms ease;
}

.portfolio-carousel__arrow::before {
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
  opacity: 1;
}

.portfolio-carousel__arrow:hover,
.portfolio-carousel__arrow:focus-visible {
  border-color: var(--heading-color);
  color: var(--heading-color);
  transform: translateY(-1px);
}

.portfolio-carousel__arrow:focus-visible {
  outline: 2px solid var(--heading-color);
  outline-offset: 3px;
}

.portfolio-carousel__arrow.slick-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/*
  Portfolio card sizing
  ---------------------
  Clamp widths and heights keep each project tile consistent regardless of
  viewport. The desktop values align with the Slick centerPadding to maintain
  even spacing, while the mobile clamp ensures cards stay legible in center
  mode.
*/
.portfolio-card {
  width: clamp(190px, 24vw, 280px);
  height: clamp(180px, 28vw, 240px);
  border-radius: 1rem;
  border: none;
  background: rgba(22, 23, 24, 0.85);
}

.portfolio-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(14, 15, 16, 0.85);
}

.portfolio-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease-out;
}

.portfolio-card-media:hover .portfolio-card-image,
.portfolio-card-media:focus-within .portfolio-card-image {
  transform: scale(1.03);
}

.portfolio-card-image-button {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(9, 10, 11, 0.72);
  color: var(--heading-color);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: background 150ms ease, transform 150ms ease,
    border-color 150ms ease;
}

.portfolio-card-image-button:hover,
.portfolio-card-image-button:focus-visible {
  background: rgba(32, 33, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -1px);
}

.portfolio-card-image-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.portfolio-card-image-button:active {
  transform: translate(-50%, 1px);
}

@media (max-width: 740px) {
  .portfolio-card {
    width: min(320px, 90vw);
    height: clamp(160px, 45vw, 220px);
  }

  /* Slightly tighter arrow spacing so controls do not wrap awkwardly. */
  .portfolio-carousel__controls {
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-carousel .slick-slide {
    transition: none;
  }

  .portfolio-carousel .slick-slide:not(.slick-center) {
    transform: none;
    opacity: 1;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu__close-button {
    transition: none;
    transform: none;
  }
}

.mobile-menu .nav-link:nth-of-type(1) {
  --menu-item-index: 0;
}

.mobile-menu .nav-link:nth-of-type(2) {
  --menu-item-index: 1;
}

.mobile-menu .nav-link:nth-of-type(3) {
  --menu-item-index: 2;
}

.mobile-menu .nav-link:nth-of-type(4) {
  --menu-item-index: 3;
}

.mobile-menu .nav-link:nth-of-type(5) {
  --menu-item-index: 4;
}

.mobile-menu .nav-link:nth-of-type(6) {
  --menu-item-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }

  .mobile-menu .nav-link {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
}

.hidden {
  display: none !important;
}

.site-main {
  flex: 1;
  background-color: var(--background-color);
}

.page-section {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.content-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);

  transition-delay: var(--fade-delay, 0s);
  will-change: opacity, transform;
}

.content-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow,
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted-color);
}

.section-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading-color);
}

.section-title-image {
  display: block;
  width: clamp(200px, 52vw, 430px);
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  filter: drop-shadow(0 22px 45px rgba(0, 0, 0, 0.45));
}

h1,
h2,
h3,
h4 {
  color: var(--heading-color);
  line-height: 1.2;
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color var(--transition-default), opacity var(--transition-default);
}

a:hover,
a:focus-visible {
  color: #d0ccc8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-default),
    box-shadow var(--transition-default),
    background-color var(--transition-default),
    border-color var(--transition-default), color var(--transition-default);
}

.button--primary {
  background-color: var(--heading-color);
  color: #0b0c0d;
  box-shadow: none;
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
  background-color: #bbb6b2;
}

.button--ghost {
  background: transparent;
  border-color: rgba(166, 162, 159, 0.35);
  color: var(--heading-color);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(166, 162, 159, 0.5);
  background-color: rgba(166, 162, 159, 0.1);
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(70vh, 85vh, 92vh);
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
  align-items: center;
  text-align: center;
}

.home-hero__title {
  font-size: clamp(3rem, 8vw, 4.75rem);
  letter-spacing: 0.08em;
}

.home-hero__title-image {
  display: block;
  width: min(85vw, 420px);
  max-width: 100%;
  height: auto;
}

.home-hero__title.bebas-neue-regular,
.section-title.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
}

.home-hero__lead {
  margin: 0;
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  letter-spacing: 0.28em;
  color: rgba(249, 230, 188, 0.78);
  text-align: center;
}

.home-hero--matrix {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-hero--matrix .page-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(70vh, 85vh, 92vh);
}

.matrix-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(60vh, 80vw, 92vh);
  border-radius: 1.75rem;
  overflow: hidden;
  background-color: var(--surface-color);
  border: 1px solid rgba(166, 162, 159, 0.12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.matrix-stage::before,
.matrix-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.falling-dots {
  --dot-radius: 10px;
  --dot-diameter: calc(var(--dot-radius) * 2);
  --dot-gap: 28px;
  --dot-spacing: calc(var(--dot-diameter) + var(--dot-gap));
  --dot-duration: 4.5s;
  --dot-color: #8c847d;

  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

.falling-dots::before,
.falling-dots::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--dot-color) 0 var(--dot-radius),
    transparent var(--dot-radius)
  );
  background-size: var(--dot-spacing) var(--dot-spacing);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.falling-dots::before {
  opacity: 0.85;
  animation-name: falling-dot-scroll-primary;
  animation-duration: var(--dot-duration);
}

.falling-dots::after {
  opacity: 0.55;
  background-position: calc(var(--dot-spacing) * 0.5)
    calc(var(--dot-spacing) * -0.5);
  animation-name: falling-dot-scroll-secondary;
  animation-duration: calc(var(--dot-duration) * 1.5);
}

.falling-dots--static::before,
.falling-dots--static::after {
  animation: none;
}

@keyframes falling-dot-scroll-primary {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 var(--dot-spacing);
  }
}

@keyframes falling-dot-scroll-secondary {
  from {
    background-position: calc(var(--dot-spacing) * 0.5)
      calc(var(--dot-spacing) * -0.5);
  }

  to {
    background-position: calc(var(--dot-spacing) * 0.5)
      calc(var(--dot-spacing) * 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .falling-dots::before,
  .falling-dots::after {
    animation: none;
  }
}

@media (max-width: 720px) {
  .matrix-stage {
    min-height: clamp(60vh, 120vw, 92vh);
    border-radius: 1.25rem;
  }
}

.two-column {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.info-card {
  background: var(--surface-color);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.info-card__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card__section {
  display: grid;
  gap: 0.75rem;
}

.info-card__section + .info-card__section {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card__section h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.card-grid {
  display: grid;
  /* make cards slightly larger by increasing the minimum size and keep them responsive */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* reduce the gap between cards */
  gap: clamp(1rem, 3vw, 1.5rem);
}

.card {
  background: var(--surface-color);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-default),
    box-shadow var(--transition-default);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card__media {
  width: 100%;
  /* increase media height so cards read as slightly larger */
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.card__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin: 0;
}

.card__title {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.card__link {
  margin-top: auto;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card__link::after {
  content: "\2192";
  margin-left: 0.35rem;
  transition: transform var(--transition-default);
}

.card__link:hover::after,
.card__link:focus-visible::after {
  transform: translateX(4px);
}

.stack-list {
  display: grid;
  gap: 1.5rem;
}

.article-card {
  background: var(--surface-color);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  transition: transform var(--transition-default),
    box-shadow var(--transition-default);
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.article-card time {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.photo-gallery__container {
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

.photo-gallery__gallery {
  min-height: 6rem;
}

.photo-gallery__grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.photo-gallery__item {
  position: relative;
  display: block;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  isolation: isolate;
  transition: transform var(--transition-default),
    box-shadow var(--transition-default);
}

.photo-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 6, 0) 0%,
    rgba(6, 6, 6, 0.55) 70%,
    rgba(6, 6, 6, 0.82) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-default);
  pointer-events: none;
}

.photo-gallery__item:hover,
.photo-gallery__item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
}

.photo-gallery__item:hover::after,
.photo-gallery__item:focus-visible::after {
  opacity: 1;
}

.photo-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s ease;
}

.photo-gallery__item:hover .photo-gallery__image,
.photo-gallery__item:focus-visible .photo-gallery__image {
  transform: scale(1.05);
}

.photo-gallery__item-caption {
  position: absolute;
  inset-inline: clamp(0.75rem, 2vw, 1.25rem);
  inset-block-end: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--text-color);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-default),
    transform var(--transition-default);
}

.photo-gallery__item:hover .photo-gallery__item-caption,
.photo-gallery__item:focus-visible .photo-gallery__item-caption {
  opacity: 1;
  transform: translateY(0);
}

.photo-gallery__lightbox-title {
  font-family: var(--heading-font-family, var(--font-family));
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.photo-gallery__lightbox-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.photo-gallery__status {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 0.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  text-align: center;
}

body.is-gallery-viewer-open .site-header,
body.is-gallery-viewer-open .site-header *,
html.is-gallery-viewer-open .site-header,
html.is-gallery-viewer-open .site-header * {
  pointer-events: none !important;
}

.lg-backdrop {
  background: rgba(6, 6, 6, 0.92);
}

.lg-outer {
  z-index: 160;
}

.lg-outer .lg-toolbar {
  background: transparent;
}

.lg-outer .lg-icon {
  color: var(--text-color);
  transition: transform var(--transition-default),
    color var(--transition-default);
}

.lg-outer .lg-icon:hover,
.lg-outer .lg-icon:focus-visible {
  color: var(--heading-color);
  transform: scale(1.08);
}

.lg-outer .lg-close {
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  right: calc(env(safe-area-inset-right, 0px) + 1rem);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  width: 3rem;
  height: 3rem;
}

.contact-form {
  background: var(--surface-color);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field--invalid .form-label {
  color: var(--error-color);
}

.form-label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 15, 0.6);
  color: var(--heading-color);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color var(--transition-default),
    box-shadow var(--transition-default),
    background-color var(--transition-default);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-error-message {
  display: none;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--error-border);
  background: var(--error-surface);
  color: var(--error-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-error-message.is-visible {
  display: block;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background-color: rgba(12, 14, 15, 0.82);
}

.form-field--invalid input,
.form-field--invalid textarea {
  border-color: var(--error-border);
  box-shadow: 0 0 0 3px var(--error-surface);
  background-color: rgba(12, 14, 15, 0.72);
}

.form-field--invalid input:focus,
.form-field--invalid textarea:focus {
  border-color: var(--error-border);
  box-shadow: 0 0 0 3px var(--error-surface);
}

.contact-form button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.form-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 0.85rem;
  font-weight: 600;
}

.form-feedback--success {
  background: rgba(133, 255, 210, 0.14);
  border: 1px solid rgba(133, 255, 210, 0.35);
  color: #cfffef;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-feedback--error {
  background: var(--error-surface);
  border: 1px solid var(--error-border);
  color: var(--error-color);
}

.form-feedback a {
  color: inherit;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.contact-links {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.contact-links p {
  margin-bottom: 0.6rem;
  color: var(--muted-color);
}

.contact-links a {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--heading-color);
  border: 1px solid rgba(214, 195, 152, 0.32);
  background-color: rgba(0, 0, 0, 0.2);
  transition: color var(--transition-default),
    background-color var(--transition-default),
    border-color var(--transition-default);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.12);
}

.footer-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loading-state {
  padding: 6rem 0;
  text-align: center;
  animation: loading-fade-in-up 0.6s ease-out both;
}

.loading-state p {
  color: var(--muted-color);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes loading-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-state {
    animation: none;
  }
}

.synth-page__lead {
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--muted-color);
}

.project-embed {
  width: 100%;
  max-width: 860px;
  margin: clamp(1.75rem, 4vw, 2.5rem) auto;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(166, 162, 159, 0.22);
  background: var(--surface-elevated);
  box-shadow: 0 32px 70px rgba(5, 6, 7, 0.48);
}

.project-embed__frame {
  display: block;
  width: 100%;
  height: auto;
  min-height: clamp(18rem, 55vw, 26rem);
  aspect-ratio: 404 / 316;
  border: 0;
  border-radius: clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(8, 9, 10, 0.9);
}

.project-embed__caption {
  margin: 0 auto;
  max-width: 60ch;
  text-align: center;
  color: var(--muted-color);
}

.project-embed__caption a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.project-embed__caption a:hover,
.project-embed__caption a:focus {
  text-decoration: underline;
}

.synth-page__actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.synth-page__actions .button {
  text-decoration: none;
}

.synth-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(166, 162, 159, 0.22);
  background: var(--surface-elevated);
  box-shadow: 0 32px 70px rgba(5, 6, 7, 0.48);
}

.synth-panel__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  background: rgba(12, 13, 14, 0.45);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(166, 162, 159, 0.18);
}

.synth-panel__text {
  margin: 0;
  max-width: 48ch;
  color: var(--muted-color);
}

.synth-panel__start {
  align-self: flex-start;
}

.synth-panel__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.synth-slider {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(214, 195, 152, 0.22),
    rgba(214, 195, 152, 0.08)
  );
  outline: none;
  appearance: none;
}

.synth-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(214, 195, 152, 0.22),
    rgba(214, 195, 152, 0.08)
  );
}

.synth-slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(214, 195, 152, 0.35);
}

.synth-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--heading-color);
  border: 2px solid rgba(9, 10, 11, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.synth-slider::-webkit-slider-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.synth-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--heading-color);
  border: 2px solid rgba(9, 10, 11, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.synth-slider::-moz-range-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.synth-mode-button {
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.synth-mode-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(214, 195, 152, 0.3);
}

.simple-synth {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.simple-synth__controls {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.simple-block {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  background: rgba(14, 15, 16, 0.58);
  border: 1px solid rgba(166, 162, 159, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.simple-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.simple-slider {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.simple-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.simple-volume {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  background: rgba(14, 15, 16, 0.58);
  border: 1px solid rgba(166, 162, 159, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 120px;
}

.ambify-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.ambify-panel__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(12, 13, 14, 0.45);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(166, 162, 159, 0.18);
}

.ambify-panel__text {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--muted-color);
}

.ambify-panel__heading {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading-color);
}

[data-ambify-demo-panel][hidden],
[data-ambify-body][hidden],
[data-ambify-upload-filename][hidden] {
  display: none !important;
}

.ambify-panel__body {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.ambify-upload-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 2.8vw, 1.5rem);
  border-radius: 1.25rem;
  border: 1px dashed rgba(214, 195, 152, 0.45);
  background: rgba(12, 13, 14, 0.45);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ambify-upload-area:focus-visible {
  outline: none;
  border-color: rgba(214, 195, 152, 0.9);
  box-shadow: 0 0 0 2px rgba(214, 195, 152, 0.25);
}

.ambify-upload-area.is-dragover {
  border-style: solid;
  border-color: rgba(214, 195, 152, 0.95);
  background: rgba(214, 195, 152, 0.08);
}

.ambify-upload-area__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(214, 195, 152, 0.16);
  color: rgba(214, 195, 152, 0.85);
  font-size: 1.5rem;
}

.ambify-upload-area__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted-color);
}

.ambify-upload-area__lead {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--heading-color);
}

.ambify-upload-area__hint {
  margin: 0;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.ambify-upload-area__demo {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: rgba(214, 195, 152, 0.85);
  text-decoration: underline;
  cursor: pointer;
}

.ambify-upload-area__demo:hover,
.ambify-upload-area__demo:focus-visible {
  color: rgba(214, 195, 152, 1);
}

.ambify-upload-area__filename {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(214, 195, 152, 0.75);
}

.ambify-demo-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.1rem, 2.8vw, 1.5rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(166, 162, 159, 0.18);
  background: rgba(14, 15, 16, 0.58);
}

.ambify-demo-picker__lead {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-color);
}

.ambify-demo-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ambify-demo-picker__button {
  border: 1px solid rgba(214, 195, 152, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  background: rgba(214, 195, 152, 0.1);
  color: rgba(214, 195, 152, 0.9);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ambify-demo-picker__button:hover,
.ambify-demo-picker__button:focus-visible {
  background: rgba(214, 195, 152, 0.18);
  border-color: rgba(214, 195, 152, 0.6);
  transform: translateY(-1px);
}

.ambify-visualizer {
  border-radius: 1.25rem;
  border: 1px solid rgba(166, 162, 159, 0.18);
  background: rgba(12, 13, 14, 0.45);
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.ambify-waveform {
  position: relative;
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(214, 195, 152, 0.65);
  overflow: hidden;
}

.ambify-waveform__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.ambify-waveform__placeholder {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .ambify-upload-area {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .ambify-upload-area__hint {
    justify-content: center;
  }
}

.ambify-transport {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  background: rgba(12, 13, 14, 0.45);
  border: 1px solid rgba(166, 162, 159, 0.18);
}

.ambify-transport__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.ambify-transport__timeline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 240px;
  min-width: 220px;
}

.ambify-transport__slider {
  width: 100%;
  accent-color: rgba(214, 195, 152, 0.85);
}

.ambify-transport__slider:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ambify-transport__time {
  display: inline-flex;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 195, 152, 0.7);
}

.ambify-transport__icon-button {
  border: none;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 195, 152, 0.9), rgba(214, 195, 152, 0.55));
  color: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ambify-transport__icon-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ambify-transport__icon-button:not(:disabled):hover,
.ambify-transport__icon-button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(214, 195, 152, 0.25);
}

.ambify-transport__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  fill: currentColor;
}

.ambify-status {
  color: var(--muted-color);
  font-size: 0.85rem;
}

.ambify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1rem, 2.8vw, 1.75rem);
}

.ambify-module {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 1.1rem;
  background: rgba(14, 15, 16, 0.58);
  border: 1px solid rgba(166, 162, 159, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ambify-module__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.ambify-module__hint {
  margin: 0;
  color: rgba(214, 195, 152, 0.68);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ambify-secondary-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ambify-pitch {
  margin: 0;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  border-radius: 1.1rem;
  border: 1px solid rgba(166, 162, 159, 0.16);
  background: rgba(14, 15, 16, 0.58);
  display: grid;
  gap: 0.55rem;
  color: var(--muted-color);
}

.ambify-pitch legend {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 195, 152, 0.72);
  padding: 0 0.3rem;
}

.ambify-pitch label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.ambify-pitch input[type="radio"] {
  accent-color: rgba(214, 195, 152, 0.85);
}

.ambify-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  background: rgba(14, 15, 16, 0.58);
  border-radius: 1.1rem;
  border: 1px solid rgba(166, 162, 159, 0.16);
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
}

.ambify-presets .button {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

@media (min-width: 880px) {
  .ambify-panel__intro {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ambify-panel__text {
    max-width: 44ch;
  }

  .ambify-panel__actions {
    justify-content: flex-end;
  }

  .ambify-transport {
    justify-content: space-between;
  }
}

.simple-power-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.18),
    rgba(14, 15, 16, 0.75)
  );
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.simple-power-button:hover,
.simple-power-button:focus-visible {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}

.simple-power-button.is-on {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 255, 180, 0.36),
    rgba(0, 92, 76, 0.85)
  );
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
  border-color: rgba(0, 255, 200, 0.55);
}

.simple-power-button__logo {
  line-height: 1;
}

.synth-slider--vertical {
  width: 6px;
  height: 180px;
  writing-mode: bt-lr;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
}

.synth-slider--vertical::-moz-range-track {
  width: 6px;
}

@media (min-width: 720px) {
  .synth-panel__intro {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .synth-panel__text {
    max-width: 48ch;
  }

  .synth-filter {
    flex-direction: row;
    align-items: center;
  }

  .synth-filter__modes {
    justify-content: flex-end;
  }
}

.consent-banner {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: clamp(1rem, 4vw, 2.5rem);
  transform: translateY(24px);
  width: min(90vw, 340px);
  background: var(--surface-elevated);
  color: var(--text-color);
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(6, 6, 6, 0.55);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  display: grid;
  gap: 1rem;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.45s cubic-bezier(0.16, 0.84, 0.44, 1);
  backdrop-filter: blur(4px);
  background-image: rgb(21, 22, 24);
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.consent-banner__body {
  display: grid;
  gap: 0.6rem;
}

.consent-banner__title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading-color);
}

.consent-banner__text {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.85rem;
  line-height: 1.55;
}

.consent-banner__actions {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.consent-banner__button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.26s ease, color 0.26s ease,
    box-shadow 0.26s ease, transform 0.26s ease, border-color 0.26s ease;
}

.consent-banner__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 195, 152, 0.45);
}

.consent-banner__button--primary {
  background: linear-gradient(135deg, #d6c398, #f0e5c1);
  color: #1a1c1d;
  border-color: rgba(214, 195, 152, 0.85);
  box-shadow: 0 12px 30px rgba(214, 195, 152, 0.25);
}

.consent-banner__button--primary:hover,
.consent-banner__button--primary:focus-visible {
  background: linear-gradient(135deg, #f2e7c5, #f7f0d6);
  box-shadow: 0 16px 36px rgba(214, 195, 152, 0.35);
  transform: translateY(-2px);
}

.consent-banner__button--secondary {
  background: rgba(26, 28, 29, 0.6);
  color: var(--heading-color);
  border-color: rgba(166, 162, 159, 0.4);
}

.consent-banner__button--secondary:hover,
.consent-banner__button--secondary:focus-visible {
  background: rgba(166, 162, 159, 0.16);
  border-color: rgba(214, 195, 152, 0.4);
  color: #f3e9ce;
  transform: translateY(-2px);
}

.consent-banner__button:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 540px) {
  .consent-banner {
    left: clamp(0.75rem, 3vw, 1.25rem);
    bottom: clamp(0.75rem, 3vw, 1.25rem);
    width: min(92vw, 340px);
    padding: clamp(0.9rem, 3vw, 1.2rem);
    gap: 0.85rem;
  }
}

.error-state {
  margin: 0 auto;
  max-width: 540px;
  text-align: center;
  padding: 2.5rem;
  background: var(--surface-color);
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.error-state p {
  color: var(--muted-color);
}

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
  }

  .header-navigation {
    gap: 1.75rem;
  }

  .two-column {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 599px) {
  .site-header,
  .site-footer {
    padding-inline: clamp(1.25rem, 6vw, 1.75rem);
  }

  .home-hero__panel {
    padding: 1.5rem;
  }

  .card__media {
    /* mobile: keep the media a bit taller than before so visual scale feels larger */
    height: 200px;
  }

  #photo-gallery-page .page-content {
    padding-inline: clamp(0.75rem, 4vw, 1.5rem);
  }

  #photo-gallery-page .photo-gallery__container {
    margin-block-start: clamp(1.25rem, 4vw, 1.75rem);
  }
}

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

  .consent-banner {
    transform: translate(-50%, 0);
  }
}
