/* ===== Fonts (Aeonik) ===== */
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --bg: #f7f7f7;
  --white: #ffffff;
  --black: #000000;
  --grey-box: #ebebeb;
  --border-soft: #f4f4f4;
  --rule: rgba(0, 0, 0, 0.12);
  --muted: rgba(0, 0, 0, 0.5);
  --maxw: 1340px;
  --pad: 50px;
  --pill-shadow: 0px 22px 3px rgba(217,217,217,0), 0px 14px 3px rgba(217,217,217,0.01),
    0px 8px 2.5px rgba(217,217,217,0.05), 0px 3px 1.5px rgba(217,217,217,0.09),
    0px 1px 1px rgba(217,217,217,0.1);
  --card-shadow: 0px 355px 99px rgba(212,212,212,0), 0px 227px 91px rgba(212,212,212,0.01),
    0px 128px 77px rgba(212,212,212,0.05), 0px 57px 57px rgba(212,212,212,0.09),
    0px 14px 31px rgba(212,212,212,0.1);
  --font: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Reserve scrollbar space so overflow lock never shifts layout */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: clip;       /* clip ≠ hidden: hides overflow without creating a scroll container, so position:sticky works */
  background: var(--bg);
  color: var(--black);
  font-family: var(--font);
  line-height: 1.2;
}

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

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

.page {
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin: 0 auto;
  padding: 50px var(--pad) 100px;
}

/* ===== Pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  border-radius: 40px;
  white-space: nowrap;
  transition: transform 0.28s var(--ease-out);
}
.pill--soft {
  background: var(--white);
  border: 1px solid var(--border-soft);
  box-shadow: var(--pill-shadow);
  font-weight: 400;
  font-size: 14px;
  line-height: 26px;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
}
.pill--soft:hover {
  transform: translateY(-2px);
}
.pill--soft img { width: 24px; height: 24px; object-fit: cover; }
.pill--menu {
  border: 1px solid var(--black);
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  padding: 8px 24px;
  min-width: 99px;
  justify-content: center;
  cursor: pointer;
}
.pill--menu:hover { background: var(--black); color: var(--white); }
/* Open state: same pill, filled — sits above the frosted overlay */
.pill--menu.is-menu-toggle {
  position: fixed;
  z-index: 400;
  margin: 0;
  background: var(--black);
  color: var(--white);
  pointer-events: auto;
}
.pill--menu-slot {
  display: inline-block;
  vertical-align: top;
  visibility: hidden;
  pointer-events: none;
}
.pill--dot { text-transform: uppercase; }
.pill--dot .dot { width: 6px; height: 6px; }

.pills { display: flex; flex-wrap: wrap; gap: 24px; }

.plus { display: inline-block; }

/* ===== Sticky header nav (slides in after the hero header scrolls away) ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 50px;
  background: rgba(247, 247, 247, 0.72);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(-101%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}
.sticky-nav.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-nav__brand { font-weight: 500; font-size: 24px; line-height: 1; color: var(--black); }

/* ===== Header ===== */
/* Figma Desktop Hero: Logo | Heading+CTAs (centered, max 662) | MENU
   with ~245px breathing room on a 1340px artboard. */
.header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.brand {
  flex: 0 0 auto;
  font-weight: 500;
  font-size: 40px;
  line-height: 40px;
  padding: 4px 0;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 auto;
  max-width: 662px;
  min-width: 0;
  margin-inline: auto;
}
.intro-text {
  margin: 0;
  font-weight: 400;
  font-size: 38px;
  line-height: 45.6px;
}
.header > .pill--menu {
  flex: 0 0 auto;
  margin-top: 0;
}

/* ===== Meta row ===== */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.12px;
}
/* Desktop: the two lines flatten into one continuous row */
.meta-line { display: contents; }

