@import url('./fonts.css');

/* Homepage-only tokens and components. Shared admin/dialog styling stays in redesign.css. */
.home {
  --home-bg: #060609;
  --home-surface: #0a0a0d;
  --home-text: #f2f2f4;
  --home-muted: #a1a1ac;
  --home-pink: #ff2e88;
  --home-heading: 'Orbitron', sans-serif;
  --home-mono: 'JetBrains Mono', monospace;
  margin: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: clip;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home a { color: inherit; text-decoration: none; }
.home button { font: inherit; }
.home :focus-visible { outline: 2px solid #29e0ff; outline-offset: 5px; }
.home [hidden] { display: none !important; }
.home-container { width: min(100%, 1196px); margin-inline: auto; padding-inline: 28px; }
.home-main { position: relative; isolation: isolate; }
.home-background { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(#060609a6, #060609e6), url('../../images/home/hero-background.webp?v=20260928e') 60% 30% / cover; filter: blur(7px); }
.home-skip { position: fixed; top: 10px; left: 16px; z-index: 1000; padding: 12px 18px; background: #060609; transform: translateY(-200%); }
.home-skip:focus { transform: none; }
.home-stage { position: sticky; top: 0; z-index: 0; }
/* Same brushed metal as the stats platform below the hero, so the hero sits between two plates. */
.home .rd-nav { position: relative; border-bottom: 1px solid #ffffff14; background: linear-gradient(transparent 55%, #ffffff0a), linear-gradient(#060608e6, #060608e6), url('../../images/home/platform-metal.webp') center top / 1254px repeat, var(--home-surface); box-shadow: inset 0 0 90px 10px #000000b3; backdrop-filter: none; }
.home .rd-nav__inner { max-width: 1196px; height: 60px; min-height: 60px; padding-inline: 28px; }
.home .rd-nav__brand { gap: 10px; }
.home .home-brand { font: 700 15px/1 var(--home-heading); letter-spacing: .04em; }
.home .home-brand, .home .home-brand span { color: #fff; }
.home .rd-nav__brand img { filter: brightness(0) invert(1); }
.home .rd-nav__links a { font-size: 12px; }
.home .rd-nav__links a:hover { color: #ff6fae; }
.home .rd-nav__menu { z-index: 100; }
.home-hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; background: var(--home-bg); filter: brightness(var(--hero-brightness, 1)) blur(var(--hero-blur, 0px)); }
.home-hero::before, .home-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.home-hero::before { z-index: 1; background: linear-gradient(90deg,#060609 0%,#060609 20%,#0606098c 36%,#06060926 50%,transparent 64%), linear-gradient(#06060973,transparent 28%,transparent 68%,#060609cc); }
.home-hero::after { z-index: 2; opacity: .35; background: repeating-linear-gradient(0deg,#ffffff08 0 1px,transparent 1px 3px); }
.home-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; transform-origin: 75% center; animation: home-breathe 20s ease-in-out infinite; }
.home-hero__inner { position: relative; z-index: 3; padding-block: 90px; }
.home-code { margin: 0 0 26px; color: #e8e6ec; font: 400 13.5px/1.5 var(--home-mono); }
.home-code > span:nth-child(1) { color: #b69bff; }
.home-code > span:nth-child(2) { color: #29e0ff; }
.home-code > span:nth-child(3) { color: #ff6fae; }
.home-hero h1 { margin: 0 0 14px; font: 900 clamp(48px,6vw,86px)/.9 var(--home-heading); letter-spacing: -.015em; color: #e8e6ec; }
/* Reads as code: "ICH BIN" + !DEZZY; (string concatenation with the negated name). */
.home-hero__op { color: #ff2e88; }
.home-hero__name { display: block; font-size: 1.09em; text-shadow: 0 0 24px #29e0ff59,0 0 50px #ff2e8838; }
.home-hero h1.is-glitching { animation: home-glitch 360ms steps(1, end); }
.home-hero h1.is-glitching .home-hero__name { text-shadow: -4px 0 #29e0ff, 4px 0 #ff2e88; }
.home-comment { margin: 0 0 28px; font: 13.5px/1.6 var(--home-mono); color: #92909b; }
.home-hero__lead { margin: 0 0 12px; color: #c4c2c8; font-size: 16.5px; line-height: 1.7; }
.home-languages { margin: 0 0 40px; color: #92909b; font: 12.5px/1.6 var(--home-mono); }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 26px; border: 0; border-radius: 10px; background: var(--home-pink); color: #0a0a0c !important; font-size: 13.5px !important; font-weight: 650 !important; cursor: pointer; transition: transform .2s, box-shadow .2s; }
/* Hero: the one call to action, explaining what the forum offers. */
.home-forum { min-height: 58px; padding: 10px 24px 10px 20px; text-align: left; }
.home-forum .home-icon { width: 24px; height: 24px; }
.home-forum__text { display: grid; gap: 1px; }
.home-forum__text strong { font-size: 15px; font-weight: 700; }
.home-forum__text small { font-size: 12px; font-weight: 600; opacity: .72; }
.home-button:hover { transform: translateY(-2px); box-shadow: 0 6px 30px #ff2e8838; }
.home-scroll { position: absolute; z-index: 3; left: 50%; bottom: 58px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; color: #aaa7b3 !important; font: 500 11px/1.3 var(--home-mono); letter-spacing: .08em; animation: home-scroll-bounce 2.4s ease-in-out infinite; }
.home-platform { position: relative; z-index: 2; margin-top: -44px; padding-top: 1px; background: radial-gradient(ellipse 34% 56px at 36% 0, #ffffff17, transparent), linear-gradient(#ffffff0d, transparent 52px), linear-gradient(#060608e6, #060608e6), url('../../images/home/platform-metal.webp') center top / 1254px repeat, var(--home-surface); box-shadow: inset 0 0 160px 30px #000000b3; clip-path: polygon(0 24px,2% 24px,8% 0,92% 0,98% 24px,100% 24px,100% 100%,0 100%); }
.home-platform::before { content: ''; position: absolute; inset: 0 0 auto; height: 25px; background: linear-gradient(90deg, transparent, #ffffffe6, transparent) -30% 0 / 22% 100% no-repeat, linear-gradient(90deg, #f5f5f740, #ffffffb3 36%, #f5f5f766 58%, #ffffffa6 80%, #f5f5f740); animation: home-edge-glint 9s ease-in-out infinite; clip-path: polygon(0 24px,2% 24px,8% 0,92% 0,98% 24px,100% 24px,100% 25px,98% 25px,92% 1px,8% 1px,2% 25px,0 25px); }
.home-platform::after { content: ''; position: absolute; inset: 0 0 auto; height: 40px; pointer-events: none; background: linear-gradient(90deg, transparent, #ffffff2e, transparent) -30% 0 / 22% 100% no-repeat; clip-path: polygon(0 24px,2% 24px,8% 0,92% 0,98% 24px,100% 24px,100% 40px,98% 40px,92% 16px,8% 16px,2% 40px,0 40px); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); animation: home-edge-sheen 9s ease-in-out infinite; }
.home-tone--cyan { --accent: #29e0ff; --accent-rgb: 41,224,255; }
.home-tone--gold { --accent: #ffcf6b; --accent-rgb: 255,207,107; }
.home-tone--pink { --accent: #ff6fae; --accent-rgb: 255,46,136; }
.home-tone--purple { --accent: #b69bff; --accent-rgb: 155,107,255; }
.home-tone--discord { --accent: #8b93ff; --accent-rgb: 88,101,242; }
.home-stats { display: flex; flex-wrap: wrap; gap: 22px 36px; padding-top: 40px; margin-block: 0; }
.home-stats > div { display: flex; align-items: baseline; gap: 9px; padding-left: 14px; border-left: 2px solid rgba(var(--accent-rgb),.5); }
.home-stats dt { color: #97919c; font: 12px/1.5 var(--home-mono); }
.home-stats dd { order: -1; margin: 0; color: var(--accent); font: 700 22px/1.5 var(--home-heading); }
.home-projects, .home-social, .home-contact, .home-workspace { scroll-margin-top: 24px; }
.home-projects { --trace: #29e0ff; padding-top: 64px; padding-bottom: 56px; }
/* Right padding keeps a free channel for the section trace dropping past the tabs. */
.home-project-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; padding-right: 64px; }
.home-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 18px 11px 14px; border-radius: 10px; border: 1px solid #ffffff1f; background: #ffffff04; color: #a1a1ac !important; font-size: 12.5px; font-weight: 600; transition: border-color .2s, transform .2s, background .2s; }
.home-tab:hover { transform: translateY(-2px); color: var(--accent) !important; border-color: var(--accent); }
.home-tab[aria-selected='true'] { color: var(--accent) !important; border-color: rgba(var(--accent-rgb),.55); background: rgba(var(--accent-rgb),.12); }
.home-icon { width: 15px; height: 15px; flex: 0 0 auto; }
.home-project { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; border: 1px solid rgba(var(--accent-rgb),.3); min-height: 340px; display: flex; align-items: center; background: #0a0a10; }
.home-project-panels > .home-project + .home-project { margin-top: 22px; }
.home-project-panels.is-enhanced > .home-project { margin-top: 0; }
.home-project__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.home-project::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#0a0805 0%,#0a0805e0 42%,#0a080559 75%,transparent); }
.home-project__copy { padding: 52px; max-width: 680px; }
.home-project__category { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; font: 600 12px/1.4 var(--home-mono); color: var(--accent); letter-spacing: .06em; }
.home-project h3 { margin: 0 0 16px; font: 800 clamp(23px,2.6vw,34px)/1.3 var(--home-heading); letter-spacing: .005em; overflow-wrap: anywhere; text-shadow: 0 2px 20px #0009; }
.home-project__description { font-size: 15px; line-height: 1.65; color: #d6d2c8; margin: 0 0 22px; max-width: 34rem; }
.home-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.home-tags li { padding: 6px 13px; border: 1px solid #ffffff38; border-radius: 20px; background: #0a080566; color: #e8e4da; font-size: 11.5px; line-height: 1.4; }
.home-tags li:first-child { background: linear-gradient(135deg,#ffcf6b,#ff9d6c); color: #0a0a0c; border-color: transparent; }
.home-link { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; font-size: 13.5px; font-weight: 600; }
.home-link span { transition: transform .2s; }
.home-link:hover span { transform: translateX(4px); }
.home-project--game { align-items: flex-end; }
.home-project--game::before { background: linear-gradient(0deg,#0c0a12 0%,#0c0a12e0 26%,#0c0a124d 58%,transparent 85%); }
.home-project--scene-right { justify-content: flex-end; }
.home-project--scene-right::before { background: linear-gradient(90deg,transparent 0%,transparent 30%,#100a0d73 48%,#100a0deb 70%,#100a0d); }
.home-project--scene-right .home-project__copy { max-width: 544px; }
.home-project--icon, .home-project--icon-right { display: grid; grid-template-columns: 170px 1fr; gap: 44px; padding: 52px; background: linear-gradient(135deg,rgba(var(--accent-rgb),.14),#0a0d10 60%); }
.home-project--icon::before, .home-project--icon-right::before { background: linear-gradient(90deg,rgba(var(--accent-rgb),.07) 1px,transparent 1px),linear-gradient(rgba(var(--accent-rgb),.07) 1px,transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse at 15% 50%,#000,transparent 85%); }
.home-project--icon .home-project__copy, .home-project--icon-right .home-project__copy { padding: 0; }
.home-project__icon { width: 170px; height: 170px; padding: 24px; border-radius: 28px; border: 1px solid rgba(var(--accent-rgb),.32); background: rgba(var(--accent-rgb),.1); box-shadow: 0 0 44px -6px rgba(var(--accent-rgb),.4); display: grid; place-items: center; color: var(--accent); }
.home-project__icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.home-project__icon .home-icon { width: 66px; height: 66px; }
.home-project--icon-right { grid-template-columns: 1fr 170px; }
.home-project--icon-right .home-project__icon { grid-column: 2; grid-row: 1; }
.home-project--icon-right .home-project__copy { grid-column: 1; grid-row: 1; }
.home-watermark { position: absolute; right: -40px; bottom: -70px; color: var(--accent); opacity: .05; pointer-events: none; z-index: -1; transform: rotate(6deg); }
.home-watermark .home-icon { width: 320px; height: 320px; }
.home-social { --trace: #5865f2; padding-top: 16px; padding-bottom: 32px; }
.home-social .home-project { min-height: 290px; }
.home-contact { --trace: var(--home-pink); padding-top: 16px; padding-bottom: 120px; }
.home-contact__card { position: relative; border: 1px solid #ff2e8838; border-radius: 28px; padding: 64px 44px; text-align: center; background: linear-gradient(160deg,#ff2e881a,#9b6bff1a); box-shadow: 0 0 90px -40px #ff2e884d; }
.home-contact h3 { font: 800 30px/1.2 var(--home-heading); margin: 0 0 16px; }
.home-contact p { color: var(--home-muted); max-width: 28rem; margin: 0 auto 32px; font-size: 15px; line-height: 1.6; }
.home-footer { padding-block: 26px; border-top: 1px solid #9b6bff44; }
.home-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: #99939f; }
.home-footer p { margin: 0; font: 12px/1.8 var(--home-mono); }
.home-status { margin-left: 18px; white-space: nowrap; }
.home-status::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 6px #3ddc84; }
.home-footer nav { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.home-footer button { border: 0; color: inherit; background: none; padding: 0; cursor: pointer; }
.home-footer a:hover, .home-footer button:hover { color: #f2f2f4; }
.home-workspace { padding-block: 16px 32px; }
.home-rain { position: absolute; inset: 0; overflow: hidden; z-index: 2; pointer-events: none; }
.home-rain span { position: absolute; top: -15%; left: var(--rain-x, 50%); width: 1px; height: var(--rain-length, 65px); background: linear-gradient(transparent,#d9edffcc,transparent); filter: drop-shadow(0 0 2px #9bcfff66); animation: home-rain var(--rain-speed, 3s) linear infinite; animation-delay: var(--rain-delay, 0s); }
.home-rain span:nth-child(5n) { width: 2px; }
.home-caret { animation: home-blink 1.1s steps(1) infinite; }
.home.is-page-hidden *, .is-page-hidden .home * { animation-play-state: paused !important; }
@keyframes home-breathe { 0%,100% { transform: scale(1); filter: brightness(.95); } 50% { transform: scale(1.065); filter: brightness(1.06); } }
@keyframes home-rain { 0% { top: -15%; opacity: 0; } 10%,75% { opacity: .7; } 100% { top: 110%; opacity: 0; } }
@keyframes home-glitch {
  0%,100% { transform: translate(0); clip-path: inset(0); text-shadow: none; }
  12% { transform: translate(-4px,1px); clip-path: inset(8% 0 48% 0); text-shadow: 4px 0 #ff2e88,-4px 0 #29e0ff; }
  24% { transform: translate(5px,-1px); clip-path: inset(46% 0 5% 0); }
  38%,68% { transform: translate(0); clip-path: inset(0); }
  53% { transform: translate(-3px); clip-path: inset(28% 0 25% 0); text-shadow: -3px 0 #ff2e88,3px 0 #29e0ff; }
  82% { transform: translate(2px); clip-path: inset(65% 0 9% 0); }
}
@keyframes home-edge-glint { 0% { background-position: -30% 0, 0 0; } 28%, 100% { background-position: 130% 0, 0 0; } }
@keyframes home-edge-sheen { 0% { background-position: -30% 0; } 28%, 100% { background-position: 130% 0; } }
@keyframes home-blink { 50% { opacity: 0; } }
@keyframes home-scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (max-width: 760px) {
  .home-container, .home .rd-nav__inner { padding-inline: 22px; }
  .home-hero { min-height: 650px; }
  .home-hero__inner { padding-block: 110px 120px; }
  .home-hero::before { background: linear-gradient(90deg,#060609ee,#06060988 60%,#06060944),linear-gradient(0deg,#060609dd,transparent 60%); }
  .home-hero__image { object-position: 65% center; }
  .home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .home-stats > div { flex-wrap: wrap; gap: 2px 8px; }
  .home-stats dt { font-size: 10px; }
  .home-stats dd { font-size: 19px; }
  .home-tab { font-size: 10px; gap: 6px; padding: 10px 12px; }
  .home-project-tabs { gap: 8px; }
  .home-project__copy { padding: 32px 26px; }
  .home-project { min-height: 380px; border-radius: 22px; }
  .home-project::before { background: linear-gradient(90deg,#0a0805ed,#0a080588); }
  .home-project--game::before { background: linear-gradient(0deg,#0c0a12,#0c0a1299 65%,#0c0a1244); }
  .home-project--scene-right::before { background: linear-gradient(0deg,#100a0df2,#100a0dbb); }
  .home-project--icon, .home-project--icon-right { grid-template-columns: 1fr; gap: 28px; padding: 32px 26px; }
  .home-project--icon-right .home-project__icon, .home-project--icon-right .home-project__copy { grid-column: auto; grid-row: auto; }
  .home-project__icon { width: 105px; height: 105px; padding: 18px; border-radius: 22px; }
  .home-project__icon .home-icon { width: 48px; height: 48px; }
  .home-contact { padding-bottom: 70px; }
  .home-contact__card { padding: 48px 24px; }
  .home-contact h3 { font-size: 25px; }
  .home-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .home-container, .home .rd-nav__inner { padding-inline: 16px; }
  .home .home-brand { font-size: 12px; }
  .home-hero h1 { font-size: 42px; }
  .home-code { font-size: 11px; }
  .home-hero__lead { font-size: 14px; }
  .home-languages { font-size: 10px; }
}
