/* ============================================
   Daniel O' Bailey — Personal Site
   Midnight & Gold / IBM Selectric Aesthetic
   ============================================ */

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

:root {
  /* Dark Blue & Black Palette */
  --black: #080a14;
  --black-warm: #0c1020;
  --black-soft: #121828;
  --ink: #0a0e1a;
  --midnight: #101830;
  --navy: #182240;
  --slate: #1e2c4a;
  --gold: #c9a84c;
  --gold-bright: #e0c168;
  --gold-pale: #f0dfa0;
  --gold-dim: #a08830;
  --amber: #d4a843;
  --cream: #f5f0e4;
  --cream-dark: #e0d8c4;
  --warm-white: #ede8db;
  --text-bright: #f0ece0;
  --text-body: #c8c2b4;
  --text-muted: #8a8478;
  --text-dim: #5c574e;

  /* Fonts */
  --font-selectric: 'Special Elite', 'American Typewriter', 'Courier New', monospace;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container: 1100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Subtle Grain Texture
   ============================================ */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ============================================
   Place-Based Background Symbols
   Fleur-de-lis (Louisiana), music notes,
   pen nibs — very faint, scattered
   ============================================ */

.hero,
.hire,
.writing,
.music,
.contact {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='%234a6fa5' opacity='0.025'%3E%3C!-- Fleur-de-lis 1 --%3E%3Cpath transform='translate(60,50) scale(0.35)' d='M50 10 C50 10 40 30 30 40 C20 50 10 50 10 60 C10 75 25 80 40 75 L35 95 L50 85 L65 95 L60 75 C75 80 90 75 90 60 C90 50 80 50 70 40 C60 30 50 10 50 10Z'/%3E%3C!-- Music note --%3E%3Cellipse cx='310' cy='85' rx='10' ry='7' transform='rotate(-20 310 85)'/%3E%3Crect x='319' y='35' width='2.5' height='50'/%3E%3Cpath d='M321 35 Q340 30 335 50 Q330 60 321 55' fill='none' stroke='%234a6fa5' stroke-width='2'/%3E%3C!-- Pen nib --%3E%3Cpath transform='translate(180,290) scale(0.3) rotate(-30)' d='M25 0 L50 80 L25 65 L0 80Z'/%3E%3Cline x1='180' y1='290' x2='172' y2='270' stroke='%234a6fa5' stroke-width='1.5' transform='rotate(-30 180 290)'/%3E%3C!-- Fleur-de-lis 2 --%3E%3Cpath transform='translate(320,310) scale(0.25)' d='M50 10 C50 10 40 30 30 40 C20 50 10 50 10 60 C10 75 25 80 40 75 L35 95 L50 85 L65 95 L60 75 C75 80 90 75 90 60 C90 50 80 50 70 40 C60 30 50 10 50 10Z'/%3E%3C!-- Small star --%3E%3Cpolygon points='75,230 78,240 88,240 80,246 83,256 75,250 67,256 70,246 62,240 72,240' /%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(8, 9, 12, 0.95);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.12);
  padding: 0.8rem 3rem;
}

.nav-logo {
  font-family: var(--font-selectric);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  z-index: 1001;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-selectric);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero — Clean & Bold
   ============================================ */

.hero {
  min-height: 100vh;
  background-color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

/* Warm ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 55%);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.04) 0%, transparent 55%);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3%, 3%); }
}

/* No paper — direct layout */
.hero-paper {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: heroIn 0.9s 0.2s forwards;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-typed {
  position: relative;
}

.hero-date {
  font-family: var(--font-selectric);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}

.hero-name {
  font-family: var(--font-selectric);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.7s forwards;
}

.hero-underline {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem auto 1.5rem;
  transform-origin: center;
  transform: scaleX(0);
  animation: lineReveal 0.5s 1s forwards;
}

@keyframes lineReveal {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-subtitle {
  font-family: var(--font-selectric);
  font-size: 0.95rem;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s 1.1s forwards;
}

.hero-tagline {
  font-family: var(--font-selectric);
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.9;
  margin: 0 auto 2.1rem;
  max-width: 620px;
  opacity: 0;
  animation: fadeUp 0.6s 1.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 1.5s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s 2s forwards;
}

.hero-scroll span {
  font-family: var(--font-selectric);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(201, 168, 76, 0.2);
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s infinite;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-selectric);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--dark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(201, 168, 76, 0.25);
}

.btn--dark:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.1);
}

.btn--accent {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn--accent:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.25);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 0.82rem;
}

/* Contact section button override */
.contact .btn--dark {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--cream);
}

.contact .btn--dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.2);
}

/* ============================================
   Section Basics
   ============================================ */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-corner {
  font-size: 0.65rem;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  opacity: 0.35;
  letter-spacing: 0.3em;
}

.section-label {
  font-family: var(--font-selectric);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-selectric);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.section-intro {
  font-family: var(--font-selectric);
  font-size: 0.88rem;
  color: var(--text-body);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 2;
}

.link-arrow {
  font-family: var(--font-selectric);
  font-size: 0.8rem;
  color: var(--gold);
  transition: color 0.3s, letter-spacing 0.3s;
}

