/* =========================================================
   STABILNI — main stylesheet
   Midnight navy / logo cream / signal orange (the flag in img/logo.png)
   ========================================================= */

:root {
  --bg: #0c131c;
  --bg-soft: #111a25;
  --bg-elevated: #172231;
  --cream: #f2ede4;          /* the logo's wordmark */
  --cream-dim: #b9bcc2;
  --text-dim: #7d8794;
  --accent: #e0661c;         /* the logo's flag */
  --accent-light: #f39a5c;
  --accent-deep: #b44c0f;
  --accent-soft: rgba(224, 102, 28, 0.12);
  --accent-gradient: linear-gradient(
    120deg,
    var(--accent-light) 0%,
    var(--accent) 55%,
    var(--accent-deep) 100%
  );
  --line: rgba(242, 237, 228, 0.12);
  --line-strong: rgba(242, 237, 228, 0.24);
  --shadow-accent: 0 12px 30px rgba(224, 102, 28, 0.28);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-accent: "Instrument Serif", serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
::selection {
  background: var(--accent);
  color: var(--cream);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border: 2px solid var(--bg);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-deep);
}

/* ---------- utility ---------- */
/* the small label above each heading, flagged with the logo's triangle */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.section-tag::before {
  content: "";
  width: 9px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(224, 102, 28, 0.38);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--cream);
  background: rgba(242, 237, 228, 0.03);
}
.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(242, 237, 228, 0.08);
  transform: translateY(-3px);
}

/* ---------- reveal animation engine ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) rotate(2deg);
  filter: blur(6px);
}
.hero.loaded .reveal-word {
  animation: wordRise 1s var(--ease) forwards;
}
.hero__title .reveal-word {
  margin-right: 0.24em;
}
@keyframes wordRise {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition:
    opacity 0.8s var(--ease),
    visibility 0.8s var(--ease);
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.preloader__logo {
  display: block;
  height: clamp(30px, 5vw, 40px);
  width: auto;
}

/* =========================================================
   INTRO — full-screen logo that shrinks into the navbar
   on the visitor's first scroll / swipe / key press
   ========================================================= */
html.intro-lock,
body.intro-lock {
  overflow: hidden;
  height: 100%;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  background:
    radial-gradient(ellipse 70% 45% at 50% 115%, rgba(224, 102, 28, 0.22), transparent 70%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 46px;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.9s var(--ease),
    visibility 0.9s var(--ease);
}
.intro.intro--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro .brand-logo {
  transform-origin: center center;
  transition: transform 1.15s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}

.brand-logo--intro .brand-logo__img {
  height: clamp(74px, 19vw, 196px);
}

.intro__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}
.intro__hint svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  animation: introHintBounce 1.8s ease-in-out infinite;
}
@keyframes introHintBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}
.intro--leaving .intro__hint {
  opacity: 0;
}

/* the real navbar logo stays invisible (but laid out, so it can be
   measured) until the intro has handed off to it */
.intro-lock .navbar .brand-logo {
  opacity: 0;
}
.navbar .brand-logo {
  transition: opacity 0.5s ease;
}

/* =========================================================
   NAVBAR — shrink + blur on scroll
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 38px 5vw 18px;
  transition:
    padding 0.5s var(--ease),
    background 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease),
    border-color 0.5s var(--ease),
    gap 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 22px 5vw 12px;
  gap: 8px;
  background: rgba(12, 19, 28, 0.78);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

/* ---------- brand logo (navbar / mobile menu / footer) ---------- */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

.brand-logo__img {
  display: block;
  height: clamp(42px, 5.4vw, 60px);
  width: auto;
  object-fit: contain;
  transition: height 0.5s var(--ease);
}
/* full size on landing, shrinks with the navbar once the visitor scrolls */
.navbar.scrolled .brand-logo__img {
  height: clamp(30px, 3.6vw, 38px);
}
.brand-logo--lg .brand-logo__img {
  height: clamp(56px, 12vw, 84px);
}

.navbar__links {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 19, 28, 0.4);
}
.navbar__links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  padding: 8px 18px;
  border-radius: 999px;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}
