/* Another Machines — home (v3). */
.h {
  --h-void: #050505;
  --h-copper: #d9773f;
  --h-signal: #e0321f;
  background: var(--h-void);
}
.h-h2 { font-family: var(--v3-display); font-weight: 300; font-size: clamp(32px, 4.5vw, 66px); line-height: 1.04; letter-spacing: -.015em; }
.h-lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--v3-bone); }
.h-section { padding: clamp(88px, 10vw, 160px) 0; border-top: 1px solid var(--v3-rule); }
.h-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px clamp(28px, 5vw, 96px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.h-head p { color: var(--v3-ash); max-width: 46ch; }
.h-head-row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; }
@media (max-width: 820px) { .h-head { grid-template-columns: 1fr; } }

/* ================================================================ hero */
.h-hero { position: relative; min-height: max(100svh, 680px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; background: #000; }
.h-hero-media { position: absolute; inset: var(--v3-header) 0 0 0; z-index: -2; }
.h-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.js .h-hero-media img { animation: hSettle 2.6s cubic-bezier(.2,.7,.1,1) both; }
@keyframes hSettle { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--h-void) 0%, rgba(5,5,5,.88) 16%, rgba(5,5,5,0) 46%), linear-gradient(180deg, #000 0, rgba(0,0,0,0) 14%); pointer-events: none; }
.h-hero-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-bottom: clamp(28px, 4vw, 52px); }
.js .h-hero-bar > * { animation: hRise 1.2s cubic-bezier(.2,.7,.1,1) both; }
.js .h-hero-bar > :nth-child(2) { animation-delay: .15s; }
@keyframes hRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.h-status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--v3-ash); margin-bottom: 14px; }
.h-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--h-copper); box-shadow: 0 0 12px var(--h-copper); }
.h-hero-title { font-family: var(--v3-display); font-weight: 300; font-size: clamp(26px, 3vw, 46px); line-height: 1.1; letter-spacing: -.01em; max-width: 20ch; }
.h-hero-sub { margin-top: 12px; color: var(--v3-ash); max-width: 52ch; }
.h-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.h-btn-copper { background: var(--h-copper); color: #140a04; }
.h-btn-copper:hover { background: #f09a62; }
.h-film { display: flex; align-items: center; gap: 12px; margin-left: 12px; text-decoration: none; color: var(--v3-ash); font-size: 14px; }
.h-film img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--v3-rule-strong); }
.h-film b { display: block; color: var(--v3-bone); font-weight: 500; }
.h-film:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .h-hero-bar { grid-template-columns: 1fr; }
  .h-hero-actions { justify-content: flex-start; }
  .h-film { margin-left: 0; }
}
@media (max-width: 760px) {
  .h-hero { min-height: 0; padding-top: var(--v3-header); }
  .h-hero-media { position: relative; inset: auto; }
  .h-hero-media img { height: auto; aspect-ratio: 16 / 9; }
  .h-hero::after { background: linear-gradient(0deg, var(--h-void) 0%, rgba(5,5,5,0) 58%); }
  .h-hero-bar { padding-top: 8px; }
}