.link-arrow:hover {
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

/* ============================================
   About Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--midnight);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem 3rem 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s;
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.06),
    0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-title {
  font-family: var(--font-selectric);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
}

.modal-body {
  position: relative;
}

.modal-body p {
  font-family: var(--font-selectric);
  color: var(--text-body);
  font-size: 0.85rem;
  line-height: 2;
  margin-bottom: 1.25rem;
}

.modal-bios {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.modal-bios h3 {
  font-family: var(--font-selectric);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.modal-bios a {
  display: block;
  font-family: var(--font-selectric);
  font-size: 0.82rem;
  color: var(--gold-dim);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  transition: color 0.2s, padding-left 0.3s;
}

.modal-bios a:last-child {
  border-bottom: none;
}

.modal-bios a:hover {
  color: var(--gold-bright);
  padding-left: 0.5rem;
}

/* ============================================
   Hiring Signal
   ============================================ */

.hire {
  background-color: var(--black-warm);
  color: var(--cream);
  position: relative;
}

.hire .section-title {
  max-width: 820px;
  color: var(--cream);
}

.hire .section-intro {
  max-width: 760px;
}

.hire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.hire-card {
  background: linear-gradient(180deg, rgba(24, 34, 64, 0.95), rgba(18, 24, 40, 0.95));
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-top: 3px solid var(--gold-dim);
  padding: 2rem;
  min-height: 250px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.hire-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hire-card-kicker {
  display: block;
  font-family: var(--font-selectric);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hire-card h3 {
  font-family: var(--font-selectric);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 1rem;
}

.hire-card p,
.hire-proof p,
.contact-note {
  font-family: var(--font-selectric);
  font-size: 0.85rem;
  line-height: 1.95;
}

.hire-card p {
  color: var(--text-muted);
}

.hire-proof {
  border-left: 3px solid var(--gold);
  background: rgba(201, 168, 76, 0.06);
  padding: 1.35rem 1.6rem;
}

.hire-proof p {
  color: var(--text-body);
}

.hire-proof strong {
  color: var(--gold-bright);
  font-weight: 400;
}

/* ============================================
   Writing
   ============================================ */

.writing {
  background-color: var(--midnight);
}

.writing .section-label {
  color: var(--gold-dim);
}

.writing .section-title {
  color: var(--cream);
}

.writing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.badge {
  font-family: var(--font-selectric);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold);
  background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.badge:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.writing-card {
  background: var(--navy);
  padding: 2.5rem;
  border-left: 3px solid var(--gold-dim);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.writing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.writing-card--featured {
  grid-column: 1 / -1;
  background: var(--slate);
  border-left-color: var(--gold);
}

.writing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.writing-card--featured::after {
  content: '///';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-selectric);
  font-size: 0.7rem;
  color: rgba(201, 168, 76, 0.15);
  letter-spacing: 0.15em;
}

.writing-card--featured p {
  color: var(--text-body);
}

.writing-card--featured .writing-card-pub {
  color: var(--gold);
}

.writing-card--featured .link-arrow {
  color: var(--gold);
}

.writing-card--featured .link-arrow:hover {
  color: var(--gold-bright);
}

.writing-card-tag {
  display: inline-block;
  font-family: var(--font-selectric);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
}

.writing-card--featured .writing-card-tag {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-bright);
}

.writing-card h3 {
  font-family: var(--font-selectric);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--cream);
}

.writing-card-pub {
  font-family: var(--font-selectric);
  font-size: 0.78rem;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  font-style: italic;
}

.writing-card p {
  font-family: var(--font-selectric);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ============================================
   Music
   ============================================ */

.music {
  background-color: var(--black-warm);
  color: var(--cream);
}

.music .section-label {
  color: var(--gold-dim);
}

.music .section-title {
  color: var(--cream);
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.music-card {
  display: block;
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.06);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.music-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.music-card-visual {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--black-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.music-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.03), transparent);
}

.music-card-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
}

.music-card:hover .music-card-icon {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: scale(1.1);
}

.music-card-info {
  padding: 1.75rem;
}

.music-card-info h3 {
  font-family: var(--font-selectric);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--cream);
}

.music-card-info p {
  font-family: var(--font-selectric);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.music-card-detail {
  font-family: var(--font-selectric);
  font-size: 0.7rem;
  color: var(--gold-dim);
}

/* ============================================
   Contact
   ============================================ */

.contact {
  background-color: var(--navy);
  text-align: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.contact-heading {
  font-family: var(--font-selectric);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 2.5rem;
  position: relative;
}

.contact-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem auto 0;
}

.contact-note {
  max-width: 720px;
  margin: -1rem auto 2.5rem;
  color: var(--text-body);
}

.contact-links {
  margin-bottom: 3rem;
  position: relative;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
}

.contact-social a {
  font-family: var(--font-selectric);
  font-size: 0.78rem;
  color: var(--text-body);
  transition: color 0.3s;
  position: relative;
}

.contact-social a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.contact-social a:hover {
  color: var(--gold-bright);
}

.contact-social a:hover::after {
  width: 100%;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--black);
  padding: 2rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-family: var(--font-selectric);
  font-size: 0.72rem;
  color: rgba(201, 168, 76, 0.18);
  letter-spacing: 0.02em;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hire-grid,
  .music-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav.scrolled {
    padding: 0.75rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    padding: 6rem 2.5rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 260px;
  }

  .hire-grid,
  .writing-grid {
    grid-template-columns: 1fr;
  }

  .music-grid {
    grid-template-columns: 1fr;
  }

  .contact-social {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .writing-badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
  }
}
