@font-face {
  font-family: 'Sabon';
  src: url('../assets/fonts/Sabon.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda Italic';
  src: url('../assets/fonts/BodoniModaItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-void: #000000;
  --bg-charcoal: #121214;
  --text-on-dark: #f2f0ec;
  --text-muted: #97968f;
  --text-dim: #6b6a65;
  --accent-silver: #cdd1d4;
  --accent-sparkle: #cdeeea;
  --border-hair: rgba(242, 240, 236, 0.14);
  --metal-gradient: linear-gradient(120deg, #f5f5f3 0%, #cfd3d6 22%, #86898c 45%, #e8ebec 65%, #b5b9bc 85%, #f5f5f3 100%);
  --font-display: 'Sabon', 'Iowan Old Style', serif;
  --font-body: 'Bodoni Moda Italic', 'Iowan Old Style', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg-void); }

body {
  background: var(--bg-void);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: var(--accent-sparkle); color: var(--bg-void); }

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.loader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  width: 150px;
  aspect-ratio: 1 / 1;
  background: var(--metal-gradient);
  -webkit-mask: url('../assets/img/logo-blanc.png') center / contain no-repeat;
  mask: url('../assets/img/logo-blanc.png') center / contain no-repeat;
  opacity: 0.95;
}
#loader-bar-track {
  width: 220px;
  height: 1px;
  background: var(--border-hair);
}
#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-silver);
  transition: width 0.25s ease;
}
#loader-percent {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.6rem 5vw;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.72);
  border-bottom-color: var(--border-hair);
  padding: 1rem 5vw;
}
.site-nav { display: flex; align-items: stretch; justify-content: flex-end; }
.nav-links { display: flex; align-items: stretch; gap: 2.4rem; }
.nav-links li { display: flex; }
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}
.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--metal-gradient);
  background-size: 220% 220%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #0a0a0a !important;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(0, 0, 0, 0.35),
    0 1px 4px rgba(0, 0, 0, 0.5);
  transition: background-position 0.5s ease;
}
.nav-cta:hover { background-position: 100% 50%; }

/* ============ SCROLL CUE ============ */
.scroll-indicator {
  position: fixed;
  z-index: 4;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-silver);
  pointer-events: none;
}
.scroll-indicator svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============ SPARKLES ============ */
.sparkle-field {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  opacity: 0;
  background: #ffffff;
  filter: drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.9));
  animation: sparkle-twinkle var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50% { opacity: var(--peak, 0.9); transform: scale(1); }
}

.section-sparkle {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* ============ CANVAS ============ */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
}
#canvas { width: 100%; height: 100%; display: block; }

/* Blackout: fades to solid black after the video plays, then stays black */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* ============ SCROLL CONTAINER ============ */
#scroll-container {
  position: relative;
  z-index: 5;
  height: 320vh;
}

.scroll-section {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.scroll-section.is-active { pointer-events: auto; }

/* ============ CTA / CONTACT ============ */
.section-cta {
  width: 100%;
  text-align: center;
  padding: 0 5vw;
}
.section-cta .section-inner { max-width: 40rem; margin: 0 auto; }
.section-cta .section-heading {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  background: var(--metal-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-form {
  margin-top: 2.8rem;
  text-align: left;
}
.botcheck { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form-field { margin-bottom: 1.6rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-silver);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #000;
  border: 2px solid transparent;
  border-image: var(--metal-gradient) 1;
  color: var(--accent-silver);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.95),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(0, 0, 0, 0.6);
  transition: filter 0.35s ease;
  resize: vertical;
}
.form-field select { cursor: pointer; appearance: none; }
.form-field select option { background: #000; color: var(--accent-silver); }
.form-field input[type="file"] {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.form-field input[type="file"]::file-selector-button {
  background: var(--metal-gradient);
  border: none;
  color: #0a0a0a;
  padding: 0.5rem 1rem;
  margin-right: 0.9rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: filter 0.3s ease;
}
.form-field input[type="file"]::file-selector-button:hover { filter: brightness(1.15); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  filter: brightness(1.25);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.95),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset -1px 0 0 rgba(0, 0, 0, 0.6),
    0 0 16px rgba(205, 209, 212, 0.4);
}

.form-field input.field-error {
  border-image: none;
  border-color: #e08a7d;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(224, 138, 125, 0.7),
    0 0 12px rgba(224, 138, 125, 0.35);
  animation: field-shake 0.4s ease;
}
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.submit-btn {
  position: relative;
  background: var(--metal-gradient);
  background-size: 220% 220%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #0a0a0a;
  padding: 0.9rem 2.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.55);
  transition: background-position 0.6s ease;
}
.submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.submit-btn:hover { background-position: 100% 50%; }
.submit-btn:hover::before { left: 130%; }
.submit-btn:disabled { opacity: 0.5; cursor: default; }

.form-status {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}
.form-status.success,
.form-status.error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  animation: status-in 0.5s ease forwards;
}
.form-status.success {
  color: #eafff6;
  background: rgba(60, 200, 150, 0.12);
  border: 1px solid rgba(120, 220, 180, 0.4);
}
.form-status.error {
  color: #ffe6e0;
  background: rgba(224, 120, 90, 0.12);
  border: 1px solid rgba(224, 138, 110, 0.4);
}
.form-status .status-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
@keyframes status-in {
  to { opacity: 1; transform: translateY(0); }
}

.social-links {
  display: flex;
  align-items: stretch;
  gap: 1.2rem;
  margin-left: 1.6rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-silver);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.social-links a:hover { opacity: 1; transform: translateY(-2px); }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  #scroll-container { height: 260vh; }

  .form-row { grid-template-columns: 1fr; }

  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.62rem; }
}
