/* ============================================================
   THERIQUE — Crafted Identity
   css/style.css
   ============================================================ */

:root {
  --black:        #050504;
  --black-soft:   #0b0a08;
  --ivory:        #f5f1e8;
  --ivory-dim:    #cfc9bc;
  --gold:         #c9a45c;
  --gold-bright:  #f2dca0;
  --gold-dim:     rgba(201, 164, 92, 0.45);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui:      "Jost", "Helvetica Neue", sans-serif;

  --ease-luxury:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-weight: 300;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

::selection { background: var(--gold-dim); color: var(--ivory); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Cinematic page fade-in ---------- */

body {
  opacity: 0;
  transition: opacity 1.8s ease;
}
body.is-loaded { opacity: 1; }

/* ---------- Particles canvas ---------- */

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem 3rem;
}

.fox-mark {
  width: 34px;
  height: 34px;
  color: var(--gold);
  opacity: 0.85;
  transition: opacity 0.6s ease;
}
.nav__logo:hover .fox-mark { opacity: 1; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: none;
  border: none;
  color: var(--ivory-dim);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color 0.5s ease;
}
.nav__menu:hover { color: var(--gold-bright); }

.nav__menu-lines { display: flex; flex-direction: column; gap: 5px; }
.nav__menu-lines i {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease-luxury);
}
.nav__menu:hover .nav__menu-lines i:last-child { width: 18px; }

/* ---------- Left rail ---------- */

.rail {
  position: fixed;
  left: 2.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--ivory-dim);
}

.rail__dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--ivory-dim);
  transform: rotate(45deg);
  opacity: 0.45;
}
.rail__dot--active {
  background: var(--gold);
  border-color: var(--gold);
  opacity: 1;
  box-shadow: 0 0 8px rgba(201, 164, 92, 0.6);
}

.rail__line {
  width: 1px;
  height: 26px;
  background: var(--ivory-dim);
  opacity: 0.3;
}
.rail__line--long { height: 64px; }

.rail__scroll {
  margin-top: 1.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.55;
}

/* ---------- Hero composition ---------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4.5rem 1.5rem 3rem;
}

/* Stage: arc + ambient light + figure */

.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1vh;
}

.hero__arc {
  /* Der goldene Bogen ist im aktuellen Hero-Bild bereits enthalten.
     Bei einem cleanen Masken-Render ohne Bogen: display wieder aktivieren. */
  display: none;
  position: absolute;
  width: min(74vh, 92vw);
  height: min(74vh, 92vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  animation: arc-drift 140s linear infinite;
  transform-origin: center;
  z-index: 1;
}

@keyframes arc-drift {
  from { transform: translate(-50%, -54%) rotate(0deg); }
  to   { transform: translate(-50%, -54%) rotate(360deg); }
}

.hero__ambient {
  position: absolute;
  width: min(80vh, 100vw);
  height: min(80vh, 100vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 46% 40% at 42% 46%, rgba(201, 164, 92, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(245, 241, 232, 0.04), transparent 75%);
  animation: ambient-breathe 11s ease-in-out infinite;
  z-index: 0;
}

@keyframes ambient-breathe {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

.hero__figure {
  position: relative;
  z-index: 2;
  height: clamp(38vh, 50vh, 55vh);
  aspect-ratio: 768 / 563;        /* sichtbares Fenster: x 25–75 %, y 0–55 % des Bildes */
  overflow: hidden;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
  /* weicher Übergang ins Schwarz, damit die Live-Typografie frei steht */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.hero__img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 200%;                    /* Bildbreite = 2× Fenster → zeigt mittlere 50 % */
  height: auto;
  max-width: none;
  object-fit: unset;
  animation: figure-breathe 12s ease-in-out infinite;
  transform-origin: 50% 22%;
  user-select: none;
}

@keyframes figure-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.02); }
}

/* ---------- Content block ---------- */

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -5vh;
}

