/* ============================================================
   LAURA SUMMERS — Portfolio Stylesheet
   style.css

   TABLE OF CONTENTS:
   1. CSS Variables & Reset
   2. Base Typography
   3. Reusable Utilities
   4. Navigation
   5. Hero Section
   6. About Section
   7. Portfolio Section (Tabs, Photo Grid, Video, Writing)
   8. Resume Section
   9. Contact Section
   10. Animations & Scroll Reveals
   11. Responsive / Mobile
============================================================ */


/* ============================================================
   1. CSS VARIABLES & RESET
============================================================ */
:root {
  /* Color palette */
  --cream:        #faf8f5;
  --warm-white:   #f4f0eb;
  --blush:        #c9a48e;
  --blush-light:  #e8d5c8;
  --blush-dark:   #a07a64;
  --charcoal:     #241e1b;
  --charcoal-mid: #3a302b;
  --warm-gray:    #8a7e78;
  --border:       #e2d8d0;
  --border-dark:  rgba(255,255,255,0.1);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --nav-h:        76px;
  --section-pad:  110px;
  --container:    1100px;

  /* Transitions */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

ul { list-style: none; }

button { cursor: pointer; font-family: var(--font-body); }


/* ============================================================
   2. BASE TYPOGRAPHY
============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(52px, 7vw, 88px); }
h2 { font-size: clamp(40px, 5vw, 62px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }

em { font-style: italic; color: var(--blush-dark); }

p { font-size: 15px; color: var(--warm-gray); line-height: 1.8; }


/* ============================================================
   3. REUSABLE UTILITIES
============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
}

/* Section eyebrow label */
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: 18px;
  display: block;
}

/* Section main heading */
.section-heading {
  color: var(--charcoal);
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 36px;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: var(--blush);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--blush-dark);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--warm-gray);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
  transform: translateY(-2px);
}

/* Image placeholder (shown when images are missing) */
.img-placeholder {
  background: var(--warm-white);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
}
.img-placeholder::after {
  content: 'Add your image here';
  font-size: 12px;
  color: var(--warm-gray);
  letter-spacing: 0.1em;
}
.img-placeholder img { display: none; }


/* ============================================================
   4. NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Scrolled state — added by JS */
#navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 24px rgba(36,30,27,0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--blush-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--blush-dark);
  transition: width 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--charcoal); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta .nav-link {
  color: var(--blush-dark);
  border: 1px solid var(--blush);
  padding: 8px 20px;
  letter-spacing: 0.18em;
}
.nav-cta .nav-link::after { display: none; }
.nav-cta .nav-link:hover {
  background: var(--blush);
  color: var(--charcoal);
  border-color: var(--blush);
}

/* Hamburger — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   5. HERO SECTION
============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201,164,142,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(201,164,142,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 60px;
  width: 100%;
}

/* ── Hero text ── */
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero-name {
  display: block;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.25s forwards;
}
.hero-name-first {
  display: block;
  color: var(--charcoal);
}
.hero-name-last {
  display: block;
  color: var(--charcoal);
}

.hero-tagline {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.9;
  margin-bottom: 44px;
  max-width: 380px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.55s forwards;
}

/* ── Hero image ── */
.hero-image-wrap {
  position: relative;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.3s forwards;
}

.hero-image-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 3/4;
  overflow: hidden;
  max-width: 420px;
  margin-left: auto;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.hero-image-frame:hover img { transform: scale(1.03); }

/* Decorative accent behind image */
.hero-image-accent {
  position: absolute;
  top: 24px; right: -16px;
  width: calc(100% - 40px);
  height: calc(100% - 24px);
  border: 1px solid var(--blush-light);
  z-index: 1;
  max-width: 420px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.2s forwards;
}
.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 500;
}
.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--blush);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--charcoal);
  animation: scrollSlide 2s ease-in-out infinite 1.5s;
}
@keyframes scrollSlide {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}


