:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #111111;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.15);
  --accent: #ffffff;
  --container: 100%;
  --content-max: 1400px;
  --font-body: "Inter", sans-serif;
  --font-display: "Playfair Display", serif;
  --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-med: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --section-padding: 8rem 3rem;
  --header-padding: 1.5rem 3rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* Page transition system */
main, footer {
  opacity: 0;
  animation: pageEnter 0.6s ease forwards;
  animation-delay: 0.05s;
}

body.page-leaving main,
body.page-leaving footer {
  animation: pageLeave 0.35s ease forwards;
}

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

@keyframes pageLeave {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-padding);
  background: transparent;
  /* mix-blend-mode removed — it breaks iOS fixed positioning on fast scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: padding 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border 0.3s ease;
}

.site-header.is-scrolled {
  padding: 1rem 3rem;
  background: rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  mix-blend-mode: normal;
}

body.nav-open .site-header {
  background: var(--bg) !important;
  backdrop-filter: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

img.brand-mark {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(1);
  transform-origin: center center;
  transform: rotate(0deg);
  transition: transform 120s steps(600);
}

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

.brand-copy {
  display: grid;
  gap: 0.2rem;
  position: relative;
}

.brand-copy::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.brand:hover .brand-copy::after {
  width: 100%;
}

.brand-copy strong {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.brand-copy small {
  color: #ccc;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1000;
  color: #fff;
}

.hamburger {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 1px;
  background: currentColor;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-open .hamburger {
  background: transparent;
}

.nav-open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.role-switch {
  display: inline-flex;
  position: relative;
  background: rgba(255, 255, 255, 0);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 0.25rem;
  margin-left: 1rem;
}

.role-slider {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  background: #fff;
  border-radius: 20px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.87, 0, 0.13, 1), width 0.4s cubic-bezier(0.87, 0, 0.13, 1);
}

.role-switch a {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: var(--muted);
  transition: color 0.4s ease;
}

.role-switch a.role-active {
  color: #000;
  pointer-events: none;
}

.role-switch a::after {
  display: none !important;
}

.role-switch a:hover {
  color: #fff;
}

.social-icon {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: #ffffff;
}

/* SECTIONS */
.section {
  width: 100%;
  position: relative;
}

/* HERO */
.hero {
  position: relative;
  /* Use JS-driven --vh to get the real inner height on iOS Safari */
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03); /* Crop any baked-in black letterboxing in the video */
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.eyebrow {
  display: block;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -0.02em;
}

.hero-text {
  margin: 3rem auto 0;
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
}

.hero-content .btn-primary {
  margin-top: 3rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 40px;
  background-color: rgba(255,255,255,0.3);
}

/* EDITORIAL SPLIT */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.editorial-split.reverse {
  direction: rtl;
}
.editorial-split.reverse > * {
  direction: ltr;
}

.editorial-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #000;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02); /* Crop any baked-in black borders on images */
  transition: transform var(--transition-slow);
}

.editorial-image:hover img {
  transform: scale(1.07);
}

.editorial-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
  background-color: var(--bg);
}

.editorial-text h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 2rem;
}

.editorial-text p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2rem;
}

.stat-group {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item span {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  display: block;
}

.stat-item p {
  font-size: 0.85rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* COLLECTION */
.collection {
  padding: var(--section-padding);
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header-center h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-chip {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.services-grid .service-card {
  flex: 1 1 350px;
  max-width: 450px;
}

.service-card, .inventory-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover, .inventory-card:hover {
  background: #141414;
}

.service-image, .inventory-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  margin-bottom: 2.5rem;
  position: relative;
}

.inventory-image {
  aspect-ratio: 1 / 1.1;
}

.service-image img, .inventory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: auto;
  opacity: 0.08;
  filter: grayscale(100%) brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

.service-card-content {
  position: relative;
  overflow: hidden;
  padding: 0 2rem 3rem 2rem;
}

.service-card-content h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.service-card-content p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.service-card-content .btn-outline {
  position: relative;
  z-index: 1;
  width: 100%;
}

.inventory-card:hover .inventory-image img {
  transform: scale(1.05);
}

.inventory-brand {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.inventory-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.inventory-specs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.inventory-specs span {
  display: inline-block;
  padding: 0 0.5rem;
}

.inventory-specs span:not(:last-child) {
  border-right: 1px solid var(--line);
}

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform var(--transition-med), border-color 0.3s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--text);
}

.inventory-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* INQUIRE */
.inquire {
  background: var(--bg-soft);
  padding: var(--section-padding);
  text-align: center;
  border-top: 1px solid var(--line);
}

.inquire-container {
  max-width: 1000px;
  margin: 0 auto;
}

.inquire h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 2rem;
}

.inquire p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.inquire-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 5rem;
  text-align: left;
}

