/* ── Reset & Tokens ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

:root {
  --white:       #f4f2ee;
  --white-dim:   rgba(244, 242, 238, 0.55);
  --white-faint: rgba(244, 242, 238, 0.18);
  --black:       #09090a;
  --accent:      #c8a84b;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --card-top:    rgba(30, 30, 30, 0.65);
  --card-bottom: rgba(20, 20, 20, 0.65);
}

html {
  scroll-behavior: smooth;
  background: #09090a;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  cursor: auto;
}

* { cursor: inherit; }
a, button, [role="button"], label, select { cursor: pointer !important; }
input, textarea { cursor: text !important; }

/* ── Custom Cursor ── */
.c-dot,
.trail,
.ripple {
  display: none !important;
}

.c-dot {
  position: fixed;
  width: 16px; height: 16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 35%,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.12),
    inset 0 -1px 2px rgba(0,0,0,0.1),
    0 4px 16px rgba(0,0,0,0.15);
  backdrop-filter: blur(2px) brightness(1.15);
  -webkit-backdrop-filter: blur(2px) brightness(1.15);
  mix-blend-mode: exclusion;
  transition: width .12s ease, height .12s ease, opacity .3s;
}
.c-dot.hovering {
  width: 24px; height: 24px;
  border-color: rgba(255,255,255,0.75);
  background: radial-gradient(circle at 40% 35%,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.06) 50%,
    transparent 100%);
  backdrop-filter: blur(3px) brightness(1.25);
  -webkit-backdrop-filter: blur(3px) brightness(1.25);
}

@keyframes trailFade {
  from { opacity: .5; transform: translate(-50%,-50%) scale(1); }
  to   { opacity: 0;  transform: translate(-50%,-50%) scale(.1); }
}
.trail {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  background: radial-gradient(circle at 35% 35%,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0.05) 60%,
    transparent 100%);
  border: 1px solid rgba(255,255,255,0.18);
  animation: trailFade .5s ease-out forwards;
}

/* ── Ripple ── */
@keyframes rip {
  from { width: 0; height: 0; opacity: .4; }
  to   { width: 200px; height: 200px; opacity: 0; }
}
.ripple {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(244,242,238,.4);
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 9998;
  animation: rip .8s ease-out forwards;
}

/* ── Grain Overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .032;
  pointer-events: none;
  z-index: 9990;
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 50%; top: 50svh;
  right: 40px;
  transform: translateY(-50%);
  width: 1px; height: 320px;
  z-index: 999;
  pointer-events: none;
}
.scroll-progress-top {
  position: absolute; top: 0; left: 0;
  width: 1px;
  height: calc(var(--progress, 0%) - 10px);
  background: var(--white-dim);
  transition: height .15s linear;
}
.scroll-progress-bottom {
  position: absolute; bottom: 0; left: 0;
  width: 1px;
  height: calc(100% - var(--progress, 0%) - 10px);
  background: rgba(244,242,238,0.18);
  transition: height .15s linear;
}
.scroll-progress-dot {
  position: absolute;
  top: var(--progress, 0%); left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 8px rgba(244,242,238,0.4);
  transition: top .15s linear;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(24px + env(safe-area-inset-top)) 48px 24px;
  transition: background .5s, padding .3s;
}
header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top);
  background: #09090a;
  pointer-events: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-logo > a:first-child {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 64px !important;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-top: 0 !important;
  transform: none !important;
}

.nav-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  opacity: .9;
}

.nav-wordmark-main {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .16em;
}

.nav-wordmark-sub {
  margin-top: 5px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .32em;
  color: rgba(244,242,238,.7);
}

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

.lang-switch {
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.5);
}
.lang-switch a { color: inherit; text-decoration: none; transition: color .3s; }
.lang-switch a:hover, .lang-switch a.active { color: var(--white); }
.lang-switch span { margin: 0 4px; opacity: .4; }

.mob-toggle { display: none; background: none; border: none; padding: 8px; }
.mob-toggle span { display: block; width: 22px; height: 1px; background: var(--white); margin: 5px 0; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ── */
footer {
  padding: 48px 64px;
  background: rgba(9,9,10,.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer .f-copy { font-size: 16px; color: rgba(244,242,238,0.7); letter-spacing: .05em; }
.f-links { display: flex; gap: 28px; }
.f-links a {
  font-family: var(--font-cond);
  font-size: 16px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(244,242,238,0.7);
  text-decoration: none;
  transition: color .3s;
}
.f-links a:hover { color: var(--white); }

/* ── Global Contact CTA ── */
.global-contact-cta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 64px;
  background: rgba(9,9,10,.82);
  border-top: 1px solid rgba(255,255,255,.08);
}
.global-contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px,3vw,44px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 10px;
}
.global-contact-copy p {
  max-width: 720px;
  color: var(--white-dim);
  font-size: 16px;
  line-height: 1.65;
}
.global-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.global-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s;
}
.global-contact-actions a:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45);
  color: var(--white);
}

/* ── Nav Close Button ── */
.nav-close {
  display: none;
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px; line-height: 1;
  align-items: center; justify-content: center;
  padding: 8px;
  transition: color .2s;
  z-index: 10;
}
.nav-close:hover { color: var(--white); }

/* ── Touch Devices ── */
@media (hover: none), (pointer: coarse) {
  body, *, a, button, [role="button"], input, textarea, select { cursor: auto !important; }
  .c-dot, .trail, .ripple { display: none !important; }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  header { padding: calc(18px + env(safe-area-inset-top)) 20px 18px !important; }

  .nav-logo { gap: 10px; }

  .nav-logo img {
    height: 46px !important;
    margin-top: 0 !important;
    transform: none !important;
  }

  .nav-wordmark-main { font-size: 20px; }
  .nav-wordmark-sub { margin-top: 4px; font-size: 10px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    flex-direction: column;
    justify-content: center; align-items: center;
    background: #09090a;
    gap: 28px;
    z-index: 99998;
    overscroll-behavior: contain;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    font-family: var(--font-cond);
    font-size: 20px; font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color .3s;
  }
  .nav-links a:hover, .nav-links a.active { color: #fff; }

  .mob-toggle { display: block; z-index: 10001; }
  .nav-close   { display: flex; cursor: pointer !important; }

  .lang-switch { font-size: 12px; margin-right: 8px; }
  .scroll-progress { right: 10px; height: 200px; }

  footer { flex-direction: column; gap: 16px; padding: 38px 20px 34px; text-align: center; }
  footer .f-copy {
    order: 2; width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(244,242,238,.12);
    font-size: 12px; line-height: 1.5;
    letter-spacing: .03em; opacity: .72;
  }
  .f-links { width: 100%; justify-content: center; gap: 22px; flex-wrap: wrap; }
  .f-links a { font-size: 14px; letter-spacing: .14em; }
  .global-contact-cta {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 20px;
    text-align: center;
  }
  .global-contact-actions { justify-content: center; }
}

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

/* ── Desktop Nav ── */
@media (min-width: 901px) {
  .nav-links {
    display: flex !important;
    position: fixed;
    top: var(--nav-y, 60px);
    left: 50%; right: auto; bottom: auto;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    flex-direction: row; align-items: center;
    background: transparent;
    gap: 32px;
    z-index: 1001; padding: 0;
    overscroll-behavior: auto;
    pointer-events: auto;
  }
  .nav-links a {
    font-family: var(--font-cond);
    font-size: 13px; font-weight: 400;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color .3s;
  }
  .nav-links a:hover, .nav-links a.active { color: #fff; }
  .mob-toggle { display: none !important; }
}
