/* =============================================================================
   Rivær — global stylesheet (single file, zero-build).
   Contents:
     1. Tokens          :root theme variables, dark overrides
     2. Base            body, p, html, [hidden] utility
     3. Home            hero, glass, scroll hint/dots
     4. Content shell   topbar, theme toggle, menu
     5. Sections        intro, carousel, services, materiaal, werkwijze, footer
     6. Detail          project page header, media carousel, body
   Section banners (HOME / DETAIL) mark the boundaries below.
   ============================================================================= */

/* Font families. Change these to restyle the whole site. */
/* If you switch to a new Google Font, also add it to the <link> in index.html. */
:root {
  --font-text: 'Plus Jakarta Sans', sans-serif; /* all normal text on the pages */
  --font-rivaer: 'Monoton', system-ui; /* the "Rivær" title + footer logo */
  /* Zen Dots or Monoton */
  --font-subtext: 'Cousine', monospace; /* the "Professional droneshots" lines */

  --font-rivaer-weight: 400; /* weight of the "Rivær" text */

  --color-subtext: rgba(0, 0, 0, 0.5); /* color of the "Professional droneshots" text */

  /* Theme surfaces (light) */
  --surface: #fff;
  --on-surface: #111;
  --muted: #6b7280;
  --card-bg: #fff;
  --card-ink: #22302b;
  --wordmark-fill: linear-gradient(135deg, #17281f 0%, #235c46 50%, #2d8163 100%);
  --wordmark-fill-light: linear-gradient(
    135deg,
    #ffffff 0%,
    #cfeede 45%,
    #6cc9a6 100%
  );
  --field-bg: #f5f5f5;
  --border: rgba(0, 0, 0, 0.15);
  --line: rgba(0, 0, 0, 0.18);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 30px rgba(0, 0, 0, 0.08);
}

html.dark {
  --card-shadow: 0 1px 2px rgba(255, 255, 255, 0.025), 0 12px 30px rgba(255, 255, 255, 0.04);
  --color-subtext: rgba(255, 255, 255, 0.55);
  --surface: #121212;
  --on-surface: #f2f2f2;
  --muted: #9aa0aa;
  --field-bg: #2a2a2c;
  --border: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.18);
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: var(--font-text);
  background: var(--surface);
  color: var(--on-surface);
}

[hidden] {
  display: none !important;
}

p {
  color: var(--muted);
}

html {
  scrollbar-width: none;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===================== HOME ===================== */

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  --title-fs: calc((1 - var(--t, 0)) * clamp(2.5rem, 13vw, 11rem) + var(--t, 0) * 1.75rem);
  --center-y: calc((1 - var(--t, 0)) * 50vh + var(--t, 0) * 2.6rem);
}

.hero__video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__video.is-active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.1); */
}

.hero__header {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--center-y);
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  text-align: center;
}