/* ===== Hero banner ===== */
/* Above-fold wrapper: header + meta-row + banner together = full viewport */
.hero-fold {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.hero-banner {
  flex: 1;
  min-height: 200px;
  border-radius: 20px;
  margin-top: 36px;
  background: var(--grey-box);
  position: relative;
  overflow: hidden;
}

/* Light grey ghost shimmer — visible until UnicornStudio scene loads */
.hero-banner__shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg,
    var(--grey-box) 0%,
    var(--grey-box) 30%,
    #f2f2f2 38%,
    var(--white) 42%,
    #f2f2f2 46%,
    var(--grey-box) 54%,
    var(--grey-box) 100%);
  background-size: 250% 100%;
  animation: hero-shimmer 1.8s ease-in-out infinite;
}
@keyframes hero-shimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
/* Hide shimmer once the scene canvas has painted */
.hero-banner.is-loaded .hero-banner__shimmer {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* UnicornStudio scene fills the frame, above the shimmer */
.hero-banner__scene { position: absolute; inset: 0; z-index: 1; }
.hero-banner__scene canvas { display: block; width: 100% !important; height: 100% !important; }

/* ===== Section scaffolding ===== */
.stack { display: flex; flex-direction: column; gap: 200px; margin-top: 200px; }
.section { display: flex; flex-direction: column; gap: 52px; }
.section--spaced { gap: 100px; }
.section-head { display: flex; flex-direction: column; gap: 32px; }
.section-title { margin: 0; font-weight: 500; font-size: 38px; line-height: 1.1; }
.rule { width: 100%; height: 0; border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ===== Three things (Figma: editorial left, cards rise on the right) ===== */
.own-section { display: block; }

/* mobile-first: heading + sub in flow, cards stacked below */
.own-stage { display: flex; flex-direction: column; gap: 52px; }
.own-left__inner { display: flex; flex-direction: column; gap: 32px; }
.own-heading {
  margin: 0;
  font-weight: 400;                 /* Aeonik Regular, per Figma */
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.own-sub {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;        /* per Figma */
  color: #000000;
}
.own-line { will-change: transform; }

.own-cards { display: flex; flex-direction: column; gap: 16px; }

/* Card = white panel, rounded-16, 24px padding (per Figma — no border/shadow) */
.own {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  width: 100%;
  max-width: 520px;             /* capped when single-column (tablet portrait/phone) */
  background: var(--white);
  border-radius: 16px;
  will-change: transform, opacity;
}

.own-icon { width: 74px; height: 74px; flex-shrink: 0; }
.own-icon img { width: 74px; height: 74px; }
.own-icon--box {
  background: var(--grey-box);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.own-icon--box img { width: 42px; height: 42px; }
.own-body { display: flex; flex-direction: column; gap: 16px; }
.own-body h3 { margin: 0; font-weight: 700; font-size: 24px; line-height: 1.1; }
.own-lead { margin: 0; font-weight: 400; font-size: 16px; line-height: 1.5; }
.own-point {
  margin: 0;
  position: relative;
  padding-left: 26px;              /* hanging "+" so text (incl. counters) flows inline */
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}
.own-point .plus { position: absolute; left: 0; top: 0; }

/* Desktop: two columns, editorial heading sticky, cards run down the right.
   Needs ~1200px so the 775 + 436 layout doesn't clip mid-width tablets. */
@media (min-width: 1200px) {
  .own-stage {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
  }
  .own-left { flex: 1 1 auto; min-width: 0; max-width: 775px; width: auto; }
  .own-cards { flex: 0 0 436px; width: 436px; }
  .own-left__inner { position: sticky; top: 120px; gap: 52px; }
  .own-heading { font-size: 100px; line-height: 1; max-width: 775px; }
  .own-sub { font-size: 18px; max-width: 660px; }
  .own-lead { font-size: 18px; line-height: 1.2; }
  .own-point { font-size: 18px; line-height: 1.15; }
  .own-cards { padding-top: 200px; }   /* Figma offsets the first card down */
  .own { max-width: 436px; }
}

/* ===== Selected works ===== */
.works-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.work-card {
  position: relative;
  flex: 1 1 calc(50% - 8px);
  min-width: min(100%, 420px);
  height: 590px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}
/* Make the entire card clickable via link overlay */
.work-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.work-text {
  position: relative;
  padding: 52px 76px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  flex-shrink: 0;
}
.work-text--wide { padding-left: 40px; padding-right: 40px; }
.work-text h3 { margin: 0; font-weight: 700; font-size: 24px; line-height: 1.1; }
.work-text p { margin: 0; font-weight: 400; font-size: 16px; line-height: 1.5; }
/* Case-study cover: image sits just under the title so phones read close to
   the copy; overflow:hidden clips the intentional bottom bleed (per Figma). */
.work-media {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  margin-top: -8px;
}
.work-media img {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}
.work-media--bottom img { top: 8px; }

/* ===== Shots (marquee) ===== */
/* overflow:hidden contains the wide track horizontally; the generous vertical
   padding gives the card drop-shadow room to fade instead of being clipped
   (overflow clips at the padding box, so padding = shadow breathing room). */
.shots { overflow-x: clip; overflow-y: visible; padding: 0 40px 88px; margin-left: -40px; margin-right: -40px; }
.shots--static { overflow-x: auto; }        /* reduced-motion / no-JS fallback */
.shots-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
/* Portrait cards, object-fit: cover — full phone height shows (no vertical
   crop); only the white side-margins of the square source get trimmed. */
.shot { flex: 0 0 auto; width: 416px; height: 533px; }
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: none;
}

/* ===== Statement & big section headings (Aeonik Regular 100px per Figma) ===== */
.statement {
  margin: 0;
  font-weight: 400;
  font-size: 60px;
  line-height: 1;
}
.big-heading {
  margin: 0;
  font-weight: 400;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.about-section { gap: 100px; }

/* Shots heading + supporting paragraph (heading left, copy bottom-right) */
.shots-head {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}
.shots-sub {
  margin: 0;
  flex: 0 1 345px;
  max-width: 345px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  color: #000000;
}

/* ===== About ===== */
.about { display: flex; gap: 52px; align-items: stretch; }
.about-photo { flex: 0 0 549px; max-width: 549px; height: 513px; overflow: hidden; }
.about-photo img { width: 100%; height: 110%; object-fit: cover; object-position: center; }
.about-body { flex: 1; display: flex; flex-direction: column; gap: 52px; justify-content: center; align-items: flex-start; }
.about-info { display: flex; flex-direction: column; gap: 32px; }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { margin: 0; font-weight: 400; font-size: 20px; line-height: 1.5; }

.awards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.award {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.12px;
}
.award-left { display: flex; align-items: center; gap: 16px; }
.award-logo { width: 32px; height: 32px; border-radius: 100px; overflow: hidden; flex-shrink: 0; }
.award-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Testimonials — seamless auto-ticker of cards ===== */
.testimonials { overflow-x: clip; overflow-y: visible; }
.testimonials--static { overflow-x: auto; }   /* reduced-motion / no-JS fallback */
.testimonials-track { display: flex; gap: 16px; align-items: stretch; width: max-content; will-change: transform; }
.testimonial {
  flex: 0 0 345px;
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.quote { margin: 0; font-weight: 400; font-size: 16px; line-height: 1.5; }
.t-footer { display: flex; align-items: center; gap: 36px; }
.t-person { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.t-name { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.1; }
.t-role { margin: 0; font-weight: 400; font-size: 16px; line-height: 1.4; color: var(--muted); }
.t-avatar { width: 52px; height: 52px; border-radius: 100px; overflow: hidden; flex-shrink: 0; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Gen AI section ===== */
.genai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 52px;
}
.genai-head__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.genai-heading {
  margin: 0;
  font-weight: 400;
  font-size: 100px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.genai-subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  max-width: 420px;
}
.genai-desc {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--black);
  max-width: 440px;
  align-self: flex-end;
}

/* Carousel */
/* overflow-x: auto also clips Y (CSS: a non-visible axis forces the other
   to auto). Padding is the breathing room; matching negative margin keeps
   the section gap unchanged so shadows appear to overflow the cards. */
.genai-carousel {
  display: flex;
  gap: 52px;
  overflow-x: auto;
  padding: 24px 24px 48px;
  margin: -24px -24px -48px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.genai-carousel::-webkit-scrollbar { display: none; }

/* Cards */
.genai-card {
  flex: 0 0 400px;
  background: var(--white);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-snap-align: start;
}
.genai-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

/* Card image */
.genai-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-box);
}
.genai-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.genai-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-box);
}

/* Card body (below image) */
.genai-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 8px 8px;
}
.genai-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.genai-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

/* Coloured pill tags */
.genai-tag {
  display: inline-block;
  padding: 4px 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
}
.genai-tag--green {
  background: rgba(87, 241, 84, 0.1);
  color: #06a403;
}
.genai-tag--blue {
  background: rgba(84, 141, 241, 0.1);
  color: #548df1;
}

/* Description */
.genai-card__desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* CTA pill button */
.genai-cta {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 24px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  margin-top: 4px;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  box-shadow:
    0px 14px 3px rgba(217,217,217,0),
    0px 8px 2.5px rgba(217,217,217,0.05),
    0px 3px 1.5px rgba(217,217,217,0.09),
    0px 1px 1px rgba(217,217,217,0.1);
}
.genai-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0px 22px 6px rgba(217,217,217,0),
    0px 14px 5px rgba(217,217,217,0.03),
    0px 8px 4px rgba(217,217,217,0.08),
    0px 3px 2px rgba(217,217,217,0.12),
    0px 1px 1px rgba(217,217,217,0.14);
}

