/* ═══════════════════════════════════════════
   VECTORHEART PORTFOLIO — style.css
   "Clean Brutalism × ZZZ" — Controlled Detonation
   ═══════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Backgrounds — 4-stop depth system */
  --bg:        #0D0D0D;
  --bg2:       #111111;
  --bg3:       #1A1616;
  --bg4:       #1E1A1A;

  /* Red Spectrum — the only accent colour */
  --red-hot:   #FF2020;
  --red:       #CC1A1A;
  --red-mid:   #991414;
  --red-dim:   #3D1A1A;
  --red-void:  #200D0D;

  /* Cream / Text */
  --cream:     #F0EAD6;
  --cream-60:  rgba(240, 234, 214, 0.6);
  --cream-35:  rgba(240, 234, 214, 0.35);
  --cream-25:  rgba(240, 234, 214, 0.25);
  --cream-12:  rgba(240, 234, 214, 0.12);
  --cream-06:  rgba(240, 234, 214, 0.06);
  --cream-04:  rgba(240, 234, 214, 0.04);

  /* Borders */
  --border:    rgba(240, 234, 214, 0.08);

  /* Type */
  --mono:      'Space Mono', monospace;
  --display:   'Bebas Neue', sans-serif;
  --cjk:       'Noto Sans JP', sans-serif;

  /* HUD corners */
  --hud-arm:   12px;
  --hud-w:     2px;
}

/* ── BASE ── */
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 OVERLAY ── */
.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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 2px,
    rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ── HUD CORNER BRACKETS ──
   Applied to any element that needs corner marks.
   Uses .corner.tl and .corner.br children.         */
.corner {
  position: absolute;
  width: var(--hud-arm);
  height: var(--hud-arm);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.25s, border-color 0.25s;
  opacity: 0.35;
}

.corner.tl {
  top: 0; left: 0;
  border-top: var(--hud-w) solid var(--red-dim);
  border-left: var(--hud-w) solid var(--red-dim);
}

.corner.br {
  bottom: 0; right: 0;
  border-bottom: var(--hud-w) solid var(--red-dim);
  border-right: var(--hud-w) solid var(--red-dim);
}

/* Activate on parent hover */
.stat-block:hover .corner,
.work-card:hover .corner,
.skill-cell:hover .corner,
.contact-link:hover .corner {
  opacity: 1;
  border-color: var(--red);
}

/* ── OVERPRINT TEXTURE ── */
.overprint,
.hero-overprint {
  position: absolute; inset: 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(240, 234, 214, 0.045);
  overflow: hidden;
  pointer-events: none;
  word-break: break-all;
  padding: 1rem;
  user-select: none;
  z-index: 0;
}

/* ── 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.93);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}

.nav-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
}

/* Blinking status diamond */
.nav-blink { font-size: 7px; animation: blink 1.4s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.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.4);
  padding: 6px 16px;
  display: block;
  border-left: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.nav-links li:first-child a { border-left: none; }
.nav-links li a:hover { color: var(--cream); background: var(--cream-04); }
.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;
}

.nav-ticker { color: var(--red); opacity: 0.7; }

/* ── SHARED: SECTION BADGE ── */
.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;
}

/* ── SHARED: SECTION HEADER ── */
.section-header {
  display: flex; align-items: flex-end; gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.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;
  position: relative;
}

/* Red underline slash on section number */
.section-number::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 70%; height: 2px;
  background: linear-gradient(90deg, var(--red-mid) 0%, transparent 100%);
}

.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: var(--cream-25);
  margin-top: 8px;
}

/* ── SLASH DIVIDER (section top line with diagonal terminal) ── */
.slash-divider {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 15%, var(--red) 85%, transparent);
  pointer-events: none;
}

/* Hot-end terminal nub on the left */
.slash-divider::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 2px;
  background: var(--red-hot);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

/* Diagonal shard on the right */
.slash-divider::after {
  content: '';
  position: absolute;
  right: 0; top: -4px;
  width: 24px; height: 10px;
  background: var(--red-mid);
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
  opacity: 0.5;
}

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

/* CJK kanji BG texture */
.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;
}

