/* ========================================================
   ANNA VASADI - Portfolio
   Display: Anton 
   Body/UI: Poppins
   Base bg: #FAF9F6 
   Ink: #141210
======================================================== */

:root {
  --ink: #121212;
  --paper: #FAF9F6;
  --paper-alt: #F1EFEA;
  --line: #121212;
  --line-soft: rgba(18, 18, 18, 0.14);
  --lime: #AAFF00;
  --sage: #D8E2D3;
  --near-black: #121212;
  --max: 1400px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* `clip` stops horizontal overflow without turning the element into a scroll
   container, which is what breaks position:sticky. `hidden` is the fallback
   for Safari < 16. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--lime);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ---------- nav ---------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: var(--paper);
}

.nav-mark {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  display: flex;
  gap: 6px;
}
.nav-mark span { color: var(--lime); }

.nav-links {
  display: flex;
  gap: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--lime);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  display: block;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
}
.hero-image { overflow: hidden; height: 100%; }
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
}
.hero-copy h1 {
  font-size: clamp(56px, 9vw, 128px);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 34px);
  color: var(--near-black);
  margin: 10px 0 24px;
  letter-spacing: 0.02em;
}
.hero-tag {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--near-black);
}

/* (section dividers removed) */

/* ---------- project ---------- */
.project {
  scroll-margin-top: 63px;
  padding-bottom: 90px;
}
.project:last-of-type { border-bottom: none; }
.project.first-in-group { padding-top: 0; }

.project-band {
  position: relative;
  background: var(--band);
  color: var(--band-text);
  height: 360px;
  padding: 40px var(--gutter);
  margin-bottom: 56px;
  overflow: hidden;
}
.project-band-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.85;
}
.project-title {
  font-size: clamp(88px, 15vw, 192px);
  white-space: nowrap;
  margin-top: auto;
}

.project-title.compact {
  font-size: clamp(30px, 7vw, 80px);
  margin-top: auto;
}
.project-tag {
  position: absolute;
  top: 40px;
  right: var(--gutter);
  font-family: 'Anton', sans-serif;
  font-size: clamp(16px, 2vw, 26px);
  white-space: nowrap;
  text-transform: uppercase;
  z-index: 2;
}
.band-deco {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  height: 220%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  padding: 0 var(--gutter);
  margin-bottom: 56px;
  align-items: start;
  justify-items: start;
}
.project-body.single { grid-template-columns: 1fr; }
.project-text p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(20,18,16,0.82);
  margin: 0 0 20px;
}
.project-text p:last-child { margin-bottom: 0; }
.project-text strong { color: var(--ink); }

.project-hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.project-hero-images.single { grid-template-columns: 1fr; }
.project-hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.project-hero-images.single img { aspect-ratio: 16/10; }

/* ---------- subsections / goal rows ---------- */
.subsection {
  padding: 0 var(--gutter);
  margin-bottom: 64px;
  text-align: left;
}
.subsection h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 28px;
  text-align: left;
}
.subsection-note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(20,18,16,0.7);
  max-width: 70ch;
  margin: -12px 0 32px;
}

.goal-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}
.goal-row:last-child { margin-bottom: 0; }
.goal-row.stacked {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.goal-text {
  display: flex;
  gap: 12px;
}
.goal-arrow {
  font-size: 18px;
  color: var(--ink);
  flex-shrink: 0;
  transform: rotate(0deg);
}
.goal-text h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: 14px;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.goal-text p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20,18,16,0.65);
  margin: 0;
}

.carousel-grid {
  display: grid;
  gap: 10px;
}
.carousel-grid.six { grid-template-columns: repeat(6, 1fr); }
.carousel-grid.five { grid-template-columns: repeat(5, 1fr); }
.carousel-grid.four { grid-template-columns: repeat(4, 1fr); }
.carousel-grid.three { grid-template-columns: repeat(3, 1fr); }
.carousel-grid.two { grid-template-columns: repeat(2, 1fr); }
.carousel-grid.single { grid-template-columns: 1fr; }
.carousel-grid.single.narrow { max-width: 320px; }
.carousel-grid.single.narrow img { aspect-ratio: 4/5; }
.carousel-grid.two.banner-pair {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}
.carousel-grid.two.banner-pair img {
  width: auto;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--paper-alt);
  flex: 1 1 45%;
}
.carousel-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  background: var(--paper-alt);
}
.carousel-grid.single img { aspect-ratio: 16/10; }

/* Opt out of the 3/4 crop: each image keeps its own aspect ratio and is sized
   by its width, so the full frame is visible. Columns align at the top, so
   mixed ratios give an uneven bottom edge rather than a cropped image. */
.carousel-grid.no-crop { align-items: start; }
.carousel-grid.no-crop img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.carousel-grid.banner-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 14px;
}

.carousel-grid.banner-grid img {
  height: 260px;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--paper-alt);
}

