:root {
  color-scheme: dark;
  --accent: #f4f7f5;
  --accent-dark: #bfc5c1;
  --accent-ink: #050606;
  --ink: #f4f6f5;
  --paper: #020303;
  --surface: #0d0f0e;
  --muted: #a5aaa7;
  --border: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 82% 8%, rgba(255, 255, 255, 0.08), transparent 26rem),
    radial-gradient(ellipse at 14% 76%, rgba(148, 154, 151, 0.07), transparent 32rem),
    var(--paper);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: -12vmax;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.68;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 0.8px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 0 0.7px, transparent 1.2px);
  background-position: 18px 32px, 94px 126px, 164px 58px;
  background-size: 179px 179px, 263px 263px, 347px 347px;
  animation: star-drift 70s linear infinite, star-twinkle 6s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 72% 18%, rgba(255, 255, 255, 0.11), transparent 23%),
    radial-gradient(ellipse at 24% 68%, rgba(162, 168, 165, 0.08), transparent 28%),
    radial-gradient(ellipse at 50% 108%, rgba(255, 255, 255, 0.06), transparent 35%);
  animation: galaxy-breathe 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

body.intro-active {
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.galaxy-intro[hidden] {
  display: none;
}

.galaxy-intro {
  --intro-exit-x: 0;
  --intro-exit-y: 7vh;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 22rem),
    radial-gradient(ellipse at 18% 12%, rgba(255, 255, 255, 0.08), transparent 32rem),
    radial-gradient(ellipse at 82% 88%, rgba(138, 145, 141, 0.1), transparent 36rem),
    #010202;
  opacity: 1;
  transition:
    opacity 0.8s ease,
    filter 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: opacity, filter, transform;
}

.galaxy-intro::before,
.galaxy-intro::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.galaxy-intro::before {
  inset: 0;
  z-index: 4;
  opacity: 0.28;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.025) 3px 4px);
  mix-blend-mode: screen;
}

.galaxy-intro::after {
  inset: -1px;
  z-index: 5;
  box-shadow: inset 0 0 18vmax 4vmax #000;
}

.intro-universe {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-starfield {
  position: absolute;
  inset: -18%;
  opacity: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 0.8px, transparent 1.35px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 0.6px, transparent 1.15px);
  background-position: 11px 17px, 59px 103px, 131px 47px;
  background-size: 113px 127px, 179px 191px, 251px 269px;
  transform: scale(1.35) rotate(-4deg);
  will-change: transform, opacity;
}

.intro-starfield-near {
  inset: -28%;
  background-position: 43px 71px, 127px 31px, 209px 173px;
  background-size: 229px 241px, 337px 353px, 443px 467px;
}

.is-playing .intro-starfield-far {
  animation:
    intro-stars-arrive 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    intro-stars-drift 28s 2.8s linear infinite;
}

.is-playing .intro-starfield-near {
  animation:
    intro-stars-arrive 2.3s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    intro-stars-drift-reverse 36s 2.55s linear infinite;
}

.intro-nebula {
  position: absolute;
  width: 76vmax;
  height: 26vmax;
  opacity: 0;
  border-radius: 50%;
  filter: blur(42px);
  transform: rotate(-18deg) scale(0.7);
  will-change: transform, opacity;
}

.intro-nebula-one {
  top: 18%;
  left: -18%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.16), rgba(164, 171, 167, 0.07) 35%, transparent 72%);
}

.intro-nebula-two {
  right: -24%;
  bottom: 12%;
  background: radial-gradient(ellipse, rgba(212, 218, 214, 0.13), rgba(104, 110, 107, 0.05) 38%, transparent 70%);
  transform: rotate(19deg) scale(0.7);
}

.is-playing .intro-nebula-one {
  animation:
    intro-nebula-arrive 2.4s 0.25s ease-out forwards,
    intro-nebula-float 15s 2.65s ease-in-out infinite alternate;
}

.is-playing .intro-nebula-two {
  animation:
    intro-nebula-arrive-two 2.6s 0.45s ease-out forwards,
    intro-nebula-float-two 18s 3.05s ease-in-out infinite alternate;
}