/* ── THE HERO SLASH — core Vectorheart signature ──
   Three parallel lines that "cut" the panel boundary,
   suggesting a slash mark rather than a clean divide.  */
.hero-slash {
  position: absolute;
  top: -10%; left: 50%;
  height: 130%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  align-items: stretch;
  z-index: 1;
  pointer-events: none;
}

.slash-line {
  width: 4px;
  background: var(--red);
  transform: rotate(2.5deg);
  transform-origin: center top;
  opacity: 0.45;
}

.slash-line.thin {
  width: 2px;
  opacity: 0.2;
  transform: rotate(2.5deg) translateX(4px);
}

.slash-line.hair {
  width: 1px;
  opacity: 0.1;
  transform: rotate(2.5deg) translateX(10px);
}

/* Ghost bleed text behind the right column */
.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.05);
  position: absolute; right: -0.15em; bottom: 5rem;
  white-space: nowrap;
  pointer-events: none; user-select: none;
  z-index: 1;
  letter-spacing: 0.02em;
}

/* ── HERO LEFT ── */
.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;
  position: relative;
}

/* Periodic glitch on the red "ARC" span */
.hero-name .red-slash {
  color: var(--red);
  display: block;
  position: relative;
}

.hero-name .red-slash::before {
  content: 'ARC';
  position: absolute; top: 0; left: 0;
  color: var(--red-hot);
  clip-path: polygon(0 25%, 100% 25%, 100% 55%, 0 55%);
  animation: glitch-stripe 5s steps(1) infinite;
  opacity: 0;
}

@keyframes glitch-stripe {
  0%, 88%, 100% { opacity: 0; transform: translateX(0); }
  90%  { opacity: 1; transform: translateX(-5px); }
  92%  { opacity: 1; transform: translateX(5px); }
  94%  { opacity: 1; transform: translateX(-2px); }
  96%  { opacity: 0; }
}

.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;
}

/* Bottom data readout bar */
.hero-databar {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 234, 214, 0.18);
  display: flex; gap: 0.7rem; align-items: center;
  opacity: 0; animation: fadeUp 0.5s ease forwards 0.55s;
}

.sep { color: var(--red-dim); }

/* ── BUTTONS ── */
.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; position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  clip-path: inherit;
  pointer-events: none;
}

.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.45);
  border: 1px solid rgba(240, 234, 214, 0.2);
  padding: 13px 30px; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: inline-block;
}

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

/* ── HERO RIGHT ── */
.hero-right {
  border-left: 1px solid rgba(240, 234, 214, 0.04);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 2.5rem 4rem; gap: 1.25rem;
  position: relative; z-index: 2;
  opacity: 0; animation: fadeUp 0.5s ease forwards 0.3s;
}

/* Red accent line on the panel seam */
.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 BLOCKS ── */
.stat-block {
  padding: 1.25rem 1.5rem;
  background: var(--bg3);
  border: 1px solid rgba(204, 26, 26, 0.1);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

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

/* Halftone burst in the top-right on hover */
.stat-block::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, rgba(204,26,26,0.18) 1px, transparent 1px);
  background-size: 7px 7px;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.stat-block:hover::after { opacity: 1; }

.stat-sys {
  font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.2em;
  color: var(--red); opacity: 0.5;
  margin-bottom: 4px; text-transform: uppercase;
}

.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: var(--cream-25); margin-top: 4px;
}

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

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

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream-04);
}

.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;
}

/* Bottom slide-in red line */
.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.2); }
.work-card:hover .work-arrow { opacity: 1; transform: translateX(5px); }

/* Halftone pattern — revealed on hover */
.card-halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(204,26,26,0.12) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}

.work-card:hover .card-halftone { opacity: 1; }

/* Featured card — spans 2 columns */
.work-card.featured {
  grid-column: span 2;
  background: var(--bg3);
  border: 1px solid rgba(204, 26, 26, 0.12);
}

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

/* Vertical red accent on featured right edge */
.work-card.featured::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 40%, transparent 100%);
  opacity: 0.35;
}