.navbar__links a:hover {
  color: var(--cream);
  background: var(--accent-soft);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
}
.navbar__toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(12, 19, 28, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
  text-align: center;
  transition: color 0.3s ease;
}
.mobile-menu a:hover {
  color: var(--accent-light);
}

/* =========================================================
   HERO — centred banner copy over a low orange horizon
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* the visible height on phones, under the browser bars */
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(224, 102, 28, 0.3), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(80, 120, 170, 0.12), transparent 70%),
    var(--bg);
}

/* the banner videos fill the hero at any aspect ratio, cropping rather than
   letterboxing. Two players are stacked and crossfade between clips; each
   clip's crop focus (where its chandelier sits) is set from js/main.js */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero__video.is-active {
  opacity: 1;
}

/* a fine screen-mesh over the video: 2px cells of 1px lines. It is drawn on
   a canvas in js/main.js, in whole device pixels — a CSS gradient tile gets
   resampled on fractional-scale screens (125%/150% desktops, 2.75x phones)
   and the lines come out uneven, doubled up in places. The lines are drawn
   solid; the opacity here sets how dark they read. */
.hero__vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  pointer-events: none;
}

.hero__content .btn {
  pointer-events: auto;
}

/* the video has no scrim, so the copy carries its own soft shadow to stay
   legible over the bright window in the footage */
.hero__content,
.navbar:not(.scrolled) .navbar__links {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 18px rgba(0, 0, 0, 0.55);
}
/* the thin subtitle sits right over the brightest crystals in the footage */
.hero__content .hero__subtitle {
  color: var(--cream);
  font-weight: 500;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.7),
    0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero__content .hero__eyebrow {
  background: rgba(12, 19, 28, 0.6);
  backdrop-filter: blur(6px);
}
.hero__content .btn--ghost {
  background: rgba(12, 19, 28, 0.45);
  backdrop-filter: blur(6px);
}
.navbar:not(.scrolled) .navbar__links {
  background: rgba(12, 19, 28, 0.55);
  backdrop-filter: blur(6px);
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 8px 16px;
  border: 1px solid rgba(224, 102, 28, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  margin: 0 0 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--cream);
}
.hero__title .reveal-accent {
  font-family: var(--font-accent);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent-light);
}

.hero__subtitle {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 38px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  z-index: 2;
}
.hero__scroll-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% {
    top: 6px;
    opacity: 1;
  }
  70% {
    top: 18px;
    opacity: 0.2;
  }
  100% {
    top: 6px;
    opacity: 0;
  }
}

/* =========================================================
   ABOUT — staggered reveal + counters + line sketch
   ========================================================= */
.about {
  background: var(--bg-soft);
  padding: 140px 5vw;
  position: relative;
}

.about__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.about__desc {
  color: var(--cream-dim);
  line-height: 1.85;
  font-size: 1rem;
  margin: 0 0 20px;
  max-width: 580px;
  transition-delay: 0.08s;
}
.about__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--accent-light);
  margin: 12px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  max-width: 580px;
  transition-delay: 0.12s;
}

