:root {
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.3);
  --bg: #0b0b0c;
  --pad: clamp(20px, 4.2vw, 80px);
  --rail: calc(var(--pad) + 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Intro count-up ---------- */
body.is-loading { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 100; background: #050506;
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease);
}
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro__logo { position: absolute; top: 32px; left: var(--pad); height: 32px; opacity: .9; }
.intro__count {
  font-size: clamp(110px, 26vw, 420px); font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; overflow: hidden;
  /* ~2mm gap around the digits where the line passes: a stroke in the background color, painted behind the fill */
  -webkit-text-stroke: 16px #050506;
  paint-order: stroke fill;
  padding: 0 12px;
}
.intro__center { position: relative; z-index: 1; display: grid; justify-items: center; }
.intro__line {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 0;
  height: 1px; background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.intro__line i { display: block; height: 100%; width: 0; background: #9b1b30; /* wine red */ }
.intro.is-done .intro__line { opacity: 0; transition: opacity .5s var(--ease); }
.intro__num { display: inline-block; transition: transform .9s var(--ease), opacity .6s var(--ease); }
.intro.is-done .intro__num { transform: translateY(-30%); opacity: 0; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: 0.12; mix-blend-mode: overlay;
  background-repeat: repeat; background-size: 220px 220px;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease);
}
body.scrolled .header { background: rgba(11, 11, 12, 0.6); backdrop-filter: blur(10px); padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 32px; width: auto; display: block; }
.header__right { display: flex; align-items: center; gap: 36px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.lang button { opacity: .6; transition: opacity .3s; letter-spacing: .04em; }
.lang button:hover, .lang button.is-active { opacity: 1; color: var(--white); }
.menu-btn { display: flex; align-items: center; gap: 12px; font-size: 16px; letter-spacing: 0.02em; }
.menu-btn__icon { display: grid; gap: 5px; width: 22px; }
.menu-btn__icon i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), width .5s var(--ease); }
.menu-btn__icon i:last-child { width: 70%; justify-self: end; }
.menu-btn:hover .menu-btn__icon i:last-child { width: 100%; }
body.menu-open .menu-btn__icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .menu-btn__icon i:last-child { width: 100%; transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Slider ---------- */
.slider { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.slides { position: absolute; inset: 0; transform-origin: 50% 40%; will-change: transform, opacity; }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 8s linear;
}
.slide.is-active .slide__media { transform: scale(1.0); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%),
              linear-gradient(to top, rgba(0,0,0,0.6), transparent 35%);
}

.frame-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 5; }
.frame-line--left { left: var(--rail); }
.frame-line--right { right: var(--rail); }

/* ---------- Center content ---------- */
.slide-content {
  position: absolute; z-index: 10; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 1400px);
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 14px; row-gap: 6px;
  padding-left: clamp(0px, 3vw, 60px);
}
.play {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--white); color: #000; display: grid; place-items: center;
}
.play svg { width: 24px; height: 24px; fill: currentColor; }
.play:hover { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255,255,255,0.15); }
.slide-label { font-size: 18px; font-weight: 600; }
.slide-title {
  grid-column: 1 / -1;
  font-size: clamp(52px, 9vw, 180px); line-height: 1; font-weight: 700; letter-spacing: -0.02em;
}
.slide-title .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.slide-title .word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.slide-title.is-in .word > span { transform: translateY(0); }
.slide-label, .play { transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .5s var(--ease); }
.slide-content.is-out .slide-label, .slide-content.is-out .play { opacity: 0; transform: translateY(12px); }

/* ---------- Dots ---------- */
.dots {
  position: absolute; z-index: 10; right: calc(var(--rail) - 3px); top: 50%;
  transform: translateY(-50%); display: grid; gap: 14px;
}
.dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background .4s, transform .4s var(--ease); }
.dots button.is-active { background: var(--white); transform: scale(1.3); }

