/* The next homepage (/new): the work is the hero. One type pair (Inter, with
   Instrument Serif italic for the accent word), one corner (16px, 24px for the
   big panels), one card. Everything sits under .hn so it cannot leak into the
   nav and footer it shares with the other pages. */

.hn {
  --hn-bg: #0a0608;
  --hn-panel: #120d10;
  --hn-panel-2: #1a1317;
  --hn-line: rgba(255, 240, 230, 0.08);
  --hn-line-2: rgba(255, 240, 230, 0.16);
  --hn-fg: #f6eee8;
  --hn-mute: #a8999f;
  --hn-gold: #d8a35e;
  --hn-gold-2: #f3d7a6;
  --hn-r: 16px;
  --hn-R: 24px;
  --hn-pad: clamp(16px, 4vw, 48px);
  font-family: Inter, system-ui, sans-serif;
  color: var(--hn-fg);
  background: var(--hn-bg);
  max-width: 1480px;
  margin: 0 auto;
  padding: 96px var(--hn-pad) 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}
.hn *, .hn *::before, .hn *::after { box-sizing: border-box; }
/* base.css pads every section 120px for the old homepage; here the gap does it. */
.hn > section:not(.hn-ust):not(.hn-spirits) { padding: 0; }
/* Element defaults carry no weight (:where), so a component that styles its own
   links and pictures, like Artist Spirits and the Studio composer, keeps them. */
:where(.hn) em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--hn-gold); letter-spacing: 0; }
:where(.hn) a { color: inherit; text-decoration: none; }
:where(.hn) img { display: block; max-width: 100%; }

/* Type scale: four sizes, no more. */
.hn-h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.hn-h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.hn-h3 { font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.hn-small { font-size: 0.875rem; line-height: 1.45; color: var(--hn-mute); margin: 0; }
.hn-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hn-gold); margin: 0; }

.hn-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hn-head .hn-small { max-width: 46ch; margin-top: 8px; }
.hn-link { font-size: 0.875rem; font-weight: 500; color: var(--hn-mute); white-space: nowrap; transition: color 0.2s; }
.hn-link:hover { color: var(--hn-fg); }

/* ── 1. The feature carousel ─────────────────────────────────────────────── */