.intro-orbit,
.intro-galaxy-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.intro-orbit {
  width: min(78vw, 760px);
  aspect-ratio: 1;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 24px rgba(255, 255, 255, 0.025);
  will-change: opacity, transform;
}

.intro-orbit::before,
.intro-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.intro-orbit::before {
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 18px 5px color-mix(in srgb, var(--accent) 55%, transparent);
}

.intro-orbit::after {
  right: 7%;
  bottom: 20%;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
}

.intro-orbit-one {
  transform: translate(-50%, -50%) rotate(67deg) scaleY(0.38);
}

.intro-orbit-two {
  width: min(61vw, 590px);
  transform: translate(-50%, -50%) rotate(-24deg) scaleY(0.48);
}

.intro-orbit-three {
  width: min(43vw, 410px);
  transform: translate(-50%, -50%) rotate(13deg) scaleY(0.56);
}

.is-playing .intro-orbit-one {
  animation:
    intro-orbit-one 13s 0.5s linear infinite,
    intro-orbit-visible 1.6s 0.5s ease forwards;
}

.is-playing .intro-orbit-two {
  animation:
    intro-orbit-two 10s 0.65s linear infinite,
    intro-orbit-visible 1.6s 0.65s ease forwards;
}

.is-playing .intro-orbit-three {
  animation:
    intro-orbit-three 7s 0.8s linear infinite,
    intro-orbit-visible 1.6s 0.8s ease forwards;
}

.intro-galaxy-core {
  width: clamp(130px, 18vw, 220px);
  aspect-ratio: 1;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 2%, rgba(255, 255, 255, 0.92) 4%, rgba(211, 216, 213, 0.25) 18%, transparent 62%),
    conic-gradient(from 45deg, transparent, rgba(255, 255, 255, 0.13), transparent 28%, rgba(184, 190, 186, 0.1), transparent 58%, rgba(255, 255, 255, 0.12), transparent);
  box-shadow: 0 0 48px 10px rgba(255, 255, 255, 0.09);
  filter: blur(0.3px);
  will-change: opacity, transform, filter;
}

.intro-galaxy-core::before,
.intro-galaxy-core::after {
  position: absolute;
  inset: 32%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.25),
    inset 0 0 18px rgba(255, 255, 255, 0.2);
}

.intro-galaxy-core::after {
  inset: 43%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 28px 8px rgba(255, 255, 255, 0.56);
}

.is-playing .intro-galaxy-core {
  animation:
    intro-core-arrive 2.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    intro-core-turn 12s 2.6s linear infinite;
}

.intro-content {
  position: relative;
  z-index: 10;
  width: min(92vw, 980px);
  padding: 20px;
  text-align: center;
  pointer-events: none;
}

.intro-kicker,
.intro-title,
.intro-status {
  margin: 0;
}

.intro-kicker {
  opacity: 0;
  color: var(--muted);
  font-size: clamp(0.66rem, 1.1vw, 0.78rem);
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: translateY(14px);
}

.intro-title {
  margin-top: 12px;
  opacity: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.75rem, 12vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-shadow: 0 0 48px rgba(255, 255, 255, 0.18);
  transform: translateY(22px) scale(0.94);
}

.intro-status {
  margin-top: 22px;
  opacity: 0;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(8px);
}

.is-playing .intro-kicker {
  animation: intro-copy-arrive 0.9s 1.25s ease forwards;
}

