/* Editorial 16:9 refinements for the YAG visual narrative. */
.hero {
  background-image: linear-gradient(90deg, #1d0305d9 0%, #30050c91 38%, #48060a25 62%, #5b0f1300 78%), url('assets/hero-intercom-16x9.png');
}

.about,
.founder,
.collective {
  min-height: clamp(560px, 56.25vw, 850px);
}

.about-picture,
.collective-image {
  min-height: 100%;
}

.about-picture { background: #d7d0c7 url('assets/about-yag-editorial-v2.jpeg') center / cover no-repeat; }

.story {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  grid-template-rows: 1fr auto;
  min-height: clamp(560px, 56.25vw, 850px);
  gap: 0;
  padding: clamp(54px, 7vw, 112px);
  overflow: hidden;
}

.story-title { position: relative; z-index: 1; }

.story-title h2 {
  max-width: 660px;
  margin-top: 30px;
  font-size: clamp(50px, 5.5vw, 94px);
  line-height: .84;
}

.story-visual {
  position: absolute;
  z-index: 0;
  top: 12%;
  right: 8%;
  width: min(35vw, 560px);
}

.story-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px #1d030577);
}

.story-body {
  position: relative;
  z-index: 1;
  grid-column: 2;
  max-width: 430px;
  align-self: end;
}

.story-body p {
  margin: 0;
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1.7;
}

@media (max-width: 780px) {
  .hero {
    background-image: linear-gradient(90deg, #1d0305f5 0%, #30050cb9 53%, #5b0f1322 100%), url('assets/hero-intercom-16x9.png');
    background-position: 67% center;
  }

  .about,
  .founder,
  .collective { min-height: 0; }

  .about-picture,
  .collective-image { min-height: 430px; }

  .story {
    display: flex;
    min-height: 720px;
    padding: 80px 28px;
    flex-direction: column;
    justify-content: space-between;
  }

  .story-title h2 { font-size: clamp(48px, 13vw, 70px); }

  .story-visual {
    top: 30%;
    right: -14%;
    width: 76vw;
    opacity: .82;
  }

  .story-body {
    display: block;
    width: 72%;
    max-width: 360px;
    align-self: flex-start;
  }
}

/* Founder portrait, distinct purpose palette, and a compact 12-service layout. */
.founder-portrait { background: #d7d0c7 url('assets/yumiko-founder-v2.jpeg') center / cover no-repeat; }

.founder-portrait::before,
.founder-portrait span { display: none; }

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.purpose { background: var(--wine); }

.values {
  justify-content: center;
  text-align: center;
}

.values p { text-align: center; }

@media (min-width: 781px) {
  .folders {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 58px;
    max-width: 1320px;
    margin-top: 78px;
  }

  .folder-card { min-height: 292px; }

  .folder-images {
    width: 212px;
    height: 151px;
  }

  .photo {
    width: 94px;
    height: 122px;
    border-width: 3px;
  }

  .photo-a { left: 4px; }
  .photo-b { right: 4px; }
  .photo-c { left: 58px; bottom: 27px; }

  .folder {
    width: min(91%, 220px);
    height: 104px;
    margin-top: -31px;
    border-width: 3px;
    border-radius: 0 0 13px 13px;
  }

  .folder::before {
    top: -27px;
    height: 28px;
    border-width: 3px;
    border-radius: 13px 13px 0 0;
  }

  .folder::after {
    top: 13px;
    left: 13px;
    right: 13px;
    height: 6px;
  }

  .folder-card h3 {
    margin-top: 14px;
    font-size: 10px;
  }
}

/* Phone-only hero and point-of-view framing. */
@media (max-width: 780px) {
  .hero {
    min-height: max(720px, 100svh);
    background-image: linear-gradient(90deg, #1d0305ed 0%, #30050cb5 46%, #5b0f1312 100%), url('assets/hero-intercom-v1.png');
    background-position: center center;
    background-size: cover;
  }

  #story { scroll-margin-top: 72px; }

  .story {
    display: flex !important;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 84px 24px 76px;
    text-align: center;
  }

  .story-title,
  .story-right {
    width: 100%;
    text-align: center;
  }

  .story-title h2 {
    width: 100%;
    margin: 18px auto 0;
  }

  .story-right {
    display: flex !important;
    min-height: 0;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: 36px;
  }

  .story-visual {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    align-self: center !important;
    width: min(82vw, 300px) !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .story-visual img { margin: 0 auto; }

  .story-body {
    display: block !important;
    position: static !important;
    width: min(100%, 320px) !important;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .story-body p,
  .story-index { text-align: center; }
}

.contact {
  background-image: linear-gradient(#180204bc, #180204bc), url('assets/cherries-hero-16x9.png');
  background-position: center;
  background-size: cover;
}

/* Layout pass: centre editorial compositions and make room for hierarchy. */
@media (min-width: 781px) {
  .story {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    grid-template-rows: 1fr;
    align-items: center;
  }

  .story-title {
    align-self: center;
  }

  .story-right {
    align-self: center;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(34px, 4vw, 64px);
  }

  .story-visual {
    position: static;
    width: min(100%, 560px);
  }

  .story-body {
    position: static;
    align-self: stretch;
    max-width: 430px;
  }

  .story-index { margin-top: 32px; }

  .work {
    padding-top: 100px;
    padding-bottom: 112px;
  }

  .work-heading {
    display: block;
    max-width: 1160px;
  }

  .work-heading h2 {
    max-width: 840px;
    margin: 14px 0 18px;
    font-size: clamp(52px, 5vw, 80px);
    line-height: .9;
  }

  .work-heading > p:last-child {
    max-width: 510px;
  }

  .work-grid {
    margin-top: 38px;
  }

  .contact {
    padding-top: 118px;
    padding-bottom: 118px;
  }

  .contact h2 {
    max-width: 1380px;
    margin: 22px auto 42px;
    font-size: clamp(58px, 6.3vw, 108px);
    line-height: .88;
  }

  .contact-intro {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto 34px;
  }

  .contact-links { margin-top: 0; }
}

/* A restrained, editorial motion system. */
.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 780ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform 780ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    clip-path 920ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready .about-picture.reveal,
.motion-ready .founder-portrait.reveal,
.motion-ready .collective-image.reveal {
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 0, 0);
}

.motion-ready .about-picture.reveal.is-visible,
.motion-ready .founder-portrait.reveal.is-visible,
.motion-ready .collective-image.reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* The agency story lives within the introduction, without a secondary CTA. */
.about-copy .about-intro { margin-bottom: 26px; }

.history-copy {
  max-width: 490px;
  padding-top: 18px;
  border-top: 1px solid #5b0f1333;
}

.history-copy .caption {
  margin: 0 0 10px;
}

.history-copy h3 {
  margin: 0 0 14px;
  color: var(--wine-dark);
  font: 400 clamp(25px, 2.2vw, 34px)/.98 var(--display);
  letter-spacing: -.04em;
}

.history-copy > p:not(.caption) {
  max-width: none;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 781px) {
  .about { min-height: 820px; }
  .about-copy { padding-top: 65px; padding-bottom: 65px; }
}

/* Phone-first layout pass. */
@media (max-width: 780px) {
  html, body { overflow-x: hidden; }

  .announcement {
    min-height: 28px;
    padding: 8px 16px;
    font-size: 7px;
    line-height: 1.45;
  }

  .nav,
  .nav.is-scrolled {
    height: 60px;
    padding: 0 20px;
  }

  .nav.is-scrolled { top: 0; }
  .nav nav.open { top: 59px; padding: 22px 20px 26px; }

  .hero {
    min-height: 700px;
    background-position: 64% center;
  }

  .hero-copy { padding: 145px 24px 64px; }
  .hero h1 { max-width: 345px; font-size: clamp(47px, 13.5vw, 64px); }
  .hero-intro { max-width: 310px; font-size: 13px; }
  .button { width: min(100%, 285px); gap: 18px; }

  .service-strip { padding: 15px 18px; font-size: 14px; }

  .about-picture,
  .collective-image { min-height: 360px; }

  .about-picture img { object-position: 46% center; }
  .about-copy,
  .founder-copy,
  .collective-copy { padding: 58px 24px; }
  .about-copy h2 { margin-top: 12px; }
  .about-copy .about-intro { margin-bottom: 22px; }

  .history-copy { padding-top: 16px; }
  .history-copy h3 { font-size: 28px; }
  .history-copy > p:not(.caption) { font-size: 13px; line-height: 1.56; }

  .story { min-height: 680px; padding: 66px 24px; }
  .story-title h2 { font-size: clamp(45px, 13vw, 64px); }
  .story-right { min-height: 430px; }
  .story-body { width: 92%; font-size: 13px; }

  .founder-portrait { min-height: 410px; }
  .founder-portrait img { width: min(68%, 290px); }

  .purpose { padding: 74px 24px; }
  .purpose-heading h2 { font-size: clamp(48px, 13vw, 68px); }
  .purpose-grid { gap: 10px; }
  .purpose-grid article { min-height: 0; padding: 24px; }
  .purpose-grid h3 { margin-top: 40px; }
  .values { justify-content: flex-start; gap: 10px 15px; }
  .values span { font-size: 20px; }

  .services { padding: 78px 18px 90px; }
  .services-heading h2 { font-size: clamp(58px, 17vw, 76px); }
  .folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 42px;
    margin-top: 58px;
  }

  .folder-card { min-height: 236px; }
  .folder-images { width: min(100%, 148px); height: 116px; }
  .photo { width: 70px; height: 92px; border-width: 2px; }
  .photo-a { left: 2px; }
  .photo-b { right: 2px; }
  .photo-c { left: calc(50% - 35px); bottom: 18px; }
  .folder { width: min(96%, 148px); height: 82px; margin-top: -24px; border-width: 2px; border-radius: 0 0 10px 10px; }
  .folder::before { top: -21px; height: 22px; border-width: 2px; border-radius: 10px 10px 0 0; }
  .folder::after { top: 11px; left: 10px; right: 10px; height: 5px; }
  .folder-card h3 { margin-top: 12px; font-size: 8px; line-height: 1.38; }

  .collective-copy h2 { font-size: clamp(49px, 13vw, 68px); }
  .expertise-list { gap: 6px; }
  .expertise-list span { padding: 8px; font-size: 8px; }

  .work { padding: 74px 24px; }
  .work-heading h2 { font-size: clamp(48px, 13vw, 68px); }
  .work-grid { gap: 20px 12px; }
  .work-space { min-height: 156px; }
  .work-space b { font-size: 19px; }

  .contact { padding: 78px 20px; }
  .contact h2 { font-size: clamp(50px, 13.5vw, 68px); }
  .contact-intro { font-size: 13px; }
  .contact-links a { min-height: 52px; font-size: 9px; }
  .footer { padding: 22px 20px; }
}

@media (max-width: 430px) {
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-space { min-height: 195px; }
  .work-space b { font-size: 23px; }
  .work-card h3 { font-size: 10px; }
}

/* Final mobile composition adjustments. */
@media (min-width: 781px) {
  .service-marquee-track { display: contents; }
  .service-marquee-track .marquee-copy { display: none; }
}

@media (max-width: 780px) {
  .service-strip {
    display: block;
    min-height: 48px;
    padding: 0;
  }

  .service-marquee-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    min-width: 200%;
    height: 48px;
    padding: 0 18px;
    white-space: nowrap;
    animation: yag-marquee 24s linear infinite;
    will-change: transform;
  }

  .service-marquee-track span { flex: 0 0 auto; }

  .story {
    display: block;
    min-height: 0;
    padding: 72px 24px 68px;
    text-align: center;
  }

  .story-title .eyebrow,
  .story-title h2,
  .story-body,
  .story-body p { text-align: center; }

  .story-title h2 { margin: 20px auto 0; }

  .story-right {
    min-height: 0;
    align-items: center;
    gap: 34px;
    margin-top: 38px;
  }

  .story-visual {
    width: min(78vw, 310px);
    margin: 0 auto;
    align-self: center;
  }

  .story-body {
    width: min(100%, 320px);
    max-width: 320px;
    margin: 0 auto;
    align-self: center;
  }

  .story-index { margin-top: 26px; }

  .founder-portrait {
    display: block;
    min-height: 0;
    padding: 38px 24px 0;
    background: var(--cream) url('assets/yumiko-founder-v2.jpeg') center top / cover no-repeat;
  }

  .founder-portrait img {
    width: 100%;
    max-width: none;
    height: clamp(390px, 112vw, 505px);
    object-fit: cover;
    object-position: center top;
  }

  .values {
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 9px;
    text-align: center;
  }

  .values p {
    width: auto;
    margin: 0 0 8px;
    text-align: center;
  }

  .values span { font-size: 25px; }

  .expertise-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    margin-top: 26px;
    gap: 8px 7px;
  }

  .expertise-list span {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 5px;
    text-align: center;
    line-height: 1.25;
  }

  .expertise-list span:nth-child(1) { grid-column: 1 / 4; }
  .expertise-list span:nth-child(2) { grid-column: 4 / 7; }
  .expertise-list span:nth-child(3) { grid-column: 1 / 3; }
  .expertise-list span:nth-child(4) { grid-column: 3 / 5; }
  .expertise-list span:nth-child(5) { grid-column: 5 / 7; }
}

@keyframes yag-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .service-marquee-track { animation: none; }
}

/* Desktop-only: clearer collective list and more editorial value rhythm. */
@media (min-width: 781px) {
  .collective-copy .expertise-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .collective-copy .expertise-list span {
    min-width: 172px;
    text-align: center;
  }

  .values {
    justify-content: center;
    gap: 16px 34px;
  }

  .values span {
    display: inline-flex;
    align-items: center;
    gap: 34px;
  }

  .values span:not(:last-child)::after {
    content: '•';
    color: #e4a8a2;
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1;
  }
}

@media (min-width: 781px) {
  .collective-copy .expertise-list {
    width: 100%;
    max-width: 680px;
    margin-top: 44px;
    gap: 24px;
  }

  .collective-copy .expertise-list span {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    padding: 18px 24px;
    justify-content: flex-start;
    text-align: left;
    font-size: 12px;
    letter-spacing: .14em;
  }
}

.motion-ready .hero-copy.reveal {
  transform: translate3d(0, 24px, 0);
}

.motion-ready .hero-copy.reveal.is-visible { transform: translate3d(0, 0, 0); }

.motion-ready .folder-card.reveal,
.motion-ready .work-card.reveal {
  transform: translate3d(0, 28px, 0) scale(.985);
}

.motion-ready .folder-card.reveal.is-visible,
.motion-ready .work-card.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.story-visual {
  transform: translate3d(0, var(--camera-shift, 0px), 0);
  transition: transform 140ms linear;
}

.collective-image img {
  transform: translate3d(0, var(--collective-shift, 0px), 0) scale(1.035);
  transition: transform 140ms linear;
}

.folder-card,
.work-card,
.contact-links a,
.button,
.text-link,
.expertise-list span {
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), box-shadow 280ms ease, background 280ms ease, color 280ms ease;
}

.motion-ready .folder-card.reveal.is-visible:hover,
.motion-ready .work-card.reveal.is-visible:hover,
.folder-card:hover,
.work-card:hover {
  transform: translateY(-8px);
}

.folder-card:hover .folder {
  box-shadow: 0 22px 32px #0008;
}

.work-card:hover .work-space {
  box-shadow: 0 18px 26px #5b0f1320;
}

.expertise-list span:hover,
.contact-links a:hover,
.button:hover {
  transform: translateY(-3px);
}

.nav {
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.nav.is-scrolled {
  position: fixed;
  top: 0;
  background: #1d0305dd;
  backdrop-filter: blur(15px);
  border-color: #fff4;
  box-shadow: 0 8px 24px #1d03052e;
}

@media (max-width: 780px) {
  .motion-ready .reveal { transform: translate3d(0, 22px, 0); }
  .motion-ready .folder-card.reveal,
  .motion-ready .work-card.reveal { transform: translate3d(0, 18px, 0) scale(.99); }
  .story-visual { transform: translate3d(0, 0, 0); }
  .collective-image img { transform: scale(1.025); }
}

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

/* Images should never depend on JavaScript to be visible. */
.motion-ready .about-picture.reveal,
.motion-ready .founder-portrait.reveal,
.motion-ready .collective-image.reveal,
.motion-ready .story-right.reveal,
.motion-ready .folder-card.reveal,
.motion-ready .work-card.reveal {
  opacity: 1;
}

/* Selected work: Tania Tozcano / El Beño. */
.work-space--tania {
  isolation: isolate;
  background: #e47d00 !important;
}

.work-space--tania::before,
.work-space--tania::after { display: none; }

.work-space--tania > span,
.work-space--tania > b {
  color: #fff3df;
  text-shadow: 0 1px 10px #2c170880;
}

.work-project-images {
  position: absolute;
  inset: 42px 14px 14px;
  z-index: 0;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  overflow: hidden;
}

.work-project-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #d77c14;
}

.work-project-images img:first-child { grid-row: 1 / 3; }

.work-space--tania > span,
.work-space--tania > b { z-index: 1; }

/* Pauta y Ads / Lupita L.A. case-study layout. */
.work {
  background: #f4e5ce;
  color: var(--wine-dark);
}

.ads-showcase {
  padding: 115px clamp(24px, 8vw, 132px);
  background: #f4e5ce;
  color: var(--wine-dark);
}

.ads-showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .7fr);
  gap: 30px 9vw;
  align-items: end;
  max-width: 1320px;
  margin: 0 auto 78px;
}