.hero__plate {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: calc(var(--title-fs) * 0.36 + var(--t, 0) * 0.25rem);
  animation: hero-enter 1.2s ease 0.15s both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__drone {
  flex: none;
  width: clamp(2.5rem, 6vw, 4rem);
  height: clamp(2.5rem, 6vw, 4rem);
  color: color-mix(in srgb, var(--color-subtext) calc(var(--t, 0) * 100%), #fff);
}

.hero__title {
  display: block;
  margin: 0;
  height: var(--title-fs);
  width: auto;
  padding: calc(var(--title-fs) * 0.08);
  box-sizing: border-box;
  border-radius: calc(var(--title-fs) * 0.25);
  background: url("/assets/card-bg.jpg") center / cover;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25), inset 0 0 6px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-family: var(--font-subtext);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: calc((1 - var(--t, 0)) * clamp(2rem, 5vw, 4rem) + var(--t, 0) * 0.8rem);
  white-space: nowrap;
  overflow: hidden;
  color: color-mix(in srgb, var(--color-subtext) calc(var(--t, 0) * 100%), #fff);
  animation: subtitle-reveal 0.9s ease 1.35s both;
}

html.dark .hero-subtitle {
  background-image: var(--wordmark-fill-light);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

@keyframes subtitle-reveal {
  from {
    max-width: 0;
    opacity: 0;
    transform: translateX(-0.5em);
  }
  to {
    max-width: 8ch;
    opacity: 1;
    transform: none;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #fff;
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.6));
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

.scroll-notice {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 2rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-text);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
  animation: notice-in 0.5s ease both;
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translate(-50%, 1rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero__dots {
  position: absolute;
  bottom: 7.5rem;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero__dot {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.5));
}

.hero__dot.is-active {
  background: #fff;
}

.hero__dot.is-active::after {
  content: '';
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  background: conic-gradient(#fff var(--hero-progress, 0%), rgba(255, 255, 255, 0.3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 0.6rem);
  }
}

.content {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem);
  box-shadow: 0 0 10rem rgba(0, 0, 0, 1);
  background: var(--surface);
  border-radius: 2rem 2rem 0 0;
  color: var(--on-surface);
  font-family: var(--font-text);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.content__topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 5rem;
  margin: 0 calc(-1 * clamp(1.5rem, 6vw, 6rem));
  background: var(--surface);
  border-radius: 2rem 2rem 0 0;
  transition: background 0.3s ease;
}

.theme-toggle {
  position: absolute;
  top: 2.6rem;
  transform: translateY(-50%);
  right: max(clamp(1.5rem, 6vw, 6rem), calc((100% - 70rem) / 2));
  z-index: 2;
  display: flex;
  padding: 0.4rem;
  border: 0;
  background: none;
  color: var(--on-surface);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover {
  opacity: 1;
}

.theme-toggle svg {
  width: 1.6rem;
  height: 1.6rem;
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: block;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}

.menu {
  position: absolute;
  top: 2.6rem;
  transform: translateY(-50%);
  left: max(clamp(1.5rem, 6vw, 6rem), calc((100% - 70rem) / 2));
  z-index: 3;
}

.menu__toggle {
  display: flex;
  padding: 0.4rem;
  border: 0;
  background: none;
  color: var(--on-surface);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.menu__toggle:hover {
  opacity: 1;
}

.menu__toggle svg {
  width: 1.6rem;
  height: 1.6rem;
}

.menu__list {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 12rem;
  padding: 0.5rem;
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
}

.menu__item {
  padding: 0.6rem 0.85rem;
  font-family: var(--font-text);
  font-size: 1rem;
  text-align: left;
  color: var(--on-surface);
  background: none;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu__item:hover {
  background: var(--field-bg);
}

#diensten,
#materiaal,
#projecten,
#werkwijze,
#contact {
  scroll-margin-top: 6rem;
}

.intro {
  max-width: 70rem;
  margin: 0 auto;
  margin-top: 2rem;
}

.intro__title {
  margin: 0 0 1rem;
  font-family: var(--font-text);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.intro__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.carousel {
  position: relative;
  max-width: 70rem;
  margin: 0 auto;
}

.carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}

.services-head {
  max-width: 70rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
}

.carousel--services .carousel__slide {
  flex: 0 0 calc((100% - 1.5rem) / 2);
  box-sizing: border-box;
  border-radius: 1.25rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.materiaal {
  max-width: 70rem;
  margin: 0 auto;
}

.materiaal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

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

.materiaal__item {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
}

.materiaal__viewer {
  display: block;
  width: 100%;
  height: clamp(18rem, 38vw, 26rem);
  background: transparent;
  --poster-color: transparent;
}

.materiaal__body {
  padding: 0 0 1.5rem;
}

.materiaal__name {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--on-surface);
}

.materiaal__role {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.materiaal__desc {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.materiaal__credit {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.materiaal__credit a {
  color: inherit;
}

.service__list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--on-surface);
  opacity: 0.6;
}

@media (max-width: 600px) {
  .carousel--services .carousel__slide {
    flex-basis: 100%;
  }
}

.portfolio__item {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.carousel__arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  display: flex;
  padding: 0;
  color: var(--on-surface);
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.carousel__arrow:hover {
  opacity: 1;
}

.carousel__arrow svg {
  width: 2.75rem;
  height: 2.75rem;
}

.carousel__arrow--prev {
  left: -4.5rem;
}

.carousel__arrow--next {
  right: -4.5rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.carousel__dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--on-surface);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--on-surface);
}

@media (max-width: 1024px) {
  .carousel__arrow--prev {
    left: -0.5rem;
  }
  .carousel__arrow--next {
    right: -0.5rem;
  }
}

@media (max-width: 900px) {
  .carousel__slide {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 600px) {
  .carousel__slide {
    flex-basis: 100%;
  }
}

.portfolio__media {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
}

.portfolio__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio__image--empty {
  background: var(--field-bg);
}

.portfolio__title {
  margin: 1.25rem 0 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.portfolio__text {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.portfolio__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--on-surface);
}

.portfolio__item:hover .portfolio__cta-text {
  text-decoration: underline;
}

.divider {
  max-width: 70rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto;
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

.columns__col {
  flex: 1 1 20rem;
}

.columns__title {
  margin: 0 0 1rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.columns__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.werkwijze {
  max-width: 70rem;
  margin: 0 auto;
}

.werkwijze__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

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

.werkwijze__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

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

.callout {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

.callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
}

@media (max-width: 900px) {
  .callout {
    padding-left: 0;
  }
  .callout::before {
    display: none;
  }
}

.callout__tag {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.callout__title {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--on-surface);
}

.callout__desc {
  margin: 0.6rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.callout__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.callout__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.callout__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--on-surface);
  opacity: 0.6;
}

.callout__btn {
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  color: var(--surface);
  background: var(--on-surface);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.callout__btn:hover {
  opacity: 0.85;
}

.werkwijze__num {
  display: block;
  font-family: var(--font-text);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--muted);
}

.werkwijze__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--on-surface);
}

.werkwijze__desc {
  margin: 0.6rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer {
  color: var(--on-surface);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

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

.footer__brand {
  position: relative;
  align-self: start;
  aspect-ratio: 85.6 / 54;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--card-bg);
  background-image: url("/assets/card-bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.12), 0 2px 16px rgba(0, 0, 0, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
  animation: cardIdle 3s ease-in-out infinite;
}

.footer__brand:hover {
  animation: none;
}

.footer__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.footer__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.02) 30%,
      rgba(255, 255, 255, 0.25) 40%,
      rgba(255, 255, 255, 0.08) 40%
    ),
    linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3));
  background-size: 150% 150%;
  animation: cardGradient 45s ease-in-out infinite;
  pointer-events: none;
}

.footer__logo,
.footer__tagline,
.footer__contact {
  position: relative;
  z-index: 1;
}

@keyframes cardGradient {
  0% {
    background-position: 0% 10%;
  }
  50% {
    background-position: 100% 91%;
  }
  100% {
    background-position: 0% 10%;
  }
}

@keyframes cardIdle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.footer__brand .footer__tagline,
.footer__brand .footer__contact,
.footer__brand .footer__contact a,
.footer__brand .footer__drone {
  color: var(--card-ink);
}

.footer__drone {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: clamp(1.75rem, 4vw, 2.5rem);
  height: clamp(1.75rem, 4vw, 2.5rem);
}

.footer__logo {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  left: clamp(1rem, 2vw, 1.5rem);
  height: clamp(2.5rem, 4vw, 4rem);
  width: auto;
  margin: 0;
  padding: 0;
  opacity: 0.6;
}

.rivaer-mark {
  font-family: var(--font-subtext);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-image: var(--wordmark-fill);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.footer__tagline {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1;
}

.footer__contact {
  position: absolute;
  left: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  font-family: var(--font-subtext);
  font-size: 0.8rem;
  line-height: 1.4;
}

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

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}

.footer__panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__heading {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1.25rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__row .footer__field {
  flex: 1 1 12rem;
}

.footer__field {
  position: relative;
  min-width: 0;
}

.footer__form textarea.footer__input {
  flex: 1 1 auto;
  min-height: 0;
}

.footer__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--on-surface);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  resize: vertical;
}