.is-playing .intro-title {
  animation: intro-title-arrive 1.25s 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-playing .intro-status {
  animation: intro-copy-arrive 0.8s 1.65s ease forwards;
}

.intro-enter {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px 9px 9px;
  color: var(--muted);
  background: rgba(8, 10, 9, 0.66);
  border: 1px solid var(--border);
  border-radius: 999px;
  opacity: 0;
  backdrop-filter: blur(18px);
  font-size: clamp(0.65rem, 1.25vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  transform: translate(-50%, 16px);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.6s ease,
    opacity 0.6s ease;
  white-space: nowrap;
}

.intro-enter:disabled {
  cursor: wait;
  pointer-events: none;
}

.is-ready .intro-enter {
  opacity: 1;
  transform: translate(-50%, 0);
}

.intro-enter:not(:disabled):hover,
.intro-enter:not(:disabled):focus-visible {
  color: var(--ink);
  background: rgba(20, 23, 21, 0.88);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  outline: none;
}

.intro-enter-icon {
  position: relative;
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.intro-enter-icon::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent);
}

.intro-enter-icon i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--muted);
  border-style: solid;
  transform: rotate(45deg);
}

.intro-enter-icon i:nth-child(1) {
  top: 4px;
  border-width: 1px 0 0 1px;
}

.intro-enter-icon i:nth-child(2) {
  right: 4px;
  border-width: 1px 1px 0 0;
}

.intro-enter-icon i:nth-child(3) {
  bottom: 4px;
  border-width: 0 1px 1px 0;
}

.intro-enter-icon i:nth-child(4) {
  left: 4px;
  border-width: 0 0 1px 1px;
}

.galaxy-intro.is-ready .intro-enter-icon {
  animation: intro-prompt-pulse 1.8s ease-in-out infinite;
}

.galaxy-intro.is-leaving {
  pointer-events: none;
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(var(--intro-exit-x), var(--intro-exit-y), 0) scale(1.08);
}

body.intro-active .site-shell {
  opacity: 0.25;
  filter: blur(10px);
  transform: scale(0.97);
}

body.intro-revealed .site-shell {
  animation: intro-site-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes intro-stars-arrive {
  0% { opacity: 0; transform: scale(1.55) rotate(-4deg); }
  100% { opacity: 0.82; transform: scale(1) rotate(0deg); }
}

@keyframes intro-stars-drift {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.04) rotate(5deg); }
}

@keyframes intro-stars-drift-reverse {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.06) rotate(-6deg); }
}

@keyframes intro-nebula-arrive {
  to { opacity: 0.8; transform: rotate(-18deg) scale(1); }
}

@keyframes intro-nebula-arrive-two {
  to { opacity: 0.7; transform: rotate(19deg) scale(1); }
}

@keyframes intro-nebula-float {
  from { transform: rotate(-18deg) scale(1); }
  to { transform: translate3d(4vw, -2vh, 0) rotate(-15deg) scale(1.06); }
}

@keyframes intro-nebula-float-two {
  from { transform: rotate(19deg) scale(1); }
  to { transform: translate3d(-4vw, 2vh, 0) rotate(16deg) scale(1.05); }
}

@keyframes intro-orbit-visible {
  to { opacity: 0.72; }
}

@keyframes intro-orbit-one {
  to { transform: translate(-50%, -50%) rotate(427deg) scaleY(0.38); }
}

@keyframes intro-orbit-two {
  to { transform: translate(-50%, -50%) rotate(-384deg) scaleY(0.48); }
}

@keyframes intro-orbit-three {
  to { transform: translate(-50%, -50%) rotate(373deg) scaleY(0.56); }
}