.hn-feat { display: flex; flex-direction: column; gap: 16px; }
.hn-stage {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--hn-R);
  overflow: hidden;
  background: var(--hn-panel);
  border: 1px solid var(--hn-line);
  touch-action: pan-y;
}
.hn-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.hn-slide.on { opacity: 1; visibility: visible; transition: opacity 0.7s ease; }
.hn-slide::after { /* the label needs a floor to stand on */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(6, 3, 5, 0.85), transparent); pointer-events: none;
}
.hn-tag {
  position: absolute; right: clamp(16px, 2.4vw, 32px); bottom: clamp(14px, 2vw, 28px); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(1.1rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; color: #fff;
}
.hn-tag i {
  font-style: normal; font-size: 0.55em; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.25em 0.5em; border-radius: 8px; background: var(--hn-gold); color: #1a0d07;
}

/* A slide's pictures drift sideways, slowly: motion without a video. */
.hn-drift { position: absolute; inset: 0; display: flex; gap: 12px; padding: 12px; width: max-content; animation: hn-drift 60s linear infinite; }
.hn-drift img { height: 100%; width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.hn-slide:not(.on) .hn-drift { animation-play-state: paused; }
@keyframes hn-drift { to { transform: translateX(-50%); } }

/* Nikhaar: a draft and its 4K, with the line sweeping between them. */
.hn-wipe { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.hn-wipe-pane { position: relative; border-radius: 12px; overflow: hidden; }
.hn-wipe-pane img { width: 100%; height: 100%; object-fit: cover; }
.hn-wipe-pane .hn-draft { position: absolute; inset: 0; filter: blur(3px) saturate(0.75) contrast(0.9); transform: scale(1.03);
  clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.hn-wipe-pane .hn-bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: var(--hn-gold-2); box-shadow: 0 0 18px rgba(243, 215, 166, 0.8); }
.hn-wipe-pane b { position: absolute; top: 12px; font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(10, 6, 8, 0.7); }
.hn-wipe-pane b.l { left: 12px; } .hn-wipe-pane b.r { right: 12px; color: var(--hn-gold-2); }
.hn-slide.on .hn-wipe-pane { animation: hn-sweep 6s ease-in-out infinite; }
@property --x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@keyframes hn-sweep { 0%, 100% { --x: 12%; } 50% { --x: 88%; } }

/* Grid: sixteen pictures land one after another. */
.hn-grid16 { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; padding: 12px; }
.hn-grid16 img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; opacity: 0; transform: scale(0.92); }
.hn-slide.on .hn-grid16 img { animation: hn-land 0.6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 110ms); }
@keyframes hn-land { to { opacity: 1; transform: none; } }

/* Mithu: the parrot, greeting in one language after another. */
.hn-mithu { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding: 24px clamp(24px, 5vw, 72px);
  background: radial-gradient(60% 80% at 25% 50%, rgba(216, 163, 94, 0.18), transparent 70%); }
.hn-mithu-pics { display: flex; gap: 12px; height: 86%; align-self: center; }
.hn-mithu-pics img { height: 100%; width: auto; flex: 1; min-width: 0; object-fit: cover; border-radius: 14px; }
.hn-bubble { justify-self: start; padding: 18px 22px; border-radius: 20px 20px 20px 6px; background: var(--hn-panel-2); border: 1px solid var(--hn-line-2);
  font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.25; max-width: 18ch; min-height: 2.6em; }
.hn-bubble span { display: block; font-size: 0.45em; color: var(--hn-mute); font-weight: 500; margin-top: 8px; letter-spacing: 0.02em; }

.hn-feat-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hn-feat-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hn-feat-title .hn-small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-arrows { display: flex; gap: 8px; flex: none; }
.hn-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hn-line-2); background: var(--hn-panel-2); color: var(--hn-fg);
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.hn-arrow:hover { background: #2a2025; border-color: rgba(255, 240, 230, 0.3); }
.hn-dots { display: flex; gap: 6px; margin-top: 2px; }
.hn-dots button { width: 18px; height: 3px; border-radius: 3px; border: 0; padding: 0; background: var(--hn-line-2); cursor: pointer; }
.hn-dots button.on { background: var(--hn-gold); width: 28px; }

/* ── 2. The Studio: a prompt box over a moving wall ──────────────────────── */

.hn-studio { position: relative; border-radius: var(--hn-R); border: 1px solid var(--hn-line); background: #050304; }
/* The wall clips its pictures; the composer and its style list may reach past it. */
.hn-wall { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; transition: opacity 0.4s; }
.hn-wall.swap { opacity: 0; }
/* The lens is a little larger than the wall, so leaning never shows an edge. */
.hn-lens { position: absolute; inset: -24px -60px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0); will-change: transform; }
.hn-row { display: flex; gap: 14px; width: max-content; animation: hn-drift 80s linear infinite; }
.hn-row.rev { animation-direction: reverse; animation-duration: 95s; }
/* The middle row is nearer, so it leans further. */
.hn-row.big { translate: calc(var(--px, 0px) * 0.6) 0; }
.hn-row:has(.hn-card:hover) { animation-play-state: paused; }
.hn-studio { min-height: 560px; }

/* A card: the picture, a second take that wipes across, and its name. */
.hn-card { flex: none; display: block; border-radius: 12px; color: inherit; text-decoration: none; -webkit-user-drag: none;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease; transition-delay: var(--d, 0ms); }
.hn-wall.gather .hn-card { transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(0.06); opacity: 0; transition: none; }
.hn-wall:not(.gathering) .hn-card { transition-delay: 0ms; }
.hn-card-face { position: relative; display: block; height: 120px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: inherit;
  background: #1b1518; opacity: 0.35; transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease; }
.hn-row.big .hn-card-face { height: 230px; aspect-ratio: 3 / 4; opacity: 0.95; }
.hn-row.big .hn-card:nth-child(3n) .hn-card-face { aspect-ratio: 4 / 3; }
.hn-card-face img { width: 100%; height: 100%; object-fit: cover; display: block; background: #1b1518 center / cover no-repeat; }
.hn-card:hover .hn-card-face, .hn-card.lit .hn-card-face {
  opacity: 1; transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(243, 215, 166, 0.55), 0 0 28px -6px rgba(216, 163, 94, 0.55), 0 18px 40px -12px rgba(0, 0, 0, 0.85);
}
.hn-card:hover, .hn-card.lit { position: relative; z-index: 2; }
/* The second take of the same idea wipes in from the left, behind a bright edge. */
.hn-reveal { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s; }
.hn-reveal::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--hn-gold-2); box-shadow: 0 0 14px rgba(243, 215, 166, 0.9); }
.hn-card:hover .hn-reveal, .hn-card.lit .hn-reveal { clip-path: inset(0 0 0 0); }
.hn-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 26px 10px 9px;
  background: linear-gradient(transparent, rgba(8, 5, 7, 0.88)); color: #f6eee8; text-align: left;
  font: 600 12px/1.25 Inter, system-ui, sans-serif; opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.hn-cap i { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hn-gold); }
