/* ============================================================
   AUREN STUDIO — SECTION 01 / HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--c-black);
}

/* Every parallax layer composes one scroll offset (--sx/--sy)
   and one pointer offset (--px/--py) into a single transform. */
[data-layer] {
  transform: translate3d(
    calc((var(--sx) + var(--px)) * 1px),
    calc((var(--sy) + var(--py)) * 1px),
    0
  );
}
.hero__layer--grid,
.hero__layer--glow,
.headline,
.hero__visual { will-change: transform; }

/* ------------------------------------------------------------
   ENVIRONMENT
   ------------------------------------------------------------ */
.hero__env {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__layer { position: absolute; }

.hero__layer--grid {
  top: -7%;
  left: 0;
  width: 100%;
  height: 114%;
}
.grid { width: 100%; height: 100%; }
.grid line {
  vector-effect: non-scaling-stroke;
  stroke-width: 1;
  fill: none;
}
.grid__v line { stroke: var(--hair); }
.grid__v line:nth-child(3) { stroke: var(--hair-strong); }
.grid__h line { stroke: rgba(255, 255, 255, 0.03); }
.grid__gold line { stroke: var(--hair-gold); }

/* soft reflected studio light — never a visible radial gradient */
.hero__layer--glow {
  inset: -12%;
  background:
    radial-gradient(40% 36% at 72% 43%, rgba(190, 145, 65, 0.12), rgba(190, 145, 65, 0) 68%),
    radial-gradient(24% 20% at 61% 61%, rgba(152, 106, 44, 0.09), rgba(152, 106, 44, 0) 70%),
    radial-gradient(58% 48% at 82% 26%, rgba(126, 100, 60, 0.05), rgba(126, 100, 60, 0) 72%);
}

.hero__layer--vignette {
  inset: 0;
  background:
    /* levels the last 20% back to the page black so the hero can hand
       over to SECTION 02 without a visible tonal seam */
    linear-gradient(180deg, rgba(7, 8, 8, 0) 80%, rgba(7, 8, 8, 1) 100%),
    radial-gradient(122% 104% at 50% 42%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.52) 100%);
}

.hero__layer--grain {
  inset: 0;
  opacity: 0.02;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ------------------------------------------------------------
   3D MARK
   ------------------------------------------------------------ */
.hero__visual {
  position: absolute;
  top: 0;
  right: -5%;
  width: 56%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.hero__visual-inner {
  width: 100%;
  height: 100%;
  transform: translateY(-1%);
}
.hero__canvas { width: 100%; height: 100%; }

.hero__poster {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.no-webgl .hero__canvas { display: none; }
.no-webgl .hero__poster { display: block; }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: var(--header-y) var(--gutter) 0;
}

/* Desktop — nav centered on the viewport, not the remaining header space */
@media (min-width: 901px) {
  .header {
    display: block;
    min-height: calc(var(--header-y) + 34px);
  }

  .nav {
    position: absolute;
    top: var(--header-y);
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }

  .nav__index { display: none; }

  .nav__link { gap: 0; }
}

.nav__list {
  display: flex;
  gap: clamp(20px, 2.3vw, 36px);
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ivory-60);
  transition: color var(--dur-hover) var(--ease-premium);
}
.nav__index {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--c-gold-42);
  transition: color var(--dur-hover) var(--ease-premium);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--c-gold-42);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-hover) var(--ease-premium);
}
.nav__link:hover { color: var(--c-ivory); }
.nav__link:hover .nav__index { color: var(--c-gold); }
.nav__link:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------
   EDITORIAL CONTENT
   ------------------------------------------------------------ */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-y) + 120px) var(--gutter) calc(var(--foot-y) + 78px);
}

.headline {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--c-ivory);
  max-width: min(1060px, 76vw);
}
.headline__row {
  display: flex;
  gap: 0.26em;
}
.headline__line {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.07em 0.06em 0;
  margin: -0.02em -0.07em -0.06em 0;
}
.headline__inner {
  display: block;
  white-space: nowrap;
  /* --reveal: 1 = fully masked below the line box, 0 = in place */
  transform: translate3d(0, calc(var(--reveal) * 106%), 0);
}
.headline__inner--serif {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.012em;
  color: var(--c-ivory-warm);
}
.headline__row:nth-child(2) { margin: -0.055em 0 -0.02em; }

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 3vh, 32px);
  margin-top: clamp(30px, 4.4vh, 52px);
}