.footer__input::placeholder {
  color: var(--muted);
}

.footer__input:focus {
  outline: none;
  border-color: var(--on-surface);
  background-color: var(--surface);
}

.footer__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.footer__select:invalid {
  color: var(--muted);
}

.footer__submit {
  align-self: flex-end;
  padding: 0.85rem 2rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  color: var(--surface);
  background: var(--on-surface);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.footer__submit:hover {
  opacity: 0.85;
}

.footer__submit.is-success {
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: footer-submit-pop 0.4s ease;
}

.footer__submit.is-success::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: footer-check-in 0.35s ease 0.08s both;
}

.footer__submit.is-shake {
  animation: footer-shake 0.45s ease;
}

.footer__submit.is-error {
  background: #dc2626;
  color: #fff;
}

html.dark .footer__submit.is-error {
  background: #ef4444;
}

.footer__input.is-invalid {
  border-color: #dc2626;
  background-color: var(--surface);
}

html.dark .footer__input.is-invalid {
  border-color: #f87171;
}

.footer__tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 4;
  width: max-content;
  max-width: 100%;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  background: #dc2626;
  color: #fff;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.25rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}

.footer__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 1rem;
  border: 0.35rem solid transparent;
  border-top-color: #dc2626;
}

.footer__input.is-invalid ~ .footer__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes footer-submit-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes footer-shake {
  10%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  80% {
    transform: translateX(3px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-6px);
  }
  40%,
  60% {
    transform: translateX(6px);
  }
}