.selected-watch-panel, .direct-email-form {
  padding: 3rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.direct-email-form {
  gap: 1.5rem;
  background: var(--bg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-bottom-color: var(--text);
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: #444;
}

/* FOOTER */
.site-footer {
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 120px;
  width: auto;
  opacity: 0.15;
  pointer-events: none;
  filter: grayscale(100%) brightness(0) invert(1);
  z-index: 0;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-copyright {
  text-align: right;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.text-mask {
  overflow: hidden;
  display: block;
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
}

span.text-mask {
  display: inline-flex;
}

.text-mask-inner {
  display: inherit;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
  will-change: transform, opacity;
}

.reveal.is-visible .text-mask-inner {
  transform: translateY(0);
  opacity: 1;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE — TABLET */
@media (max-width: 1100px) {
  :root {
    --header-padding: 1.25rem 2rem;
  }

  .site-header.is-scrolled {
    padding: 0.85rem 2rem;
  }

  img.brand-mark {
    height: 60px;
  }

  .brand-copy strong { font-size: 0.9rem; }
  .brand-copy small { font-size: 0.6rem; }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s;
    text-align: center;
    z-index: 999;
  }

  .nav-open .nav-links {
    visibility: visible;
    opacity: 1;
  }

  .nav-links > a, .nav-links .role-switch {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links > a {
    width: 100%;
    display: block;
  }

  .nav-open .nav-links > a,
  .nav-open .nav-links .role-switch {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-open .nav-links > a:nth-child(1) { transition-delay: 0.08s; }
  .nav-open .nav-links > a:nth-child(2) { transition-delay: 0.14s; }
  .nav-open .nav-links > a:nth-child(3) { transition-delay: 0.20s; }
  .nav-open .nav-links .role-switch   { transition-delay: 0.26s; }

  .role-switch {
    margin-left: 0;
    margin-top: 2rem;
    display: inline-flex;
  }

  .role-switch a.role-active {
    color: #000;
  }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 900px) {
  :root {
    --section-padding: 4rem 1.5rem;
    --header-padding: 1.25rem 1.5rem;
  }

  .site-header.is-scrolled {
    padding: 0.75rem 1.5rem;
  }

  img.brand-mark {
    height: 50px;
  }

  .brand-copy strong { font-size: 0.8rem; }
  .brand-copy small { font-size: 0.55rem; }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s;
    text-align: center;
    z-index: 999;
  }

  .nav-open .nav-links {
    visibility: visible;
    opacity: 1;
  }

  .nav-links > a, .nav-links .role-switch {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links > a {
    width: 100%;
    display: block;
  }

  .nav-open .nav-links > a,
  .nav-open .nav-links .role-switch {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-open .nav-links > a:nth-child(1) { transition-delay: 0.08s; }
  .nav-open .nav-links > a:nth-child(2) { transition-delay: 0.14s; }
  .nav-open .nav-links > a:nth-child(3) { transition-delay: 0.20s; }
  .nav-open .nav-links .role-switch   { transition-delay: 0.26s; }

  .role-switch {
    margin-left: 0;
    margin-top: 2rem;
    display: inline-flex; /* Ensure it stays inline-flex on mobile */
  }

  .role-switch a.role-active {
    color: #000;
  }

  .editorial-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .editorial-split.reverse {
    direction: ltr;
  }

  .editorial-image {
    height: 50vh;
    min-height: 280px;
  }

  .editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .editorial-text {
    padding: 3.5rem 1.5rem;
  }

  .editorial-text h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .section-header-center {
    margin-bottom: 2.5rem;
  }

  .section-header-center h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .inventory-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .service-card, .inventory-card {
    padding-bottom: 2rem;
  }

  .inventory-grid, .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .inquire-layout {
    grid-template-columns: 1fr;
    margin-top: 3rem;
    gap: 2rem;
  }

  .selected-watch-panel, .direct-email-form {
    padding: 2rem 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    padding: 4rem 1.5rem;
  }

  .footer-right {
    align-items: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-watermark {
    height: 120px;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-height: 750px) {
  .scroll-indicator { display: none; }
}