.hn-cap b { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hn-row.big .hn-cap { font-size: 13.5px; padding: 40px 12px 12px; }
.hn-card:hover .hn-cap, .hn-card.lit .hn-cap { opacity: 1; transform: none; }

/* The Studio's composer, lifted from /imagine and dressed by imagine.css. */
.hn-composer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: min(1040px, calc(100% - 32px));
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease; }

/* The opening (home-next.js wallMotion), 3.2 s: "Introducing" fills the stage,
   then steps back as the name bursts out in a retro comic title, then the
   whole card flies past and the composer rises in. */
.hn-intro { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; overflow: hidden; border-radius: inherit;
  pointer-events: none; visibility: hidden; --lift: 122px; }
.hn-studio.intro .hn-intro { visibility: visible; animation: hn-intro-off 3.2s linear forwards; }
.hn-intro > * { grid-area: 1 / 1; }
.hn-intro-pre { margin: 0; font: 600 clamp(2.8rem, 8.5vw, 6.6rem) / 1 Inter, system-ui, sans-serif; letter-spacing: -0.04em; color: #f6eee8; opacity: 0; }
.hn-intro-name { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.28em; opacity: 0;
  font: 400 clamp(3.4rem, 10vw, 8.2rem) / 0.95 Bangers, Impact, 'Arial Black', sans-serif; letter-spacing: 0.02em; text-transform: uppercase;
  color: #ffe6a8; -webkit-text-stroke: 2px #1a0b08;
  text-shadow: 1px 1px 0 #e8556a, 2px 2px 0 #e8556a, 3px 3px 0 #d0435a, 4px 4px 0 #b8354d, 5px 5px 0 #a02a42, 6px 6px 0 #8a2139,
    7px 7px 0 #741a30, 8px 8px 0 #5e1427, 9px 9px 0 #1a0b08, 10px 10px 0 #1a0b08, 14px 16px 24px rgba(0, 0, 0, 0.6), 0 0 48px rgba(216, 163, 94, 0.35); }
.hn-intro-name span:last-child { color: #f3b54a; }
/* A comic sunburst with halftone dots behind the name. */
.hn-burst { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max(130%, 900px); aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(216, 163, 94, 0.2) 0deg 5deg, transparent 5deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 58%); mask: radial-gradient(circle, #000 0 18%, transparent 58%); }
.hn-burst::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, rgba(232, 85, 106, 0.45) 1.6px, transparent 2.2px) 0 0 / 11px 11px;
  -webkit-mask: radial-gradient(circle, #000 0 10%, transparent 42%); mask: radial-gradient(circle, #000 0 10%, transparent 42%); }
.hn-studio.intro .hn-intro-pre { animation: hn-intro-pre 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hn-studio.intro .hn-intro-name { animation: hn-intro-name 3.2s linear forwards; }
.hn-studio.intro .hn-burst { animation: hn-intro-burst 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hn-studio.pre .hn-composer { opacity: 0; transform: translate(-50%, -40%) scale(0.94); filter: blur(6px); pointer-events: none; }
@keyframes hn-intro-pre {
  0% { opacity: 0; transform: scale(1.12); filter: blur(12px); letter-spacing: 0.12em; }
  22% { opacity: 1; transform: scale(1); filter: blur(0); letter-spacing: -0.04em; }
  29% { opacity: 1; transform: none; }
  47%, 100% { opacity: 0.8; transform: translateY(calc(-1 * var(--lift))) scale(0.32); letter-spacing: 0.3em; }
}
@keyframes hn-intro-name {
  0%, 29% { opacity: 0; transform: scale(0.15) rotate(-14deg); }
  39% { opacity: 1; transform: scale(1.2) rotate(4deg); }
  46% { transform: scale(0.93) rotate(-3deg); }
  52% { transform: scale(1.04) rotate(-1deg); }
  58%, 80% { opacity: 1; transform: scale(1) rotate(-2deg); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.5) rotate(-2deg); filter: blur(10px); }
}
@keyframes hn-intro-burst {
  0%, 29% { opacity: 0; transform: scale(0.3) rotate(0); }
  45% { opacity: 1; transform: scale(1) rotate(10deg); }
  80% { opacity: 1; transform: scale(1.05) rotate(28deg); }
  100% { opacity: 0; transform: scale(1.5) rotate(36deg); }
}
/* Play with sound: a quiet glass pill in the stage's corner. */
.hn-sound { position: absolute; top: 14px; right: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 240, 230, 0.16); cursor: pointer;
  background: rgba(14, 11, 13, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #f6eee8; font: 500 12.5px/1 Inter, system-ui, sans-serif; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.hn-sound:hover { border-color: rgba(243, 215, 166, 0.5); background: rgba(30, 20, 24, 0.8); }
.hn-sound:focus-visible { outline: 2px solid var(--hn-gold); outline-offset: 2px; }
.hn-sound .w { opacity: 0.35; }
.hn-sound.on { color: var(--hn-gold-2); border-color: rgba(216, 163, 94, 0.55); }
.hn-sound.on .w { opacity: 1; animation: hn-sound-w 0.8s ease-in-out infinite alternate; }
.hn-sound.busy { cursor: progress; opacity: 0.75; }
@keyframes hn-sound-w { to { opacity: 0.4; } }
@keyframes hn-intro-off { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 640px) {
  .hn-intro { --lift: 104px; }
  .hn-intro-name { flex-direction: column; align-items: center; -webkit-text-stroke-width: 1.5px; }
}
/* The Studio hides parts with [hidden]; the homepage has no rule that does. */
.hn-composer [hidden] { display: none !important; }
/* In the Studio it sits on a dark page; here it floats over pictures, so it gets a floor. */
.hn-composer .im-composer { background-color: rgba(22, 11, 17, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* ── 3. Everything, as tiles ─────────────────────────────────────────────── */

.hn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hn-tile { display: flex; flex-direction: column; gap: 10px; }
.hn-tile-pic { position: relative; aspect-ratio: 3 / 2; border-radius: var(--hn-r); overflow: hidden; border: 1px solid var(--hn-line); background: var(--hn-panel); }
.hn-tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.hn-tile:hover .hn-tile-pic img { transform: scale(1.05); }
.hn-tile-pic i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(10, 6, 8, 0.6); border: 1px solid rgba(255, 240, 230, 0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--hn-gold-2);
}
.hn-tile-name { display: flex; flex-direction: column; gap: 2px; }

/* ── 4. Ustaad: the big card ─────────────────────────────────────────────── */

.hn-ust {
  position: relative; overflow: hidden; border-radius: var(--hn-R); border: 1px solid var(--hn-line);
  background: linear-gradient(115deg, #0d090b 0%, #1d1418 45%, #0d090b 60%, #120d10 100%);
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 56px) 0; text-align: center;
}
.hn-ust::before { /* a slow sheen across the card */
  content: ""; position: absolute; inset: -50% -20%; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(243, 215, 166, 0.07) 50%, transparent 60%);
  animation: hn-sheen 9s ease-in-out infinite;
}
@keyframes hn-sheen { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.hn-ust-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.hn-ust-head .hn-small { max-width: 52ch; }
.hn-win {
  position: relative; margin: 0 auto; max-width: 1040px; border-radius: 14px 14px 0 0; overflow: hidden;
  border: 1px solid var(--hn-line-2); border-bottom: 0; background: #0f0b0d; text-align: left;
}
.hn-win-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #171114; border-bottom: 1px solid var(--hn-line); }
.hn-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a2e33; }
.hn-win-bar i:nth-child(1) { background: #ff5f57; } .hn-win-bar i:nth-child(2) { background: #febc2e; } .hn-win-bar i:nth-child(3) { background: #28c840; }
.hn-win-bar span { margin-left: 10px; font-size: 0.75rem; color: var(--hn-mute); }
.hn-win-body { padding: 18px 18px 0; }
.hn-win-body > p { font-size: 0.85rem; font-weight: 600; margin: 0 0 4px; }
.hn-win-body > p + p { font-weight: 400; color: var(--hn-mute); font-size: 0.75rem; margin-bottom: 14px; }
/* The Ustaad showcase: an index of crafts beside a stage of their work. */
.hn-show { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); padding: clamp(16px, 2.4vw, 28px); }
.hn-show-index { display: flex; flex-direction: column; border-top: 1px solid var(--hn-line); }
.hn-show-fam {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 2px; border: 0; border-bottom: 1px solid var(--hn-line); background: none; color: var(--hn-mute);
  font: inherit; font-size: 0.86rem; text-align: left; cursor: pointer; transition: color 0.2s;
}
.hn-show-fam small { font-size: 0.72rem; font-variant-numeric: tabular-nums; color: var(--hn-mute); opacity: 0.7; }
.hn-show-fam:hover, .hn-show-fam.on { color: var(--hn-fg); }
.hn-show-fam.on small { color: var(--hn-gold); opacity: 1; }
.hn-show-fam i { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--hn-gold); transform: scaleX(0); transform-origin: left; }
.hn-show-fam.on i { transform: scaleX(1); opacity: 0.35; }
.hn-show-fam.run i { opacity: 1; animation: hn-show-run var(--hn-show-ms, 6500ms) linear both; }
@keyframes hn-show-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hn-show-fam:focus-visible { outline: 1px solid var(--hn-gold); outline-offset: 2px; }
.hn-show-stage {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 14px;
  align-content: start; transition: opacity 0.26s ease; min-width: 0;
}
.hn-show-stage.swap { opacity: 0; }
.hn-show-lead { grid-row: 1 / span 2; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--hn-line); }
.hn-show-lead img, .hn-show-thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #151013; transition: transform 0.6s ease; }
.hn-show-lead:hover img { transform: scale(1.02); }
.hn-show-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hn-show-thumb { padding: 0; border: 1px solid var(--hn-line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; transition: border-color 0.2s; }
.hn-show-thumb:hover, .hn-show-thumb:focus-visible { border-color: var(--hn-gold); outline: none; }
.hn-show-cap { display: flex; flex-direction: column; gap: 6px; align-self: end; padding: 4px 2px 2px; min-width: 0; }
.hn-show-name { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; }
.hn-show-name em { color: var(--hn-fg); }
.hn-show-idea { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--hn-mute); max-width: 38ch; }
.hn-show-go { margin-top: 4px; font-size: 0.8rem; font-weight: 600; color: var(--hn-gold); }
.hn-show-go:hover { color: var(--hn-gold-2); }
.hn-show-all { display: block; padding: 12px clamp(16px, 2.4vw, 28px); border-top: 1px solid var(--hn-line); font-size: 0.8rem; color: var(--hn-mute); text-align: right; }
.hn-show-all:hover { color: var(--hn-gold); }
@media (max-width: 760px) {
  .hn-show { grid-template-columns: minmax(0, 1fr); }
  .hn-show-index { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-top: 0; gap: 18px; }
  .hn-show-index::-webkit-scrollbar { display: none; }
  .hn-show-fam { flex: none; border-bottom: 0; padding: 6px 0 8px; white-space: nowrap; }
  .hn-show-fam small { display: none; }
  .hn-show-stage { grid-template-columns: minmax(0, 1fr); }
  .hn-show-lead { grid-row: auto; }
  .hn-show-side { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}
.hn-purposes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hn-purpose { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: #181215; border: 1px solid var(--hn-line); transition: border-color 0.2s, transform 0.2s; }
.hn-purpose:hover { border-color: var(--hn-gold); transform: translateY(-2px); }
.hn-purpose img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.hn-purpose span { font-size: 0.75rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 5. Rasa: a shelf of rooms ───────────────────────────────────────────── */

.hn-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hn-shelf::-webkit-scrollbar { display: none; }
.hn-room { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.hn-room-pic { aspect-ratio: 3 / 4; border-radius: var(--hn-r); overflow: hidden; border: 1px solid var(--hn-line); background: var(--hn-panel); }
.hn-room-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.hn-room:hover .hn-room-pic img { transform: scale(1.04); }
.hn-room b { font-size: 1rem; font-weight: 600; text-transform: capitalize; }

/* ── 6. The Muses: a library, two shelves drifting past ──────────────────── */

.hn-muses .hn-head .hn-small { max-width: 52ch; }
.hn-cta {
  flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 99px;
  background: linear-gradient(120deg, var(--hn-gold-2), var(--hn-gold)); color: #1a0d07 !important; font-weight: 600; font-size: 0.92rem;
}
.hn-library { display: flex; flex-direction: column; gap: 16px; margin: 0 calc(-1 * var(--hn-pad)); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hn-lib-row { display: flex; gap: 16px; width: max-content; animation: hn-drift 70s linear infinite; }
.hn-lib-row.rev { animation-direction: reverse; animation-duration: 80s; }
.hn-library:hover .hn-lib-row { animation-play-state: paused; }
.hn-muse {
  position: relative; width: 230px; flex: none; border-radius: var(--hn-r); overflow: hidden;
  border: 1px solid var(--hn-line); background: var(--hn-panel); cursor: pointer; text-align: left; padding: 0; color: inherit; font: inherit;
}
.hn-muse img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.hn-muse:hover img { transform: scale(1.05); }
.hn-muse-cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(8, 4, 6, 0.92), transparent); display: flex; flex-direction: column; gap: 2px; }
.hn-muse-cap b { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.hn-muse-cap span { font-size: 0.78rem; color: var(--hn-mute); }
.hn-muse-cap i { font-style: normal; font-size: 0.78rem; color: var(--hn-gold-2); }
.hn-muse.pair { width: 300px; }
.hn-muse.pair img { aspect-ratio: 1 / 1.333; }

/* ── 7. Artist Spirits: the homepage section, framed as a panel here ─────── */

.hn-spirits { border-radius: var(--hn-R); overflow: hidden; border: 1px solid var(--hn-line); }

/* ── Narrow screens ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hn { padding-top: 84px; }
  .hn-stage { aspect-ratio: 4 / 5; }
  .hn-grid16 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
  .hn-mithu { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 16px 16px 72px; }
  .hn-mithu-pics { height: 100%; }
  .hn-mithu-pics img:nth-child(n+3) { display: none; }
  .hn-wipe { grid-template-columns: 1fr; }
  .hn-wipe-pane:nth-child(2) { display: none; }
  .hn-row .hn-card-face { height: 110px; }
  .hn-row.big .hn-card-face { height: 200px; }
  .hn-studio { min-height: 520px; }
  .hn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hn-purposes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hn-purpose:nth-child(n+7) { display: none; }
  .hn-muse { width: 170px; }
  .hn-muse.pair { width: 220px; }
  .hn-shelf { grid-auto-columns: 62%; }
}
/* Tablets: between the phone stack and the desktop rows. */
@media (min-width: 601px) and (max-width: 900px) {
  .hn-stage { aspect-ratio: 4 / 3; }
  .hn-shelf { grid-auto-columns: 30%; }
  .hn-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hn-purposes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hn-purpose:nth-child(n+7) { display: flex; }
  .hn-purpose:nth-child(n+9) { display: none; }
}
@media (max-width: 520px) {
  .hn-head { flex-direction: column; align-items: start; }
  .hn-feat-title .hn-small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hn *, .hn *::before { animation: none !important; transition: none !important; }
  .hn-grid16 img { opacity: 1; transform: none; }
  .hn-lens, .hn-row.big { transform: none; translate: none; }
}

/* The hero is never empty: the stage carries a soft moving sheen until its
   pictures land, and each picture sits on its own blurred stand-in
   (home-next.js BLUR) or the panel colour until it arrives. */
.hn-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.04) 50%, transparent 70%) 0 0 / 300% 100%, var(--hn-panel);
  animation: hn-sheen 1.6s ease-in-out infinite;
}
.hn-stage .hn-slide { z-index: 1; }
.hn-drift img { background: #1b1518 center / cover no-repeat; }
@keyframes hn-sheen { from { background-position: 100% 0, 0 0; } to { background-position: 0 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .hn-stage::before { animation: none; } }

/* The feature carousel never fills the screen: on a laptop the next section
   starts in view, so the page reads as more than one picture. */
.hn-stage { max-height: clamp(240px, 46vh, 500px); width: 100%; }
/* Sections closer together: one screen shows more than one idea. */
.hn { gap: clamp(36px, 5vw, 64px); padding-top: 84px; }
/* Phones: the "Everything in one place" tiles are one swipe row (the next
   one peeking), not five rows of two. */
@media (max-width: 640px) {
  .hn-tiles { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--hn-pad)); padding: 0 var(--hn-pad) 4px; scrollbar-width: none; }
  .hn-tiles::-webkit-scrollbar { display: none; }
  .hn-tiles > .hn-tile { flex: 0 0 44%; scroll-snap-align: start; }
}
/* Phones: shorter showcases. The Ustaad demo's picture capped, its long
   line trimmed to two; the Muses one drifting shelf of smaller cards. */
@media (max-width: 640px) {
  .hn-show-stage img { max-height: 42vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: cover; }
  .hn-ust-head .hn-small, .hn-muses .hn-head .hn-small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hn-lib-row.rev { display: none; }
  .hn-muse { width: 160px; }
}

/* Phones: the Muse section is a short card, not a screen of stars. */
@media (max-width: 760px) {
  .hn-spirits.hn-spirits { padding: 34px 18px 30px; }
  .hn-spirits .kz-soon, .hn-spirits .kz-langs { display: none; }
  .hn-spirits .kz-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.92rem; margin-bottom: 14px; }
  .hn-spirits .kz-h2 { font-size: 1.6rem; margin-bottom: 8px; }
}
@media (max-width: 760px) {
  .hn-spirits.hn-spirits.kz-commission { min-height: 0; }
  .hn-show-stage img.hn-show-stage img, .hn-show-lead img { max-height: 30vh; }
  .hn-show-side { gap: 6px; }
  .hn-show-cap { gap: 3px; }
  .hn-show-idea { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
