/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --color-void:       #0A0A0A;
  --color-lino:       #FDFBF7;
  --color-oro:        #D4AF37;
  --color-oro-dim:    #A68A28;
  --color-oro-soft:   rgba(212, 175, 55, 0.06);
  --color-ash:        #C5BFBA;
  --color-surface:    #121212;
  --color-surface-card: rgba(24, 24, 24, 0.6);

  --portal-radius:     140px 30px 140px 30px;
  --portal-radius-alt: 30px 140px 30px 140px;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Outfit', system-ui, sans-serif;
  --font-script: 'Pinyon Script', cursive;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-void);
  color: var(--color-lino);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Film grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: screen;
}

/* ─── Hide scrollbar (utility) ───────────────────────────────────────────── */
.hide-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

/* ─── Portal shapes ──────────────────────────────────────────────────────── */
.portal-shape     { border-radius: var(--portal-radius); }
.portal-shape-alt { border-radius: var(--portal-radius-alt); }

/* ─── Glass panel component ──────────────────────────────────────────────── */
.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
}

.glass-panel-gold {
  background: rgba(212, 175, 55, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 1.5rem;
}

/* ─── Sketch line (decorative rule) ──────────────────────────────────────── */
.sketch-line {
  position: relative;
  display: inline-block;
}
.sketch-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-oro);
  opacity: 0.4;
  border-radius: 1px;
}

/* ─── SPA Tab system ─────────────────────────────────────────────────────── */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ─── Splash screen ──────────────────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-void);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#splash-logo {
  height: 64px;
  width: auto;
  animation: pulse-logo 1.5s ease-in-out infinite;
}
#splash-tagline {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-oro);
  opacity: 0.8;
}
@keyframes pulse-logo {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

/* ─── Input / SaaS-style ──────────────────────────────────────────────────── */
.input-saas {
  width: 100%;
  background: rgba(24, 24, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  color: var(--color-lino);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
}
.input-saas:focus { border-color: var(--color-oro); }
.input-saas::placeholder { color: var(--color-ash); opacity: 0.6; }

/* ─── Button variants ────────────────────────────────────────────────────── */
.btn-oro {
  background: var(--color-oro);
  color: var(--color-void);
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-oro:hover { background: var(--color-lino); }

.btn-ghost {
  background: transparent;
  color: var(--color-lino);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.btn-ghost:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Discipline card badge states ───────────────────────────────────────── */
.badge-active   { color: var(--color-oro);      background: var(--color-oro-soft);       border: 1px solid rgba(212,175,55,0.3); }
.badge-preventa { color: #f59e0b;               background: rgba(245,158,11,0.05);       border: 1px solid rgba(245,158,11,0.2); }
.badge-neutral  { color: #a3a3a3;               background: rgba(115,115,115,0.1);       border: 1px solid rgba(115,115,115,0.2); }

/* ─── CV accordion card ──────────────────────────────────────────────────── */
.cv-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ─── Image hover scale ──────────────────────────────────────────────────── */
.img-zoom { transition: transform 1s ease; }
.img-zoom:hover { transform: scale(1.05); }

/* ─── Selection color ────────────────────────────────────────────────────── */
::selection {
  background: var(--color-oro-soft);
  color: var(--color-oro);
}

/* ─── Mobile bottom nav active state ─────────────────────────────────────── */
#mobile-bottom-nav button.nav-active { color: var(--color-oro); }
#mobile-bottom-nav button            { color: var(--color-ash); }

/* ─── Responsive helpers ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .portal-shape,
  .portal-shape-alt {
    border-radius: 60px 15px 60px 15px;
  }
}
