/* ═══════════════════════════════════════════════════════
   MINIMAL PORTFOLIO v4 — Palette: #5F5B6B · #EDF2EF · #32936F
   Left-aligned name · C/S animation · Green accent
   ═══════════════════════════════════════════════════════ */

/* ---------- Paterna font ---------- */
@font-face {
  font-family: "Paterna";
  src: url("paterna-font/paterna.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Paterna";
  src: url("paterna-font/paterna-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

/* ---------- Cycling fonts (loader animation) ---------- */
@font-face {
  font-family: "Acne";
  src: url("fonts/AcneDemo-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Aero";
  src: url("fonts/Aero.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Akira";
  src: url("fonts/Akira Expanded Demo.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "AppleGaramond";
  src: url("fonts/AppleGaramond-Bold.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "AstralDelight";
  src: url("fonts/Astral Delight Black Upright.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-Bold.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "CinzelDeco";
  src: url("fonts/CinzelDecorative-Bold.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "DSDigi";
  src: url("fonts/DS-DIGIB.TTF") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "DreamMMA";
  src: url("fonts/Dream MMA.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "LEDLight";
  src: url("fonts/LEDLIGHT.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "MontHeavy";
  src: url("fonts/Mont-HeavyDEMO.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "Nasalization";
  src: url("fonts/Nasalization Rg.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "OverThere";
  src: url("fonts/Over There.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Melodrame";
  src: url("fonts/Relationship of mélodrame.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "VerminVibes";
  src: url("fonts/Vermin Vibes.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Vogue";
  src: url("fonts/Vogue.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Worldstar";
  src: url("fonts/Worldstar.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Cubic";
  src: url("fonts/cubic.ttf") format("truetype");
  font-display: block;
}

/* ---------- Tokens ----------  --bg-page: #5F5B6B;  --text-body: #c5cac7; */
:root {
  --bg-dark: #4a4659;
  --bg-page: #544f64;
  --bg-footer: #4a4659;
  --bg-card: rgba(237, 242, 239, 0.07);
  --text-primary: #EDF2EF;
  --text-body: #ffffff;
  --text-label: #9e9aaa;
  --border: rgba(237, 242, 239, 0.1);
  --border-hover: rgba(237, 242, 239, 0.22);
  --accent: #3dae82;
  --accent-hover: #32936F;

  /* All card accent bars use the green */
  --c-accent: #3dae82;

  --radius: 2px;
  --font-display: "Melodrame", "Paterna", "Georgia", serif;
  --font-heading: "Syne", system-ui, sans-serif;
  --font-mono: "Space Mono", "SF Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

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

/* ---------- Crosshair cursor (BRIGHTER) ---------- */
.crosshair {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(237, 242, 239, 0.25);
  transition: opacity 0.15s ease;
}

.crosshair--v {
  width: 1px;
  height: 100vh;
  top: 0;
  left: -1px;
}

.crosshair--h {
  width: 100vw;
  height: 1px;
  left: 0;
  top: -1px;
}

body.cursor-gone .crosshair {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════
   LOADER — C/S animation
   ═══════════════════════════════════════════════════════ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #EDF2EF;
  overflow: hidden;
}

/* Dark panels — slide from top/bottom to center */
.loader__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: var(--bg-page);
  z-index: 2;
}

.loader__panel--top {
  top: 0;
}

.loader__panel--bot {
  bottom: 0;
}

/* Animated C and S letters */
.loader__letter {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: #5F5B6B;
  z-index: 3;
  will-change: transform, color;
  transition: color 0.4s ease;
}

/* Loader hidden state */
.loader.is-done {
  display: none;
}

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.nav {
  display: flex;
  gap: 36px;
  pointer-events: auto;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  /* Start offscreen right for animation */
  opacity: 0;
  transform: translateX(40px);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link--accent {
  color: var(--accent);
}

.nav-link--accent:hover {
  color: var(--accent-hover);
}

/* ═══════════════════════════════════════════════════════
   MAIN LAYOUT — name left, cards right
   ═══════════════════════════════════════════════════════ */

.main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 540px 1fr;
  gap: 48px;
  align-items: start;
  padding: 100px 48px 60px;
}

/* ---------- Hero (left column) ---------- */
.hero {
  position: sticky;
  top: 100px;
  padding-top: 20px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(64px, 8.5vw, 110px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--text-primary);
}

.hero__line {
  display: block;
}

.hero__char {
  display: inline-block;
  /* Characters revealed by JS */
}

.hero__char[data-reveal],
.hero__name-img[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

.hero__name-img {
  width: 0.72em;  /* perfectly aligns with the top of capital letters */
  height: 0.72em;
  object-fit: cover;
  vertical-align: baseline;
  border-radius: 4px;
  margin-left: 12px;
  display: inline-block;
  opacity: 0; /* for animation */
}

.hero__tagline {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 50;
  color: var(--text-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
}

.hero__bio {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  max-width: 480px;
  opacity: 0;
}

.hero__bio-line {
  margin-bottom: 12px;
  padding-left: 18px;
  text-indent: -18px;
}

.hero__bio-line:last-child {
  margin-bottom: 0;
}

.hero__bio-prompt {
  color: var(--accent);
  margin-right: 2px;
  user-select: none;
}

.hero__beacon-link {
  display: inline-block;
  vertical-align: middle;
  cursor: none;
  transition: opacity 0.3s ease;
}

.hero__beacon-link:hover {
  opacity: 0.7;
}

.hero__beacon-img {
  height: 60px; /* <--- YOU CAN MANUALLY CHANGE THIS NUMBER HERE TO ADJUST BEACON SIZE */
  width: auto;
  display: block;
}

/* ---------- Grid (right column) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 20px;
}

/* ---------- Video (right column — replaces grid on index) ---------- */
.video-section {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  object-fit: cover;
  border: none;
  outline: none;
  border-radius: var(--radius);
  display: block;
}

/* ---------- Card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 175px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Accent bar — top edge */
.card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.35s ease, height 0.35s ease;
}

.card:hover .card__accent {
  opacity: 1;
  height: 3px;
}

/* Arrow */
.card__arrow {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 15px;
  color: var(--text-label);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.card:hover .card__arrow {
  color: var(--text-primary);
  transform: translate(2px, -2px);
}

.card__content {
  position: relative;
  z-index: 2;
}

.card__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.card__desc {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.5;
}

/* Per-card accents — all use the green highlight */
.card__accent {
  background: var(--c-accent);
}

.card:hover .card__label {
  color: var(--accent-hover);
}

/* ═══════════════════════════════════════════════════════
   FOOTER (white bg theme)
   ═══════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 48px 48px 24px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 14px;
}

.footer__bio {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 540px;
}

.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-label);
  transition: color 0.3s ease;
}

.footer__social:hover {
  color: var(--accent);
}

.footer__social svg {
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer__social:hover svg {
  opacity: 0.9;
}



/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
    padding: 90px 24px 40px;
    gap: 32px;
  }

  .hero {
    position: static;
    text-align: left;
  }

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

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .crosshair {
    display: none;
  }

  .header {
    padding: 16px 20px;
  }

  .nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 10px;
  }

  .card {
    min-height: 145px;
    padding: 16px;
  }

  .card__title {
    font-size: 15px;
  }

  .card__desc {
    font-size: 11px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding: 32px 20px 20px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    min-height: 120px;
  }
}

/* ═══════════════════════════════════════════════════════
   SKIP LOADER (returning visitors in same session)
   ═══════════════════════════════════════════════════════ */

body.skip-loader .loader {
  display: none;
}

body.skip-loader .nav-link {
  opacity: 1;
  transform: none;
}

body.skip-loader .hero__char[data-reveal],
body.skip-loader .hero__name-img[data-reveal] {
  opacity: 1;
  transform: none;
}

body.skip-loader .hero__tagline {
  opacity: 1;
}

body.skip-loader .hero__bio {
  opacity: 1;
}

body.skip-loader .card {
  opacity: 1;
  transform: none;
}

body.skip-loader .video-section {
  opacity: 1;
}

/* Video starts hidden for loader animation */
.video-section {
  opacity: 0;
}