/* ============================================================
   Studio MATA — stylesheet
   Palette drawn from Zana's watercolours: warm paper, ink,
   sun apricot, cycle rose, fem greens & pride accents.
   ============================================================ */

:root {
  --paper: #FBF6EE;
  --paper-deep: #F4ECDE;
  --ink: #23190f;
  --ink-soft: #5b4c3a;
  --sun: #E4763B;
  --sun-deep: #C2511F;
  --rose: #C24B41;
  --rose-tint: #F7E7E2;
  --apricot-tint: #F9EDDB;
  --sage: #6F8757;
  --sage-tint: #EEF0E2;
  --night: #1F1710;
  --cream: #FFFBF3;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(35, 25, 15, .28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; }

.accent { color: var(--sun); }
.heart { color: var(--rose); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .85em 1.7em;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--ink); color: var(--cream); box-shadow: 0 10px 24px -10px rgba(35,25,15,.5); }
.btn--solid:hover { background: var(--sun-deep); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { border: 1.5px solid var(--cream); color: var(--cream); background: transparent; }
.btn--light:hover { background: var(--cream); color: var(--night); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35,25,15,.08);
  transition: transform .4s ease;
}
.nav.nav--hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.nav__logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nav__wordmark { font-family: var(--font-display); font-weight: 640; font-size: 1.15rem; letter-spacing: .01em; }
.nav__links { display: flex; gap: clamp(.9rem, 1.8vw, 1.7rem); }
.nav__links a {
  text-decoration: none; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: .3em 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__links a:hover { color: var(--sun-deep); border-color: var(--sun); }

.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.menu.is-open { opacity: 1; pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.menu__links a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.2rem);
  text-decoration: none; font-weight: 560;
  transition: color .2s;
}
.menu__links a:hover { color: var(--sun-deep); }
.menu__foot { display: flex; gap: 2rem; }
.menu__foot a { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4rem) 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--apricot-tint) 0%, var(--paper) 85%);
}
.hero__sun {
  position: absolute;
  width: clamp(320px, 46vw, 640px); aspect-ratio: 1;
  border-radius: 50%;
  right: -8%; top: -14%;
  background: radial-gradient(circle at 42% 42%, #FBD9A0 0%, #F2A25C 45%, rgba(228, 118, 59, .0) 72%);
  filter: blur(2px);
  opacity: .85;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.hero__kicker {
  font-size: .95rem; letter-spacing: .04em; color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.hero__kicker em { font-family: var(--font-display); }
.hero__title {
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  font-weight: 620;
  letter-spacing: -.02em;
  margin-bottom: 1.6rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__line span { display: inline-block; }
.hero__line--accent span {
  color: var(--sun-deep);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); margin-bottom: 2.2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__art { position: relative; }
.hero__art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.hero__scrollcue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--ink-soft); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
}
.hero__scrollcue i {
  width: 1px; height: 44px; background: var(--ink-soft); display: block;
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  padding: .9rem 0;
}
.marquee__track { display: inline-flex; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; letter-spacing: .12em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 4rem); }
.section__head { max-width: 1240px; margin: 0 auto 3rem; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sun-deep); margin-bottom: .8rem;
}
.section__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -.015em;
}
.section__head--light .eyebrow { color: #F2A25C; }

/* ---------- Work grid (Category is...) ---------- */
.work__grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.card {
  text-decoration: none;
  display: flex; flex-direction: column; gap: .9rem;
}
.card__imgwrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}
.card__imgwrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__imgwrap img { transform: scale(1.05); }
.card__imgwrap--pad { display: grid; place-items: center; padding: 18%; }
.card__imgwrap--pad img { object-fit: contain; height: auto; }
.card__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--cream); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(35,25,15,.4);
}
.card__meta h3 { font-size: 1.45rem; margin-bottom: .15rem; }
.card__meta span { font-size: .88rem; color: var(--ink-soft); }
.card--soon .card__imgwrap img { filter: saturate(.85); }
.card--soon { cursor: default; }

/* ---------- Series sections ---------- */
.series--sun { background: linear-gradient(180deg, var(--paper) 0%, var(--apricot-tint) 30%, var(--paper) 100%); }
.series--cycle { background: linear-gradient(180deg, var(--paper) 0%, var(--rose-tint) 30%, var(--paper) 100%); }
.series--fems { background: linear-gradient(180deg, var(--paper) 0%, var(--sage-tint) 30%, var(--paper) 100%); }