.stats {
  display: flex;
  gap: 16px;
  margin-top: 46px;
  flex-wrap: wrap;
  transition-delay: 0.18s;
}
.stats__item {
  min-width: 150px;
  flex: 1 1 150px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 237, 228, 0.025);
}
.stats__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.stats__plus {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}
.stats__item p {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about__visual {
  display: flex;
  justify-content: center;
}
.about__frame {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  border-radius: 180px 180px var(--radius) var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(224, 102, 28, 0.16), transparent 65%),
    var(--bg-elevated);
  overflow: hidden;
}
.about__frame-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 90px 10px rgba(224, 102, 28, 0.1) inset;
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.about__sketch {
  width: 62%;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.about__frame.animate .about__sketch {
  animation: drawSketch 2.6s var(--ease) forwards 0.3s;
}
.about__sketch circle {
  fill: var(--bg-elevated);
}
@keyframes drawSketch {
  to {
    stroke-dashoffset: 0;
  }
}

/* =========================================================
   COLLECTION / CAROUSEL
   ========================================================= */
.collection {
  background: var(--bg);
  padding: 140px 0;
}

.collection__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.collection__desc {
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.carousel {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 70px;
  display: flex;
  align-items: center;
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
}

/* the 26px gap is mirrored in js/main.js, which slides by card + gap */
.carousel__track {
  display: flex;
  gap: 26px;
  will-change: transform;
  transition: transform 0.7s var(--ease);
}

.slide {
  flex: 0 0 calc(33.333% - 18px);
}
@media (max-width: 980px) {
  .slide {
    flex-basis: calc(50% - 13px);
  }
}
@media (max-width: 640px) {
  .slide {
    flex-basis: 82%;
  }
}

.slide__img {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  /* near-black, so the letterboxing around a contained photo reads as part
     of the shot rather than as a frame around it — every product photo in
     img/collection/ is shot on black */
  background: #050505;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.55s var(--ease),
    border-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}
/* the photo fills the card; contain rather than cover, because these are
   product shots at very different aspect ratios (a 0.52 portrait cascade
   next to a 1.25 landscape crown) and cropping them square lops the arms
   off. They are all shot on black, so the letterboxing reads as the card. */
.slide__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cover img {
  object-fit: cover;
}

/* a card with no photo yet gets a placeholder glyph */
.slide__img--empty {
  background:
    linear-gradient(160deg, rgba(224, 102, 28, 0.14), rgba(224, 102, 28, 0.02) 60%),
    var(--bg-elevated);
}
/* placeholder chandelier glyph — add .slide__img--empty to a card with no photo yet */
.slide__img--empty::before {
  content: "";
  width: 46%;
  height: 46%;
  background: var(--accent);
  opacity: 0.2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'%3E%3Cpath d='M50 2v14M35 30c0-8 30-8 30 0s-30 8-30 0Zm-8 4c-10 16-8 40 4 52M73 34c10 16 8 40-4 52M42 34c-6 16-4 34 6 44M58 34c6 16 4 34-6 44M50 34v46M50 80l-8 16 8 20 8-20Z' fill='none' stroke='black' stroke-width='3'/%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 100 130'%3E%3Cpath d='M50 2v14M35 30c0-8 30-8 30 0s-30 8-30 0Zm-8 4c-10 16-8 40 4 52M73 34c10 16 8 40-4 52M42 34c-6 16-4 34 6 44M58 34c6 16 4 34-6 44M50 34v46M50 80l-8 16 8 20 8-20Z' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.slide__img--empty::after {
  content: "Image coming soon";
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.slide:hover .slide__img {
  transform: translateY(-8px);
  border-color: rgba(224, 102, 28, 0.6);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(224, 102, 28, 0.25);
}

.slide__info {
  padding-top: 20px;
  text-align: left;
}
.slide__info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--cream);
}
.slide__info p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.carousel__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.carousel__arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-50%) scale(1.06);
}
.carousel__arrow--prev {
  left: 0;
}
.carousel__arrow--next {
  right: 0;
}

