/*
  styles.css
  ----------
  Key design goals:
  - Single continuous background gradient behind the entire page (no seams)
  - Gradient scrolls naturally (not fixed)
  - Mix of plain text sections + card aesthetic for selected content

  Background seam fix:
  - Put background on html
  - Make body transparent
  - Use min-height, not height: 100%
*/

:root{
    --bg: #0b0f19;
    --panel: rgba(255,255,255,0.06);
    --panel2: rgba(255,255,255,0.09);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.72);
    --line: rgba(255,255,255,0.14);
    --accent: #7c5cff;
    --accent2: #25d0ab;
    --shadow: 0 14px 40px rgba(0,0,0,0.45);
    --radius: 18px;
    --max: 1100px;
  }
  
  /* Modern sharp gradient background */
  html {
    min-height: 100%;
    background: 
      linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, transparent 50%),
      linear-gradient(225deg, rgba(37, 208, 171, 0.06) 0%, transparent 50%),
      linear-gradient(45deg, #0b0f19 0%, #151a28 50%, #0b0f19 100%);
    background-attachment: fixed;
  }
  
  * { box-sizing: border-box; }
  
  body {
    min-height: 100vh;
    margin: 0;
    background: transparent; /* allow html background to show through */
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    line-height: 1.55;
  }
  
  a { color: inherit; text-decoration: none; }
  
  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px;
  }

  /* Make inline links clearly clickable */
.intro-text a,
.about-intro a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.5);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.intro-text a:hover,
.about-intro a:hover {
  color: white;
  text-decoration-color: white;
}
  
  /* Sticky header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(11,15,25,0.9), rgba(11,15,25,0.65));
    border-bottom: 1px solid var(--line);
    transition: all 0.3s ease;
  }

  /* Hidden state when scrolling down */
  .site-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  section {
    scroll-margin-top: 100px; /* accounts for header height + spacing */
  }
  
  @media (max-width: 900px){
    /* Slightly smaller offset on mobile, but still account for header */
    section {
      scroll-margin-top: 80px;
    }
  }  
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    transition: padding 0.3s ease;
  }

  /* Shrunken header state (desktop / base) */
  .site-header.shrunk .nav {
    padding: 4px 0; /* slightly narrower than default 14px */
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 60px;
    transition: font-size 0.3s ease;
  }

  /* Shrunken brand size */
  .site-header.shrunk .brand {
    font-size: 32px;
  }

  .brand-prod {
    font-style: italic;
  }

  .brand-take {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 0 6px rgba(124,92,255,0.12);
  }
  
  .nav-links a {
    font-size: 14px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 999px;
    transition: 180ms ease;
  }

  /* Slightly smaller nav links when shrunken */
  .site-header.shrunk .nav-links a {
    font-size: 13px;
    padding: 6px 8px;
  }
  
  .nav-links a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
  }

  /* Header layout when only the right-side menu is present */
.nav-right-only {
    justify-content: flex-end;
  }
  
  
  /* Shared card style */
  .card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  section { padding: 26px 0; }
  
  .section-title{
    display:flex;
    align-items:baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
  }
  
  h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
  
  h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.2px;
  }
  
  .subtle { color: var(--muted); font-size: 14px; }
  
  /* -----------------------------------------
     TOP TITLE (minimal hero)
  ------------------------------------------ */
  
  .hero {
    padding: 46px 0 34px;
  }
  
  .hero-title {
    font-size: clamp(64px, 12vw, 140px);
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    margin: 80px 0 120px;
  }
  
  /* -----------------------------------------
     Plain text sections (no card aesthetic)
  ------------------------------------------ */
  
  .intro-text,
  /* Plain text sections */
.intro-text {
    max-width: 70ch;     /* keep intro nicely readable */
    margin-top: 10px;
  }
  
  .about-intro {
    max-width: none;     /* full width */
    width: 100%;
    margin-top: 10px;
  }
  
  
  .intro-text p,
  .about-intro p {
    margin: 0 0 12px;
    color: var(--muted);
  }
  
  /* -----------------------------------------
     Film grid + tiles (card aesthetic)
  ------------------------------------------ */
  
  .grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-top: 14px;
  }
  
  .tile{
    grid-column: span 4;
    overflow: hidden;
    position: relative;
    transition: 180ms ease;
  }
  
  .tile:hover{
    transform: translateY(-2px);
    background: var(--panel2);
  }
  
  .thumb{
    width: 100%;
    height: 160px;
    object-fit: cover;
    display:block;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
  }
  
  .tile-body{ padding: 14px 14px 16px; }
  
  .meta{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
  }
  
  .pill{
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    white-space: nowrap;
  }
  
  .tile h3{
    margin: 0 0 8px;
    font-size: 16px;
    letter-spacing: -0.2px;
  }
  
  .tile p{
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }
  
  /* -----------------------------------------
     About leads (two cards)
  ------------------------------------------ */
  
  .about-leads {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  
  .lead-card {
    padding: 16px;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: start;
  }
  
  .lead-photo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
  }
  
  .lead-body { min-width: 0; }
  
  .lead-name {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.2px;
  }
  
  .lead-role {
    margin: 4px 0 10px;
    font-size: 12px;
    color: var(--muted);
  }
  
  .lead-desc {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
  }

  /* Make links inside About lead cards look like links */