.series__intro {
  max-width: 1240px; margin: 0 auto 3.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.statement h3, .featured h3, .flowstates h3 {
  font-size: 1.3rem; margin-bottom: 1rem;
}
.statement p { margin-bottom: 1.1em; color: var(--ink-soft); max-width: 58ch; }
.statement p:last-child { margin-bottom: 0; }

.poem {
  border-left: 3px solid var(--sun);
  padding: .4rem 0 .4rem 1.6rem;
}
.poem__title {
  font-family: var(--font-display); font-weight: 640; font-size: 1.3rem;
  margin-bottom: .9rem;
}
.poem p em {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.flowstates ol { list-style: none; counter-reset: none; }
.flowstates li {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: .68rem .2rem;
  border-bottom: 1px dashed rgba(35,25,15,.18);
}
.flowstates b { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); min-width: 4.4em; }
.flowstates i { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; }

.featured h3 span { color: var(--ink-soft); font-size: 1rem; font-family: var(--font-body); font-weight: 500; }
.featured__specs {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 1rem;
}
.featured p { color: var(--ink-soft); margin-bottom: 1em; max-width: 58ch; }

/* ---------- Galleries ---------- */
.gallery {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.gallery--five { grid-template-columns: repeat(10, 1fr); }
.gallery--five .gallery__item { grid-column: span 2; }
.gallery--five .gallery__item:nth-child(-n+2) { grid-column: span 5; }
.gallery--fems { grid-template-columns: repeat(3, 1fr); }

.gallery__item {
  position: relative; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.gallery--fems .gallery__item img { aspect-ratio: 1 / 1; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: .5rem;
  padding: 2rem 1.1rem .9rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20,12,5,.62));
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) {
  .gallery__item figcaption { opacity: 1; transform: none; }
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--red { background: #D33A2F; } .dot--orange { background: #EE7A28; }
.dot--yellow { background: #F2C230; } .dot--green { background: #4D8A45; }
.dot--blue { background: #2D5FA8; } .dot--purple { background: #7B4C9E; }

/* ---------- Selected works ---------- */
.selected { background: var(--paper); }
.selected__card {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--cream);
  border: 1px solid rgba(35,25,15,.09);
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.selected__logo { width: 100%; max-width: 240px; margin: 0 auto; }
.selected__text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .8rem; }
.selected__text p { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 46ch; }

/* ---------- MATA.FM ---------- */
.fm { background: var(--night); color: var(--cream); }
.fm .section__title { color: var(--cream); }
.fm__tag { margin-top: 1rem; color: #CBB79F; max-width: 52ch; }
.fm__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.fm__cover img { border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.fm__episodes { display: flex; flex-direction: column; gap: 1.2rem; }
.episode {
  background: rgba(255, 250, 240, .05);
  border: 1px solid rgba(255, 250, 240, .12);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: background .3s;
}
.episode:hover { background: rgba(255, 250, 240, .09); }
.episode__info { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.episode__num { font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: #F2A25C; }
.episode h3 { font-size: 1.25rem; }
.episode time { font-size: .8rem; color: #CBB79F; margin-left: auto; }
.episode audio { width: 100%; height: 40px; }
.fm .btn { align-self: flex-start; margin-top: .6rem; }

/* ---------- Shop ---------- */
.shop { background: var(--paper-deep); text-align: center; }
.shop__inner { max-width: 640px; margin: 0 auto; }
.shop h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.shop p { color: var(--ink-soft); margin-bottom: 1.8rem; }

/* ---------- About ---------- */
.about__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.about__portrait img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__portrait figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: .8rem; }
.about__portrait figcaption a { color: var(--sun-deep); }
.about__text h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.6rem; }
.about__follow {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: baseline;
  font-size: .9rem; color: var(--ink-soft);
}
.about__follow a { font-weight: 700; color: var(--sun-deep); text-decoration: none; }
.about__follow a:hover { text-decoration: underline; }

/* ---------- Say hello ---------- */
.hello { background: linear-gradient(180deg, var(--paper) 0%, var(--apricot-tint) 100%); text-align: center; }
.hello h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .8rem; }
.hello p { color: var(--ink-soft); margin-bottom: 2rem; }
.hello__links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: var(--paper);
  padding: 3rem clamp(1.2rem, 5vw, 4rem);
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  text-align: center;
}
.footer__logo { width: 56px; height: 56px; border-radius: 50%; }
.footer__nav { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer__nav a {
  text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #CBB79F; transition: color .2s;
}
.footer__nav a:hover { color: var(--paper); }
.footer__copy { font-size: .8rem; color: #8f7d68; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 13, 6, .93);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: min(92vw, 1100px); max-height: 88svh; text-align: center; }
.lightbox__stage img {
  max-width: 100%; max-height: 78svh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__stage figcaption {
  color: #E9DCC8; font-size: .95rem; margin-top: 1rem;
  font-family: var(--font-display); font-style: italic; letter-spacing: .04em;
}
.lightbox__close, .lightbox__arrow {
  position: absolute;
  background: rgba(255,250,240,.08);
  border: 1px solid rgba(255,250,240,.2);
  color: #F6EEDF;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s;
}
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(255,250,240,.22); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__arrow--prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__arrow--next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal defaults (pre-GSAP state set in JS) ---------- */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .gallery--fems { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 6.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__art { max-width: 480px; }
  .hero__scrollcue { display: none; }

  .work__grid { grid-template-columns: repeat(2, 1fr); }

  .series__intro { grid-template-columns: 1fr; gap: 2.2rem; }

  .gallery--five { grid-template-columns: repeat(2, 1fr); }
  .gallery--five .gallery__item,
  .gallery--five .gallery__item:nth-child(-n+2) { grid-column: span 1; }
  .gallery--five .gallery__item:last-child { grid-column: span 2; }
  .gallery--five .gallery__item:last-child img { aspect-ratio: 16 / 11; }

  .fm__inner { grid-template-columns: 1fr; }
  .fm__cover { max-width: 380px; }

  .selected__card { grid-template-columns: 1fr; text-align: center; }
  .selected__logo { max-width: 180px; }
  .selected__text p { margin-inline: auto; }

  .about__inner { grid-template-columns: 1fr; }
  .about__portrait { max-width: 440px; }

  .lightbox__arrow { width: 44px; height: 44px; }
  .lightbox__arrow--prev { left: .6rem; }
  .lightbox__arrow--next { right: .6rem; }
}

@media (max-width: 560px) {
  .work__grid { grid-template-columns: 1fr; }
  .gallery--fems { grid-template-columns: 1fr; }
  .episode time { margin-left: 0; width: 100%; }
  .hero__title { font-size: clamp(3.2rem, 17vw, 4.6rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