.footer__copy {
  max-width: 70rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===================== DETAIL ===================== */

.detail__header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  transition: background 0.3s ease;
}

.detail__header-inner {
  position: relative;
  height: 5rem;
}

.detail__brand {
  position: absolute;
  left: 50%;
  top: 2.6rem;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(1.75rem * 0.36 + 0.25rem);
  line-height: 1;
}

.detail__brand-title {
  display: block;
  height: 1.75rem;
  width: auto;
  padding: calc(1.75rem * 0.08);
  box-sizing: border-box;
  border-radius: calc(1.75rem * 0.25);
  background: url("/assets/card-bg.jpg") center / cover;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25), inset 0 0 6px rgba(0, 0, 0, 0.15);
}

.detail__brand-sub {
  font-family: var(--font-subtext);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-subtext);
}

html.dark .detail__brand-sub {
  background-image: var(--wordmark-fill-light);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

@media (max-width: 600px) {
  .detail__brand-sub {
    display: none;
  }
}

.detail {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.detail__back {
  position: absolute;
  left: max(clamp(1.5rem, 6vw, 6rem), calc((100% - 70rem) / 2));
  top: 2.6rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--on-surface);
  text-decoration: none;
}

.detail__back-arrow {
  transition: transform 0.3s ease;
}

.detail__back:hover .detail__back-arrow {
  transform: translateX(-0.35rem);
}

.detail__body {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.detail__body h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-text);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.detail__body h2 {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
}

.detail__body p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.detail__body a {
  color: var(--on-surface);
}

.media {
  position: relative;
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
}

.media__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 1.25rem;
}

.media__track::-webkit-scrollbar {
  display: none;
}

.media__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.media__item {
  display: block;
  width: 100%;
  border-radius: 1.25rem;
}

.media__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 0.4rem rgba(0, 0, 0, 0.5));
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.media__arrow:hover {
  opacity: 1;
}

.media__arrow svg {
  width: 2.75rem;
  height: 2.75rem;
}

.media__arrow--prev {
  left: 0.75rem;
}

.media__arrow--next {
  right: 0.75rem;
}

.media__dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.media__dot {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.5));
  transition: background 0.2s ease;
}

.media__dot.is-active {
  background: #fff;
}

@property --dot-progress {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.media__dot.is-active::after {
  content: '';
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  background: conic-gradient(#fff var(--dot-progress), rgba(255, 255, 255, 0.3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: dot-progress var(--autoplay-duration, 10s) linear infinite;
}

.media__dots.is-video .media__dot.is-active::after {
  display: none;
}

@keyframes dot-progress {
  from {
    --dot-progress: 0%;
  }
  to {
    --dot-progress: 100%;
  }
}

.detail__title {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  font-family: var(--font-text);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}