.work-num {
  font-family: var(--display);
  font-size: 80px; line-height: 1;
  color: var(--cream-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; line-height: 1.8;
  color: rgba(240, 234, 214, 0.35);
  margin-top: 10px;
}

.work-status {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(240, 234, 214, 0.2);
  border-top: 1px solid var(--cream-06);
  padding-top: 10px;
}

.work-arrow {
  color: var(--red);
  opacity: 0;
  transition: opacity 0.2s, transform 0.25s;
}

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

/* PCB circuit-trace decorative element */
.circuit-trace {
  display: flex; align-items: center;
  margin-bottom: 2rem;
  height: 16px; gap: 0;
}

.trace-arm {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--red-dim) 0%, rgba(61,26,26,0.3) 70%, transparent 100%);
  position: relative;
}

/* L-bend at the start of the trace */
.trace-arm::before {
  content: '';
  position: absolute; left: 0; top: -5px;
  width: 18px; height: 6px;
  border-left: 1px solid var(--red-dim);
  border-top: 1px solid var(--red-dim);
}

/* Diamond pip partway along the trace */
.trace-arm::after {
  content: '';
  position: absolute; left: 50px; top: -3px;
  width: 7px; height: 7px;
  background: var(--red-mid);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Pulsing terminal diamond */
.trace-pip {
  width: 7px; height: 7px;
  background: var(--red);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
  animation: pip-pulse 2.2s ease infinite;
}

@keyframes pip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cream-04);
}

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

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

.skill-sys {
  font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.2em;
  color: var(--red-dim); margin-bottom: 6px; text-transform: uppercase;
}

.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.06);
  margin: 10px 0 8px; position: relative;
}

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

/* Diamond cursor at fill endpoint */
.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; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-25);
}

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

/* Large angled red-void slab behind the left column —
   reads as an off-register overprint block               */
.contact-bg-slash {
  position: absolute;
  top: -20%; left: -8%;
  width: 48%; height: 160%;
  background: var(--red-void);
  transform: rotate(-2.5deg);
  z-index: 0; pointer-events: none;
}

/* Subtle gradient on the slab's right edge */
.contact-bg-slash::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 70%, var(--bg));
}

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

.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;
  position: relative;
}

/* Diagonal underline beneath the em word */
.contact-headline em::after {
  content: '';
  position: absolute; bottom: -5px; left: 0;
  width: 90%; height: 3px;
  background: var(--red);
  clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
}

.contact-cjk {
  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-meta {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.12em;
  color: rgba(240, 234, 214, 0.18);
  display: flex; gap: 0.6rem;
}

.contact-links {
  display: flex; flex-direction: column;
  gap: 1px;
  background: var(--cream-04);
}

.contact-link {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.15s, border-color 0.15s;
  border-left: 2px solid transparent;
  position: relative; overflow: hidden;
}

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

.contact-link:hover .link-meta { color: var(--red); }
.contact-link:hover .link-label { color: var(--cream); }

.link-label {
  font-family: var(--display);
  font-size: 18px; letter-spacing: 0.04em;
  color: rgba(240, 234, 214, 0.6);
  transition: color 0.15s;
}

.link-meta {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cream-25);
  transition: color 0.15s;
}

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

/* Red accent cap on top-left of footer border */
footer::before {
  content: '';
  position: absolute; top: -1px; left: 0;
  width: 56px; height: 1px;
  background: var(--red);
}

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

.footer-center {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}

.footer-cjk {
  font-family: var(--cjk);
  font-size: 10px; color: rgba(204,26,26,0.3);
  letter-spacing: 0.1em;
}

.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); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .hero-name .red-slash::before,
  .nav-blink,
  .trace-pip { animation: none; }

  .hero-eyebrow, .hero-name, .hero-descriptor,
  .hero-cta-row, .hero-databar, .hero-right {
    opacity: 1; animation: none;
  }
}

/* ── RESPONSIVE: 900px ── */
@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,
  .hero-name-bleed,
  .hero-slash { 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; }
  .contact-bg-slash { display: none; }

  footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .barcode, .footer-center { display: none; }
}

/* ── RESPONSIVE: 600px ── */
@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; }
}
