/* GENJUTSU — editorial creator identity */
:root {
  color-scheme: dark;
  --bg: #111110;
  --bg-soft: #191917;
  --panel: #20201d;
  --text: #f3f0e8;
  --muted: #aaa69d;
  --faint: #77736b;
  --line: rgba(243,240,232,.15);
  --red: #7A03E8;
  --red-dark: #512151;
  --ink: #111110;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", monospace;
  --max: 1200px;
  --ease: cubic-bezier(.2,.75,.25,1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f0e9;
  --bg-soft: #e7e4dc;
  --panel: #fffdf7;
  --text: #171715;
  --muted: #56544e;
  --faint: #77736b;
  --line: rgba(23,23,21,.17);
  --ink: #f2f0e9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px;overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--red); color: #fff; }
.skip-link { position: absolute; z-index: 1000; top: -60px; left: 12px; background: var(--red); color: #fff; padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.section-shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding-block: 112px; }
.kicker, .micro-label, .hero-meta, .hero-bottom, .art-topline, .art-bottomline, .frame-tag, .frame-foot, .manifesto-side, .library-status, .footer-bottom, .back-top {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .09em; font-size: .7rem;
}
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 0 0 20px; }
.live-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,73,56,.13); }
.section-index { color: var(--red); }
.red-text { color: var(--red); }
.button { min-height: 50px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; font-weight: 700; font-size: .88rem; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.button svg { width: 17px; height: 17px; fill: currentColor; }
.button-red { color: #fff; background: var(--red); }
.button-red:hover { background: var(--red-dark); }
.button-outline { border-color: var(--line); color: var(--text); background: transparent; }
.button-outline:hover { border-color: var(--red); }
.button-dark { color: #fff; background: #292925; }
.button-small { min-height: 40px; padding-inline: 14px; font-size: .78rem; }
.button-full { width: 100%; justify-content: space-between; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .85rem; }
.text-link span { color: var(--red); transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 91%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-wrap { width: min(1320px, calc(100% - 64px)); height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-avatar { width: 42px; height: 42px; display: block; flex: 0 0 auto; padding: 3px; border: 1px solid var(--red); border-radius: 13px 13px 13px 4px; overflow: hidden; transform: rotate(-4deg); background: var(--panel); box-shadow: 3px 3px 0 color-mix(in srgb, var(--red) 35%, transparent); transition: transform .25s ease, border-radius .25s ease; }
.brand-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 9px 9px 9px 3px; }
.brand:hover .brand-avatar { transform: rotate(0) scale(1.04); border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; font-size: .94rem; line-height: 1.05; font-weight: 700; letter-spacing: .06em; }
.brand-name span { margin-top: 4px; color: var(--muted); font: 500 .58rem var(--mono); letter-spacing: .22em; }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 20px; }
.desktop-nav a { color: var(--muted); font-size: .85rem; transition: color .2s; }
.desktop-nav a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle, .menu-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }
.menu-toggle { display: none; align-content: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); }
.mobile-nav { padding: 8px 24px 20px; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 12px 0; color: var(--muted); }
.mobile-nav a:hover { color: var(--red); }

/* Hero */
.hero { min-height: 680px; padding-top: 94px; padding-bottom: 32px; position: relative; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; column-gap: 56px; }
.hero-noise { position: absolute; inset: 0 -10vw; pointer-events: none; opacity: .18; background-image: radial-gradient(var(--muted) .6px, transparent .6px); background-size: 7px 7px; mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent); }
.hero-copy { position: relative; z-index: 1; padding-bottom: 42px; }
.hero-copy .kicker { margin-bottom: 26px; }
.hero h1 { margin: 0; font-size: clamp(3.5rem, 6.6vw, 6.8rem); line-height: .91; letter-spacing: -.085em; font-weight: 700; }
.hero-intro { max-width: 485px; margin: 28px 0 28px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 40px; color: var(--faint); font-size: .61rem; }
.meta-divider { width: 28px; height: 1px; background: var(--red); }
.hero-art { position: relative; min-height: 470px; background: var(--red); color: #fff; padding: 17px; overflow: hidden; transform: rotate(1.3deg); box-shadow: 18px 18px 0 var(--panel); }
.art-topline, .art-bottomline { display: flex; justify-content: space-between; gap: 12px; position: relative; z-index: 2; font-size: .62rem; }
.art-topline .live-dot { display: inline-block; margin-left: 7px; background: #fff; box-shadow: none; }
.art-main { position: absolute; inset: 54px 0 47px; display: grid; place-items: center; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(20,20,18,.035) 0 2px, transparent 2px 8px); }
.art-ring { position: absolute; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; aspect-ratio: 1; }
.ring-one { width: 75%; }
.ring-two { width: 54%; border-style: dashed; animation: rotate 36s linear infinite; }
.art-profile-wrap { position: relative; z-index: 1; width: min(61%, 290px); aspect-ratio: 1; padding: 9px; border: 1px solid rgba(255,255,255,.85); border-radius: 32% 32% 32% 8%; transform: rotate(-8deg); background: rgba(255,255,255,.12); box-shadow: 12px 12px 0 rgba(20,20,18,.16), 0 0 0 8px rgba(255,255,255,.08); animation: profile-float 6s ease-in-out infinite; }
.art-profile { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 27% 27% 27% 5%; border: 2px solid rgba(255,255,255,.7); }
.art-cross { position: absolute; font-size: 1.4rem; font-weight: 300; }
.cross-a { top: 16%; left: 17%; }.cross-b { bottom: 17%; right: 16%; }
.art-label { position: absolute; padding: 5px 7px; background: #171715; color: #fff; font: .6rem var(--mono); letter-spacing: .04em; }
.label-left { left: 0; bottom: 18%; transform: rotate(-90deg) translateX(-40%); transform-origin: left; }
.label-right { right: 0; top: 18%; transform: rotate(90deg) translateX(40%); transform-origin: right; }
.art-bottomline { position: absolute; bottom: 16px; left: 17px; right: 17px; }
.art-sticker { position: absolute; right: 28px; bottom: 70px; padding: 10px 13px; background: #f4f0e8; color: #151514; font-weight: 700; font-size: .77rem; line-height: 1.05; transform: rotate(8deg); box-shadow: 4px 4px 0 rgba(0,0,0,.18); }
.hero-bottom { grid-column: 1/-1; display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--faint); font-size: .62rem; }
.scroll-line { height: 1px; width: 60px; background: var(--red); }
.hero-bottom span:last-child { margin-left: auto; }

/* Ticker */
.ticker { overflow: hidden; background: var(--red); color: #fff; transform: rotate(-1deg) scale(1.02); padding: 15px 0; }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 28px; white-space: nowrap; font-weight: 700; font-size: .8rem; letter-spacing: .08em; animation: ticker 36s linear infinite; }
.ticker-track b { font-size: 1rem; }

/* Watch */
.watch { padding-top: 120px; }
.section-heading { display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 48px; margin-bottom: 44px; }
.section-heading h2, .manifesto-copy h2, .contact-intro h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.07em; }
.section-heading > p { max-width: 400px; color: var(--muted); margin: 0 0 5px; }
.watch-layout { display: grid; grid-template-columns: 1.55fr .8fr; gap: 20px; }
.featured-video { background: var(--panel); border: 1px solid var(--line); }
.featured-thumb { display: block; }
.thumb-art { min-height: 330px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--red); color: #fff; }
.thumb-profile { position: absolute; right: -3%; top: -38%; width: min(62%, 390px); aspect-ratio: 1; object-fit: cover; border-radius: 36% 36% 36% 12%; border: 2px solid rgba(255,255,255,.35); opacity: .28; transform: rotate(11deg); filter: saturate(.75); }
.thumb-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,0,0,.045) 5px 6px); }
.thumb-label, .thumb-bottom { position: absolute; z-index: 1; left: 22px; font: .65rem var(--mono); letter-spacing: .1em; }
.thumb-label { top: 20px; }.thumb-bottom { bottom: 18px; }
.thumb-play { position: relative; z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; padding-left: 4px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; font-size: 1.25rem; transition: background .2s, transform .2s; }
.featured-thumb:hover .thumb-play { background: rgba(20,20,18,.25); transform: scale(1.08); }
.featured-info { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 24px; }
.micro-label { color: var(--red); font-size: .64rem; }
.featured-info h3 { margin: 8px 0 0; font-size: 1.35rem; letter-spacing: -.04em; }
.featured-info .text-link { flex-shrink: 0; }
.watch-aside { display: flex; flex-direction: column; background: var(--bg-soft); border: 1px solid var(--line); padding: 24px; }
.aside-note { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.aside-number { color: var(--red); font: .8rem var(--mono); padding-top: 3px; }
.aside-note h3 { margin: 0 0 5px; font-size: 1rem; }
.aside-note p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.watch-aside .button { margin-top: auto; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 76px 0 22px; }
.library-heading .kicker { margin-bottom: 7px; }
.library-heading h3 { margin: 0; font-size: 1.8rem; letter-spacing: -.05em; }
.library-status { color: var(--muted); font-size: .6rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); transition: transform .2s, border-color .2s; }
.video-card:hover { transform: translateY(-4px); border-color: var(--red); }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-card:hover img { transform: scale(1.04); }
.video-card__body { padding: 15px; }
.video-card__title { margin: 0 0 10px; font-size: .94rem; line-height: 1.4; }
.video-card__meta { color: var(--faint); font: .65rem var(--mono); display: flex; justify-content: space-between; gap: 10px; }
.video-fallback { min-height: 180px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 9px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.video-fallback:hover { border-color: var(--red); transform: translateY(-3px); }
.fallback-play { margin-bottom: auto; color: var(--red); font-size: 1.5rem; }
.video-fallback strong { font-size: 1.05rem; }
.video-fallback > span:last-child { color: var(--muted); font-size: .8rem; }
.data-note { margin: 18px 0 0; color: var(--faint); font-size: .75rem; }

/* About / manifesto */
.manifesto {
  background: var(--bg-soft);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.manifesto-visual {
  position: relative;
  padding: 0 18px 18px 0;
}

.manifesto-frame {
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

/* Portrait fills the entire frame */
.manifesto-profile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  opacity: 1;
  transform: none;
}

/* Dark overlay keeps the text readable */
.manifesto-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.05) 40%,
    rgba(0,0,0,.65) 100%
  );
  pointer-events: none;
}