@keyframes intro-core-arrive {
  0% { opacity: 0; filter: blur(8px); transform: translate(-50%, -50%) scale(0.35) rotate(-40deg); }
  100% { opacity: 0.76; filter: blur(0.3px); transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@keyframes intro-core-turn {
  from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  to { transform: translate(-50%, -50%) scale(1) rotate(360deg); }
}

@keyframes intro-copy-arrive {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-title-arrive {
  to { opacity: 1; letter-spacing: -0.045em; transform: translateY(0) scale(1); }
}

@keyframes intro-prompt-pulse {
  50% {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  }
}

@keyframes intro-site-reveal {
  0% { opacity: 0.3; filter: blur(10px); transform: scale(0.97); }
  100% { opacity: 1; filter: none; transform: scale(1); }
}

@media (max-width: 620px) {
  .intro-orbit-one {
    width: min(116vw, 580px);
  }

  .intro-orbit-two {
    width: min(92vw, 470px);
  }

  .intro-orbit-three {
    width: min(68vw, 340px);
  }

  .intro-galaxy-core {
    width: clamp(126px, 42vw, 184px);
  }

  .intro-content {
    padding: 18px;
  }

  .intro-kicker {
    max-width: 280px;
    margin-inline: auto;
    line-height: 1.7;
  }

  .intro-title {
    margin-top: 16px;
    font-size: clamp(3.65rem, 20vw, 6.6rem);
  }

  .intro-enter {
    bottom: max(20px, env(safe-area-inset-bottom));
    width: calc(100% - 36px);
    max-width: 390px;
    justify-content: center;
    white-space: normal;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .intro-kicker {
    display: none;
  }

  .intro-title {
    margin-top: 0;
    font-size: clamp(3rem, 13vw, 5.8rem);
  }

  .intro-status {
    margin-top: 14px;
  }

  .intro-enter {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: auto;
    transform: translateY(16px);
  }

  .is-ready .intro-enter {
    transform: translateY(0);
  }
}

.cosmic-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cosmic-background::before {
  position: absolute;
  top: 27%;
  left: -30%;
  width: 160%;
  height: 46%;
  content: "";
  opacity: 0.78;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 0.8px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 0 0.7px, transparent 1.3px),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.17), rgba(198, 203, 200, 0.08) 30%, transparent 68%);
  background-position: 12px 19px, 51px 37px, center;
  background-size: 61px 53px, 97px 83px, 100% 100%;
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(255, 255, 255, 0.09));
  transform: rotate(-17deg) scale(1.04);
  animation: milky-way-shift 26s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.cosmic-background::after {
  position: absolute;
  top: 23%;
  left: 34%;
  width: 42vw;
  min-width: 360px;
  aspect-ratio: 1.8;
  content: "";
  opacity: 0.62;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2), rgba(182, 188, 185, 0.07) 34%, transparent 70%);
  border-radius: 50%;
  transform: rotate(-17deg);
  animation: galaxy-core-pulse 10s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.shooting-star {
  position: absolute;
  top: var(--star-top);
  left: var(--star-left);
  width: clamp(110px, 13vw, 190px);
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), #fff);
  border-radius: 999px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
  animation: shooting-star-flight var(--star-duration) var(--star-delay) linear infinite;
  will-change: transform, opacity;
}

.shooting-star::after {
  position: absolute;
  top: 50%;
  right: -2px;
  width: 5px;
  height: 5px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
  transform: translateY(-50%);
}

.shooting-star-one {
  --star-top: -8%;
  --star-left: -16%;
  --star-duration: 11s;
  --star-delay: -3s;
}

.shooting-star-two {
  --star-top: 12%;
  --star-left: -24%;
  --star-duration: 15s;
  --star-delay: -10s;
}

.shooting-star-three {
  --star-top: 38%;
  --star-left: -18%;
  --star-duration: 13s;
  --star-delay: -1s;
}

.shooting-star-four {
  --star-top: 59%;
  --star-left: -28%;
  --star-duration: 18s;
  --star-delay: -13s;
}

.shooting-star-five {
  --star-top: -18%;
  --star-left: 18%;
  --star-duration: 20s;
  --star-delay: -7s;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(100% - 44px, 1280px);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.brand-mark.has-image {
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 25%, transparent);
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 15px 34px color-mix(in srgb, var(--accent) 32%, transparent);
}

.button-small {
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.83rem;
}

.button-ghost {
  justify-self: end;
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}

.button-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.eyebrow,
.filter-kicker {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.7fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: center;
  min-height: 690px;
  padding: 72px 4.5% 86px;
}

.hero-copy h1,
.catalogue-hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.2vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.hero-copy h1::first-line {
  color: var(--ink);
}

.hero-intro {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 620;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: #4c9f66;
  border-radius: 50%;
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  content: "";
  border: 1px solid rgba(76, 159, 102, 0.35);
  border-radius: inherit;
}