.two-col {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.two-col > div {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
}
.two-col > div:last-child {
  text-align: right;
}
.two-col > div:last-child h3 {
  text-align: right;
}
.two-col > div:last-child .video-frame,
.two-col > div:last-child .ig-embed-wrap {
  margin-left: auto;
  margin-right: 0;
}

.video-frame {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin: 0;
  margin-right: auto;
  margin-left: 0;
  border-radius: 4px;
  overflow: hidden;
}
.video-frame img { aspect-ratio: 9/16; object-fit: cover; }
.video-frame.wide { max-width: 100%; }
.video-frame.wide img { aspect-ratio: 16/9; }
.video-frame.small { max-width: 220px; }

/* ============================
   Instagram Embeds
============================ */

/* Keep the embed smaller by limiting its WIDTH only.
   Do not force a fixed height: Instagram calculates the iframe height itself,
   and overriding it is what cuts off likes/comments. */
.ig-embed-wrap {
    width: 100%;
    max-width: 480px;
}

.ig-embed-wrap.small {
    max-width: 480px;
}

/* Right column */
.two-col > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.two-col > div:last-child h3 {
    text-align: right;
    width: 100%;
}

.two-col > div:last-child .ig-embed-wrap {
    margin-left: auto;
    margin-right: 0;
}

/* Let Instagram keep its natural calculated height */
.two-col .ig-embed-wrap {
    width: 100%;
    max-width: 480px;
    height: auto;
    overflow: visible;
    border-radius: 4px;
}

.two-col .ig-embed-wrap iframe {
    width: 100% !important;
    max-width: 100% !important;
    /* no forced height */
}

.ig-embed-wrap blockquote.instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    min-height: 630px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ig-embed-wrap blockquote.instagram-media a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================
   Mobile
============================ */

@media (max-width: 900px) {
    .two-col > div:last-child {
        align-items: flex-start;
    }

    .two-col > div:last-child h3 {
        text-align: left;
    }

    .two-col .ig-embed-wrap {
        max-width: 100%;
        height: auto;
        overflow: visible;
    }

    .ig-embed-wrap blockquote.instagram-media {
        min-height: 630px;
    }
}

/* ---------- unbound extras ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.logo-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 110px;
}
.logo-card img { max-height: 200px; width: auto; }
.logo-card.dark { background: var(--near-black); }
.logo-card.dark span { color: var(--paper); }
.logo-card span {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(20,18,16,0.6);
  font-weight: 600;
}

.logo-card.wordmark img {
  width: 250px;
  max-width: none;
  max-height: none;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.swatch {
  height: 110px;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.jersey-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.jersey-grid img { background: var(--paper-alt); border-radius: 4px; }

.merch-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.merch-grid img {
  background: var(--near-black);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

/* ---------- footer / contact ---------- */
#contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--near-black);
  color: var(--paper);
  scroll-margin-top: 40px;
}
.footer-image { overflow: hidden; height: 100%; }
.footer-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.footer-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: var(--gutter);
}
.footer-eyebrow {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.55);
  margin-bottom: 24px;
}
#contact h2 {
  font-size: clamp(48px, 6.5vw, 96px);
  margin-bottom: 32px;
}
.footer-email {
  display: inline-block;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 6px;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}
.footer-email:hover { color: var(--lime); }
.footer-instagram {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--paper);
}
.footer-instagram a {
  border-bottom: 1px solid rgba(250,249,246,0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-instagram a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-image img { height: 60vh; }
  .hero-copy { padding: 48px var(--gutter); }

  #contact { grid-template-columns: 1fr; min-height: auto; }
  .footer-image img { height: 50vh; }
  .footer-copy { padding: 48px var(--gutter); }

  .project-band {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 32px var(--gutter);
  }
  .project-band-inner {
    height: auto;
    display: block;
  }
  .project-title { margin-top: 10px; }
  .project-title.compact { margin-top: 10px; }
  .project-tag {
    position: static;
  }
  .project-body { grid-template-columns: 1fr; gap: 28px; }
  .project-hero-images { grid-template-columns: 1fr 1fr; }

  .carousel-grid.banner-grid img { height: 180px; }

  .goal-row { grid-template-columns: 1fr; gap: 16px; }
  .carousel-grid.six { grid-template-columns: repeat(3, 1fr); }
  .carousel-grid.five,
  .carousel-grid.four { grid-template-columns: repeat(2, 1fr); }
  .carousel-grid.four.jersey { grid-template-columns: repeat(4, 1fr); }
  .carousel-grid.four { grid-template-columns: repeat(2, 1fr); }
  .two-col { flex-direction: column; gap: 40px; }
  .two-col > div:last-child { text-align: left; }
  .two-col > div:last-child h3 { text-align: left; }
  .two-col > div:last-child .video-frame,
  .two-col > div:last-child .ig-embed-wrap {
    margin-left: 0;
    margin-right: auto;
  }

  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .palette-grid { grid-template-columns: repeat(2, 1fr); }
  .jersey-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: 1fr 1fr; }
  .merch-grid img:first-child { grid-column: 1 / -1; }

  .band-deco { display: none; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: -1;                 /* slides in behind the nav bar, not over it */
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 0;
    /* Top rule ties the panel to the header; the shadow lifts it off the
       page content so it reads as an overlay, not as inline text. */
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 20px 30px -20px rgba(18, 18, 18, 0.35);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }
  .nav-links a {
    padding: 15px var(--gutter);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  .carousel-grid.three,
  .carousel-grid.six { grid-template-columns: repeat(2, 1fr); }
  .carousel-grid.four,
  .carousel-grid.five { grid-template-columns: repeat(2, 1fr); }
  .carousel-grid.four.jersey {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .project-hero-images { grid-template-columns: 1fr; }
  .project-hero-images img { aspect-ratio: 16/10; }
}

@media (max-width: 640px) {
  .project-title { 
    font-size: clamp(42px, 11vw, 84px); 
    padding-top: 30px;}
}


/* Trail Tour - action photos below project description */
.trail-tour-action-photos {
  margin-top: 36px;
}
