/* ============================================================
   AZ30 — az30studio.com  (self-hosted static rebuild)
   Design tokens pulled from the live Squarespace site.
   ============================================================ */

/* ---------- Fonts (self-hosted woff2) ---------- */
@font-face {
  font-family: "IvyMode";
  src: url("fonts/IvyMode-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IvyMode";
  src: url("fonts/IvyMode-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IvyMode";
  src: url("fonts/IvyMode-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akshar";
  src: url("fonts/Akshar-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akshar";
  src: url("fonts/Akshar-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akshar";
  src: url("fonts/Akshar-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Circular";
  src: url("fonts/CircularStd-Book.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Circular";
  src: url("fonts/CircularStd-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Circular";
  src: url("fonts/CircularStd-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F8F7F6;
  --ink: #000;
  --accent: #FC221C;
  --serif: "IvyMode", Georgia, "Times New Roman", serif;
  --sans: "Akshar", system-ui, -apple-system, sans-serif;
  --label: "Circular", system-ui, sans-serif;

  /* Live site: content sits in a column with ~16vw side padding on
     desktop, collapsing to a fixed inset on mobile. Header sits wider. */
  --pad: 16vw;              /* content column inset */
  --hpad: 8vw;             /* header inset (logo/nav sit wider) */
  --header-h: 96px;

  /* Fluid display size shared by intro + case captions.
     Calibrated to live: ~32px@768, ~42px@1280, ~45px@1440. */
  --display: clamp(30px, calc(16.9px + 1.92vw), 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout wrapper ---------- */
.wrap {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: relative;
  z-index: 50;
}
.site-header .wrap {
  padding-left: var(--hpad);
  padding-right: var(--hpad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding-bottom: 6px;
  border-bottom: 1.5px solid transparent;   /* reserve space; no layout shift on hover */
}
.nav a.active { border-bottom-color: var(--ink); }
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Instagram nav link: icon on desktop, text label inside the mobile menu */
/* icon shares .nav a padding + border, so it aligns with the text and
   gets the same low underline on hover */
.nav-ig { display: inline-flex; align-items: center; align-self: stretch; }
.nav-ig .ig-svg { width: 19px; height: 19px; }
.nav-ig .ig-svg { display: block; }
.nav-ig .ig-text { display: none; }

/* hamburger — hidden on desktop */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin: -8px;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .25s ease, opacity .2s ease;
}

/* ============================================================
   Intro
   ============================================================ */
.intro {
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(48px, 8vw, 104px);
}
.intro-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--display);
  line-height: 1.49;
  letter-spacing: 0.005em;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.intro-lead a { color: var(--accent); }
.intro-lead a:hover { text-decoration: underline; }

.intro-sub {
  font-family: var(--label);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}
.intro-sub a { border-bottom: 1.5px solid var(--ink); font-weight: 700; }

/* ============================================================
   Section label ("SELECT WORK")
   ============================================================ */
.label {
  font-family: var(--label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

/* ============================================================
   Select Work — text index
   ============================================================ */
.select-work { padding-bottom: clamp(48px, 8vw, 96px); }

.work-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.work-row:last-child { border-bottom: 1px solid rgba(0,0,0,0.12); }

.work-company {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 18px;
}
.work-company img { width: 24px; height: 24px; object-fit: contain; }

.work-desc {
  font-family: var(--label);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
}
.work-press {
  font-family: var(--label);
  font-weight: 400;
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}
.work-press:hover { text-decoration: underline; }

/* ============================================================
   Case study sections (caption + carousel)
   ============================================================ */
.case {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: clamp(48px, 7vw, 104px) 0;
  --name: #fff;   /* company name colour, overridden per section */
  --desc: #000;   /* description colour, overridden per section */
}
/* Case tabs (toggle within a case section) */
.case-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 clamp(22px, 3vw, 36px);
}
.case-tab {
  font-family: var(--label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--desc);
  background: transparent;
  color: var(--desc);
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.case-tab:not(.active) { opacity: 0.72; }
.case-tab:not(.active):hover { opacity: 1; }
.case-tab.active { background: var(--desc); color: #111; }
.case-panel[hidden] { display: none; }

.case-caption {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--display);
  line-height: 1.49;
  letter-spacing: 0.005em;
  margin: 0 0 clamp(24px, 3vw, 44px);
  color: var(--desc);
}
.case-caption .cc-name { color: var(--name); font-weight: 700; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  -webkit-user-drag: none;
  user-select: none;
}

.carousel-dots {
  display: flex; justify-content: center; gap: 12px;
  margin-top: clamp(20px, 3vw, 32px);
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: var(--desc);
  opacity: 0.3;
  transition: opacity .2s ease, transform .2s ease;
}
.dot.active { opacity: 1; transform: scale(1.1); }

/* ============================================================
   Get in touch (big serif email)
   ============================================================ */
.contact {
  padding: clamp(64px, 12vw, 160px) 0 clamp(48px, 8vw, 96px);
}
.contact .label { margin-bottom: clamp(20px, 3vw, 36px); }
.contact-email {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.3;
  word-break: break-word;
}
.contact-email:hover { color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: clamp(28px, 3.5vw, 44px) 0;
}
.site-footer .footer-inner {
  padding-left: var(--hpad);
  padding-right: var(--hpad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 26px);
}
.footer-ig { display: inline-flex; align-items: center; }
.footer-ig:hover { color: var(--accent); }
.footer-link {
  font-family: var(--label);
  font-weight: 400;
  font-size: 15px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}
.footer-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   FILM index — full-bleed stacked cinematic cards
   ============================================================ */
.film-list { display: block; }
.film-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1265 / 530;   /* ~2.39:1, matches live */
  overflow: hidden;
  border-radius: 10px;
}
.film-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.film-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity .4s ease;
}
.film-card:hover .film-overlay,
.film-card:focus-visible .film-overlay { opacity: 1; }
.film-overlay span {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================================
   FILM detail
   ============================================================ */
.film-detail {
  padding: clamp(34px, 4.9vw, 67px) 0 clamp(56px, 8vw, 104px);
  text-align: center;
}
.film-title {
  font-family: var(--label);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 24px);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 clamp(10px, 1.2vw, 14px);
}
/* "Written and Directed" sits directly under the title */
.film-credit {
  font-family: var(--label);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #565656;
  margin: 0 0 clamp(28px, 3.5vw, 44px);
}
.film-synopsis {
  font-family: var(--label);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}
.film-laurels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px) clamp(28px, 3.5vw, 52px);
  max-width: 700px;              /* 4 laurels per row on desktop */
  margin: clamp(32px, 4vw, 52px) auto 0;
}
.film-laurels img {
  height: clamp(64px, 6.5vw, 84px);
  width: auto;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-top: clamp(32px, 4vw, 52px);
  border-radius: 10px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.film-stream {
  margin: clamp(20px, 2.5vw, 32px) 0 0;
  font-family: var(--label);
  font-weight: 500;
  font-size: 15px;
}
.film-stream a {
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}
.film-stream a:hover { opacity: 0.75; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --header-h: 72px;
    --pad: 24px;
    --hpad: 24px;
    /* mobile heading runs larger relative to width (~33px @ 390) */
    --display: clamp(28px, 8.5vw, 38px);
  }

  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    padding: 8px var(--pad) 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 18px; }
  /* mobile: underline hugs the text (border-bottom would float far below) */
  .nav a.active,
  .nav a:hover {
    border-bottom-color: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
  }
  /* in the mobile menu, show "Instagram" as a text row, not the icon */
  .nav-ig .ig-svg { display: none; }
  .nav-ig .ig-text { display: inline; text-transform: uppercase; }

  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .work-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "company press"
      "desc    desc";
    gap: 6px 16px;
    align-items: start;
    padding: 18px 0;
  }
  .work-company { grid-area: company; }
  .work-press  { grid-area: press; }
  .work-desc   { grid-area: desc; }

  /* film cards go near-square on mobile so they fill the screen (matches live) */
  .film-card { aspect-ratio: 20 / 21; }
  .film-overlay span { font-size: 20px; }
}