/* ============================================================
   6. ABOUT SECTION
============================================================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* ── About image ── */
.about-image-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-image-tag {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  font-weight: 500;
}

/* ── About text ── */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.about-body p { color: var(--charcoal); font-size: 15px; }

/* Skills chips */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.skill-chip {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid var(--border);
  color: var(--warm-gray);
  background: var(--cream);
  transition: all 0.2s;
}
.skill-chip:hover {
  border-color: var(--blush);
  color: var(--blush-dark);
}


/* ============================================================
   7. PORTFOLIO SECTION
============================================================ */
.portfolio {
  padding: var(--section-pad) 0;
}

.portfolio-header {
  margin-bottom: 60px;
}
.portfolio-intro {
  font-size: 15px;
  color: var(--warm-gray);
  max-width: 560px;
  margin-top: -8px;
}

/* ── Tabs ── */
.portfolio-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.tab-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  background: none;
  border: none;
  padding: 14px 36px 14px 0;
  position: relative;
  transition: color 0.2s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--blush-dark);
  transition: width 0.35s var(--ease);
}
.tab-btn:hover { color: var(--charcoal); }
.tab-btn.active {
  color: var(--charcoal);
}
.tab-btn.active::after { width: calc(100% - 36px); }

/* ── Tab panels ── */
.tab-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease);
}
.tab-panel.active { display: block; }

.tab-description {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 40px;
  max-width: 520px;
}

/* ── Photo grid ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 3px;
}
.photo-item { overflow: hidden; position: relative; }
.photo-item.tall { grid-row: span 2; }
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.photo-item:hover img { transform: scale(1.05); }

/* ── Video grid ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.video-embed-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  background: var(--warm-white);
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-embed-wrap {
  position: relative;
  padding-top: 56.25%;
  background: var(--warm-white);
  overflow: hidden;
}
.video-caption {
  padding-top: 16px;
}
.video-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush-dark);
  display: block;
  margin-bottom: 6px;
}
.video-caption p { font-size: 13px; }

/* ── Writing grid ── */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}
/* Last card spans full width if there's an odd number (5 items = last spans 2) */
.writing-card:last-child:nth-child(odd) {
  grid-column: span 2;
}

.writing-card {
  background: var(--cream);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.25s var(--ease);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.writing-card:hover {
  background: var(--warm-white);
}
.writing-card:hover .writing-card-arrow {
  transform: translateX(5px);
  opacity: 1;
}

.writing-card-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.writing-card-type::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--blush);
  flex-shrink: 0;
}

.writing-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 14px;
  font-style: normal;
}

.writing-card-excerpt {
  font-size: 13.5px;
  color: var(--warm-gray);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 28px;
}

.writing-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.writing-card-meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blush-dark);
}
.writing-card-arrow {
  font-size: 18px;
  color: var(--blush-dark);
  opacity: 0.45;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}


/* ============================================================
   8. RESUME SECTION
============================================================ */
.resume-section {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
}

.resume-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.resume-col-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.resume-entry {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.resume-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.resume-entry-org {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
}
.resume-entry-date {
  font-size: 11px;
  color: var(--warm-gray);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}
.resume-entry-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--blush-dark);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.resume-entry-detail {
  font-size: 13px;
  color: var(--warm-gray);
  margin-bottom: 4px;
}
.resume-entry-detail.highlight {
  color: var(--charcoal);
  font-weight: 500;
}

.resume-bullets {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resume-bullets li {
  font-size: 13.5px;
  color: var(--warm-gray);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.resume-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blush);
  font-size: 12px;
}

.resume-skills {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.resume-skill-group { }
.resume-skill-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: 4px;
}
.resume-skill-group p {
  font-size: 13.5px;
  color: var(--charcoal);
}


/* ============================================================
   9. CONTACT SECTION
============================================================ */
.contact-section {
  background: var(--charcoal);
  color: var(--cream);
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}

