/* ============================================================
   HEIM — styles.css
   Luxury underground streetwear. Dark, cinematic, intentional.
   Palette + type live in CSS variables below for easy tuning.
   ============================================================ */

:root {
  /* --- Color --- */
  --black:      #0a0908;
  --charcoal:   #14110f;
  --charcoal-2: #1c1815;
  --bone:       #ece6da;
  --cream:      #cfc4b2;
  --red:        #9b1b1b;   /* deep blood red */
  --red-bright: #c11f24;   /* embroidery red */
  --line:       rgba(236, 230, 218, 0.12);
  --line-red:   rgba(193, 31, 36, 0.35);
  --muted:      rgba(236, 230, 218, 0.55);
  --muted-2:    rgba(236, 230, 218, 0.38);

  /* --- Type --- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* --- Spacing rhythm --- */
  --section-pad: clamp(5rem, 12vw, 11rem);
  --gutter: clamp(1.5rem, 6vw, 6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* layered atmosphere: deep vignette + a faint red light-leak from the right */
  background-image:
    radial-gradient(120% 80% at 85% 0%, rgba(155, 27, 27, 0.10), transparent 55%),
    radial-gradient(100% 100% at 50% 120%, rgba(0,0,0,0.6), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--bone); }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 2%); }
  40% { transform: translate(3%, -3%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(4%, -1%); }
}

/* ---------- Thin red frame (poster echo) ---------- */
.frame {
  position: fixed;
  inset: clamp(10px, 1.6vw, 22px);
  border: 1px solid var(--line-red);
  z-index: 9998;
  pointer-events: none;
}

/* ---------- Minimal top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.4rem, 2.4vw, 2.2rem) var(--gutter);
  mix-blend-mode: difference; /* stays legible over dark + light sections */
}
.topbar__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: #fff;
}
.topbar__link {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
}
.topbar__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s ease;
}
.topbar__link:hover::after { width: 100%; }

/* ---------- Shared bits ---------- */
.eyebrow,
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 400;
}
.section-label { color: var(--muted-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.05em 2.4em;
  border: 1px solid transparent;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.btn--solid {
  background: var(--red);
  color: var(--bone);
  border-color: var(--red);
}
.btn--solid:hover {
  background: transparent;
  color: var(--red-bright);
  border-color: var(--red-bright);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--bone);
  letter-spacing: 0.34em;
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--gutter) 5rem;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(5.5rem, 27vw, 22rem);
  line-height: 0.82;
  letter-spacing: 0.04em;
  color: var(--bone);
  /* faint red atmosphere behind the wordmark */
  text-shadow: 0 0 60px rgba(155, 27, 27, 0.35);
}
.hero__tagline {
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
}
.hero__tagline::after {
  content: "";
  display: block;
  width: 44px; height: 1px;
  background: var(--red-bright);
  margin: 1.2rem auto 0;
}
.hero__statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--muted);
  max-width: 28ch;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.8rem; }

