*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #0a0a08;
  --paper:     #f0ece0;
  --warm:      #e8e0cc;
  --accent:    #c8a04a;
  --accent2:   #7a3b2e;
  --silver:    #b8bab0;
  --dim:       #2a2a24;
  --mid:       #4a4a40;
  --serif:     'Playfair Display', Georgia, serif;
  --mono:      'Space Mono', monospace;
  --cond:      'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE LAYER ───────────────────────────────────── */
body::before {
  content: '';
  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='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
}

/* ── CUSTOM SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ── LAYOUT ────────────────────────────────────────── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TOP BAR ───────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(200,160,74,0.2);
  position: sticky;
  top: 0;
  background: rgba(10,10,8,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.topbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(200,160,74,0.4);
}

.topbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-site {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.topbar-nav {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 0.1em;
}

/* ── MASTHEAD ──────────────────────────────────────── */
.masthead {
  padding: 80px 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 90vh;
  align-items: center;
}

.masthead-left {
  padding-right: 60px;
  animation: fadeUp 1s ease both;
}

.masthead-issue {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead-issue::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.masthead-title {
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 8px;
}

.masthead-title em {
  font-style: italic;
  color: var(--accent);
}

.masthead-sub {
  font-family: var(--cond);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 16px;
  margin-bottom: 40px;
}

.masthead-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(240,236,224,0.65);
  max-width: 400px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.masthead-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease both 0.3s;
}

/* ── PORTRAIT FRAME ────────────────────────────────── */
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.portrait-frame::before {
  content: 'DIABLO';
  position: absolute;
  top: -18px;
  right: 20px;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  background: var(--ink);
  padding: 0 8px;
  z-index: 2;
}

.portrait-border {
  border: 1px solid rgba(200,160,74,0.35);
  padding: 16px;
  position: relative;
}

.portrait-border::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -8px;
  right: 8px;
  top: 8px;
  border: 1px solid rgba(200,160,74,0.12);
  z-index: -1;
}

.portrait-inner {
  background: var(--dim);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(200,160,74,0.3);
}

.portrait-placeholder .snake-emoji {
  font-size: 80px;
  animation: sway 4s ease-in-out infinite;
}

.portrait-placeholder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(200,160,74,0.2);
  text-transform: uppercase;
}

.portrait-caption {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(184,186,176,0.5);
  letter-spacing: 0.1em;
}

/* ── DIVIDER ────────────────────────────────────────── */
.rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 60px 40px;
  opacity: 0.4;
}

.rule::before, .rule::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent));
}

.rule::after {
  background: linear-gradient(to left, transparent, var(--accent));
}

.rule-symbol {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
}

/* ── SECTIONS ───────────────────────────────────────── */
.section {
  padding: 0 40px 80px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
}

.section-label {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ── DOSSIER ────────────────────────────────────────── */
.dossier-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.dossier-text p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  color: rgba(240,236,224,0.72);
  margin-bottom: 20px;
}

.dossier-text p strong {
  color: var(--paper);
  font-weight: 700;
}

.dossier-text p em {
  color: var(--accent);
  font-style: italic;
}

.dossier-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(200,160,74,0.5);
  border-top: 1px solid rgba(200,160,74,0.15);
  padding-top: 16px;
  margin-top: 8px;
}

/* ── STATS PANEL ────────────────────────────────────── */
.stats-panel {
  background: rgba(42,42,36,0.4);
  border: 1px solid rgba(200,160,74,0.15);
  padding: 32px;
}

.stats-panel-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-panel-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200,160,74,0.2);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-row:last-child { border-bottom: none; }

.stat-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--silver);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-key i {
  color: var(--accent);
  width: 14px;
  text-align: center;
}

.stat-val {
  text-align: right;
}

.stat-val-main {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--paper);
  display: block;
}

.stat-val-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(184,186,176,0.45);
  letter-spacing: 0.08em;
}

/* ── BIO STATS GRID ─────────────────────────────────── */
.biostats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(200,160,74,0.12);
  border: 1px solid rgba(200,160,74,0.12);
  margin-top: 0;
}

.biostat-cell {
  background: var(--ink);
  padding: 28px 24px;
  position: relative;
  transition: background 0.3s;
}

.biostat-cell:hover {
  background: rgba(42,42,36,0.6);
}

.biostat-cell::before {
  content: attr(data-num);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(200,160,74,0.2);
  letter-spacing: 0.1em;
}

.biostat-icon {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
}

.biostat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(184,186,176,0.5);
  margin-bottom: 6px;
}

.biostat-value {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--paper);
  margin-bottom: 4px;
}

.biostat-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: rgba(184,186,176,0.45);
}

/* ── GALLERY ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 3px;
}

.gallery-grid .gallery-slot:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  aspect-ratio: 4/5;
}

.gallery-grid .gallery-slot:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  aspect-ratio: 4/5;
}

.gallery-grid .gallery-slot:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  aspect-ratio: 4/5;
}

.gallery-grid .gallery-slot:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  aspect-ratio: 4/5;
}

.gallery-slot {
  background: var(--dim);
  overflow: hidden;
  position: relative;
}

.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-slot:hover img { transform: scale(1.04); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(200,160,74,0.2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-placeholder i { font-size: 24px; }

/* ── INSTAGRAM LINK ─────────────────────────────────── */
.follow-block {
  margin-top: 48px;
}

.insta-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
  border: 1px solid rgba(200,160,74,0.25);
  text-decoration: none;
  background: rgba(42,42,36,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.insta-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,160,74,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.insta-link:hover::before { opacity: 1; }
.insta-link:hover { border-color: rgba(200,160,74,0.55); }

.insta-icon {
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.insta-text { flex: 1; }

.insta-name {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--paper);
  margin-bottom: 4px;
}

.insta-handle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.insta-arrow {
  font-size: 16px;
  color: var(--accent);
  opacity: 0.5;
  transition: transform 0.3s, opacity 0.3s;
}

.insta-link:hover .insta-arrow {
  transform: translateX(6px);
  opacity: 1;
}

/* ── STATUS BADGE ───────────────────────────────────── */
.status-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 16px;
  border: 1px solid rgba(200,160,74,0.2);
  background: rgba(42,42,36,0.5);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

.status-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--silver);
  text-transform: uppercase;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  padding: 40px;
  border-top: 1px solid rgba(200,160,74,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(184,186,176,0.3);
  text-transform: uppercase;
}

.footer-back a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-back a:hover { opacity: 1; }

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sway {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar { padding: 16px 20px; }

  .masthead {
    grid-template-columns: 1fr;
    padding: 40px 20px 0;
    min-height: auto;
    gap: 40px;
  }

  .masthead-left { padding-right: 0; }

  .masthead-right { order: -1; }

  .portrait-frame { max-width: 280px; }

  .section { padding: 0 20px 60px; }

  .dossier-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .biostats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-slot,
  .gallery-grid .gallery-slot:first-child,
  .gallery-grid .gallery-slot:nth-child(2),
  .gallery-grid .gallery-slot:nth-child(3),
  .gallery-grid .gallery-slot:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4/5;
  }

  .footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .rule { padding: 40px 20px; }
}

/* ── CUSTOM CURSOR (DESKTOP ONLY) ───────────────────── */
@media (pointer: fine) {
  body { cursor: default; }
  a, button { cursor: default; }
  *, *::before, *::after { cursor: none !important; }
}

#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(200,160,74,0.9);
  mix-blend-mode: screen;
}

#cursorRing {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(200,160,74,0.5);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease,
              border-color 0.2s ease, transform 0.18s ease;
}

@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}