@font-face {
  font-family: 'Synkopy';
  src: url('/Synkopy-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'IntraNet';
  src: url('/IntraNet.otf') format('opentype');
}

@font-face {
  font-family: 'IntraNet Outline';
  src: url('/IntraNet_Outline.otf') format('opentype');
}

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

:root {
  --acid: #c8ff00;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* ════════════════════════════════════════
   VIEW TRANSITIONS
════════════════════════════════════════ */

#ascii-view,
#birthday-view,
#portfolio-view {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

#ascii-view.active,
#birthday-view.active,
#portfolio-view.active {
  opacity: 1;
  pointer-events: auto;
}

/* view-specific overrides */
#ascii-view     { background: #0a0a0a; }
#birthday-view  { cursor: pointer; }
#portfolio-view { overflow-y: auto; }

/* ascii iframe fills the view */
#ascii-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ════════════════════════════════════════
   PORTFOLIO PAGE
════════════════════════════════════════ */

#portfolio-view {
  /* rust texture lives here so it always fills the full scrollable area */
  background-color: #181818;
  /* large blurry grey noise: low baseFrequency = big soft blobs */
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='800'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='800' height='800' filter='url(%23f)' opacity='0.55'/></svg>"),
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(60,60,60,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 75% 65%, rgba(35,35,35,0.5) 0%, transparent 65%);
  /* stretch the noise SVG to fill 100% — no tiling, no visible seam */
  background-size: 100% 100%, cover, cover;
  background-repeat: no-repeat;
}

.p-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
  gap: 3.5vh;
}

/* ── portfolio header ── */
.p-header {
  text-align: center;
  line-height: 1;
}

.p-name {
  display: block;
  font-family: 'Synkopy', 'IntraNet', sans-serif;
  font-size: clamp(3rem, 10vw, 9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18em 0 0.04em;
  color: #f0ede8;
  /* subtle warm-press letterpress shadow */
  text-shadow:
    2px  3px 0   rgba(0,0,0,0.9),
    4px  6px 0   rgba(0,0,0,0.6),
    6px  9px 0   rgba(0,0,0,0.3),
    8px 12px 18px rgba(0,0,0,0.5);
}

.p-frog {
  font-family: sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  color: #ff6a00;
  letter-spacing: 0.15em;
  margin-top: 0.2em;
  text-shadow: 0 0 18px rgba(255, 106, 0, 0.55);
}

/* ── cards grid ── */
.p-cards {
  width: 100%;
  max-width: 1100px;
  display: grid;
  /* SC spans full width; IG + RA split the second row equally */
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

@media (max-width: 600px) {
  .p-cards { grid-template-columns: 1fr; }
}

.p-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.p-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
  background: #121212;
}

.p-card-top {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 1.1rem 0.5rem;
}

.p-logo {
  width: auto;
  height: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

/* already white — just size it to span the full card-top width */
.p-logo--sc {
  height: 1.4rem;
  width: auto;
  opacity: 0.85;
}

/* PNG is black — invert to white */
.p-logo--ra {
  height: 1.2rem;
  filter: invert(1) opacity(0.85);
}

.p-card-label {
  font-family: 'Synkopy', 'IntraNet', sans-serif;
  font-size: clamp(0.55rem, 1.1vw, 0.85rem);
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

/* SoundCloud — full-width first row */
.p-card--soundcloud {
  grid-column: 1 / -1;
}

.sc-player {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

/* Instagram + RA — link cards */
.p-card--ig,
.p-card--ra {
  min-height: 180px;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  cursor: pointer;
}

.p-card-handle {
  font-family: 'Synkopy', 'IntraNet', sans-serif;
  font-size: clamp(1rem, 2.4vw, 2rem);
  letter-spacing: 0.05em;
  color: #f0ede8;
  padding: 0.15rem 1.1rem;
}

.p-card-arrow {
  font-size: 1.6rem;
  color: #ff6a00;
  padding: 0 1.1rem;
  align-self: flex-end;
  line-height: 1;
}

/* ── full-screen GIF ── */
.bg {
  position: fixed;
  inset: 0;
}

.gif {
  display: block;
  width: 100vw;
  height: 100vh;       /* fallback */
  height: 100svh;      /* respects mobile browser chrome */
  object-fit: cover;
  object-position: center;
  filter: brightness(1.4) saturate(0.85);
}

@media (max-width: 768px) {
  .gif {
    /* on narrow screens keep width pinned to the viewport edge,
       height fills whatever remains after the browser chrome */
    width: 100%;
    min-width: 100vw;
  }
}

/* ── soft vignette only, no scanlines ── */
.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* ── centred stage ── */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  pointer-events: none;
}

/* ── headline ── */
.title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.line {
  font-family: 'IntraNet', 'Arial Black', sans-serif;
  font-size: clamp(3rem, 13vw, 11rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: block;

  /*
    Enough top padding so tall IntraNet ascenders sit inside the
    background-paint area and don't get viewport-clipped when the
    line box is used as the clip boundary.
  */
  padding: 0.22em 0 0.08em;

  /*
    Balloon / liquid-metal gradient.
    Simulates light wrapping around a convex chrome sphere:
      top  → pure specular white (where light hits the dome)
      mid  → surface curves away, getting dark fast
      equator → near-black (maximum curvature)
      bottom → rim light bouncing back up from below
    No blue tint — raw neutral silver so it reads as liquid metal,
    not a screen reflection.
  */
  /* light pink → blue metallic balloon */
  background: linear-gradient(
    180deg,
    #ffffff  0%,
    #ffe8f4  5%,
    #ffb8d8 12%,
    #e870b0 22%,
    #7c3878 34%,
    #2c1838 44%,
    #0e1e58 52%,
    #1848b0 63%,
    #4e90e0 74%,
    #8cc0f4 84%,
    #cce4ff 93%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* shadow opacity fades with each step — no separate blur layer */
  filter:
    drop-shadow( 2px  3px 0 rgba(4,  6, 12, 1.0))
    drop-shadow( 4px  6px 0 rgba(4,  6, 12, 0.85))
    drop-shadow( 6px  9px 0 rgba(4,  6, 12, 0.7))
    drop-shadow( 8px 12px 0 rgba(4,  6, 12, 0.55))
    drop-shadow(10px 15px 0 rgba(4,  6, 12, 0.4))
    drop-shadow(12px 18px 0 rgba(4,  6, 12, 0.25))
    drop-shadow(14px 21px 0 rgba(4,  6, 12, 0.14))
    drop-shadow(16px 24px 0 rgba(4,  6, 12, 0.06));
}

/* ── subline ── */
.sub {
  position: relative;
  z-index: 1;
  font-family: 'IntraNet', 'Arial Black', sans-serif;
  font-size: clamp(0.8rem, 2.2vw, 2rem);
  letter-spacing: 0.3em;
  color: var(--acid);
  text-shadow:
    0 0 12px var(--acid),
    0 0 40px var(--acid);
}

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */

#site-nav {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 1.4rem;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0  8px rgba(200, 200, 200, 0.10),
    0 0 20px rgba(200, 200, 200, 0.06),
    0 0 40px rgba(200, 200, 200, 0.03);
}

.nav-btn {
  font-family: 'Synkopy', 'IntraNet', sans-serif;
  font-size: clamp(0.6rem, 1.1vw, 0.78rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-btn.active {
  color: rgba(255, 255, 255, 0.95);
}

.nav-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  line-height: 1;
  user-select: none;
}