.hero__foot {
  position: absolute;
  bottom: clamp(2.4rem, 5vh, 4rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__foot-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

/* vertical microcopy on the edges */
.vtext {
  position: absolute;
  top: 50%;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted-2);
  writing-mode: vertical-rl;
}
.vtext--left  { left: clamp(1.4rem, 3vw, 3rem);  transform: translateY(-50%) rotate(180deg); }
.vtext--right { right: clamp(1.4rem, 3vw, 3rem); transform: translateY(-50%); }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: clamp(2.4rem, 5vh, 4rem);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-cue__line {
  width: 44px; height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-cue__line::after {
  content:""; position:absolute; inset:0;
  background: var(--red-bright);
  transform: translateX(-100%);
  animation: cueSlide 2.6s ease-in-out infinite;
}
@keyframes cueSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ====================== STUDIO ====================== */
.studio {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}
.studio .section-label { display: block; margin-bottom: clamp(3rem, 7vw, 5rem); }
.studio__lines { display: flex; flex-direction: column; gap: 0.4rem; }
.studio__line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.studio__line--muted {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  color: var(--muted);
  margin-top: 1.6rem;
  line-height: 1.3;
}
.studio__seal {
  margin-top: clamp(3rem, 7vw, 5rem);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* ====================== CAPSULE ====================== */
.capsule {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--line);
}
.capsule__head { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.capsule__title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--bone);
}
.capsule__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
}
.card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--charcoal), var(--black));
  transition: border-color 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.card:hover { border-color: var(--line-red); transform: translateY(-6px); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* placeholder shown until a real photo is dropped in */
.card__media--placeholder {
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(155,27,27,0.12), transparent 70%),
    repeating-linear-gradient(45deg, rgba(236,230,218,0.02) 0 2px, transparent 2px 9px);
}
.card__index {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  color: rgba(236,230,218,0.10);
  letter-spacing: 0.05em;
}
.card__body { padding: clamp(1.4rem, 2.4vw, 2.2rem); display: flex; flex-direction: column; gap: 0.8rem; }
.card__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: 0.01em;
}
.card__desc { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.status {
  align-self: flex-start;
  margin-top: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid var(--line-red);
  padding: 0.5em 0.9em;
}

/* ====================== DETAILS / MANIFESTO ====================== */
.details {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.details__left { display: flex; flex-direction: column; gap: 1.8rem; }
.manifesto {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.28;
  letter-spacing: 0.005em;
  max-width: 22ch;
}
.manifesto--small {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 34ch;
}
.details__right { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.monogram { width: clamp(150px, 22vw, 230px); color: var(--red-bright); }
.monogram svg { width: 100%; height: auto; }
.mono-letter { font-family: var(--serif); font-weight: 600; font-size: 120px; fill: currentColor; }
.mono-word   { font-family: var(--serif); font-size: 22px; letter-spacing: 0.35em; fill: var(--bone); }
.mono-rule   { stroke: var(--bone); stroke-width: 1; opacity: 0.5; }
.details__list {
  list-style: none;
  width: 100%;
  max-width: 320px;
}
.details__list li {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.details__list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  flex-shrink: 0;
}
.details__list li:last-child { border-bottom: 1px solid var(--line); }

/* ====================== INQUIRY ====================== */
.inquiry {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}
.inquiry__head { text-align: center; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.inquiry__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.inquiry__sub { color: var(--muted); font-size: 0.92rem; max-width: 40ch; margin: 0 auto; }

.form { display: flex; flex-direction: column; gap: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.85rem 0;
  transition: border-color 0.4s ease;
  border-radius: 0; /* keep iOS from rounding inputs */
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-color: var(--red-bright); }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input.invalid,
.field textarea.invalid,
.field select.invalid { border-bottom-color: var(--red); }

/* custom select chevron */
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select option { background: var(--charcoal); color: var(--bone); }

/* honeypot — hidden from humans */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__submit { align-self: flex-start; margin-top: 0.6rem; }
.form__submit[disabled] { opacity: 0.5; cursor: not-allowed; }
.form__status {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  min-height: 1.2em;
}
.form__status.ok  { color: var(--bone); }
.form__status.err { color: var(--red-bright); }

/* ====================== FOOTER ====================== */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.footer__brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  letter-spacing: 0.12em;
  padding-left: 0.12em;
  line-height: 1;
}
.footer__tag {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; text-align: right; }
.footer__links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}
.footer__links a:hover { color: var(--bone); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-2);
}
/* barcode flourish (poster echo) */
.barcode {
  width: 130px; height: 26px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--muted) 0 1px, transparent 1px 3px,
    var(--muted) 3px 5px, transparent 5px 6px,
    var(--muted) 6px 9px, transparent 9px 12px
  );
  opacity: 0.5;
}

/* ====================== SCROLL REVEAL ====================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* staggered hero load */
.hero .reveal[data-delay="1"].in { transition-delay: 0.05s; }
.hero .reveal[data-delay="2"].in { transition-delay: 0.18s; }
.hero .reveal[data-delay="3"].in { transition-delay: 0.40s; }
.hero .reveal[data-delay="4"].in { transition-delay: 0.55s; }
.hero .reveal[data-delay="5"].in { transition-delay: 0.70s; }
.hero .reveal[data-delay="6"].in { transition-delay: 0.85s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain, .scroll-cue__line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 900px) {
  .capsule__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .details { grid-template-columns: 1fr; text-align: center; }
  .details__left { align-items: center; }
  .manifesto, .manifesto--small { max-width: 30ch; }
  .details__list { margin: 0 auto; }
  .vtext { display: none; }      /* keep mobile clean */
  .scroll-cue { display: none; }
}

@media (max-width: 600px) {
  .hero { padding-top: 6rem; }
  .hero__foot { position: static; margin-top: 3rem; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links { text-align: left; }
  .btn { width: 100%; }
  .hero__actions { width: 100%; }
}