.frame-tag,
.frame-foot {
  position: relative;
  z-index: 1;
  font-size: .62rem;
}

.manifesto-big {
  position: relative;
  z-index: 1;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.08em;
}

.manifesto-big span {
  color: var(--red);
}

.manifesto-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px 0 0 18px;
  border: 1px solid var(--line);
}

.manifesto-side {
  position: absolute;
  right: -17px;
  top: 50%;
  writing-mode: vertical-rl;
  color: var(--muted);
  font-size: .6rem;
}

.manifesto-copy h2 {
  margin-bottom: 25px;
}

.manifesto-copy > p:not(.kicker) {
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 18px;
}
/* Channel stats */
.channel-stats { padding-block: 58px 72px; }
.stats-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.stats-heading h2 { margin: 0; font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.06em; }
.stats-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: .82rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); }
.stat-card { min-height: 170px; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.stat-card + .stat-card { border-left: 1px solid var(--line); }
.stat-label { color: var(--muted); font: .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.stat-value { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .95; font-weight: 700; letter-spacing: -.08em; color: var(--text); overflow-wrap: anywhere; }
.stat-footnote { margin: 14px 0 0; color: var(--faint); font-size: .7rem; }

/* Subscribe CTA */
.subscribe { padding-block: 100px; }
.subscribe-card { position: relative; min-height: 270px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 54px; background: var(--text); color: var(--bg); overflow: hidden; }
.subscribe-copy { position: relative; z-index: 1; max-width: 640px; }
.subscribe-copy .kicker { color: var(--muted); }
.subscribe-copy h2 { margin: 0 0 12px; font-size: clamp(2.4rem, 4.7vw, 4.4rem); line-height: .98; letter-spacing: -.075em; }
.subscribe-copy p:last-child { margin: 0; color: var(--muted); }
.subscribe-card .button { flex-shrink: 0; position: relative; z-index: 1; }
.subscribe-stamp { position: absolute; right: 30%; top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: 1rem; line-height: .95; font-weight: 700; color: rgba(112,46,111,.14); border: 5px solid rgba(112,46,111,.14); padding: 12px; }

/* Contact */
.contact { padding-top: 0; padding-bottom: 110px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.contact-intro h2 { margin-bottom: 20px; }
.contact-intro > p:last-child { max-width: 390px; color: var(--muted); }
.contact-panel { border: 1px solid var(--line); background: var(--panel); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.contact-panel h3 { font-size: 1.3rem; letter-spacing: -.04em; margin: 10px 0; }
.contact-panel p { margin: 0; color: var(--muted); font-size: .83rem; }
.contact-panel .button { flex-shrink: 0; }

.contact-form { display: grid; gap: 15px; margin-top: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--muted); font: .68rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--bg-soft); color: var(--text); padding: 13px 14px; font: 400 .9rem var(--font); outline: none; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 22%, transparent); }
.form-field textarea { min-height: 140px; resize: vertical; }
.contact-form .button { justify-self: start; }
.form-status { min-height: 1.4em; margin: 0; color: var(--muted); font-size: .8rem; }
.form-status.is-success { color: #58c995; }
.form-status.is-error { color: #ff8b82; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }


/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top > p { margin: 0; color: var(--muted); font-size: .8rem; }
.back-top { color: var(--muted); font-size: .62rem; }
.back-top:hover { color: var(--red); }
.footer-bottom { min-height: 56px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); font-size: .58rem; }
.footer-bottom a { color: var(--text); }
.footer-bottom a:hover { color: var(--red); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes profile-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
