/* ============================================================
   TERRY MANN — COMPOSER  |  style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

:root {
  --cream-a:    #f5f2eb;
  --cream-b:    #181614;
  --text:       #1a1a1a;
  --subtext:    #3a3a3a;
  --text-inv:   #f0ece3;
  --subtext-inv:#b0ab a3;
  --credit:     #888888;
  --amber:      #c47a2a;
  --nav-bg:     #2a2826;
  --nav-text:   #ffffff;
  --nav-h:      56px;
  --scroll-offset: 56px;
  --gap:        28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: var(--cream-a);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* All links amber by default */
a { color: var(--amber); text-decoration: none; }
a:hover { opacity: 0.75; }
img { display: block; max-width: 100%; height: auto; }


/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6%;
}

/* SEO-only: visually hidden h1 */
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 24px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.6; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  height: var(--nav-h);
  flex: 1;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: var(--nav-h);
}

.nav-links a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav-text);
  padding: 0 18px;
  white-space: nowrap;
  transition: opacity 0.2s;
  line-height: 1;
}

.nav-links a:hover { opacity: 0.55; color: var(--nav-text); }
.nav-links a.nav-active { opacity: 0.45; }

.nav-links li + li::before {
  content: '·';
  color: rgba(255,255,255,0.25);
  font-size: 14px;
  flex-shrink: 0;
}

.nav-toggle { display: none; }


/* ── SECTIONS — full viewport height ────────────────────── */
section {
  scroll-margin-top: var(--scroll-offset);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 100px;
  scroll-margin-top: 0;
}

section:nth-of-type(odd) {
  background: var(--cream-a);
  --s-text:    #1a1a1a;
  --s-sub:     #3a3a3a;
  --s-credit:  #666;
  --s-border:  #d8d4cc;
}
section:nth-of-type(even) {
  background: var(--cream-b);
  --s-text:    #f0ece3;
  --s-sub:     #a8a49c;
  --s-credit:  #706c64;
  --s-border:  #383430;
}

/* scroll-snap removed — graceful free scrolling */

.section-inner {
  width: 100%;
  padding: 0 6%;
}


/* ── TYPOGRAPHY ──────────────────────────────────────────── */

/* H2 — section headings: Oswald 300, ~16px, very spaced */
.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  color: var(--s-text);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 100px;
}

/* H3 — work item titles: Oswald 400, ~15px */
.work-item-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  margin: 16px 0 8px;
  color: var(--s-text);
}

/* Body text in work items */
.work-item-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--s-sub);
  margin-bottom: 5px;
}

.work-item-credits {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--s-sub);
  font-style: normal;
  margin-bottom: 4px;
}

.work-credit {
  font-size: 16px;
  font-weight: 300;
  color: var(--credit);
  font-style: italic;
}

.coming-soon-tag {
  font-style: italic;
  font-weight: 300;
  font-size: 0.9em;
}


/* ── BIO ─────────────────────────────────────────────────── */
#bioandreel .section-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  grid-template-rows: auto 1fr;
  gap: var(--gap);
  align-items: start;
}

.bio-photo {
  width: 100%;
}

#bioandreel .lightbox-trigger {
  grid-column: 1;
  grid-row: 1;
}

.bio-text {
  grid-column: 1; grid-row: 2;
}

.bio-text p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--s-sub);
  margin-bottom: 0.8em;
}

.bio-text p:last-child { margin-bottom: 0; }

.bio-reel {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
}


/* ── VIDEO ───────────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #111;
}

.video-wrapper iframe,
.video-facade {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-facade {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8d4cf;
}

.video-facade img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.2s;
}

.video-facade:hover img { opacity: 0.72; }

.play-btn {
  position: absolute;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.15s;
}

.video-facade:hover .play-btn { transform: scale(1.08); }

.play-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent #1a1a1a;
  margin-left: 3px;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder span {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--credit);
}


/* ── WORK GRID — 3 col ───────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--gap) * 2.5) calc(var(--gap) * 2);
}

.work-item .video-wrapper,
.work-item-image,
.work-item-link-image { display: block; width: 100%; }

.work-item-link-image img,
.work-item-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.work-item-link-image:hover { opacity: 0.8; }


/* ── RELEASES — 3 col text ───────────────────────────────── */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--gap) * 2) calc(var(--gap) * 2);
}

.release-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: var(--s-text);
}

.release-title em { font-weight: 300; }

.release-meta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--s-sub);
  line-height: 1.5;
  margin-bottom: 12px;
}

.release-embed { margin-top: 10px; }
.release-embed iframe { width: 100%; border: none; display: block; }


/* ── LIBRARIES — 2 col ───────────────────────────────────── */
.libraries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 52px calc(var(--gap) * 4);
}

.library-item { text-align: left; }

.library-item h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 14px;
  color: var(--s-text);
}

.library-item p {
  font-size: 17px;
  font-weight: 300;
  color: var(--s-sub);
  line-height: 1.4;
  margin-bottom: 5px;
}

.library-embed { margin-top: 14px; text-align: left; }
.library-embed iframe { width: 100%; border: none; display: block; }


/* ── MEMES INTRO ─────────────────────────────────────────── */
.section-intro {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--s-sub);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}


/* ── STUDIO — image left, specs right ───────────────────── */

.studio-specs p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--s-sub);
  margin-bottom: 0.7em;
}

