/* ============================================================
   AARTCON — Brand intro overlay (homepage, plays once)
   ============================================================ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #ffffff; /* clean white — matches the video's whitened background */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease-lux), visibility 0.9s;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }


.intro-lockup {
  position: relative;
  text-align: center;
  padding: 24px;
  max-width: 92vw;
  will-change: transform, filter;
}

/* full-bleed logo-reveal video — plays once, then the intro fades to the page */
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;    /* whole logo always visible; white video blends into the white bg on every screen */
  background: #ffffff;
  display: block;
}

.intro-sweep {
  position: absolute; top: -30%; bottom: -30%; left: -60%; width: 60%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.9) 50%, transparent 60%);
  pointer-events: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ============================================================
   AARTCON — Cinematic Hero: sketch → blueprint → reality
   ============================================================ */

.hero {
  position: relative;
  /* sit below the fixed solid header (not behind it) */
  margin-top: var(--header-h, 84px);
  height: calc(100vh - var(--header-h, 84px));
  height: calc(100dvh - var(--header-h, 84px));
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

/* --- Loading veil (premium pre-loader) --- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.done { opacity: 0; visibility: hidden; }

.loader .loader-logo {
  width: clamp(240px, 32vw, 380px);
  max-width: 84vw;
  height: auto;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.loader .loader-mark { width: 64px; height: 64px; }

.loader .loader-mark path,
.loader .loader-mark line {
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: loaderDraw 1.6s var(--ease-lux) forwards;
}

.loader .loader-mark line { animation-delay: 0.5s; stroke: var(--gold); }

@keyframes loaderDraw { to { stroke-dashoffset: 0; } }

.loader .loader-word {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- SVG scene --- */

.hero-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-scene svg {
  width: 100%;
  height: 100%;
}

/* Sketch strokes: drawn via pathLength=1 trick */
.stroke-set * {
  fill: none;
  stroke: #7a7a76;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

#blueprint * {
  stroke: #8fa8bf;
  stroke-width: 1;
}

#blueprint text {
  stroke: none;
  fill: #6c88a3;
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 2px;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
}

#grid line {
  stroke: #a9c0d4;
  stroke-width: 0.5;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
}

#materials > g { opacity: 0; }
#world > * { opacity: 0; }
#glow > * { opacity: 0; }

/* --- Realistic finale photo --- */

.hero-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center 65%;
  transform: scale(1.12);
  will-change: transform, opacity;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(17,17,17,0.42) 0%, rgba(17,17,17,0.12) 40%, rgba(17,17,17,0.62) 100%);
}

/* --- Hero video mode (assets/hero-film.mp4 present) --- */

.hero-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* pure background video — block the browser's hover controls (PiP / mini-player) */
  pointer-events: none;
}

.hero--video .hero-video { display: block; }

.hero--video::after {
  /* olive-tinted scrim so the overlay text stays legible over bright footage */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(22,27,14,0.58) 0%, rgba(22,27,14,0.34) 30%, rgba(22,27,14,0.36) 60%, rgba(22,27,14,0.70) 100%),
    radial-gradient(135% 95% at 50% 46%, rgba(18,22,11,0.52) 0%, rgba(18,22,11,0) 66%);
}

.hero--video .hero-scene,
.hero--video .hero-photo { display: none; }

/* The video has no baked-in text — the site renders the tagline itself,
   in Cormorant Garamond, so it matches the rest of the site and stays sharp. */
.hero--video .hero-copy { justify-content: center; }

.hero--video .hero-logo,
.hero--video .hero-sub,
.hero--video .scroll-hint { display: none; }

.hero--video .vision-lines span,
.hero--video .hero-headline {
  text-shadow: 0 2px 28px rgba(10, 14, 6, 0.75), 0 1px 4px rgba(10, 14, 6, 0.6);
}

/* Brighter, luminous olive for the accent words over the bright video —
   a dark olive is unreadable against bright footage. */
.hero--video .vision-lines span em,
.hero--video .hero-headline .serif-i {
  color: #b0cd6e !important;
}

.hero--video .hero-headline { margin-top: 8px; }

/* --- Overlay copy --- */

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  padding: 40px 24px 64px;
  pointer-events: none;
}

.hero-copy > * { pointer-events: auto; }

.hero-logo {
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-logo svg { width: 84px; height: 84px; }

.hero-logo .hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}

.hero-logo .hero-wordmark em { font-style: normal; color: var(--gold); }

.hero-logo .hero-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.52em;
  margin-right: -0.52em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.vision-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 30px;
}

.vision-lines span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  opacity: 0;
  color: rgba(255, 255, 255, 0.92);
}

.vision-lines span em { font-style: italic; color: var(--gold); }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.12;
  max-width: 17ch;
  opacity: 0;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  opacity: 0;
}

.hero-cta {
  margin-top: 42px;
  opacity: 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta .btn-gold { padding: 20px 46px; font-size: 13.5px; }
.hero-cta .btn-line { padding: 20px 34px; font-size: 13.5px; }

/* --- Skip + scroll hint --- */

.skip-intro {
  position: absolute;
  top: 104px;
  right: 34px;
  z-index: 10;
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.18);
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.5s, background 0.3s, color 0.3s, border-color 0.3s;
}

.skip-intro:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.skip-intro.gone { opacity: 0; pointer-events: none; }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0;
}

.scroll-hint .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s var(--ease-lux) infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

@media (max-width: 640px) {
  .skip-intro { top: 92px; right: 20px; padding: 10px 16px; }
  .hero-scene svg { transform: scale(1.55); transform-origin: 50% 62%; }
}

/* Short or narrow viewports: compact the hero copy so the CTA always fits */
@media (max-height: 760px), (max-width: 640px) {
  .hero-logo { margin-bottom: 16px; gap: 8px; }
  .hero-logo svg { width: 46px; height: 46px; }
  .hero-logo .hero-wordmark { font-size: 24px; }
  .hero-logo .hero-tag { font-size: 8px; }
  .vision-lines { margin-bottom: 16px; gap: 2px; }
  .vision-lines span { font-size: clamp(16px, 2.2vw, 22px); }
  .hero-headline { font-size: clamp(26px, 4.6vw, 46px); }
  .hero-sub { margin-top: 12px; font-size: 13.5px; max-width: 60ch; }
  .hero-cta { margin-top: 22px; }
  .hero-cta .btn-gold { padding: 15px 34px; }
  .scroll-hint { display: none; }
}