.carousel__footer {
  max-width: 1300px;
  margin: 44px auto 0;
  padding: 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.carousel__dots {
  display: flex;
  gap: 8px;
}
.carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
  transition:
    background 0.3s ease,
    width 0.4s var(--ease);
}
.carousel__dots button.active {
  width: 26px;
  background: var(--accent);
}
.carousel__progress {
  width: 220px;
  max-width: 60vw;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.carousel__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
}
.carousel__progress span.animate {
  animation: progressGrow 6s linear;
}
@keyframes progressGrow {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* =========================================================
   CONTACT — map + social pop-in
   ========================================================= */
.contact {
  background: var(--bg-soft);
  padding: 140px 5vw;
}
.contact__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.contact__map {
  position: relative;
  aspect-ratio: 4/3.4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(0.85) contrast(1.05);
  transition: filter 0.6s ease;
}
.contact__map:hover {
  filter: grayscale(0);
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact__map-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(242, 237, 228, 0.08) inset;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 6px 0 30px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.contact__email:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition:
    transform 0.4s var(--ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}
.socials.in-view .social {
  animation: popIn 0.55s var(--ease) forwards;
}
.socials.in-view .social:nth-child(1) {
  animation-delay: 0.05s;
}
.socials.in-view .social:nth-child(2) {
  animation-delay: 0.12s;
}
.socials.in-view .social:nth-child(3) {
  animation-delay: 0.19s;
}
.socials.in-view .social:nth-child(4) {
  animation-delay: 0.26s;
}
.socials.in-view .social:nth-child(5) {
  animation-delay: 0.33s;
}
.socials.in-view .social:nth-child(6) {
  animation-delay: 0.4s;
}
.socials.in-view .social:nth-child(7) {
  animation-delay: 0.47s;
}
@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.social svg {
  width: 18px;
  height: 18px;
  fill: var(--cream-dim);
  transition: fill 0.3s ease;
}
.social:hover {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.social:hover svg {
  fill: #fff;
}

.social::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cream);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.social:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #080d13;
  padding: 60px 5vw 34px;
  text-align: center;
  position: relative;
}
.footer__divider {
  height: 1px;
  max-width: 1240px;
  margin: 0 auto 50px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.footer .brand-logo {
  margin-bottom: 30px;
}

.footer__links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.footer__links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color 0.3s ease;
}
.footer__links a:hover {
  color: var(--accent-light);
}

.footer__copy {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 60;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.3s ease;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--accent-light);
  transform: translateY(-4px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .navbar__links {
    display: none;
  }
  .navbar__toggle {
    display: flex;
  }
  .navbar .brand-logo__img {
    height: clamp(36px, 6vw, 48px);
  }
  .navbar.scrolled .brand-logo__img {
    height: clamp(26px, 4.2vw, 34px);
  }

  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .about__inner {
    gap: 56px;
  }
  /* the sketch is decoration: on one column it follows the copy instead of
     pushing it a full screen down */
  .about__frame {
    width: min(240px, 60vw);
  }
}

@media (max-width: 640px) {
  /* swiping and the dots drive the carousel here; the arrows only covered
     the edges of the photos */
  .carousel__arrow {
    display: none;
  }
  .carousel__footer {
    margin-top: 32px;
  }
}

@media (max-width: 560px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__eyebrow {
    letter-spacing: 0.2em;
  }
  .hero__subtitle {
    font-size: 0.95rem;
  }
  .carousel {
    padding: 0 16px;
  }
  .carousel__footer {
    padding: 0 16px;
  }
  .about,
  .contact {
    padding: 80px 20px;
  }
  .collection {
    padding: 80px 0;
  }
  .collection__head {
    margin-bottom: 40px;
    padding: 0 20px;
  }
  .contact__inner {
    gap: 44px;
  }
  /* three compact tiles in a row rather than three full-width cards */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 36px;
  }
  .stats__item {
    min-width: 0;
    padding: 14px 12px;
    border-radius: 10px;
  }
  .stats__num {
    font-size: 1.6rem;
  }
  .stats__plus {
    font-size: 1.1rem;
  }
  .stats__item p {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
  .about__tagline {
    font-size: 1.35rem;
  }
  .footer__links {
    gap: 14px 24px;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* phones held sideways: the hero is only ~390px tall, so the navbar and the
   copy tighten up to fit inside it instead of running off the bottom */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding-top: 64px;
  }
  .navbar {
    padding: 14px 5vw 10px;
    gap: 6px;
  }
  .navbar .brand-logo__img {
    height: 30px;
  }
  .hero__eyebrow {
    margin-bottom: 12px;
    padding: 6px 12px;
  }
  .hero__title {
    font-size: clamp(1.8rem, 5.2vw, 2.6rem);
    margin-bottom: 10px;
  }
  .hero__subtitle {
    font-size: 0.85rem;
    margin-bottom: 18px;
  }
  .hero__actions {
    flex-direction: row;
    margin-bottom: 0;
  }
  .hero__content .btn {
    padding: 11px 22px;
  }
  .hero__scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