.studio-specs strong { color: var(--s-text); font-weight: 400; }


/* ── TESTIMONIALS — 3 col [photo | text] ─────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--gap) * 2) calc(var(--gap) * 2.5);
}

.testimonial-card {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.testimonial-photo {
  width: 96px; height: 96px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(100%);
}

.testimonial-content { flex: 1; min-width: 0; }

.testimonial-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--s-sub);
  margin-bottom: 8px;
}

.testimonial-attribution strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--s-text);
}

.testimonial-attribution span {
  font-size: 15px;
  font-weight: 400;
  color: var(--s-sub);
  font-style: italic;
}


/* ── CONTACT ─────────────────────────────────────────────── */
#contact .section-inner { text-align: center; }

.contact-text {
  font-size: 18px;
  font-weight: 300;
  color: var(--s-sub);
  line-height: 1.8;
}

.contact-text a { font-weight: 400; }

.contact-image {
  margin: 36px auto 0;
  max-width: 460px;
}

.contact-image img { width: 100%; display: block; }


/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--nav-bg);
  padding: 40px 6% 32px;
  text-align: center;
}

/* removed */ .footer-back-to-top-unused {
  display: inline-block;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}


.footer-acknowledgement {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto 8px;
  text-align: center;
}

.footer-charities-note {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 1100px;
  margin: 20px auto 28px;
  text-align: center;
}

.footer-charities-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin: 0 auto 32px;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
  margin-top: 8px;
}


/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (min-width: 1200px) {
  .libraries-grid {
    max-width: 75%;
    margin: 0 auto;
  }

  .footer-charities-img {
    width: auto;
    max-width: none;
  }
}

@media (max-width: 1400px) and (min-width: 769px) {
  nav {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 10px 6%;
    gap: 0;
  }

  section { --scroll-offset: 88px; }

  .nav-logo {
    height: 32px;
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-bottom: 2px;
    font-size: 11px;
  }

  .nav-links {
    height: 32px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .nav-links a {
    height: 32px;
    font-size: 11px;
    padding: 0 12px;
  }

  .nav-links li + li::before {
    font-size: 11px;
  }
}

@media (max-width: 1024px) {
  .work-grid         { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .releases-grid     { grid-template-columns: repeat(2, 1fr); }

  #bioandreel .section-inner {
    grid-template-columns: 1fr 1.4fr;
  }
}

@media (max-width: 768px) {
  section { min-height: auto; padding: 72px 0 56px; }

  .section-heading { font-size: 36px; margin-bottom: 52px; }

  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: var(--nav-h);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Show logo text on mobile */
  .nav-logo {
    position: static;
    width: auto; height: auto;
    clip: auto;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-text);
    order: 1;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    height: auto !important;
    padding: 10px 0 18px;
    order: 2;
  }

  .nav-links li { height: auto; }
  .nav-links.open { display: flex; }
  .nav-links li + li::before { display: none; }

  .nav-links a {
    height: auto;
    line-height: 1;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    order: 3;
    margin-left: auto;
  }

  .nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--nav-text);
  }

  .section-inner { padding: 0 20px; }

  #bioandreel .section-inner { grid-template-columns: 1fr; }
  #bioandreel .lightbox-trigger { grid-column: 1; grid-row: 1; width: 100%; }
  .bio-text   { grid-column: 1; grid-row: 2; }
  .bio-reel   { grid-column: 1; grid-row: 3; }

  .libraries-grid { grid-template-columns: 1fr; }
  .releases-grid  { grid-template-columns: 1fr; }

  footer {
    overflow-x: hidden;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 500px) {
  .work-grid         { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .releases-grid     { grid-template-columns: 1fr; }
}

/* ── QUOTE STYLE — vertical bar + indent ─────────────────── */
/* Used for: work item credits, testimonial attribution       */
.quote-style {
  border-left: 1px solid var(--s-border, #dedbd4);
  padding-left: 20px;
  margin-top: 8px;
}

/* Work item credit (agency line) */
.work-credit {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--s-credit, var(--subtext));
  font-style: normal;
}

/* Testimonial attribution gets same treatment */
.testimonial-attribution {
  border-left: 1px solid #dedbd4;
  padding-left: 14px;
  margin-top: 8px;
}

.testimonial-attribution strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--s-text);
  line-height: 1.3;
}

.testimonial-attribution span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--credit);
  font-style: italic;
  line-height: 1.4;
}

/* Release title - sentence case like H3 */
.release-title {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

/* Library sub-headings */

/* ── CHARITY LOGOS — single strip image ─────────────────── */
.footer-charities {
  display: block !important;
  max-width: 700px;
  margin: 0 auto 24px;
}

.footer-charities img {
  width: 100%;
  height: auto !important;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* ── CONTACT VIDEO ───────────────────────────────────────── */
.contact-image video {
  width: 100%;
  display: block;
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox-overlay.open { display: flex; }
#lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
#lightbox-close:hover { color: #fff; }
.lightbox-trigger { cursor: zoom-in; display: block; }

/* ── REEL EMBED ──────────────────────────────────────────── */

/* ── FOOTER LOGO ─────────────────────────────────────────── */
.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
  width: 100%;
}

.footer-logo-img {
  /* Display at native pixel resolution — no scaling up */
  width: auto;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}