/* ================================================================ brand */
.h-brand { padding: clamp(80px, 9vw, 150px) 0 0; overflow: hidden; }
.h-wordmark {
  display: flex; flex-direction: column;
  font-family: var(--v3-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 13.6vw, 236px); line-height: .84; letter-spacing: -.045em; color: var(--v3-bone);
  margin-left: -.04em;
}
.h-wordmark span:last-child { align-self: flex-end; color: transparent; -webkit-text-stroke: 1.5px rgba(236, 232, 226, .55); }
.h-brand-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(28px, 5vw, 96px); margin-top: clamp(48px, 6vw, 96px); align-items: start; }
.h-brand-copy .h-lede { margin-bottom: 22px; max-width: 54ch; }
.h-brand-photos { display: grid; grid-template-columns: 6fr 3.2fr 5fr; gap: 10px; margin-top: clamp(56px, 7vw, 110px); height: clamp(260px, 38vw, 560px); }
.h-ph { overflow: hidden; background: #111; }
.h-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transition: filter .6s, transform 1.2s cubic-bezier(.2,.7,.1,1); }
.h-ph:hover img { filter: none; transform: scale(1.03); }
.h-ph-b { margin-top: 12%; }
.h-ph-b img { object-position: 50% 40%; }
@media (max-width: 820px) {
  .h-brand-grid { grid-template-columns: 1fr; }
  .h-brand-photos { grid-template-columns: 1fr 1fr; height: auto; }
  .h-ph { aspect-ratio: 4 / 5; }
  .h-ph-a { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .h-ph-b { margin-top: 0; }
}

/* ================================================================ rack */
.h-units { display: grid; gap: 10px; }
.h-unit {
  --acc: #d9773f;
  position: relative; display: grid;
  grid-template-columns: 34px minmax(200px, 300px) minmax(0, 1.15fr) minmax(0, 1.4fr) minmax(150px, .9fr) 124px 34px;
  grid-template-areas: "ear screen id desc meta led ear2";
  align-items: center; min-height: 148px; text-decoration: none;
  background: linear-gradient(180deg, #1d1e1d 0%, #141514 60%, #101110 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 22px 40px -18px rgba(0, 0, 0, .8);
  transition: transform .55s cubic-bezier(.2,.7,.1,1), box-shadow .55s;
}
.h-unit:hover, .h-unit:focus-visible { transform: translateX(clamp(8px, 1.4vw, 22px)); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.6), -24px 22px 50px -18px rgba(0, 0, 0, .9); }
.h-ear { grid-area: ear; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 18px 0; background: linear-gradient(90deg, #131413, #191a19); border-right: 1px solid rgba(0,0,0,.6); }
.h-ear:last-child { grid-area: ear2; border-right: 0; border-left: 1px solid rgba(0,0,0,.6); }
.h-ear i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #555 0, #2a2a2a 45%, #0c0c0c 70%); box-shadow: 0 1px 0 rgba(255,255,255,.08); position: relative; }
.h-ear i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5px; height: 1px; background: #090909; transform: rotate(35deg); }
.h-unit-screen { grid-area: screen; position: relative; height: 112px; margin: 0 26px 0 8px; background: #000; overflow: hidden; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px rgba(255,255,255,.05); }
.h-unit-screen::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--acc); box-shadow: 0 0 14px var(--acc); opacity: .85; }
.h-unit-screen img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.95); transition: filter .5s, transform .9s cubic-bezier(.2,.7,.1,1); }
.h-unit:hover .h-unit-screen img { filter: none; transform: scale(1.04); }
.h-unit-id { grid-area: id; display: flex; flex-direction: column; gap: 6px; padding-right: 20px; }
.h-unit-id strong { font-family: var(--v3-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: .1em; line-height: 1.05; color: var(--v3-bone); }
.h-unit-id small { font-family: var(--v3-label); font-weight: 500; font-size: 14px; letter-spacing: .1em; color: var(--acc); }
.h-unit-desc { grid-area: desc; color: var(--v3-ash); font-size: 15px; line-height: 1.5; padding-right: 28px; }
.h-unit-meta { grid-area: meta; display: flex; flex-direction: column; gap: 4px; font-family: var(--v3-label); font-weight: 500; font-size: 14px; letter-spacing: .08em; color: var(--v3-ash); border-left: 1px solid rgba(255,255,255,.07); padding-left: 18px; }
.h-unit-meta span:first-child { color: var(--v3-bone); }
.h-unit-led { grid-area: led; display: inline-flex; align-items: center; gap: 9px; justify-self: start; font-family: var(--v3-label); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--v3-ash); text-transform: uppercase; padding-left: 10px; }
.h-unit-led::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fc46a; box-shadow: 0 0 8px rgba(47, 196, 106, .8); }
.h-unit-led.is-new { color: var(--v3-bone); }
.h-unit-led.is-new::before { background: var(--h-copper); box-shadow: 0 0 10px var(--h-copper), 0 0 2px #fff inset; }
.h-unit-led.is-soon::before { background: transparent; border: 1px solid #e7a33e; box-shadow: none; }
@media (max-width: 1240px) {
  .h-unit { grid-template-columns: 26px minmax(180px, 250px) minmax(0, 1fr) auto 26px; grid-template-areas: "ear screen id led ear2" "ear screen desc desc ear2" "ear screen meta meta ear2"; row-gap: 6px; padding: 16px 0; }
  .h-unit-screen { align-self: stretch; height: auto; min-height: 120px; }
  .h-unit-meta { flex-direction: row; gap: 14px; border-left: 0; padding-left: 0; }
  .h-unit-led { padding: 0 14px 0 0; }
}
@media (max-width: 640px) {
  .h-unit { grid-template-columns: 16px minmax(0, 1fr) 16px; grid-template-areas: "ear screen ear2" "ear id ear2" "ear desc ear2" "ear meta ear2" "ear led ear2"; padding: 0 0 18px; row-gap: 10px; }
  .h-unit-screen { margin: 0; min-height: 0; height: 132px; }
  .h-unit-id, .h-unit-desc, .h-unit-meta, .h-unit-led { padding-left: 14px; padding-right: 14px; }
  .h-unit-meta { flex-wrap: wrap; }
  .h-ear { padding: 12px 0; }
  .h-ear i { width: 8px; height: 8px; }
  .h-unit:hover, .h-unit:focus-visible { transform: none; }
}

/* ================================================================ skins */
.h-skins-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.h-skins-media { position: relative; display: block; aspect-ratio: 16 / 11; }
.h-skins-back { position: absolute; left: 0; top: 0; width: 82%; height: auto; opacity: .55; filter: grayscale(.4); }
.h-skins-front { position: absolute; right: 0; bottom: 0; width: 80%; height: auto; box-shadow: 0 40px 80px -20px rgba(0,0,0,.9); transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.h-skins-media:hover .h-skins-front { transform: translate(-10px, -10px); }
.h-skins-copy .h-lede { margin: 20px 0 14px; }
.h-price { font-family: var(--v3-label); font-weight: 500; letter-spacing: .1em; color: var(--v3-ash); margin-bottom: 26px; }
@media (max-width: 900px) { .h-skins-grid { grid-template-columns: 1fr; } }

/* ================================================================ worlds */
.h-worlds-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.h-worlds-list { display: flex; flex-direction: column; border-top: 1px solid var(--v3-rule); }
.h-worlds-list a { display: grid; grid-template-columns: 1fr; padding: 18px 0 18px 22px; border-bottom: 1px solid var(--v3-rule); text-decoration: none; position: relative; transition: padding .4s cubic-bezier(.2,.7,.1,1); }
.h-worlds-list strong { font-family: var(--v3-display); font-weight: 300; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.1; color: var(--v3-dim); transition: color .25s; }
.h-worlds-list span { font-size: 14px; color: var(--v3-dim); margin-top: 4px; }
.h-worlds-list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: 1px solid var(--v3-dim); transform: rotate(45deg); transition: background-color .25s, border-color .25s; }
.h-worlds-list a.is-active, .h-worlds-list a:hover, .h-worlds-list a:focus-visible { padding-left: 34px; }
.h-worlds-list a.is-active strong, .h-worlds-list a:hover strong, .h-worlds-list a:focus-visible strong { color: var(--v3-bone); }
.h-worlds-list a.is-active span { color: var(--v3-ash); }
.h-worlds-list a.is-active::before { background: var(--h-signal); border-color: var(--h-signal); }
.h-worlds-stage { position: relative; min-height: 420px; background: #0d0d0d; overflow: hidden; }
.h-worlds-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.4s cubic-bezier(.2,.7,.1,1); }
.h-worlds-stage img.is-on { opacity: 1; transform: none; }
@media (max-width: 900px) { .h-worlds-grid { grid-template-columns: 1fr; } .h-worlds-stage { min-height: 0; aspect-ratio: 16 / 10; order: -1; } }

/* ================================================================ best sellers */
.h-best-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.h-best-grid a { display: block; position: relative; text-decoration: none; }
.h-best-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; margin-bottom: 14px; transition: filter .4s; filter: brightness(.92); }
.h-best-grid a:hover img { filter: brightness(1.05); }
.h-rank { position: absolute; left: 0; top: 0; z-index: 1; min-width: 46px; height: 46px; padding: 0 10px; display: grid; place-items: center; background: var(--h-void); font-family: var(--v3-display); font-weight: 300; font-size: 20px; color: var(--v3-bone); }
.h-best-grid li:first-child .h-rank { background: var(--h-signal); }
.h-best-grid small { display: block; font-family: var(--v3-label); font-weight: 500; letter-spacing: .1em; font-size: 13px; color: var(--v3-dim); }
.h-best-grid strong { display: block; font-weight: 500; font-size: 17px; color: var(--v3-bone); margin-top: 2px; }
@media (max-width: 1000px) { .h-best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================ packs */
.h-packs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h-pack { display: block; text-decoration: none; }
.h-pack img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #111; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.h-pack:hover img { transform: translateY(-6px); }
.h-pack span { display: grid; grid-template-columns: 1fr auto; padding-top: 14px; border-bottom: 1px solid var(--v3-rule); padding-bottom: 14px; }
.h-pack small { grid-column: 1 / -1; font-family: var(--v3-label); font-weight: 500; letter-spacing: .1em; font-size: 13px; color: var(--v3-dim); }
.h-pack strong { font-family: var(--v3-display); font-weight: 300; font-size: 24px; letter-spacing: .04em; }
.h-pack em { font-style: normal; color: var(--v3-ash); align-self: end; }
@media (max-width: 900px) { .h-packs-grid { grid-template-columns: 1fr; } }

/* ================================================================ artist */
.h-artist { position: relative; overflow: hidden; isolation: isolate; min-height: min(100vh, 980px); display: flex; align-items: flex-end; border-top: 1px solid var(--v3-rule); }
.h-artist-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.h-artist::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.55) 50%, rgba(5,5,5,.15) 100%), linear-gradient(0deg, var(--h-void) 0%, transparent 40%); }
.h-artist-inner { padding-top: 140px; padding-bottom: clamp(48px, 6vw, 88px); }
.h-artist-credit { font-family: var(--v3-label); font-weight: 600; letter-spacing: .16em; font-size: 15px; color: var(--h-signal); margin-bottom: 18px; }
.h-artist-title { font-family: var(--v3-display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 8.6vw, 148px); line-height: .88; letter-spacing: -.035em; }
.h-artist .h-lede { margin-top: 20px; color: var(--v3-ash); }
.h-releases { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.h-releases a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px 18px 8px 8px; background: rgba(5,5,5,.6); border: 1px solid var(--v3-rule); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .25s; }
.h-releases a:hover { border-color: var(--v3-bone); }
.h-releases img { width: 64px; height: 64px; object-fit: cover; }
.h-releases small { display: block; font-family: var(--v3-label); font-weight: 500; letter-spacing: .1em; font-size: 12px; color: var(--v3-dim); }
.h-releases strong { font-weight: 500; font-size: 15px; }

