/* ════════════════════════════════════════════════════════════
   NOOS — Home (dark editorial luxury)
   Palette: noir + ivory ground, sage as the single living accent,
   bone/champagne for hairlines & warmth. Ageia carries the voice.
   ════════════════════════════════════════════════════════════ */

/* ── HERO MEDIA SYSTEM ──────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: calc(100svh - 62px);   /* fixed cinematic size */
  min-height: 560px;
  max-height: 880px;
  overflow: hidden;
  background: var(--warmdark);
}

.hero__slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: var(--warmdark);   /* no white flash before media paints */
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1), visibility 0s linear 1.4s;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
}

/* Blurred backdrop — a scaled, blurred copy of the SAME media fills the
   hero behind the sharp asset, so the side/top margins are never empty. */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  filter: blur(38px) brightness(.5) saturate(1.1);
  transform: scale(1.18);   /* overscan so blurred edges never show */
  pointer-events: none;
}

/* Media layer — the WHOLE asset fits inside the fixed hero at any scale
   (object-fit: contain): never zoomed, never cropped, fully responsive. */
.hero-slide__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

/* Cinematic scrim — darkens left/bottom so copy stays legible on any media */
.hero-slide__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg, rgba(13,13,13,.88) 0%, rgba(13,13,13,.55) 32%, rgba(13,13,13,.12) 62%, transparent 80%),
    linear-gradient(180deg, rgba(13,13,13,.40) 0%, transparent 26%, transparent 55%, rgba(13,13,13,.78) 100%);
}

/* Oversized ghost wordmark — brand never leaves the frame */
.hero-slide__ghost {
  position: absolute;
  right: -2vw;
  bottom: -4vh;
  z-index: 2;
  font-family: var(--f-lux);
  font-size: clamp(180px, 34vw, 560px);
  line-height: .72;
  letter-spacing: .04em;
  color: var(--ivory);
  opacity: .045;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* Copy block — anchored lower-left, editorial composition */
.hero-copy {
  position: absolute;
  left: clamp(28px, 6vw, 110px);
  bottom: clamp(80px, 12vh, 140px);
  z-index: 3;
  max-width: 660px;
}

.hero-copy__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 22px;
}
.hero-copy__label::before {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--sage);
  flex-shrink: 0;
}

.hero-copy__title {
  font-family: var(--f-lux);
  font-weight: 400;
  font-size: clamp(78px, 14vw, 232px);
  line-height: .82;
  letter-spacing: .03em;
  color: var(--ivory);
  margin-bottom: 10px;
}
.hero-copy__title .ch--sage { color: var(--sage); }

.hero-copy__subtitle {
  font-family: var(--f-lux);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--champagne);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-copy__desc {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.65;
  color: var(--ivory-60);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-copy__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.hero-btn--solid { background: var(--ivory); color: var(--noir); }
.hero-btn--solid:hover { background: var(--sage); transform: translateY(-2px); }
.hero-btn--ghost { background: transparent; color: var(--ivory); border-color: var(--ivory-40); }
.hero-btn--ghost:hover { border-color: var(--ivory); transform: translateY(-2px); }
.hero-btn .arr { transition: transform .3s ease; }
.hero-btn:hover .arr { transform: translateX(5px); }

/* Slide controls — bottom-right dot rail */
.hero__dots {
  position: absolute;
  right: clamp(28px, 6vw, 110px);
  bottom: clamp(80px, 12vh, 140px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.hero__dot {
  width: 40px;
  height: 2px;
  background: var(--ivory-20);
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: background .3s ease;
}
/* Enlarge the touch target around the 2px indicator line — visual unchanged,
   just a transparent hit-area so the dots are tappable on mobile. */
.hero__dot::before { content: ''; position: absolute; inset: -10px 0; }
.hero__dot:hover { background: var(--ivory-40); }
.hero__dot.active { background: var(--ivory-20); }
.hero__dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sage);
  transform-origin: left;
  transform: scaleX(0);
}
.hero__dot.active.run::after { animation: heroProgress var(--hero-dur, 6500ms) linear forwards; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fb);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory-40);
  pointer-events: none;
}
.hero__cue::after {
  content: '';
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--ivory-40), transparent);
  animation: cueDrop 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* Entrance / per-slide copy reveal */
.hero-copy > * { opacity: 0; transform: translateY(28px); }
.hero-slide.active .hero-copy > * {
  animation: heroRise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-slide.active .hero-copy__label    { animation-delay: .15s; }
.hero-slide.active .hero-copy__title    { animation-delay: .28s; }
.hero-slide.active .hero-copy__subtitle { animation-delay: .42s; }
.hero-slide.active .hero-copy__desc     { animation-delay: .54s; }
.hero-slide.active .hero-copy__cta      { animation-delay: .66s; }
@keyframes heroRise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-slide__media { animation: none; transform: scale(1); }
  .hero-copy > * { opacity: 1; transform: none; animation: none; }
  .hero__dot.active.run::after { animation: none; transform: scaleX(1); }
  .hero__cue::after { animation: none; }
}

/* ── Shared cream section frame ─────────────────────────────── */
body.home-page { background: var(--paper); }
.home-lux { background: var(--paper); color: var(--ink); }