.stats {
  display: flex;
  gap: clamp(26px, 4vw, 54px);
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: grid;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-panel {
  position: relative;
  width: min(100%, 420px);
  margin-left: auto;
}

.profile-panel::before {
  position: absolute;
  inset: 10% -8% 18% 12%;
  z-index: -1;
  content: "";
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%;
  transform: rotate(8deg);
}

.profile-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: color-mix(in srgb, var(--surface) 82%, var(--accent));
  border-radius: 45% 45% 24px 24px;
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(5, 6, 6, 0.8);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  font-size: 0.73rem;
}

.profile-label strong {
  font-weight: 750;
  white-space: nowrap;
}

.profile-accent {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}

.profile-accent-one {
  top: 15%;
  left: 9%;
  width: 14px;
  height: 14px;
  background: var(--accent);
}

.profile-accent-two {
  top: 25%;
  right: 10%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
}

.profile-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 0 4px;
}

.profile-note p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #080908;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  transition: filter 180ms ease, transform 180ms ease;
}

.social-link[data-network="instagram"] {
  background: linear-gradient(135deg, #7847c8, #d64172 55%, #ef8d37);
}

.social-link[data-network="instagram"] .social-icon {
  filter: invert(1);
}

.social-link[data-network="tiktok"] {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.22);
}

.social-link[data-network="tiktok"] .social-icon {
  filter: invert(1);
}

.social-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.social-link:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.04);
}

.social-link:focus-visible,
.contact-social-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.featured-section {
  padding: 100px 0 116px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.83rem;
  font-weight: 730;
}

.featured-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  position: relative;
  min-width: 0;
}

.article-open-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.article-open-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.article-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  background: color-mix(in srgb, var(--surface) 84%, var(--accent));
  border-radius: var(--radius);
}

.article-image-wrap::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: inherit;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.article-card:hover .article-image {
  transform: scale(1.025);
}

.article-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: var(--accent);
  background: rgba(5, 6, 6, 0.88);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.article-info {
  padding: 15px 3px 0;
}

.article-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.article-brand {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.018em;
}

.article-price {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  white-space: nowrap;
}

.article-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.article-tag {
  padding: 5px 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 680;
}

.loading-message {
  grid-column: 1 / -1;
  margin: 60px 0;
  color: var(--muted);
  text-align: center;
}

.load-error {
  grid-column: 1 / -1;
  padding: 28px;
  color: #8f2f22;
  background: #fff2ed;
  border: 1px solid #efc5b9;
  border-radius: var(--radius);
}

/* Fiche article */
.modal-open {
  overflow: hidden;
}

.product-modal {
  width: min(1080px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.product-modal[open] {
  animation: modal-in 220ms both cubic-bezier(0.2, 0.75, 0.25, 1);
}

.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  animation: backdrop-in 180ms both ease-out;
}

.product-modal-shell {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 36px 100px rgba(8, 12, 10, 0.34);
}

.product-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(5, 6, 6, 0.88);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  font-size: 1.45rem;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.product-modal-close:hover {
  color: var(--accent-ink);
  background: var(--accent);
  transform: rotate(4deg);
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: min(680px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
}

.product-modal-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 84%, var(--accent));
  touch-action: pan-y;
  user-select: none;
}

.product-modal-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset -1px 0 0 color-mix(in srgb, var(--accent) 14%, transparent);
}

.product-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}

.product-gallery-slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
}

.product-gallery-slide > button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.product-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(5, 6, 6, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  font-size: 1.6rem;
  transform: translateY(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
}

.product-gallery-arrow:hover {
  background: rgba(5, 6, 6, 0.92);
  transform: translateY(-50%) scale(1.04);
}

.product-gallery-prev {
  left: 18px;
}

.product-gallery-next {
  right: 18px;
}

.product-gallery-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: rgba(5, 6, 6, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 0.62rem;
  font-weight: 760;
}

.product-gallery-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.product-gallery-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}

.product-gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.52);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: width 160ms ease, background-color 160ms ease;
}