.ads-showcase-heading .eyebrow { grid-column: 1 / -1; }
.ads-showcase-heading h2 { max-width: 650px; margin: 0; font-size: clamp(49px, 5.7vw, 90px); }
.ads-showcase-heading > p:last-child { max-width: 390px; margin: 0 0 8px; font-size: 14px; line-height: 1.65; }

.work-heading--cases {
  display: block;
  max-width: 1320px;
  margin: 0 auto 78px;
}

.work-heading--cases h2 { max-width: 650px; margin: 14px 0 0; }

.branding-case-list { max-width: 1320px; margin: 0 auto; border-top: 1px solid #5b0f1330; }

.branding-case {
  display: grid;
  grid-template-columns: minmax(245px, .62fr) minmax(0, 1.38fr);
  gap: clamp(36px, 7vw, 118px);
  align-items: center;
  padding: clamp(60px, 7vw, 112px) 0 0;
}

.branding-case-copy h3 { margin: 14px 0 18px; font: 400 clamp(46px, 5vw, 76px)/.88 var(--display); letter-spacing: -.055em; }
.branding-case-copy > p:not(.case-number):not(.eyebrow) { max-width: 360px; margin: 0; font-size: 14px; line-height: 1.65; }

.branding-case-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 13px;
}

.branding-case-media img { width: 100%; height: auto; min-height: 0; object-fit: cover; border: 1px solid #5b0f131c; box-shadow: 0 18px 35px #5b0f1312; }
.branding-case-media img { aspect-ratio: 1; }

.andy-case { padding-bottom: clamp(60px, 7vw, 112px); border-bottom: 1px solid #5b0f1330; }
.andy-case .branding-case-copy h3 { font-family: var(--sans); font-size: clamp(38px, 4vw, 58px); font-weight: 600; letter-spacing: -.045em; }
.andy-case-media { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; align-items: start; }
.andy-case-media img { aspect-ratio: auto; object-fit: contain; }
.andy-services { display: grid; gap: 23px; margin-top: 30px; }
.andy-service { padding-top: 17px; border-top: 1px solid #5b0f1330; }
.andy-service h4 { margin: 0 0 7px; font: 600 11px/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.andy-service p { max-width: 390px; margin: 0; font-size: 13px; line-height: 1.58; }
.landing-device-showcase { grid-column: 1 / -1; display: flex; align-items: end; justify-content: center; gap: clamp(22px, 5vw, 78px); margin-top: clamp(8px, 2vw, 34px); padding: clamp(28px, 4vw, 58px); background: #f4e5ce; border: 1px solid #5b0f1320; overflow: hidden; }
.landing-laptop { width: min(68vw, 760px); }
.landing-laptop-screen { padding: clamp(6px, .8vw, 12px); background: #292621; border: 1px solid #0f0e0c; border-radius: 15px 15px 5px 5px; box-shadow: 0 22px 40px #32170c30; }
.landing-laptop-screen video { display: block; width: 100%; aspect-ratio: 1440 / 698; object-fit: cover; background: #e7dfd4 url('assets/andy-di-landing-laptop-poster.jpg') center / cover no-repeat; }
.landing-laptop-base { height: clamp(9px, 1.15vw, 16px); margin: 0 -3.5%; border-radius: 0 0 80px 80px; background: linear-gradient(180deg, #8b877f, #4e4a44); box-shadow: 0 8px 11px #32170c20; }
.landing-phone { position: relative; width: min(18vw, 195px); padding: 4px; background: #292621; border: 1px solid #11100e; border-radius: 25px; box-shadow: 0 20px 34px #32170c2b; }
.landing-phone video { display: block; width: 100%; aspect-ratio: 464 / 848; object-fit: cover; border-radius: 20px; background: #e7dfd4 url('assets/andy-di-landing-mobile-poster.jpg') center / cover no-repeat; }
.landing-phone-notch { display: none; }

.specialist-list { max-width: 1320px; margin: 0 auto; border-top: 1px solid #5b0f1330; }
.specialist-case { padding: clamp(60px, 7vw, 112px) 0; border-bottom: 1px solid #5b0f1330; }
.specialist-case-heading { margin-bottom: clamp(38px, 5vw, 70px); }
.specialist-case-heading .eyebrow { margin-top: 16px; }
.specialist-name { max-width: none; margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7.2vw, 110px); font-weight: 400; letter-spacing: -.065em; line-height: .78; }
.specialist-name,
.ads-showcase-heading h2 { color: var(--wine); }
.andy-service-rows { display: grid; gap: clamp(38px, 6vw, 82px); }
.andy-service-row { display: grid; grid-template-columns: minmax(225px, .6fr) minmax(0, 1.4fr); align-items: center; gap: clamp(32px, 6vw, 95px); padding-top: clamp(38px, 5vw, 74px); border-top: 1px solid #5b0f1330; }
.andy-service-copy h3 { max-width: 320px; margin: 0 0 14px; font: 400 clamp(29px, 3.3vw, 52px)/.91 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.andy-service-copy p { max-width: 380px; margin: 0; font-size: 14px; line-height: 1.65; }
.andy-case-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.andy-case-media img { width: 100%; height: auto; border: 1px solid #5b0f131c; box-shadow: 0 18px 35px #5b0f1312; }
.andy-service-row .landing-device-showcase { display: flex; width: 100%; margin: 0; padding: clamp(20px, 3vw, 42px); }
.andy-service-row--catalog { align-items: stretch; }
.andy-catalogue-visual { position: relative; width: min(100%, 252px); min-height: 546px; margin: 0 auto; overflow: hidden; background: #292621; border: 4px solid #292621; border-radius: 29px; box-shadow: 0 20px 36px #32170c2b; }
.andy-catalogue-visual::before { display: none; }
.andy-catalogue-visual::after { display: none; }
.andy-catalogue-visual span,
.andy-catalogue-visual b { display: none; }
.andy-catalogue-visual video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #f5e7da url('assets/andy-di-catalogue-mobile-poster.jpg') center / cover no-repeat; }
.tania-case { display: grid; grid-template-columns: minmax(245px, .62fr) minmax(0, 1.38fr); align-items: center; gap: clamp(36px, 7vw, 118px); }
.specialist-case-copy > p:not(.case-number):not(.eyebrow) { max-width: 360px; margin: 24px 0 0; font-size: 14px; line-height: 1.65; }
.specialist-case-copy .ads-tags { margin-top: 27px; }
.tania-case .branding-case-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.tania-case .branding-case-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #5b0f131c; box-shadow: 0 18px 35px #5b0f1312; }
.ads-showcase-heading h2 { font-size: clamp(58px, 7.2vw, 110px); }

.ads-case-list { max-width: 1320px; margin: 0 auto; border-top: 1px solid #5b0f1330; }

.ads-case {
  display: grid;
  grid-template-columns: minmax(245px, .62fr) minmax(0, 1.38fr);
  gap: clamp(36px, 7vw, 118px);
  align-items: center;
  padding: clamp(60px, 7vw, 112px) 0;
  border-bottom: 1px solid #5b0f1330;
}

.case-number { margin: 0 0 32px; color: var(--wine); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.ads-case-copy h3 { margin: 14px 0 18px; font: 400 clamp(38px, 4vw, 62px)/.88 var(--display); letter-spacing: -.055em; }
.ads-case-copy > p:not(.case-number):not(.eyebrow) { max-width: 360px; margin: 0; font-size: 14px; line-height: 1.65; }

.ads-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ads-tags span { padding: 9px 11px; border: 1px solid var(--wine); color: var(--wine); font-size: 9px; font-weight: 700; letter-spacing: .11em; }

.ads-case-media { display: grid; grid-template-columns: 1fr; gap: 13px; }
.ads-case-media img { width: 100%; min-height: 0; border: 1px solid #5b0f131c; background: #fff; box-shadow: 0 18px 35px #5b0f1312; }
.ads-case-media--three { grid-template-columns: 1fr; }
.ads-case-media--single { max-width: 100%; }

@media (max-width: 780px) {
  .work-project-images { inset: 42px 12px 12px; }

  .ads-showcase { padding: 76px 24px; }
  .work-heading--cases { margin-bottom: 55px; }
  .branding-case { grid-template-columns: 1fr; gap: 36px; padding-top: 62px; }
  .branding-case-copy h3 { font-size: 54px; }
  .branding-case-copy > p:not(.case-number):not(.eyebrow) { font-size: 13px; }
  .branding-case-media { gap: 8px; }
  .andy-case-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .landing-device-showcase { gap: 20px; margin-top: 4px; padding: 22px 16px; }
  .landing-laptop { width: 66%; }
  .landing-phone { width: 23%; padding: 3px; border-radius: 18px; }
  .landing-phone video { border-radius: 14px; }
  .specialist-case { padding: 62px 0; }
  .specialist-name { font-size: 70px; }
  .andy-service-row, .tania-case { grid-template-columns: 1fr; gap: 30px; }
  .andy-service-row { padding-top: 42px; }
  .andy-service-copy h3 { font-size: 39px; }
  .andy-case-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .andy-catalogue-visual { min-height: 190px; }
  .ads-showcase-heading { display: block; margin-bottom: 55px; }
  .ads-showcase-heading h2 { margin: 14px 0 20px; font-size: clamp(48px, 13vw, 68px); }
  .ads-case { grid-template-columns: 1fr; gap: 36px; padding: 62px 0; }
  .case-number { margin-bottom: 23px; }
  .ads-case-copy h3 { font-size: 47px; }
  .ads-case-copy > p:not(.case-number):not(.eyebrow) { font-size: 13px; }
  .ads-tags { margin-top: 23px; }
}

.motion-ready .about-picture.reveal,
.motion-ready .founder-portrait.reveal,
.motion-ready .collective-image.reveal {
  clip-path: inset(0 0 0 0);
}

/* Core editorial photographs must remain visible even if a browser delays motion scripts. */
.about-picture,
.founder-portrait,
.collective-image {
  clip-path: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.collective-image { background: #d7d0c7 url('assets/collective-content-creation.jpeg') center / cover no-repeat; }

@media (max-width: 780px) {
  .story-right {
    display: flex;
    min-height: 480px;
    flex-direction: column;
    justify-content: space-between;
  }

  .story-visual {
    position: static;
    align-self: flex-end;
    width: 82vw;
    margin-right: -17vw;
  }

  .story-body {
    position: static;
    width: 82%;
  }

  .work-heading h2 {
    margin: 14px 0 16px;
    line-height: .9;
  }

  .work-heading > p:last-child { margin-top: 0; }
  .work-grid { margin-top: 34px; }

  .contact h2 {
    margin: 18px auto 30px;
    line-height: .88;
  }

  .contact-intro { margin-bottom: 30px; }
  .contact-links { margin-top: 0; }
}

/* Final spacing and palette pass: keep the camera story compact on phones,
   and give Yumiko's editorial introduction its own soft-pink field. */
.about { background: #e1bec5; }

@media (max-width: 780px) {
  .story {
    display: flex !important;
    min-height: 0 !important;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 54px;
    text-align: center;
  }

  .story-title,
  .story-right { width: 100%; }

  .story-title h2 { margin: 20px auto 0; }

  .story-right {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
    gap: 28px;
    margin-top: 28px;
  }

  .story-visual {
    position: static !important;
    align-self: center !important;
    width: min(78vw, 310px);
    margin: 0 auto !important;
    transform: none !important;
  }

  .story-body {
    position: static !important;
    align-self: center !important;
    width: min(100%, 320px) !important;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .story-index { margin-top: 20px; }
}

@media (max-width: 780px) {
  .landing-device-showcase { align-items: end; gap: 14px; padding: 18px 12px; }
  .landing-laptop { width: calc(100% - 118px); }
  .landing-phone { flex: 0 0 auto; width: clamp(92px, 25vw, 110px); padding: 0; border: 4px solid #292621; border-radius: 29px; box-shadow: 0 18px 30px #32170c2b; }
  .landing-phone video { border-radius: 24px; }
  .andy-catalogue-visual { width: min(100%, 222px); min-height: 482px; }
}

/* Aranza / content, strategy and visual production. */
.aranza-case .specialist-case-heading { max-width: 640px; }
.aranza-intro { max-width: 440px; margin: 26px 0 0; font-size: 15px; line-height: 1.65; }
.aranza-service-rows { display: grid; gap: clamp(42px, 7vw, 88px); }
.aranza-service-row { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); align-items: center; gap: clamp(32px, 6vw, 95px); padding-top: clamp(38px, 5vw, 74px); border-top: 1px solid #5b0f1330; }
.aranza-service-copy h3 { max-width: 320px; margin: 0 0 14px; font: 400 clamp(29px, 3.3vw, 52px)/.91 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.aranza-service-copy p { max-width: 350px; margin: 0; font-size: 14px; line-height: 1.65; }
.aranza-media { width: 100%; }
.aranza-image-grid { display: grid; gap: 10px; }
.aranza-image-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aranza-image-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aranza-image-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #5b0f131c; box-shadow: 0 18px 35px #5b0f1312; }
.aranza-service-row:has(.aranza-video-grid) { grid-template-columns: minmax(190px, .42fr) minmax(0, 1.58fr); }
.aranza-video-grid { display: grid; gap: 16px; }
.aranza-video-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aranza-video-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aranza-video-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #ded5c8; border: 1px solid #5b0f131c; }
.aranza-video-grid--three video:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
@media (max-width: 780px) {
  .aranza-case .specialist-case-heading { margin-bottom: 42px; }
  .aranza-intro { font-size: 14px; }
  .aranza-service-row,
  .aranza-service-row:has(.aranza-video-grid) { grid-template-columns: 1fr; gap: 26px; padding-top: 42px; }
  .aranza-service-copy h3 { font-size: 39px; }
  .aranza-image-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aranza-video-grid--three { grid-template-columns: 1fr; }
  .aranza-video-grid--two { grid-template-columns: 1fr; }
  .aranza-video-grid--three video:last-child { grid-column: auto; width: 100%; }
  .aranza-video-grid { width: calc(100vw - 32px); margin-left: 50%; transform: translateX(-50%); gap: 18px; }
  .aranza-video-grid video { aspect-ratio: auto; height: auto; background: transparent; border: 0; }
}

/* Keep every original video composition fully visible, without cropping. */
.aranza-video-grid--three,
.aranza-video-grid--two { grid-template-columns: 1fr; }
.aranza-video-grid--three video:last-child { grid-column: auto; width: 100%; }
.aranza-video-grid video { aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }

@media (max-width: 1024px) {
  .aranza-service-row,
  .aranza-service-row:has(.aranza-video-grid) { grid-template-columns: 1fr; gap: 26px; }
  .aranza-image-grid--four,
  .aranza-image-grid--six { grid-template-columns: 1fr; }
  .aranza-video-grid { width: 100%; margin-left: 0; transform: none; gap: 18px; }
  .aranza-video-grid video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border: 0; }
}

/* Desktop: one large portfolio example per row. */
@media (min-width: 1025px) {
  .aranza-image-grid--six { grid-template-columns: 1fr; }
  .aranza-service-row:has(.aranza-video-grid) {
    grid-template-columns: minmax(210px, .32fr) minmax(0, 1.68fr);
  }
  .aranza-video-grid--three,
  .aranza-video-grid--two { grid-template-columns: 1fr; }
  .aranza-video-grid video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
}

.services-catalogue-link {
  display: flex;
  width: fit-content;
  max-width: calc(100% - 36px);
  margin: 42px auto 0;
  text-align: center;
}