/* Giant ghost text behind content */
.contact-section::before {
  content: 'HELLO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 240px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

.contact-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.contact-label { color: var(--blush); }

.contact-heading {
  font-size: clamp(44px, 6vw, 72px);
  color: var(--cream);
  margin-bottom: 24px;
}
.contact-heading em { color: var(--blush-light); font-style: italic; }

.contact-subtext {
  font-size: 14px;
  color: rgba(250,248,245,0.55);
  line-height: 1.85;
  max-width: 360px;
  margin-bottom: 32px;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(250,248,245,0.5);
  letter-spacing: 0.08em;
}
.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8bc4a0;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.8); }
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.form-field {
  background: rgba(255,255,255,0.05);
  transition: background 0.2s;
  position: relative;
}
.form-field.full { grid-column: span 2; }
.form-field:focus-within {
  background: rgba(201,164,142,0.1);
}

.form-field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.4);
  padding: 18px 22px 4px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 4px 22px 18px;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(250,248,245,0.2);
}

.form-field select option {
  background: var(--charcoal-mid);
  color: var(--cream);
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.form-note {
  font-size: 12px;
  color: rgba(250,248,245,0.3);
  letter-spacing: 0.04em;
}

.btn-submit {
  background: var(--blush);
  color: var(--charcoal);
  border: none;
  padding: 16px 44px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s var(--ease);
}
.btn-submit:hover {
  background: var(--blush-light);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 22px;
  background: rgba(139,196,160,0.12);
  font-size: 13px;
  color: #8bc4a0;
  letter-spacing: 0.06em;
}
.form-success.visible { display: block; }

/* ── Contact bottom bar ── */
.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 24px;
}

.contact-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-link-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.3);
}
.contact-link-value {
  font-size: 14px;
  color: var(--blush-light);
  border-bottom: 1px solid rgba(201,164,142,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-link:hover .contact-link-value {
  color: var(--cream);
  border-color: rgba(250,248,245,0.4);
}

.footer-credit {
  font-size: 11px;
  color: rgba(250,248,245,0.25);
  letter-spacing: 0.1em;
}


/* ============================================================
   10. ANIMATIONS & SCROLL REVEALS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered reveal — added by JS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside a container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }


/* ============================================================
   11. RESPONSIVE / MOBILE
============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }

  .container { padding: 0 32px; }

  /* Nav */
  #navbar { padding: 0 32px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 28px;
    border-top: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(36,30,27,0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  .nav-link { font-size: 13px; }
  .nav-cta .nav-link { border: none; padding: 0; color: var(--blush-dark); }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 60px 32px;
    gap: 48px;
    text-align: center;
  }
  .hero-image-wrap { order: -1; }
  .hero-image-frame { max-width: 280px; margin: 0 auto; }
  .hero-image-accent { display: none; }
  .hero-actions { justify-content: center; }
  .hero-tagline { margin: 0 auto 44px; }
  .scroll-hint { left: 32px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-tag { right: 0; }

  /* Portfolio */
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .writing-grid { grid-template-columns: 1fr; }
  .writing-card:last-child:nth-child(odd) { grid-column: span 1; }

  /* Resume */
  .resume-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .resume-grid { grid-template-columns: 1fr; gap: 60px; }
  .resume-entry-header { flex-direction: column; gap: 4px; }

  /* Contact */
  .contact-inner { padding: 0 32px; }
  .contact-top { grid-template-columns: 1fr; gap: 48px; }
  .contact-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
}

@media (max-width: 540px) {
  h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item.tall { grid-row: span 1; }
  .contact-links { flex-direction: column; gap: 24px; }
}
/* ── Video Thumbnail Cards ── */
.video-thumb-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease);
}
.video-thumb-card:hover {
  transform: translateY(-4px);
}
.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--warm-white);
}
.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.video-thumb-card:hover .video-thumb-wrap img {
  transform: scale(1.04);
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(36,30,27,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.video-thumb-card:hover .video-play-btn {
  background: var(--blush-dark);
}
.video-platform-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(36,30,27,0.6);
  color: var(--cream);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  backdrop-filter: blur(4px);
}