.product-gallery-dots button.active {
  width: 22px;
  background: #fff;
}

.product-modal-badge {
  z-index: 3;
  top: 22px;
  left: 22px;
}

.product-modal-content {
  align-self: stretch;
  padding: clamp(58px, 6vw, 88px) clamp(36px, 5vw, 68px) 48px;
  overflow-y: auto;
}

.product-modal-brand {
  margin-bottom: 16px;
}

.product-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.product-modal-heading h2 {
  max-width: 330px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.product-modal-heading p {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  white-space: nowrap;
}

.product-modal-description {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-color-selector {
  margin-top: 28px;
  padding: 17px;
  background: color-mix(in srgb, var(--ink) 3%, var(--paper));
  border: 1px solid var(--border);
  border-radius: 15px;
}

.product-color-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 0.67rem;
  font-weight: 720;
}

.product-color-label span {
  color: var(--muted);
}

.product-color-label strong {
  color: var(--ink);
}

.product-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-color-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 11px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 740;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.product-color-option:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  transform: translateY(-1px);
}

.product-color-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}

.product-color-swatch {
  width: 27px;
  height: 27px;
  background: var(--swatch-color);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 24%, transparent);
}

.product-modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.product-modal-details > div {
  padding: 15px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-modal-details dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-modal-details dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 760;
}

.product-contact-toggle {
  width: 100%;
}

.contact-choices {
  margin-top: 20px;
  padding: 18px;
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 16px;
  animation: reveal-up 220ms both ease-out;
}

.contact-choices > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.contact-social-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 6px 11px 6px 7px;
  color: #fff;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 780;
  transition: transform 160ms ease, filter 160ms ease;
}