.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 19px 30px;
  border: 1px solid var(--c-gold-42);
  border-radius: 0;
  font-size: var(--fs-cta);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ivory);
  overflow: hidden;
  transition: color 460ms var(--ease-premium), border-color 460ms var(--ease-premium);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-ivory);
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 480ms var(--ease-premium);
}
.cta__arrow {
  display: inline-flex;
  transition: transform 460ms var(--ease-premium);
}
.cta__arrow svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: square;
}
.cta:hover,
.cta:focus-visible { color: #0a0a0a; border-color: var(--c-ivory); }
.cta:hover::before,
.cta:focus-visible::before { transform: scaleY(1); }
.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow { transform: translate3d(6px, 6px, 0); }

/* ------------------------------------------------------------
   MICRO DETAILS
   ------------------------------------------------------------ */
.hero__marks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.mark-plus {
  position: absolute;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
}
.mark-plus::before,
.mark-plus::after {
  content: '';
  position: absolute;
  background: var(--c-gold-22);
}
.mark-plus::before { left: 0; top: 4px; width: 9px; height: 1px; }
.mark-plus::after { left: 4px; top: 0; width: 1px; height: 9px; }
.mark-plus--a { left: 66.666%; top: 25.5%; }
.mark-plus--b { left: 33.333%; top: 74.5%; }

/* ------------------------------------------------------------
   INTRO — initial states (only with JS)
   ------------------------------------------------------------ */
.js [data-anim='line'] .headline__inner { --reveal: 1; }
.js [data-anim='cta'],
.js [data-anim='nav'],
.js [data-anim='marks'],
.js .hero__layer--grid,
.js .hero__layer--glow { opacity: 0; }

/* ------------------------------------------------------------
   MOBILE — deliberately recomposed, not shrunk
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  :root {
    --fs-hero: clamp(2.2rem, 11.4vw, 4.2rem);
    --gutter: clamp(20px, 5.6vw, 24px);
    --ls-hero: -0.03em;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__visual {
    position: relative;
    right: auto;
    flex: none;
    width: 100%;
    height: 36vh;
    min-height: 240px;
    margin-top: calc(var(--header-y) + 52px);
  }
  .hero__visual-inner { transform: none; }

  .hero__content {
    min-height: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: clamp(18px, 3vh, 30px) var(--gutter) calc(var(--foot-y) + 62px);
  }

  .headline { max-width: none; }
  .headline__row { display: block; margin: 0; }
  .headline__row:nth-child(2) { margin: -0.05em 0 -0.02em; }
  .headline__line { display: block; }

  .hero__meta { margin-top: 28px; gap: 24px; }
  .cta { padding: 17px 24px; }

  .hero__layer--glow {
    background:
      radial-gradient(52% 26% at 50% 24%, rgba(190, 145, 65, 0.13), rgba(190, 145, 65, 0) 70%),
      radial-gradient(40% 18% at 42% 34%, rgba(152, 106, 44, 0.08), rgba(152, 106, 44, 0) 72%);
  }
  .mark-plus--a { left: 50%; top: 8%; }
  .mark-plus--b { display: none; }

  /* Same centered Work / Studio / Contact row as desktop — no overlay */
  .header {
    display: block;
    min-height: calc(var(--header-y) + env(safe-area-inset-top, 0px) + 34px);
    padding-top: calc(var(--header-y) + env(safe-area-inset-top, 0px));
  }

  .nav {
    position: absolute;
    top: calc(var(--header-y) + env(safe-area-inset-top, 0px));
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    z-index: 6;
    display: block;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__index { display: none; }

  .nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
  }

  .nav__link {
    gap: 0;
    padding: 12px 2px;
    font-size: var(--fs-label);
    letter-spacing: var(--ls-label);
  }
}

/* ------------------------------------------------------------
   REDUCED MOTION — full composition, no movement
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-anim='line'] .headline__inner { --reveal: 0; }
  .js [data-anim='cta'],
  .js [data-anim='nav'],
  .js [data-anim='marks'],
  .js .hero__layer--grid,
  .js .hero__layer--glow { opacity: 1; }

  [data-layer] { transform: none; }
}