.section {
  padding: clamp(56px, 8vw, 110px) clamp(28px, 6vw, 110px);
  position: relative;
}
.section + .section { border-top: 1px solid var(--hair-d); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-eyebrow {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--grn2);
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: var(--f-lux);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .02em;
  color: var(--ink);
}
.section-link {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-70);
  white-space: nowrap;
  position: relative;
  padding-bottom: 6px;
  transition: color .25s ease;
}
.section-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.section-link:hover { color: var(--ink); }
.section-link:hover::after { transform: scaleX(1); }

/* ── Product grids on dark ──────────────────────────────────── */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
}

.home-lux .product-card {
  background: var(--card);
  border: 1px solid var(--hair-d);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.home-lux .product-card:hover {
  border-color: rgba(107,122,90,0.40);
  box-shadow: 0 22px 50px rgba(28,28,26,0.16);
  transform: translateY(-4px);
}
.home-lux .product-card__image { background: var(--paper2); }
.home-lux .product-card__info { padding: 14px 16px 12px; }
.home-lux .product-card__cat { color: var(--grn2); letter-spacing: .14em; }
.home-lux .product-card__name { color: var(--ink); font-size: 13px; }
.home-lux .price-current { color: var(--ink); }
.home-lux .price-old { color: var(--muted); }
.home-lux .card-atc-btn { background: var(--ink); color: var(--paper); font-weight: 500; }
.home-lux .card-atc-btn:hover { background: var(--grn); color: #fff; }

/* ── Featured Collections — editorial split tiles ───────────── */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
}
.collection-tile {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--warmdark);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid var(--hair-d);
}
.collection-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.collection-tile:hover img { transform: scale(1.06); }
.collection-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,13,13,.82) 100%);
  z-index: 1;
}
.collection-tile__body { position: relative; z-index: 2; padding: clamp(20px, 2.4vw, 34px); }
.collection-tile__eyebrow {
  font-family: var(--fb);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 8px;
}
.collection-tile__name {
  font-family: var(--f-lux);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ivory);
  line-height: .98;
}
.collection-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--fb);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory-60);
  transition: color .25s ease, gap .25s ease;
}
.collection-tile:hover .collection-tile__cta { color: var(--ivory); gap: 14px; }
.collection-tile__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ivory-10);
  font-family: var(--f-lux);
  font-size: clamp(60px, 10vw, 140px);
  letter-spacing: .08em;
}

/* ── Brand Story — split editorial ──────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 520px;
}
.story__media {
  position: relative;
  overflow: hidden;
  background: var(--warmdark);
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__media-ghost {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-lux);
  font-size: clamp(80px, 12vw, 180px);
  color: var(--ivory-10);
  letter-spacing: .08em;
}
.story__body {
  background: var(--paper);
  padding: clamp(40px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story__title {
  font-family: var(--f-lux);
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .02em;
  color: var(--ink);
  margin: 14px 0 24px;
}
.story__title em { font-style: normal; color: var(--grn2); }
.story__p {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-70);
  max-width: 50ch;
  margin-bottom: 18px;
}
.story__sign {
  font-family: var(--f-lux);
  font-size: 26px;
  color: var(--grn2);
  margin-top: 8px;
  letter-spacing: .04em;
}

/* ── Customer Benefits ──────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair-d);
  border: 1px solid var(--hair-d);
}
.benefit {
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 48px) clamp(20px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s ease;
}
.benefit:hover { background: var(--card); }
.benefit i { font-size: 28px; color: var(--grn); }
.benefit h4 {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
  text-transform: uppercase;
}
.benefit p {
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-50);
}

/* ── Newsletter ─────────────────────────────────────────────── */
.newsletter {
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(107,122,90,.10) 0%, transparent 70%),
    var(--paper);
}
.newsletter__eyebrow {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--grn2);
  margin-bottom: 16px;
}
.newsletter__title {
  font-family: var(--f-lux);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.newsletter__sub {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-70);
  margin-bottom: 32px;
}
.newsletter__form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink-50);
  transition: border-color .3s ease;
}
.newsletter__form:focus-within { border-color: var(--grn); }
.newsletter__input {
  flex: 1;
  min-width: 0; /* allow the input to shrink below its intrinsic width on small screens */
  padding: 14px 4px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--fb);
  font-size: 14px;
  letter-spacing: .02em;
  outline: none;
}
.newsletter__input::placeholder { color: var(--ink-50); }
.newsletter__btn {
  padding: 14px 8px 14px 24px;
  background: transparent;
  color: var(--ink);
  border: none;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .25s ease;
}
.newsletter__btn:hover { color: var(--grn2); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .home-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__media { min-height: 340px; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  /* hero height is driven by the media aspect-ratio (JS) on mobile too */
  .hero-copy { left: 24px; right: 24px; bottom: 40px; max-width: none; }
  .hero-copy__desc { display: none; }
  .hero__dots { flex-direction: row; right: 24px; bottom: 60px; }
  .hero__dot { width: 28px; }
  .hero-copy__cta { gap: 16px; }
  .hero-btn { padding: 15px 26px; flex: 1; justify-content: center; }
  .home-products-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .collections-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy__cta { flex-direction: column; align-items: stretch; }
  .hero-btn { width: 100%; }
}
