/* ============================================================
   Gaipten Sesler — cinematic/editorial theme, inspired by
   Musicbed's full-bleed video, minimal type, curated-grid feel.
   Static HTML5 only — no database, no server state.
   ============================================================ */

@font-face{
  font-family: "Yummo";
  src: url('assets/fonts/Yummo.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root{
  /* Dark-chrome tokens: header/hero/lightbox always sit on the video or a
     dark modal backdrop, independent of the page theme below. */
  --ink:      #0A0A0A;
  --ink-2:    #141414;
  --paper:    #F7F6F3;
  --grey:     #8C8C88;
  --grey-dim: #58564F;
  --gold:     #C9A227;
  --line:     rgba(247,246,243,0.12);
  --line-soft:rgba(247,246,243,0.07);

  /* Page tokens: the light theme for everything below the header/hero. */
  --bg:          #FFFFFF;
  --text:        #15140F;
  --text-2:      #56534B;
  --text-3:      #8B877D;
  --line-2:      rgba(10,10,10,0.14);
  --line-2-soft: rgba(10,10,10,0.08);

  --font: "Yummo", "Comfortaa", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

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

body{
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.page-wrap, main{ flex: 1 0 auto; min-width: 0; }
body > section{ min-width: 0; }

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

a{ color: inherit; text-decoration: none; }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }
img{ max-width: 100%; display: block; }

.eyebrow{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.center{ text-align: center; }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line-2-soft);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled{
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  box-shadow: 0 2px 16px rgba(10,10,10,0.08);
}
.wordmark{
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
}
.wordmark.small{ font-size: 1.5rem; }
.wordmark-icon{
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
}
.wordmark-icon.small{ width: 56px; height: 56px; }

.main-nav{ display: flex; gap: clamp(1.5rem, 3.5vw, 3rem); }
.nav-link{
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover{ color: var(--text); }
.nav-link.is-active{ color: var(--text); border-color: var(--gold); }

.nav-toggle{
  display: none;
  position: relative;
  width: 34px; height: 34px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.nav-toggle span{
  position: absolute;
  left: 7px; right: 7px;
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.nav-toggle span:nth-child(1){ top: 11px; }
.nav-toggle span:nth-child(2){ top: 16px; }
.nav-toggle span:nth-child(3){ top: 21px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  height: 74svh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; }
.hero-bg-frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(10,10,10,0.55) 38%, rgba(10,10,10,0.25) 65%, rgba(10,10,10,0.55) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 8vw, 5.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 4rem);
}
.hero-main{ flex: 1 1 auto; min-width: 0; }
.hero-title{
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  max-width: 16ch;
  color: var(--paper);
}
.hero-sub{
  color: var(--paper);
  opacity: 0.78;
  max-width: 42ch;
  font-size: 1.02rem;
  margin: 0;
}
.hero-side{
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 300px);
}
.hero-stat-num{
  display: block;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--paper);
  margin: 0 0 0.9rem;
}
.hero-stat-desc{
  color: var(--paper);
  opacity: 0.7;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.hero-cta{
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.hero-cta:hover{ background: var(--paper); color: var(--ink); opacity: 0.85; }

@media (max-width: 860px){
  .hero-content{ flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero-side{ width: 100%; }
}

/* ---------- Work section ---------- */
.work{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 5vw, 3rem);
}
.section-head{ margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-title{
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0;
  letter-spacing: -0.005em;
}

.tile-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  min-width: 0;
}

.work-features{
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5rem);
}
.work-feature{
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--line-2-soft);
}
.work-feature:first-child{ padding-top: 0; border-top: none; }
.work-feature.is-reverse{ flex-direction: row-reverse; }
.work-feature-text{ flex: 1 1 340px; max-width: 420px; }
.work-feature-title{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}
.work-feature-logo{ width: 0.85em; height: 0.85em; flex-shrink: 0; }
.work-feature-sub{ color: var(--text-2); max-width: 38ch; font-size: 1.02rem; margin: 0; }
.work-feature-media{ flex: 1 1 400px; min-width: 0; }
.work-feature-media .tile-media{
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

@media (max-width: 860px){
  .work-feature,
  .work-feature.is-reverse{ flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .work-feature-text{ max-width: none; }
  .work-feature-media{ width: 100%; }
}

.tile{
  cursor: pointer;
  outline: none;
  min-width: 0;
}
.tile-media{
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  overflow: hidden;
}
.tile-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.tile-img[src]{ opacity: 1; }
.tile:hover .tile-img[src], .tile:focus-visible .tile-img[src]{ transform: scale(1.06); }

.tile-fallback{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, var(--line-soft) 0 2px, transparent 2px 8px);
}
.tile-img[src] + .tile-fallback{ display: none; }

.tile-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tile:hover .tile-scrim, .tile:focus-visible .tile-scrim{ opacity: 1; }

.tile-play{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(247,246,243,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tile:hover .tile-play, .tile:focus-visible .tile-play{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tile-play svg{ width: 16px; height: 16px; fill: var(--paper); }

.tile-info{ padding: 0.85rem 0.1rem 0; }
.tile-title{
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.tile-credits{
  font-size: 0.76rem;
  color: var(--text-2);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-more{ margin: clamp(2rem, 5vw, 3rem) 0 0; text-align: center; }
.section-more-link{
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.section-more-link:hover{ border-color: var(--gold); }

/* ---------- Clients strip ---------- */
.clients{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3.5rem);
}
.client-marquee{
  margin-top: 1.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.client-track{
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  width: max-content;
  animation: client-scroll 48s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.client-marquee:hover .client-track{ animation-play-state: paused; }
@keyframes client-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.client-item{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-2);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.client-item:hover{ opacity: 1; color: var(--text); }
.client-icon{ width: 27px; height: 27px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer{
  flex: 0 0 auto;
  background: var(--bg);
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-2-soft);
  text-align: center;
}
.footer-copy{ margin: 0; font-size: 0.8rem; color: var(--text-3); }

/* ---------- Lightbox modal ---------- */
.lightbox{
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  overflow-y: auto;
}
.lightbox.is-open{ display: flex; }
.lightbox-backdrop{
  position: absolute; inset: 0;
  background: rgba(6,6,6,0.92);
  backdrop-filter: blur(4px);
}
.lightbox-panel{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
}
.lightbox-close{
  position: absolute;
  z-index: 3;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  background: rgba(10,10,10,0.75);
  color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close svg{ width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.lightbox-frame{
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border: 1px solid var(--line);
}
.lightbox-frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; }
.lightbox-info{ padding: 1.1rem 0.15rem 0; }
.lightbox-info h3{ font-size: 1.05rem; font-weight: 500; margin: 0 0 0.3rem; color: var(--paper); }
.lightbox-info p{ font-size: 0.82rem; color: var(--grey); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .tile-grid{ grid-template-columns: repeat(2, 1fr); }

  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
    display: none;
    gap: 0.9rem;
  }
  .main-nav.is-open{ display: flex; }
  .nav-toggle{ display: block; }
}

@media (max-width: 640px){
  .tile-grid{ grid-template-columns: 1fr; }
}

/* ---------- Simple content pages (studio/services/contact) ---------- */
.page{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(9.5rem, 14vw, 10.5rem) clamp(1.25rem, 4vw, 3.5rem) 5rem;
}
.page-title{
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 2rem;
  max-width: 18ch;
}
.page-body p{ color: var(--text-2); max-width: 60ch; font-size: 1.02rem; }

.studio-hero{
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.studio-hero-text{ flex: 1 1 380px; max-width: 460px; }
.studio-hero-title{
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1.5rem;
  color: var(--text);
}
.studio-hero-sub{ color: var(--text-2); max-width: 42ch; font-size: 1.02rem; margin: 0; }
.studio-hero-image{ flex: 1 1 420px; min-width: 0; }
.studio-hero-image img{
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  object-fit: cover;
  border-radius: 14px;
  filter: grayscale(0.2) contrast(1.03);
}

@media (max-width: 860px){
  .studio-hero{ flex-direction: column; align-items: flex-start; gap: 2rem; }
  .studio-hero-text{ max-width: none; }
  .studio-hero-image{ width: 100%; }
}

.studio-slider{
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.studio-slider-track{
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: studio-slide 32s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (max-width: 640px){
  .studio-slider-track{ animation-duration: 80s; }
}
.studio-slider:hover .studio-slider-track{ animation-play-state: paused; }
@keyframes studio-slide{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.studio-slider-track img{
  width: clamp(260px, 32vw, 380px);
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(0.2) contrast(1.03);
}

.service-features{
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5rem);
}
.service-feature{
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--line-2-soft);
}
.service-feature:first-child{ padding-top: 0; border-top: none; }
.service-feature.is-reverse{ flex-direction: row-reverse; }
.service-feature-text{ flex: 1 1 340px; max-width: 420px; }
.service-feature-title{
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}
.service-feature-sub{ color: var(--text-2); max-width: 34ch; font-size: 1.02rem; margin: 0; }
.service-feature-image{ flex: 1 1 400px; min-width: 0; }
.service-feature-image img{
  display: block;
  width: 100%;
  height: clamp(240px, 30vw, 360px);
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  filter: grayscale(0.15) contrast(1.03);
}
.sound-logo-art{
  width: 100%;
  height: clamp(240px, 30vw, 360px);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sound-logo-art svg{
  width: min(55%, 260px);
  height: auto;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
}

@media (max-width: 860px){
  .service-feature,
  .service-feature.is-reverse{ flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .service-feature-text{ max-width: none; }
  .service-feature-image{ width: 100%; }
}

.contact-list{ list-style: none; margin: 0 0 3rem; padding: 0; border-top: 1px solid var(--line-2-soft); }
.contact-list li{
  padding: 1.5rem 0; border-bottom: 1px solid var(--line-2-soft);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem;
}
.contact-name{ font-weight: 700; font-size: 1.15rem; }
.contact-email{ color: var(--gold); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; }
.contact-email:hover{ text-decoration: underline; }

@media (max-width: 560px){
  .contact-list li{ flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}
.social-row{ display: flex; gap: 1rem; }
.social-row a{
  width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