/* Music card variant — wider, SoundCloud embed */
.genai-card--music {
  flex: 0 0 574px;
  padding: 0;
  overflow: hidden;
}
.genai-card__embed {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 24px;
  overflow: hidden;
}
.genai-card__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ===== Footer CTA ===== */
.footer-cta { display: flex; flex-direction: column; position: relative; }

/* ============================================================
   PORTFOLIO END — full-width dark final chapter
   ============================================================ */
.portfolio-end {
  position: relative;
  width: 100%;
  background: #000000;
  /* Figma: Footer + Testimonial padding = 100px 50px (desktop/tablet) */
  padding-top: 100px;
  overflow: hidden; /* contain the stroke's viewport exits */
}
.portfolio-end__inner {
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
  /* Internal gap between testimonials and footer CTA */
  display: flex;
  flex-direction: column;
  gap: 200px;
  padding-bottom: 100px;
}

/* Section spacing fix — .pe-section replaces .stack flex children */
.pe-section { display: flex; flex-direction: column; gap: 52px; }
.pe-section.section--spaced { gap: 100px; }

/* ── Text colours on dark background ── */
.portfolio-end .statement,
.portfolio-end .section-title,
.portfolio-end .cta-title { color: #ffffff; }

/* ── Testimonial cards: all white with black text ── */
.portfolio-end .testimonial {
  background: #FFFFFF;
  border-color: transparent;
}
.portfolio-end .testimonial:hover {}
.portfolio-end .quote { color: #000000; }
.portfolio-end .t-name { color: #000000; }
.portfolio-end .t-role { color: rgba(0,0,0,0.50); }

/* ── CTA section on dark background ── */
.portfolio-end .cta-visual {
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.portfolio-end .cta-body { background: #1F1F1F; }
.portfolio-end .cta-sub { color: rgba(255,255,255,0.62); }

/* Contact buttons — white-filled per Figma spec */
.pill--dark {
  background: #ffffff;
  color: #000000;
  border-color: #f4f4f4;
}
.pill--dark:hover {
  background: #f0f0f0;
  border-color: #e0e0e0;
}

/* Footer bar keeps its existing dark style */
.portfolio-end .cta-bar { background: rgba(0,0,0,0.5); }

/* ── Stroke SVG ── */
.stroke-svg {
  display: none;
}
.cta-row { display: flex; align-items: stretch; }
.cta-visual {
  flex: 0 0 502px;
  min-height: 385px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-visual img { width: 90%; height: auto; }
.cta-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-body {
  flex: 1;
  background: var(--white);
  padding: 52px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.cta-title { margin: 0; font-weight: 400; font-size: 60px; line-height: 1; }
.cta-sub { margin: 0; font-weight: 400; font-size: 16px; line-height: 1.5; }
.cta-bar { background: var(--black); padding: 52px; }
.cta-bar p { margin: 0; color: var(--white); text-align: center; font-weight: 400; font-size: 18px; line-height: 1.3; }

/* ===== Desktop overrides (>= 1025px) ===== */
/* Placed after all base definitions to win the cascade */
@media (min-width: 1025px) {
  /* Selected Works heading: 100px/110% per Figma desktop */
  .big-heading { font-size: 100px; }
  /* Statement: 100px/100% per Figma desktop */
  .statement { font-size: 100px; }
  /* Shots sub: 533px width, 18px per Figma desktop */
  .shots-sub { flex: 0 1 533px; max-width: 533px; font-size: 18px; }
  /* Shots track: gap=52 per Figma desktop */
  .shots-track { gap: 52px; }
  /* About: gap=150 per Figma desktop */
  .about-section { gap: 150px; }
  .about-text p { font-size: 24px; line-height: 1.2; }
  /* Work text: 18px / ~121% (110% + 10%) per Figma desktop */
  .work-text p { font-size: 18px; line-height: 1.21; }
  /* Testimonials: gap=52 per Figma desktop */
  .testimonials-track { gap: 52px; }
  .testimonial { flex: 0 0 436px; gap: 36px; }
  .quote { font-size: 18px; line-height: 1.3; }
  .t-name { font-size: 20px; }
  .t-role { font-size: 18px; line-height: 1.2; }
  /* CTA: 72px title, 18px sub per Figma desktop */
  .cta-title { font-size: 72px; }
  .cta-sub { font-size: 18px; line-height: 1.3; }
}

/* ===== Responsive ===== */
/* ===== Tablet / mid (<= 1199) — stack before desktop sticky layouts clip ===== */
@media (max-width: 1199px) {
  :root { --pad: 50px; }
  /* Header: brand + MENU on the top row, intro headline full-width below */
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 40px;
    column-gap: 16px;
    align-items: start;
  }
  .brand { grid-column: 1; grid-row: 1; margin-inline: 0; }
  .header > .pill--menu { grid-column: 2; grid-row: 1; justify-self: end; }
  .intro {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin-inline: 0;
    flex: none;
  }
  .intro-text { font-size: 32px; line-height: 1.2; }
  /* Three things: column on tablet, gap=100 per Figma tablet spec */
  .own-stage { flex-direction: column; gap: 100px; }
  .own-left { flex: none; width: 100%; max-width: none; }
  .own-right { flex: none; width: 100%; }
  .own-left__inner { position: static; gap: 52px; }
  .own-heading { font-size: clamp(52px, 8vw, 86px); }
  .own-sub { font-size: 18px; }
  .own-cards { padding-top: 0; width: 100%; flex: none; }
  .own { max-width: 100%; }
  /* Own card body text: 18px on tablet per Figma */
  .own-lead { font-size: 18px; line-height: 1.2; }
  .own-point { font-size: 18px; line-height: 1.15; }
  /* Selected Works heading: 86px per Figma tablet */
  .big-heading { font-size: clamp(52px, 8vw, 86px); }
  /* Statement: 86px per Figma tablet */
  .statement { font-size: clamp(52px, 8vw, 86px); }
  /* Selected Works: one per row; card grows with the mockup (no fixed crop) */
  .work-card { flex: 1 1 100%; height: auto; min-width: 0; }
  .work-media {
    flex: none;
    height: auto;
    min-height: 0;
    margin-top: -56px;
  }
  .work-media img {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
  }
  .work-media--bottom img { top: auto; margin-bottom: -16px; }
  .work-text { padding-top: 50px; padding-bottom: 0; }
  .work-text p { font-size: 18px; line-height: 1.4; }
  /* Shots: tablet-specific sizing, gap=52 per Figma tablet */
  .shots-track { gap: 52px; }
  .shot { height: 533px; }
  .shots-sub { flex: 0 1 924px; max-width: 924px; font-size: 18px; }
  /* About: stack vertically, gap=150 per Figma tablet */
  .about { flex-direction: column; gap: 52px; }
  .about-section { gap: 150px; }
  .about-photo { flex: none; width: 100%; max-width: 100%; height: 862px; }
  .about-text p { font-size: 24px; line-height: 1.4; }
  /* Testimonials: scroll track, gap=32 per Figma tablet */
  .testimonials-track { gap: 32px; }
  .testimonial { flex: 0 0 436px; gap: 36px; }
  .quote { font-size: 18px; line-height: 1.3; }
  .t-name { font-size: 20px; }
  .t-role { font-size: 18px; line-height: 1.2; }
  /* CTA: 72px title, 18px sub per Figma tablet */
  .cta-title { font-size: 72px; }
  .cta-sub { font-size: 18px; line-height: 1.3; }
  /* Footer CTA stacks on tablet */
  .cta-row { flex-direction: column; }
  .cta-visual { flex: none; width: 100%; min-height: 0; aspect-ratio: 502 / 385; }
  .cta-body { padding: 52px; gap: 36px; }
  /* Gen AI: heading + carousel tablet */
  .genai-heading { font-size: clamp(52px, 8vw, 86px); }
  .genai-subtitle { font-size: 20px; }
  .genai-desc { font-size: 16px; max-width: 360px; }
  .genai-card { flex: 0 0 340px; }
  .genai-card--music { flex: 0 0 420px; }
  .genai-carousel { gap: 32px; }
  /* Portfolio end: Figma tablet padding 100px 50px, gap 100px */
  .portfolio-end { padding-top: 100px; }
  .portfolio-end__inner { gap: 100px; padding-bottom: 100px; }
}

/* ===== Phone (<= 767) ===== */
@media (max-width: 767px) {
  :root { --pad: 24px; }
  .page { padding-top: 50px; padding-bottom: 50px; }
  .sticky-nav { padding: 12px 20px; }
  .sticky-nav__brand { font-size: 20px; }
  .brand { font-size: 30px; line-height: 1.2; }
  .header { row-gap: 28px; }
  .intro { gap: 32px; }
  .intro-text { font-size: 32px; line-height: 45.6px; }
  .pills { gap: 16px; }
  /* Meta: two tag rows, 40px gap between them per Figma mobile */
  .meta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
  }
  .meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
  }
  .meta-mid { display: none; }   /* the middle "+" only exists in the desktop single row */
  .hero-banner { margin-top: 40px; min-height: 230px; }
  .stack { gap: 100px; margin-top: 100px; }
  .section { gap: 52px; }
  .section-title { font-size: 26px; }
  /* Three things: mobile gap=52 per Figma, heading=60px */
  .own-stage { gap: 52px; }
  .own-heading { font-size: 60px; }
  .own-left__inner { gap: 32px; }
  /* Own cards: 16px body text per Figma mobile */
  .own-lead { font-size: 16px; line-height: 1.5; }
  .own-point { font-size: 16px; line-height: 1.5; }
  /* Selected Works: 60px heading per Figma mobile */
  .big-heading { font-size: 60px; }
  .statement { font-size: 60px; }
  /* Selected Works: one per row; image in normal flow so phones aren't cropped */
  .work-card { flex: 1 1 100%; height: auto; min-height: 0; }
  .work-text { padding: 32px 16px 0; }
  .work-text--wide { padding-left: 16px; padding-right: 16px; }
  .work-media {
    flex: none;
    height: auto;
    min-height: 0;
    margin-top: -40px;
  }
  .work-media img {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
  }
  .work-media--bottom img { top: auto; margin-bottom: -8px; }
  .work-text p { font-size: 16px; line-height: 1.5; }
  /* Shots marquee: gap=16 per Figma mobile */
  .shots-track { gap: 16px; }
  .shots-head { flex-direction: column; align-items: flex-start; }
  .shots-sub { flex: 0 1 auto; max-width: 345px; font-size: 16px; }
  .shot { width: 296px; height: 387px; }
  /* About: gap=100 per Figma mobile */
  .about-section { gap: 100px; }
  .about { gap: 32px; }
  .about-photo { height: 322px; }
  .about-text p { font-size: 20px; line-height: 1.5; }
  .award { flex-wrap: wrap; gap: 6px 12px; }
  .award-note { width: 100%; text-align: right; }
  /* Testimonials: gap=16 per Figma mobile, width=345 */
  .testimonials-track { gap: 16px; }
  .testimonial { flex: 0 0 345px; gap: 32px; }
  .quote { font-size: 16px; line-height: 1.5; }
  .t-name { font-size: 16px; }
  .t-role { font-size: 16px; line-height: 1.5; }
  /* Footer: mobile layout */
  .cta-title { font-size: 60px; }
  .cta-sub { font-size: 16px; line-height: 1.5; }
  .cta-body { padding: 32px 24px; gap: 36px; }
  .cta-body .pills { flex-direction: column; gap: 24px; }
  .cta-visual { aspect-ratio: 502 / 385; min-height: 0; }
  .cta-bar { padding: 52px; }
  .cta-bar p { font-size: 18px; line-height: 1.3; }
  /* Gen AI: phone layout */
  .genai-head { flex-direction: column; gap: 24px; }
  .genai-heading { font-size: 60px; }
  .genai-subtitle { font-size: 18px; max-width: none; }
  .genai-desc { font-size: 16px; max-width: none; align-self: flex-start; }
  .genai-carousel { gap: 20px; }
  .genai-card { flex: 0 0 300px; }
  .genai-card--music { flex: 0 0 300px; }
  .portfolio-end { padding-top: 50px; }
  .portfolio-end__inner { gap: 100px; padding-bottom: 50px; padding-left: 24px; padding-right: 24px; }
}

/* ============================================================
   Motion
   ============================================================ */

/* Scroll-reveal — hidden state only applies once JS is present,
   so no-JS users always see content (progressive enhancement).
   The `js` class is set synchronously in <head>, before first
   paint, so revealed elements never flash in then hide. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.988);   /* soft settle, not a hard slide */
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Hero load: each element's "from" state, gated on `html.js` (set
   synchronously in <head>) so it's flash-free yet visible without JS. */
html.js .brand { opacity: 0; }
html.js .intro-text { clip-path: inset(0 0 100% 0); }
html.js .intro .pill { opacity: 0; }
html.js .meta-row { opacity: 0; }
html.js .hero-banner { transform: scale(1.04); }
html.js [data-split-lines] { opacity: 0; }
html.js .work-card:not(.is-in) { opacity: 0; transform: translateY(30px) scaleX(0.96) scaleY(0.9); transform-origin: center bottom; }
html.js .work-card:not(.is-in) .work-media img { transform: scale(1.08); }
.split-line { will-change: transform; }
.count { font-variant-numeric: tabular-nums; }

/* Hover arrow on each Selected Works card — hidden */
.work-arrow {
  display: none;
}

/* Press feedback on every pill */
.pill:active { transform: scale(0.97); }

/* Hover micro-interactions — gated to real pointers so a tap on
   touch devices doesn't get stuck in a hover state */
@media (hover: hover) and (pointer: fine) {
  .brand { transition: opacity 0.25s ease; }
  .brand:hover { opacity: 0.55; }

  /* Subtle, physical hover — no lift, no tilt. */
  .work-card.is-in .work-media img { transition: transform 0.5s var(--ease-out); }
  .work-card:hover .work-media img { transform: scale(1.025); }
  .work-text h3, .work-arrow { transition: transform 0.35s var(--ease-out); }
  .work-card:hover .work-text h3 { transform: translateY(-2px); }
  .work-card:hover .work-arrow { transform: translateX(4px); }

  .shot { transition: transform 0.4s var(--ease-out); }
  .shot:hover { transform: translateY(-4px); }
  .shot img { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
  .shot:hover img { transform: scale(1.02); }

  .testimonial { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
  .testimonial:hover { transform: translateY(-4px); }
}

/* (halos removed — replaced by shimmer placeholder) */

/* ============================================================
   Liquid motion system additions
   ============================================================ */

/* WebGL canvas overlay — sits on top of the img inside work-media,
   takes up the full container so the shader fills the same space */
.liquid-webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* work-media is position:absolute (original CSS preserved).
   The canvas is positioned absolute relative to the card (overflow:hidden clips it). */

/* The img stays in the normal flow to give work-media its height.
   The canvas overlays it via position:absolute. */

/* ── Cursor-following hover pill ── */
.hover-pill {
  position: fixed;
  z-index: 9990;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.hover-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hover-pill__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Shot cards: subtle hover parallax enabled by will-change */
.shot {
  will-change: transform;
}

/* Hero WebGL canvas overlay */
.hero-banner .liquid-webgl-canvas {
  z-index: 2; /* above the UnicornStudio scene */
  border-radius: 20px;
}

/* [data-liquid] elements: GPU-composited layer hint */
[data-liquid] {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Liquid section smooth transition — no snap, no jumps */
[data-liquid-section] {
  transform: translateZ(0);
}

/* Sticky nav liquid: override the existing transition so our JS
   can drive the transform without fighting CSS transitions */
html.js .sticky-nav.is-visible {
  /* keep the is-visible state visible but let JS override transform */
  transform-origin: top center;
}

/* ─── Reduced motion ─── */
/* Reduced motion: keep fades, drop all movement */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: opacity 0.3s ease; }
  html.js .brand, html.js .intro .pill, html.js .meta-row,
  html.js [data-split-lines] { opacity: 1 !important; }
  html.js .intro-text { opacity: 1 !important; clip-path: none !important; }
  html.js .hero-banner { transform: none !important; }
  .sticky-nav { transition: opacity 0.3s ease; transform: none; }
  .sticky-nav:not(.is-visible) { transform: none; }
  .hero-banner__shimmer { animation: none; }
  .pill:active, .testimonial:hover { transform: none !important; }
  .work-card:hover .work-media img, .shot:hover img,
  .work-card:hover .work-text h3, .work-card:hover .work-arrow { transform: none !important; }
}

/* ============================================================
   Menu overlay — Figma "New Menu" (515:3201)
   Desktop / tablet / mobile share the same 300×330 card.
   CLOSE sits 50px from the top, card at 108px (16px gap).
   ============================================================ */

.liquid-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.liquid-menu {
  --menu-green: #34c759;
  --menu-pad: var(--pad);
  --menu-close-top: 50px;
  --menu-card-top: 108px;
  --menu-inset-right: max(
    var(--menu-pad),
    calc((100vw - (var(--maxw) + var(--pad) * 2)) / 2 + var(--menu-pad))
  );
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
}
.liquid-menu.is-open { pointer-events: auto; visibility: visible; }
.liquid-menu.is-transitioning { pointer-events: none; }

body.is-menu-open .sticky-nav {
  /* Keep sticky chrome as-is; only the elevated CLOSE pill sits above the dropdown */
  z-index: 350;
  visibility: visible;
  pointer-events: none;
}
body.is-menu-open .sticky-nav__brand {
  pointer-events: auto;
}
body.is-menu-open .sticky-nav .pill--menu:not(.is-menu-toggle) {
  visibility: hidden;
  pointer-events: none;
}

/* CLOSE lives on the MENU pill itself — hide the duplicate overlay control */
.liquid-menu__top,
.liquid-menu__close {
  display: none !important;
}

.liquid-menu__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
}

.liquid-menu__card {
  position: absolute;
  z-index: 3;
  top: var(--menu-card-top);
  right: var(--menu-inset-right);
  width: 300px;
  background: var(--white);
  border-radius: 16px;
  box-shadow:
    0 149px 42px rgba(191, 191, 191, 0),
    0 96px 38px rgba(191, 191, 191, 0.01),
    0 54px 32px rgba(191, 191, 191, 0.05),
    0 24px 24px rgba(191, 191, 191, 0.09),
    0 6px 13px rgba(191, 191, 191, 0.1);
  overflow: hidden;
}

.liquid-menu__nav {
  display: flex;
  flex-direction: column;
}

.liquid-menu__item {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  color: var(--black);
  text-decoration: none;
  font-weight: 400;
  font-size: 24px;
  line-height: 26px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}
.liquid-menu__item:hover { background: rgba(0, 0, 0, 0.03); }
.liquid-menu__item:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

.liquid-menu__label {
  display: inline-block;
  white-space: nowrap;
}

.liquid-menu__availability {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: #fbfbfb;
  font-size: 16px;
  line-height: 18px;
  color: #818181;
}

.liquid-menu__avail-dot {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.liquid-menu__avail-ring {
  display: block;
  width: 16px;
  height: 16px;
}
.liquid-menu__avail-core {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
}

@media (max-width: 767px) {
  .liquid-menu__card {
    width: min(300px, calc(100% - var(--menu-pad) * 2));
  }
}
