/*
Theme Name: ZZZ Portfolio
Theme URI: https://github.com/JauneArc/BrutalPortfolio
Author: Jaune Arc
Author URI: https://darkgoldenrod-fish-677503.hostingersite.com
Description: Clean Brutalism — retrofuturist editorial portfolio theme. Red/black/cream tricolor, Bebas Neue display, Space Mono UI, CJK texture overlays.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
License: All Rights Reserved
Tags: portfolio, brutalism, dark, one-page
*/

/* ═══════════════════════════════════════════
   PORTFOLIO — CLEAN BRUTALISM
   style.css
   ═══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:       #0D0D0D;
  --bg2:      #141414;
  --bg3:      #1E1A1A;
  --cream:    #F0EAD6;
  --red:      #CC1A1A;
  --red-hot:  #FF2020;
  --red-dim:  #3D1A1A;
  --border:   rgba(240, 234, 214, 0.08);
  --mono:     'Space Mono', monospace;
  --display:  'Bebas Neue', sans-serif;
  --cjk:      'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--mono);
  overflow-x: hidden;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── GRAIN ── */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: rgba(240, 234, 214, 0.15);
  transform: rotate(45deg);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.scroll-dot.active {
  background: var(--red);
  transform: rotate(45deg) scale(1.6);
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 234, 214, 0.45);
  padding: 6px 16px;
  display: block;
  border-left: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}

.nav-links li:first-child a {
  border-left: none;
}

.nav-links li a:hover {
  color: var(--cream);
}

.nav-links li.active a {
  background: var(--red);
  color: var(--bg);
}

.nav-status {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(240, 234, 214, 0.2);
  letter-spacing: 0.12em;
}

/* ── SHARED COMPONENTS ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-dim);
  padding: 5px 14px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  background: rgba(204, 26, 26, 0.06);
  margin-bottom: 0.75rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-number {
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 96px);
  line-height: 0.85;
  color: rgba(204, 26, 26, 0.1);
  letter-spacing: -0.02em;
  user-select: none;
  flex-shrink: 0;
}

.section-title-group {
  flex: 1;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.section-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 234, 214, 0.25);
  margin-top: 8px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-cjk-bg {
  position: absolute;
  inset: 0;
  font-family: var(--cjk);
  font-weight: 900;
  font-size: clamp(80px, 14vw, 160px);
  line-height: 1;
  color: rgba(204, 26, 26, 0.04);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  padding: 2rem;
  letter-spacing: -0.02em;
  word-break: break-all;
  z-index: 0;
}

.hero-name-bleed {
  font-family: var(--display);
  font-size: clamp(90px, 13vw, 160px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 234, 214, 0.06);
  position: absolute;
  right: -0.2em;
  bottom: 6rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.02em;
  user-select: none;
}

.hero-left {
  padding: 5rem 2.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.1s;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.2s;
}

.hero-name .red-slash {
  color: var(--red);
  display: block;
}

.hero-descriptor {
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: rgba(240, 234, 214, 0.45);
  max-width: 360px;
  border-left: 2px solid var(--red-dim);
  padding-left: 1rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.35s;
}

.hero-cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.45s;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--cream);
  border: none;
  padding: 13px 30px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--red-hot);
}

.btn-secondary {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(240, 234, 214, 0.5);
  border: 1px solid rgba(240, 234, 214, 0.2);
  padding: 13px 30px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-block;
}

.btn-secondary:hover {
  color: var(--cream);
  border-color: rgba(240, 234, 214, 0.6);
}

/* Hero right panel */
.hero-right {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2.5rem 4rem;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.3s;
}

.hero-right::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--red) 40%, var(--red) 60%, transparent);
}

.stat-block {
  padding: 1.25rem 1.5rem;
  background: var(--bg3);
  border: 1px solid rgba(240, 234, 214, 0.05);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color 0.2s;
}

.stat-block:hover {
  border-color: var(--red-dim);
}

.stat-block:hover .stat-num {
  color: var(--red-hot);
}

.stat-num {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--red);
  transition: color 0.2s;
}

.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 234, 214, 0.3);
  margin-top: 4px;
}

.stat-desc {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(240, 234, 214, 0.45);
  margin-top: 8px;
  line-height: 1.7;
}

/* ── WORKS ── */
.works-section {
  padding: 6rem 2.5rem;
  position: relative;
}

.works-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240, 234, 214, 0.05);
}

.work-card {
  background: var(--bg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.work-card:hover {
  background: var(--bg3);
}

.work-card:hover::after {
  transform: scaleX(1);
}

.work-card:hover .work-num {
  color: rgba(204, 26, 26, 0.25);
}

.work-card.featured {
  grid-column: span 2;
  background: var(--bg3);
  border: 1px solid rgba(204, 26, 26, 0.15);
}

.work-card.featured .work-title {
  font-size: clamp(28px, 3vw, 40px);
}

.work-num {
  font-family: var(--display);
  font-size: 80px;
  line-height: 1;
  color: rgba(240, 234, 214, 0.04);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  transition: color 0.2s;
  user-select: none;
}

.work-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.work-title {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.1;
}

.work-desc {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(240, 234, 214, 0.35);
  margin-top: 10px;
  line-height: 1.8;
}

/* ── SKILLS ── */
.skills-section {
  padding: 6rem 2.5rem;
  background: var(--bg2);
  position: relative;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
}

.skills-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(240, 234, 214, 0.05);
}

.skill-cell {
  background: var(--bg2);
  padding: 1.5rem;
  transition: background 0.2s;
}

.skill-cell:hover {
  background: var(--bg3);
}

.skill-name {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 2px;
}

.skill-bar-track {
  height: 2px;
  background: rgba(240, 234, 214, 0.07);
  margin: 12px 0 8px;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: var(--fill, 0%);
  background: var(--red);
  position: relative;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--red-hot);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.skill-level {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(240, 234, 214, 0.25);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── CONTACT ── */
.contact-section {
  padding: 6rem 2.5rem;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 1rem;
}

.contact-headline {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.9;
  color: var(--cream);
}

.contact-headline em {
  color: var(--red);
  font-style: normal;
  display: block;
}

.contact-cjk-accent {
  font-family: var(--cjk);
  font-weight: 900;
  font-size: 13px;
  color: rgba(204, 26, 26, 0.45);
  letter-spacing: 0.12em;
  margin-top: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(240, 234, 214, 0.05);
}

.contact-link {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(240, 234, 214, 0.45);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.contact-link:hover {
  background: var(--bg3);
  color: var(--cream);
  border-left-color: var(--red);
}

.contact-link span {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.35;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-id {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 234, 214, 0.18);
}

.barcode {
  display: flex;
  gap: 2px;
  align-items: center;
  opacity: 0.12;
}

.barcode span {
  display: block;
  height: 20px;
  background: var(--cream);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
  }

  .hero-right::before {
    display: none;
  }

  .hero-name-bleed {
    display: none;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: span 1;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .barcode {
    display: none;
  }
}

@media (max-width: 600px) {
  #nav {
    padding: 0 1.25rem;
  }

  .nav-status {
    display: none;
  }

  .nav-links li a {
    padding: 6px 10px;
  }

  .hero-left,
  .hero-right {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .works-section,
  .skills-section,
  .contact-section,
  footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-indicator {
    display: none;
  }
}
