/* ============================================================
   Main site home (Sentinel HUD): hero, marquee, class accordion, zigzag, steps, news + wiki, CTA, footer
   ============================================================ */
#screen-home { animation: appIn 0.5s var(--ease-out); }
@keyframes appIn { from { opacity: 0; } to { opacity: 1; } }

/* hero: full-bleed image, heavy bottom gradient, giant uppercase */
.hero { position: relative; min-height: calc(100dvh - 58px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-slide { position: absolute; inset: 0; background: var(--bg) center 35% / cover no-repeat; filter: saturate(0.72) contrast(1.05); opacity: 0; transform: scale(1.06); transition: opacity 1.8s var(--ease), transform 0s linear 1.8s; }
.hero-slide.on { opacity: 1; transform: scale(1); transition: opacity 1.8s var(--ease), transform 9s linear; }
.hero-dots { position: absolute; right: 32px; top: 22px; z-index: 1; display: flex; gap: 6px; }
.hero-dots i { display: block; width: 26px; height: 2px; background: color-mix(in srgb, var(--text) 30%, transparent); transition: background var(--dur), width var(--dur) var(--ease); }
.hero-dots i.on { width: 44px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.on { transition: none; transform: none; } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, color-mix(in srgb, var(--bg) 25%, transparent) 40%, color-mix(in srgb, var(--bg) 92%, transparent) 78%, var(--bg) 100%); }
.hero-in { width: 100%; padding: 80px 32px 56px; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: end; }
.hero-h1 { font-size: clamp(52px, 8.6vw, 128px); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.hero-h1 span { display: block; }
.hero-h1 .l2 { color: var(--gold); }
.hero-sub { display: flex; gap: 16px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.hero-sub p { color: var(--text-2); max-width: 36em; font-size: 18px; margin-right: 12px; }
.panel { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.panel .ph-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel .ph-h .dot { margin-right: 4px; vertical-align: 1px; }
.panel .kv { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.panel .kv:last-child { border-bottom: 0; }
.panel .kv span:last-child { font-family: var(--font-mono); color: var(--gold); text-align: right; }
.panel .kv.big span:last-child { font-size: 17px; font-weight: 600; cursor: pointer; }

/* marquee (once per page; static under reduced motion) */
.marq { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 14px 0; }
.marq .t { display: flex; gap: 48px; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--text-3); animation: mq 40s linear infinite; width: max-content; }
.marq .t span::before { content: '/'; color: var(--gold); margin-right: 14px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* sections */
section.s { padding: 96px 0; }
.head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: end; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.head.bare { grid-template-columns: 1fr; border: 0; padding-bottom: 12px; margin-bottom: 8px; }
.h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; text-transform: uppercase; }
.h2.sm { font-size: 34px; }

/* accordion class slider */
.acc { display: flex; gap: 6px; height: 460px; }
.acc a { position: relative; flex: 1; min-width: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: flex 0.6s var(--ease); }
.acc a:hover, .acc a.open { flex: 3.2; }
.acc img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.acc a:hover img { transform: scale(1.04); }
.acc .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(11, 13, 15, 0.9), transparent); display: flex; justify-content: space-between; align-items: end; opacity: 0; transition: opacity 0.4s var(--ease); color: #e9e7e1; }
.acc a:hover .cap, .acc a.open .cap { opacity: 1; }
.acc .cap b { font-size: 20px; font-weight: 800; }
.acc .cap span { font-family: var(--font-mono); font-size: 11px; color: #e0bd55; }
.acc .v { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: #a1a09a; transition: opacity 0.3s; }
.acc a:hover .v, .acc a.open .v { opacity: 0; }
.acc-empty { color: var(--text-3); font-size: 13.5px; padding: 40px 0; }

/* contents zigzag with hairlines */
.zz { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.zz > a { display: block; color: var(--text); padding: 40px 40px 40px 0; border-bottom: 1px solid var(--line); transition: background var(--dur); }
.zz > a:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
.zz > a:hover { background: var(--surface); }
.zz h3 { font-size: 26px; font-weight: 800; margin: 14px 0 8px; }
.zz p { color: var(--text-2); font-size: 14.5px; max-width: 44ch; }
.zz .pic { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); }
.zz .pic img { width: 100%; height: 100%; object-fit: cover; }

/* steps: image cards in a row */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); transition: transform var(--dur) var(--ease), border-color var(--dur); }
.steps li:hover { transform: translateY(-4px); border-color: var(--gold-3); }
.step-pic { position: relative; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.step-pic img { width: 100%; height: 100%; object-fit: cover; }
.step-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--surface) 90%, transparent), transparent 55%); }
.step-n { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--gold); letter-spacing: -0.02em; }
.steps b { display: block; font-size: 18px; font-weight: 800; padding: 18px 22px 4px; }
.steps p { color: var(--text-2); font-size: 14px; padding: 0 22px 22px; }

/* news table + wiki card */
.two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.news-table { width: 100%; border-collapse: collapse; }
.news-table td { padding: 16px 12px 16px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.news-table tr { cursor: pointer; }
.news-table tr:hover td { background: var(--surface); }
.news-table td.d { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); width: 110px; }
.news-table td.k { width: 90px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--gold); }
.news-table td.t { font-weight: 600; }
.wk { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px; background: var(--surface); }
.wk h3 { font-size: 22px; font-weight: 800; margin: 8px 0 6px; }
.wk p { color: var(--text-2); font-size: 14px; }
.wk form { display: flex; gap: 8px; margin: 18px 0; }
.wk input { flex: 1; min-width: 0; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 14px; color: var(--text); font: inherit; outline: 0; }
.wk input:focus { border-color: var(--gold); }
.wk button { border: 0; border-radius: var(--r-sm); background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 0 18px; }
.wk .cats a { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.wk .cats a:hover { color: var(--gold); }
.wk .cats a small { margin-left: auto; font-family: var(--font-mono); color: var(--text-3); font-size: 11px; }

/* discord CTA + footer */
.cta { padding: 72px 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 900; letter-spacing: -0.035em; text-transform: uppercase; }
.cta p { color: var(--text-2); margin-top: 8px; }
.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--text-3); }
.foot nav a:hover { color: var(--gold); }