.lead-desc a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255,255,255,0.5);
  }
  
  .lead-desc a:hover {
    color: white;
    text-decoration-color: white;
  }
  
  
  /* -----------------------------------------
     Shared "block" padding for card content
  ------------------------------------------ */
  
  .block { padding: 18px; }
  .block p { margin: 0 0 10px; color: var(--muted); }
  .block ul { margin: 10px 0 0 18px; color: var(--muted); }
  .block li { margin: 6px 0; }
  
  /* Contact layout */
  .contact{
    display:grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    margin-top: 14px;
  }
  
  .link{
    color: rgba(255,255,255,0.9);
    border-bottom: 1px dashed rgba(255,255,255,0.35);
  }
  
  /* FAQ */
  details{
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    padding: 12px 14px;
  }
  details + details{ margin-top: 10px; }
  
  summary{
    cursor: pointer;
    font-weight: 600;
    list-style: none;
  }
  summary::-webkit-details-marker{ display:none; }
  
  details p{
    margin: 10px 0 0;
    color: var(--muted);
  }
  
  /* Footer */
  .footer{
    padding: 30px 0 40px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    border-top: 1px solid var(--line);
    margin-top: 18px;
  }
  
  /* Responsive tweaks */
  @media (max-width: 900px){
    /* Mobile header:
       - Keep it visible
       - Center the brand text
       - Hide the desktop nav links (no burger/menu) */
    .site-header{
      display: block;
    }

    /* Reduce wrap padding within the header on mobile
       so the bar itself can get narrower when shrunk */
    .site-header .wrap{
      padding-top: 16px;
      padding-bottom: 16px;
    }

    .site-header.shrunk .wrap{
      padding-top: 4px;
      padding-bottom: 4px;
    }

    .nav{
      justify-content: center;
      padding: 12px 0; /* a bit shorter than desktop */
    }

    .brand{
      margin: 0 auto;
      font-size: 40px; /* starting size on mobile */
      text-align: center;
    }

    /* Make the mobile header bar noticeably narrower when shrunk,
       but keep the font size the same as your current shrunk size */
    .site-header.shrunk .nav{
      padding: 0px 0;
    }

    .site-header.shrunk .brand{
      font-size: 20px;
    }

    .nav-links{
      display: none;
    }
  
    .tile{ grid-column: span 6; }
  
    .contact{ grid-template-columns: 1fr; }
  
    .about-leads { grid-template-columns: 1fr; }
  
    .hero-title { margin: 70px 0 90px; }
  }
  
  @media (max-width: 560px){
    .tile{ grid-column: span 12; }
    .thumb{ height: 190px; }
  
    .lead-card {
      grid-template-columns: 1fr;
    }
    .lead-photo {
      width: 100%;
      height: 220px;
    }
  }
  
/* -----------------------------------------
   Intro split layout: text + image
------------------------------------------ */

/* Make both columns stretch to the same row height */
.intro-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: stretch; /* key change */
    margin-top: 10px;
  }
  
  /* Left column */
  .intro-split .intro-text {
    max-width: none;
    margin-top: 0;
  }
  
  /* Right column image container: match text height and scale with screen */
  .intro-image {
    width: clamp(180px, 28vw, 420px);
    height: 100%;              /* key change: stretch to row height */
    align-self: stretch;       /* key change */
    display: flex;             /* lets img fill */
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    overflow: hidden;          /* keeps rounded corners neat */
  }
  
  /* Do NOT crop the image */
  .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* key change: no cropping */
    display: block;
  }
  
  /* Responsive: stack on smaller screens */
  @media (max-width: 900px) {
    .intro-split {
      grid-template-columns: 1fr;
    }
  
    .intro-image {
      width: 100%;
      height: auto;            /* natural height when stacked */
      overflow: visible;       /* optional: avoids odd clipping on small screens */
    }
  
    .intro-image img {
      height: auto;
    }
  }
  