/* ===========================
   Base + Theme
   =========================== */

   :root{
    --bg: #0d0d0d;
    --text: #f5f5f5;
    --muted: #cfcfcf;
    --accent: #e6d2a2;            /* soft, stage-light warmth */
    --accent-contrast: #171717;
  
    --max-w: 1120px;              /* page width */
    --max-w-narrow: 760px;
    --gutter: 24px;               /* base spacing */
    --radius: 16px;
  
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
                 "Segoe UI Emoji", "Segoe UI Symbol";
  }
  
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  img, video { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  a:hover { text-decoration: underline; }
  em { font-style: italic; }
  
  /* ===========================
     Utilities
     =========================== */
  
  .container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }
  
  .narrow {
    max-width: var(--max-w-narrow);
  }
  
  .section {
    padding: calc(var(--gutter) * 3) 0;
  }
  
  .section-title {
    margin: 0 0 calc(var(--gutter) * 1.25) 0;
    font-size: clamp(1.35rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  
  /* Screen-reader only */
  .sr-only {
    position: absolute !important; 
    height: 1px; width: 1px; 
    overflow: hidden; clip: rect(1px,1px,1px,1px);
    white-space: nowrap; border: 0; padding: 0; margin: -1px;
  }
  
  /* Skip link for a11y */
  .skip-link {
    position: absolute;
    top: -40px; left: 0;
    background: var(--accent);
    color: var(--accent-contrast);
    padding: 8px 12px;
    z-index: 100;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .skip-link:focus { top: 0; }
  
  /* ===========================
     Header / Hero
     =========================== */
  
  .site-header {
    padding: calc(var(--gutter) * 2) 0 calc(var(--gutter) * 1.5);
  }
  
  .hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: calc(var(--gutter) * 2);
    align-items: center;
  }
  
  .hero-title {
    margin: 0 0 8px 0;
    font-size: clamp(2.2rem, 2rem + 2vw, 4rem);
    line-height: 1.1;
  }
  
  .hero-subtitle {
    margin: 0 0 16px 0;
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
    color: var(--muted);
  }

  .hero-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 200ms ease;
    box-shadow: 0 4px 12px rgba(240, 148, 51, 0.3);
    position: relative;
    overflow: hidden;
  }

  .hero-instagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
  }

  .hero-instagram:hover::before {
    left: 100%;
  }

  .hero-instagram:hover {
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(240, 148, 51, 0.4);
  }

  .hero-instagram svg {
    flex-shrink: 0;
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4 / 5;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  }
  
  /* ===========================
     Bio
     =========================== */
  
  .bio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--gutter) * 2);
  }
  
  .lead {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: var(--text);
    margin-top: 0;
  }
  
  
  .resume-image {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    margin-bottom: calc(var(--gutter) * 0.75);
  }
  
  .resume-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
  }
  
  .resume-download {
    text-align: center;
  }
  
  /* Two column layout for larger screens */
  @media (min-width: 1024px) {
    .bio-layout {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }
  }
  
  /* ===========================
     Gallery (Staggered Diorama)
     =========================== */
  
  /*
    We use CSS Grid and size modifiers to create a staggered, editorial look—no JS.
    Tweak the minmax() value for card width. The .tall/.wide classes vary spans.
  */
  
  .gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--gutter) * 0.75);
  }
  
  .card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: #111;
  }
  
  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 5; /* default portrait */
  }
  
  /* Size variants for staggered composition */
  .card.wide img { aspect-ratio: 16 / 10; }   /* landscape */
  .card.tall img { aspect-ratio: 3 / 4; }     /* slightly taller portrait */
  
  /* Optional subtle hover (kept accessible and low-motion) */
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card img { transition: transform 300ms ease; }
    .card:hover img { transform: scale(1.02); }
  }
  
  /* ===========================
     Reel
     =========================== */
  
  .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--gutter) * 1.5);
    margin-bottom: calc(var(--gutter) * 1.5);
  }
  
  .video-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    background: #111;
    /* 16:9 responsive iframe wrapper */
    aspect-ratio: 16 / 9;
  }
  .video-frame iframe {
    border: 0;
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .reel-note {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0;
    text-align: center;
  }
  
  /* Two column layout for larger screens */
  @media (min-width: 768px) {
    .video-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /* ===========================
     Buttons / CTAs
     =========================== */
  
  .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  
  .button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    padding: 16px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
  }
  
  .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s;
  }

  .button:hover::before {
    left: 100%;
  }
  
  .button:hover {
    text-decoration: none;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  }
  
  .button.primary {
    background: linear-gradient(135deg, var(--accent), #f0e6b8);
    color: var(--accent-contrast);
    border: 2px solid var(--accent);
    box-shadow: 0 6px 20px rgba(230, 210, 162, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  }

  .button.primary:hover {
    background: linear-gradient(135deg, #f0e6b8, #f5eccc);
    border-color: #f0e6b8;
    box-shadow: 0 12px 32px rgba(230, 210, 162, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
    transform: translateY(-3px) scale(1.05);
  }
  
  .button svg {
    flex-shrink: 0;
  }
  
  
  @media (max-width: 640px) {
    .button-row {
      flex-direction: column;
      align-items: center;
    }
    
    .button {
      width: 100%;
      max-width: 280px;
      justify-content: center;
    }
  }
  
  /* ===========================
     Footer
     =========================== */
  
  .site-footer {
    padding: calc(var(--gutter) * 2) 0;
    border-top: 1px solid #1d1d1d;
    color: var(--muted);
    font-size: 0.95rem;
  }
  
  /* ===========================
     Responsive
     =========================== */
  
  @media (max-width: 900px) {
    .hero {
      grid-template-columns: 1fr;
    }
    .hero-image { order: -1; }
  }
  