/* Eyebrow */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.eyebrow__rule {
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.eyebrow__rule:last-child {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.eyebrow__mark {
  width: 16px;
  height: 16px;
  margin-top: 0.9rem;
  color: var(--gold);
  opacity: 0.9;
}

/* Wordmark */

.wordmark {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 8.6vw, 7rem);
  line-height: 1.05;
  letter-spacing: 0.14em;
  color: var(--ivory);
  white-space: nowrap;
  text-shadow: 0 0 60px rgba(245, 241, 232, 0.12);
}

.wordmark__text { display: inline-block; }

.wordmark__text .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 1.1s var(--ease-luxury), transform 1.1s var(--ease-luxury);
}
body.is-loaded .wordmark__text .letter {
  opacity: 1;
  transform: translateY(0);
}

.wordmark__r {
  font-family: var(--font-ui);
  font-size: 0.16em;
  vertical-align: baseline;
  position: relative;
  bottom: 0.1em;
  margin-left: 0.4em;
  color: var(--ivory-dim);
}

/* Tagline */

.tagline {
  margin-top: 1.1rem;
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  letter-spacing: 0.52em;
  text-indent: 0.52em; /* optical centering of letterspaced caps */
  text-transform: uppercase;
  color: var(--gold);
}

/* Divider */

.divider {
  display: block;
  width: 1px;
  height: 42px;
  margin-top: 1.8rem;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
}

/* Message */

.message {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  color: var(--ivory-dim);
}
.message em {
  font-style: italic;
  color: var(--gold-bright);
}

/* CTA */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.4rem;
  padding: 1.05rem 3.4rem;
  border: 1px solid var(--gold-dim);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: var(--gold-bright);
  overflow: hidden;
  transition: border-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(242, 220, 160, 0.12) 50%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform 1s var(--ease-luxury);
}

.cta:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(201, 164, 92, 0.12);
}
.cta:hover::before { transform: translateX(110%); }

.cta__arrow {
  width: 26px;
  height: 10px;
  transition: transform 0.6s var(--ease-luxury);
}
.cta:hover .cta__arrow { transform: translateX(6px); }

/* Scroll cue */

.scroll-cue {
  margin-top: 2.6rem;
  color: var(--gold);
  opacity: 0.7;
  animation: cue-float 4s ease-in-out infinite;
}
.scroll-cue svg { width: 12px; height: 40px; }

@keyframes cue-float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(6px); opacity: 0.4; }
}

/* ---------- Staggered reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-luxury), transform 1.4s var(--ease-luxury);
}
body.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .reveal:nth-of-type(1) { transition-delay: 0.5s; }
.hero__content .eyebrow        { transition-delay: 0.55s; }
.hero__content .eyebrow__mark  { transition-delay: 0.7s; }
.hero__content .wordmark__r    { transition-delay: 1.7s; }
.hero__content .tagline        { transition-delay: 1.5s; }
.hero__content .divider        { transition-delay: 1.7s; }
.hero__content .message        { transition-delay: 1.9s; }
.hero__content .cta            { transition-delay: 2.1s; }
.hero__content .scroll-cue     { transition-delay: 2.5s; }

/* ---------- Mobile (dedicated layout) ---------- */

@media (max-width: 768px) {

  .nav { padding: 1.4rem 1.3rem; }
  .fox-mark { width: 28px; height: 28px; }
  .nav__menu-label { display: none; }   /* reduce to essentials */

  .rail { display: none; }              /* remove decorative rail */

  .hero { padding: 4.2rem 1rem 2.4rem; }

  .hero__figure {
    height: clamp(34vh, 42vh, 46vh);    /* full mask always visible */
    aspect-ratio: 614 / 563;            /* engeres Fenster: x 30–70 % */
  }
  .hero__figure .hero__img { width: 250%; }

  .hero__arc { width: 96vw; height: 96vw; }

  .hero__content { margin-top: -3vh; }

  .eyebrow { gap: 0.9rem; font-size: 0.58rem; letter-spacing: 0.34em; }
  .eyebrow__rule { width: 32px; }

  .wordmark {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .tagline { letter-spacing: 0.4em; text-indent: 0.4em; }

  .divider { height: 30px; margin-top: 1.4rem; }

  .message { font-size: 1.05rem; }

  .cta { padding: 0.95rem 2.6rem; margin-top: 2rem; }

  .scroll-cue { margin-top: 2rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  body, .reveal, .wordmark__text .letter {
    opacity: 1 !important;
    transform: none !important;
  }
}
