/* ============================================================
   INDRUS — hero (home), page-hero (inner), credentials, section-head
   ============================================================ */

/* ============================================================
   HOMEPAGE HERO — a cinematic title card
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  padding-top: 80px;
}

/* atmosphere layers */
.hero-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-pool {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 56% at 70% 38%, var(--glow) 0%, rgba(201,165,94,0) 62%),
    radial-gradient(70% 50% at 50% 116%, rgba(201,165,94,0.10) 0%, rgba(201,165,94,0) 60%),
    radial-gradient(100% 80% at 28% 0%, rgba(11,9,8,0) 30%, rgba(11,9,8,0.85) 100%);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(96deg,
    rgba(11,9,8,0.92) 0%,
    rgba(11,9,8,0.74) 26%,
    rgba(11,9,8,0.30) 50%,
    rgba(11,9,8,0) 68%);
}

/* the portrait — Madina, lit and standing in the dark */
.hero-portrait {
  position: absolute;
  right: clamp(-48px, -1.5vw, 0px); bottom: clamp(80px, 22vh, 250px);
  width: clamp(560px, 66vw, 1120px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.hero-portrait::after {
  content: "";
  position: absolute; left: 50%; bottom: -2%;
  width: 78%; height: 30%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
}
.hero-portrait img {
  width: 100%; height: auto; max-height: 100%;
  object-fit: contain; object-position: bottom right;
  filter: contrast(1.05) brightness(0.99) drop-shadow(0 36px 70px rgba(0,0,0,0.6));
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  animation: heroFloat 9s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* vertical editorial side-rail */
.hero-rail {
  position: absolute; left: clamp(10px, 1.5vw, 26px); top: 50%;
  z-index: 3;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-size: 9.5px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--ivory-dim); font-weight: 600;
  display: flex; align-items: center; gap: 18px;
}
.hero-rail::after {
  content: ""; width: 1px; height: 56px; background: linear-gradient(var(--brass), transparent);
}

/* copy column */
.hero-inner {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-start;
  width: 100%;
  min-height: calc(100svh - 146px);
  padding-top: clamp(48px, 7vh, 88px);
  padding-bottom: clamp(96px, 13vh, 150px);
}
.hero-copy { max-width: 600px; }
.hero-copy .eyebrow { margin-bottom: 26px; }

.hero-h1 { margin: 0 0 26px; }
.hero-h1 .em { font-style: italic; color: var(--brass); }

.hero-lede {
  max-width: 40ch; margin: 0 0 32px;
  font-size: 13.5px; line-height: 1.72;
  color: var(--ivory-mute); font-weight: 400; letter-spacing: 0.012em;
}

.hero-cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-cta-row .since {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-mute);
}

/* portrait credit, lower-right */
.hero-meta {
  position: absolute; right: var(--gutter); bottom: 34px;
  z-index: 4; text-align: right;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-mute);
  max-width: 250px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
.hero-meta .name {
  font-family: var(--f-display); font-style: italic;
  text-transform: none; letter-spacing: 0;
  font-size: 21px; color: var(--ivory-2); margin-bottom: 5px;
}
.hero-meta .rule {
  width: 26px; height: 1px; background: var(--brass);
  margin: 11px 0 11px auto;
}

/* scroll cue, lower-left */
.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 30px; z-index: 4;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ivory-mute); font-weight: 600;
}
.hero-scroll .track {
  position: relative; width: 46px; height: 1px; background: var(--hair-strong);
  overflow: hidden;
}
.hero-scroll .track::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 16px; height: 1px; background: var(--brass);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(290%); }
}

@media (max-width: 900px) {
  .hero { padding-top: 72px; flex-direction: column-reverse; justify-content: flex-end; }
  .hero-portrait {
    position: relative; right: auto; bottom: auto;
    width: 112%; height: 50vh; margin: 8px -6% 0 auto;
    align-self: center;
  }
  .hero-portrait img { object-position: center bottom; }
  .hero-inner {
    min-height: auto;
    padding-top: clamp(40px, 12vh, 88px); padding-bottom: 24px;
  }
  .hero-rail, .hero-meta, .hero-scroll { display: none; }
}

/* ============================================================
   CREDENTIALS — a slow editorial marquee
   ============================================================ */
.credentials {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  background: var(--ink-2);
  overflow: hidden;
}
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.marquee-track {
  display: flex; flex-shrink: 0; align-items: center;
  gap: 0;
  animation: marquee 56s linear infinite;
  will-change: transform;
}
.credentials:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.cred {
  display: inline-flex; align-items: baseline; gap: 11px;
  padding: 0 38px; white-space: nowrap; position: relative;
}
.cred::after {
  content: ""; position: absolute; right: -4px; top: 50%;
  width: 5px; height: 5px; transform: translateY(-50%) rotate(45deg);
  background: var(--brass); opacity: 0.65;
}
.cred .k {
  font-family: var(--f-display); font-style: italic;
  font-size: 19px; color: var(--ivory); line-height: 1;
}
.cred .v {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-mute); font-weight: 600;
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.42fr;
  gap: clamp(24px, 6vw, 88px);
  margin-bottom: clamp(36px, 4vw, 60px);
  align-items: end;
}
.section-head:only-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
}
.section-head .lhs .eyebrow { margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.section-head .rhs p { margin: 0; }

/* ============================================================
   PAGE HERO — inner pages
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: clamp(146px, 19vh, 212px);
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}
/* giant ghosted roman index */
.page-hero::before {
  content: attr(data-index);
  position: absolute; right: clamp(-12px, 0.5vw, 48px); top: 52%;
  transform: translateY(-50%);
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(150px, 30vw, 420px); line-height: 0.74;
  color: var(--ivory); opacity: 0.04;
  pointer-events: none; user-select: none; z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(64% 70% at 82% 26%, var(--glow) 0%, rgba(201,165,94,0) 62%);
}
.page-hero .crumb {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ivory-mute); font-weight: 600; margin-bottom: 30px;
}
.page-hero .crumb .sep {
  width: 16px; height: 1px; background: var(--brass); display: inline-block;
}
.page-hero h1 { max-width: 17ch; margin: 0 0 28px; }
.page-hero .lede { max-width: 60ch; }

/* ============================================================
   MARQUEE (generic, reusable)
   ============================================================ */
.marquee-track span {
  font-family: var(--f-display); font-style: italic;
  font-size: 20px; color: var(--ivory-2);
  display: inline-flex; align-items: center; gap: 24px;
}