/* ---------- Bottom bar ---------- */
.bottom {
  position: absolute; z-index: 10; left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad) 44px; display: flex; align-items: center; justify-content: center;
}
.share { position: absolute; left: calc(var(--rail) - 11px); width: 22px; height: 22px; }
.share svg { width: 22px; height: 22px; fill: currentColor; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); width: min(720px, 100%); }
.nav button { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; opacity: 0.85; transition: opacity .3s, gap .4s var(--ease); white-space: nowrap; }
.nav__prev { justify-self: end; }
.nav__next { justify-self: start; }
.nav button:hover { opacity: 1; gap: 20px; }
.arrow { font-weight: 400; }
.counter { font-size: 40px; font-weight: 700; letter-spacing: 0.01em; min-width: 110px; text-align: center; }
.progress { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 110px; height: 2px; background: rgba(255,255,255,0.2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--white); }
.scroll-hint { position: absolute; right: calc(var(--rail) - 9px); bottom: 34px; width: 18px; height: 30px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 10px; }
.scroll-hint span { position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: #fff; border-radius: 2px; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Contact (photos as background) ---------- */
.contact {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact__bg {
  position: absolute; inset: 0; overflow: hidden;
  /* photos at 5% everywhere, fully visible inside a soft spotlight that follows the cursor */
  --mx: -9999px; --my: -9999px; --r: 1px; --base: 0.10; /* photos 10% visible everywhere */
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.35) 65%, rgba(0,0,0,var(--base)) 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.35) 65%, rgba(0,0,0,var(--base)) 100%);
}
.contact__track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; will-change: transform; }
.contact__track img {
  /* full photo in its original format: full height, width follows the image's own aspect ratio, nothing cropped */
  height: 100%; width: auto; flex: 0 0 auto;
  object-fit: contain; display: block; user-select: none; pointer-events: none;
}
.contact__stack { height: 100%; flex: 0 0 auto; display: flex; flex-direction: column; }
.contact__stack img { height: 50%; width: auto; flex: 0 0 auto; display: block; user-select: none; pointer-events: none; }
.contact::before { /* dark veil so text stays readable */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 45% 50% at 50% 52%, rgba(8,8,10,0.45) 0%, rgba(8,8,10,0) 100%);
  pointer-events: none;
}
.contact__inner {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  padding: 130px calc(var(--rail) + 40px) 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact__title { margin-top: auto; font-size: clamp(64px, 10vw, 190px); line-height: .9; font-weight: 700; letter-spacing: -0.03em; text-shadow: 0 4px 40px rgba(0,0,0,.35); }

/* form */
.form { margin-top: clamp(28px, 4.5vh, 54px); width: min(720px, 100%); text-align: center; }
.field input, .field textarea { text-align: center; }
.field { justify-items: stretch; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { display: grid; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field__label { text-shadow: 0 1px 8px rgba(0,0,0,.6); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 20px; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.45);
  padding: 8px 0 12px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus, .field textarea:focus { border-color: var(--white); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }
.form__foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; text-align: center; }
.form__send {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--white); color: #000; font-weight: 600; font-size: 17px;
  padding: 16px 30px; border-radius: 999px; transition: gap .4s var(--ease), transform .4s var(--ease);
}
.form__send:hover { gap: 22px; transform: translateY(-2px); }
.form__note { font-size: 15px; color: var(--muted); min-height: 1.4em; }
.form.is-sent .form__note { color: var(--white); }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__send:disabled { opacity: .6; cursor: wait; }

.contact__row { margin-top: 40px; margin-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; align-items: center; }
.contact__mail { font-size: 18px; font-weight: 500; opacity: .85; }
.contact__mail:hover { opacity: 1; text-decoration: underline; }
.contact__social { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; opacity: .85; transition: opacity .3s; }
.contact__social:hover { opacity: 1; }
.contact__social svg { width: 22px; height: 22px; }
.footer { width: 100%; display: flex; justify-content: space-between; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer a:hover { color: var(--white); }
.footer__legal { text-decoration: underline; text-underline-offset: 3px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 25; background: rgba(8, 8, 10, 0.94); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 120px calc(var(--rail) + 40px);
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__links { display: grid; gap: 6px; }
.menu__links a { font-size: clamp(34px, 5vw, 88px); font-weight: 700; line-height: 1.06; display: flex; align-items: baseline; gap: 18px; opacity: .5; transition: opacity .3s, transform .5s var(--ease); }
.menu__links a:hover, .menu__links a.is-current { opacity: 1; }
.menu__links a:hover { transform: translateX(10px); }
.menu__links small { font-size: 14px; font-weight: 500; opacity: .7; min-width: 22px; }
.menu__contact { display: grid; gap: 10px; font-size: 18px; }
.menu__kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu__contact a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.94);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__video { width: min(90vw, 1500px); max-height: 82vh; background: #000; }
.lightbox__close { position: absolute; top: 28px; right: var(--pad); font-size: 26px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --rail: 24px; }
  .frame-line, .dots, .share, .scroll-hint { display: none; }
  .header { padding: 22px 24px; }
  .header__right { gap: 20px; }
  .logo img { height: 26px; }
  .slide-content { padding-left: 0; }
  .counter { font-size: 26px; min-width: 64px; }
  .nav { gap: 14px; }
  .nav button { font-size: 13px; gap: 8px; }
  .contact__inner { padding: 110px 24px 24px; }
  .form__grid { grid-template-columns: 1fr; gap: 24px; }
  .field input, .field textarea { font-size: 18px; }
  .menu { flex-direction: column; align-items: flex-start; justify-content: center; padding: 100px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