/* ================================================================ motion */
.h-motion-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 16px; }
.h-video-main { grid-row: span 2; }
.h-video { position: relative; display: block; overflow: hidden; text-decoration: none; background: #111; aspect-ratio: 16 / 9; }
.h-video-main { aspect-ratio: auto; }
.h-video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.h-video:hover img { transform: scale(1.04); }
.h-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent 55%); }
.h-video span { position: absolute; left: 20px; bottom: 18px; right: 70px; z-index: 1; }
.h-video small { display: block; font-family: var(--v3-label); font-weight: 500; letter-spacing: .1em; font-size: 13px; color: var(--v3-ash); }
.h-video strong { font-weight: 500; font-size: 18px; }
.h-video-main strong { font-family: var(--v3-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 36px); }
.h-video i { position: absolute; right: 18px; bottom: 18px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236,232,226,.6); }
.h-video i::after { content: ""; position: absolute; left: 17px; top: 14px; border-left: 12px solid var(--v3-bone); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.h-video:hover i { background: var(--h-signal); border-color: var(--h-signal); }
@media (max-width: 820px) { .h-motion-grid { grid-template-columns: 1fr; grid-template-rows: auto; } .h-video-main { grid-row: auto; aspect-ratio: 16 / 9; } }

/* ================================================================ catalog */
.h-catalog { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--v3-rule); }
.h-catalog-wall { position: absolute; inset: -4% -2%; z-index: -2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; transform: rotate(-4deg) scale(1.08); opacity: .32; }
.h-catalog-wall img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.h-catalog::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 25% 50%, rgba(5,5,5,.96) 30%, rgba(5,5,5,.6) 100%); }
.h-catalog-inner { padding-top: clamp(110px, 13vw, 220px); padding-bottom: clamp(110px, 13vw, 220px); }
.h-catalog-title { font-family: var(--v3-display); font-weight: 300; font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -.02em; }
.h-catalog-title span { display: block; font-weight: 800; font-size: 2.1em; letter-spacing: -.05em; line-height: .86; }
.h-catalog .h-lede { margin: 24px 0 30px; max-width: 46ch; color: var(--v3-ash); }
@media (max-width: 640px) { .h-catalog-wall { grid-template-columns: repeat(3, 1fr); } }