.contact-social-button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.contact-social-instagram {
  background: linear-gradient(135deg, #7847c8, #d64172 55%, #ef8d37);
}

.contact-social-tiktok {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social-symbol {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 0.61rem;
  font-weight: 850;
}

.contact-social-symbol .social-icon {
  width: 18px;
  height: 18px;
}

.contact-social-instagram .social-icon {
  filter: invert(1);
}

.contact-social-tiktok .social-icon {
  filter: invert(1);
}

.contact-social-arrow {
  font-size: 0.85rem;
}

/* Visionneuse plein écran */
.zoom-open {
  overflow: hidden;
}

.product-zoom {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: rgba(3, 4, 4, 0.98);
  border: 0;
}

.product-zoom::backdrop {
  background: rgba(0, 0, 0, 0.96);
}

.product-zoom-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-zoom-topbar {
  position: absolute;
  inset: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) auto max(14px, env(safe-area-inset-left));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  font-size: 0.66rem;
  font-weight: 750;
}

.product-zoom-topbar > span,
.product-zoom-actions {
  min-height: 44px;
  background: rgba(13, 15, 14, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.product-zoom-topbar > span {
  display: inline-flex;
  padding: 0 16px;
  align-items: center;
}

.product-zoom-actions {
  display: flex;
  padding: 3px;
}

.product-zoom-actions button {
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
}

.product-zoom-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.product-zoom-actions [data-zoom-reset] {
  min-width: 62px;
  font-size: 0.62rem;
  font-weight: 760;
}

.product-zoom-actions [data-zoom-close] {
  margin-left: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.product-zoom-viewport {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}

.product-zoom-viewport.is-zoomed {
  cursor: grab;
}

.product-zoom-viewport.is-zoomed:active {
  cursor: grabbing;
}

.product-zoom-viewport img {
  width: 100%;
  height: 100%;
  padding: clamp(70px, 8vw, 110px);
  object-fit: contain;
  pointer-events: none;
  transform-origin: center;
  transition: transform 80ms linear;
  will-change: transform;
}

.product-zoom-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(13, 15, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.product-zoom-prev {
  left: max(16px, env(safe-area-inset-left));
}

.product-zoom-next {
  right: max(16px, env(safe-area-inset-right));
}

.product-zoom-help {
  position: absolute;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  text-align: center;
  pointer-events: none;
}

.product-modal [hidden],
.product-zoom [hidden] {
  display: none;
}

@keyframes star-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) rotate(0.8deg);
  }
}

@keyframes star-twinkle {
  from { opacity: 0.48; }
  to { opacity: 0.78; }
}

@keyframes galaxy-breathe {
  from {
    opacity: 0.62;
    transform: scale(1);
  }
  to {
    opacity: 0.9;
    transform: scale(1.045);
  }
}

@keyframes milky-way-shift {
  from {
    opacity: 0.66;
    transform: rotate(-17deg) translate3d(-1.5%, -1%, 0) scale(1.02);
  }
  to {
    opacity: 0.88;
    transform: rotate(-15deg) translate3d(1.5%, 1%, 0) scale(1.08);
  }
}

@keyframes galaxy-core-pulse {
  from {
    opacity: 0.44;
    transform: rotate(-17deg) scale(0.94);
  }
  to {
    opacity: 0.72;
    transform: rotate(-15deg) scale(1.08);
  }
}

@keyframes shooting-star-flight {
  0%,
  66% {
    opacity: 0;
    transform: translate3d(-14vw, -12vh, 0) rotate(27deg) scaleX(0.35);
  }
  68% {
    opacity: 1;
  }
  78% {
    opacity: 0.92;
  }
  84%,
  100% {
    opacity: 0;
    transform: translate3d(118vw, 58vh, 0) rotate(27deg) scaleX(1);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

/* Catalogue */
.catalogue-hero {
  max-width: 900px;
  padding: 72px 2% 70px;
}

.back-link {
  margin-bottom: 48px;
  color: var(--muted);
  border-bottom: 0;
}

.catalogue-hero h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.catalogue-hero > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 70px);
  padding: 54px 0 110px;
  border-top: 1px solid var(--border);
}

.filters-panel {
  align-self: start;
  padding: 24px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.filters-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.filters-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.filter-kicker {
  margin-bottom: 2px;
}

.reset-button {
  padding: 6px 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 700;
}

.reset-button:hover {
  color: var(--accent-dark);
}

.filter-group {
  margin-top: 18px;
}

.filter-group label {
  display: block;
  margin: 0 0 7px;
  font-size: 0.7rem;
  font-weight: 760;
}

.filter-group select,
.filter-group input,
.sort-control select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  font-size: 0.75rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.filter-group select:focus,
.filter-group input:focus,
.sort-control select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap span {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--muted);
  transform: translateY(-50%);
}

.filter-group .search-input-wrap input {
  padding-right: 12px;
  padding-left: 34px;
}

.filter-summary {
  display: flex;
  gap: 11px;
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
}

.filter-summary-icon {
  color: var(--accent);
  font-size: 0.8rem;
}

.filter-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

.filter-summary strong {
  color: var(--ink);
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  margin-bottom: 19px;
}

.results-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.results-count strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
}

.sort-control select {
  width: auto;
  min-width: 160px;
  min-height: 39px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.active-filters:empty {
  display: none;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.active-filter button {
  display: grid;
  width: 15px;
  height: 15px;
  padding: 0;
  place-items: center;
  color: inherit;
  background: none;
  border: 0;
  font-size: 0.75rem;
  line-height: 1;
}

.catalogue-results .articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 18px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.pagination-button {
  display: grid;
  min-width: 41px;
  height: 41px;
  padding: 0 9px;
  place-items: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 760;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.pagination-button:hover:not(:disabled),
.pagination-button.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pagination-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.pagination-arrow {
  margin: 0 4px;
  color: var(--ink);
  background: transparent;
}

.pagination-ellipsis {
  width: 24px;
  color: var(--muted);
  text-align: center;
}

.catalogue-results .article-name {
  font-size: 0.9rem;
}

.catalogue-results .article-description {
  display: none;
}

.empty-state {
  padding: 84px 24px;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state > span {
  display: block;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
}

.empty-state h2 {
  margin: 18px 0 7px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.empty-state p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state .button {
  min-height: 44px;
  font-size: 0.78rem;
}

.reveal {
  animation: reveal-up 700ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-delay {
  animation-delay: 120ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
    padding-right: 2%;
    padding-left: 2%;
  }

  .catalogue-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
  }

  .catalogue-results .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-shell {
    width: min(100% - 28px, 720px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 78px;
  }

  .brand-name,
  .button-ghost {
    display: none;
  }

  .nav-links {
    justify-self: end;
    gap: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 72px 0 90px;
  }

  .hero-copy h1 {
    max-width: 690px;
    font-size: clamp(3.5rem, 12vw, 5.7rem);
  }

  .profile-panel {
    width: min(88%, 440px);
    margin: 0 auto;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid .article-card:last-child {
    display: none;
  }

  .catalogue-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .filters-heading,
  .filter-search,
  .filter-summary {
    grid-column: 1 / -1;
  }

  .filter-summary {
    display: none;
  }

  .catalogue-results .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-modal {
    width: min(620px, calc(100% - 20px));
    max-height: calc(100dvh - 20px);
  }

  .product-modal-shell {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }

  .product-modal-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
  }

  .product-modal-media {
    min-height: 0;
    aspect-ratio: 4 / 4.2;
  }

  .product-modal-content {
    padding: 46px 38px 38px;
    overflow: visible;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 22px, 500px);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    gap: 17px;
  }

  .nav-link {
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 16vw, 4.55rem);
  }

  .hero-intro {
    margin-top: 24px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats {
    gap: 22px;
    justify-content: space-between;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    max-width: 70px;
    line-height: 1.3;
  }

  .profile-panel {
    width: 95%;
  }

  .profile-panel::before {
    display: none;
  }

  .profile-note {
    align-items: flex-start;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .featured-section {
    padding: 76px 0 86px;
  }

  .featured-grid,
  .catalogue-results .articles-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid .article-card:last-child {
    display: block;
  }

  .article-image-wrap {
    aspect-ratio: 4 / 4.4;
  }

  .catalogue-hero {
    padding: 52px 0 56px;
  }

  .back-link {
    margin-bottom: 36px;
  }

  .catalogue-hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .catalogue-layout {
    padding: 36px 0 86px;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }

  .filters-heading,
  .filter-search,
  .filter-summary {
    grid-column: auto;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-control {
    width: 100%;
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
    min-width: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .product-modal {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
  }

  .product-modal-shell {
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  .product-modal-close {
    top: 12px;
    right: 12px;
  }

  .product-modal-media {
    aspect-ratio: 4 / 3.8;
  }

  .product-gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .product-gallery-prev {
    left: 10px;
  }

  .product-gallery-next {
    right: 10px;
  }

  .product-gallery-status {
    right: 12px;
    bottom: 12px;
  }

  .product-gallery-zoom-hint {
    display: none;
  }

  .product-gallery-dots {
    bottom: 19px;
  }

  .product-modal-content {
    padding: 38px 22px 28px;
  }

  .product-modal-heading {
    gap: 12px;
  }

  .product-modal-heading h2 {
    font-size: 2.25rem;
  }

  .product-modal-details {
    margin: 26px 0;
  }

  .contact-socials {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 4px;
    margin-top: 38px;
  }

  .pagination-button {
    min-width: 37px;
    height: 37px;
  }

  .pagination-arrow {
    margin: 0;
  }

  .product-zoom-topbar {
    align-items: flex-start;
  }

  .product-zoom-topbar > span {
    min-height: 40px;
    padding: 0 12px;
  }

  .product-zoom-actions {
    min-height: 40px;
  }

  .product-zoom-actions button {
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
  }

  .product-zoom-actions [data-zoom-reset] {
    min-width: 52px;
  }

  .product-zoom-viewport img {
    padding: 68px 12px 62px;
  }

  .product-zoom-arrow {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    transform: none;
  }

  .product-zoom-help {
    display: none;
  }
}

@media (max-width: 380px) {
  .product-zoom-topbar > span {
    display: none;
  }

  .product-zoom-topbar {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
