@layer sections {
  body { font: 400 16px/1.5 var(--font-2); }
  .wrap { width: min(100% - 2 * var(--space-1), 1312px); margin-inline: auto; }
  .skip { position: fixed; z-index: 4; padding: 12px; background: white; transform: translateY(-150%); }
  .skip:focus { transform: none; }
  .nav { position: sticky; inset-block-start: 0; z-index: 3; background: var(--color-1); border-bottom: 1px solid var(--color-5); }
  .nav__bar, .footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .nav__bar { min-height: 76px; }
  .nav__brand { text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.065em; white-space: nowrap; }
  .nav__brand span { font-weight: 400; color: var(--color-3); }
  .nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); }
  .nav__links a, .footer a { text-decoration: none; }
  .nav__links a, .nav__toggle { display: flex; align-items: center; min-height: 44px; }
  .nav__toggle { display: none; }
  .nav__links a { position: relative; }
  .nav__links a::after { position: absolute; content: ""; inset: auto 0 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; }
  .nav__links a:is(:hover,:focus-visible,[aria-current])::after { transform: scaleX(1); transform-origin: left; }
  .nav__links a[aria-current] { text-shadow: .025em 0 currentColor; }
  .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .hero { padding-block: clamp(22px, 3vw, 44px) clamp(64px, 7.2vw, 104px); }
  .signature { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; min-height: clamp(450px, 43vw, 610px); padding-block: 32px 48px; }
  .signature::before { content: ""; position: absolute; z-index: -2; inset: calc(-1 * clamp(22px, 3vw, 44px)) 0 0; background: #f4f2eb; box-shadow: 0 0 0 100vmax #f4f2eb; clip-path: inset(0 -100vmax); }
  .signature__copy { position: relative; z-index: 1; }
  .hero__mark { display: block; font-size: clamp(56px, 9.75vw, 142px); letter-spacing: -.064em; line-height: .89; }
  .hero__line { display: block; overflow: clip; padding-block: .06em; margin-block: -.06em; }
  .hero__line > span { display: block; }
  .hero__line--studio { margin-top: .29em; font-size: .38em; letter-spacing: .13em; }
  .hero__role { max-width: 39ch; margin-block: clamp(20px, 2.4vw, 36px) 0; font-size: clamp(15px, 1.45vw, 21px); font-weight: 600; line-height: 1.35; }
  .hero__role span { display: inline-block; }
  .hummingbird { position: relative; width: 130%; margin-inline-start: -27%; overflow: clip; }
  .hummingbird__mask { position: relative; aspect-ratio: 16/9; overflow: clip; mask-image: radial-gradient(ellipse 50% 50%, #000 44%, transparent 100%); }
  @media (min-width: 761px) {
    .hummingbird__mask { mask-image: radial-gradient(ellipse 50% 50%, #000 44%, transparent 100%), linear-gradient(to right, transparent 16%, #000 31%); mask-composite: intersect; }
  }
  .hummingbird__media { position: absolute; inset: 0; }
  .hummingbird[data-landed] .hummingbird__media { mask-image: radial-gradient(ellipse 50% 50%, #000 66%, transparent 100%); }
  .hummingbird__media img, .hummingbird__video, .hummingbird__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hummingbird__video, .hummingbird__loop { opacity: 0; pointer-events: none; }
  .hummingbird[data-flight] .hummingbird__video { opacity: 1; }
  .hummingbird[data-loop]:not([data-flight]) .hummingbird__loop { opacity: 1; }
  .hummingbird:is([data-flight],[data-loop]) img { visibility: hidden; }
  .hummingbird__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #f4f2eb; }
  .hero__showreel { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 14px; border-block-end: 1px solid var(--color-5); }
  .hero__showreel-link { display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: 48px; color: inherit; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
  .hero__showreel-link:hover > span:last-child, .hero__showreel-link:focus-visible > span:last-child { text-decoration: underline; text-underline-offset: .35em; }
  .hero__showreel-thumb { display: grid; place-items: center; overflow: hidden; isolation: isolate; width: clamp(80px, 11vw, 156px); aspect-ratio: 16/9; background: var(--color-2); }
  .hero__showreel-thumb img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; }
  .hero__showreel-icon { grid-area: 1/1; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding-left: 2px; border: 1px solid #fff; border-radius: 50%; background: #10101088; color: #fff; }
  .motion-preference { min-height: 44px; text-align: right; color: var(--color-3); font-size: 12px; }
  .motion-preference[hidden] { display: none; }
  .film-control { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid #ffffff6b; background: #101010; color: #fff; text-decoration: none; }
  .film-control:hover { background: #292929; }
  .film-control[hidden] { display: none; }
  .showreel-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: clamp(12px, 2vw, 24px); border: 1px solid #515151; background: #101010; color: #fff; }
  .showreel-dialog::backdrop { background: #000c; }
  .showreel-dialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
  .showreel-dialog__bar h2 { font-size: 20px; font-weight: 500; }
  .showreel-dialog__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; }
  .hero__body { display: grid; gap: clamp(16px, 2.25vw, 32px); padding-top: 15px; }
  .hero__desc { max-width: 40ch; color: var(--color-3); font-size: clamp(15px, 1.3vw, 18px); }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .m-btn, .m-btn-2 { gap: 16px; }
  .band { scroll-margin-block-start: 78px; border-top: 1px solid var(--color-5); padding-block: clamp(54px, 7.5vw, 108px); }
  .section-title { font: 300 clamp(38px, 6.05vw, 88px)/.98 var(--font-1); letter-spacing: -.06em; }
  .works__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: clamp(42px, 6vw, 86px) clamp(14px, 2vw, 28px); margin-top: clamp(28px, 4.5vw, 64px); }
  .works__cell:nth-child(1), .works__cell:nth-child(6) { grid-column: span 7; }
  .works__cell:nth-child(2), .works__cell:nth-child(5) { grid-column: span 5; }
  .works__cell:nth-child(3) { grid-column: span 4; }
  .works__cell:nth-child(4) { grid-column: span 8; }
  .works__cell { border-bottom: 1px solid var(--color-5); min-width: 0; }
  .works__card { display: block; list-style: none; cursor: pointer; }
  .works__card::-webkit-details-marker { display: none; }
  .works__frame { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; background: #f2f2f2; }
  .works__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  #projeto-sp .works__frame img { object-position: center 62%; }
  #projeto-sp .works__frame, #projeto-cl9 .works__frame { aspect-ratio: 4/5; }
  #projeto-mercedes .works__frame { aspect-ratio: 1/1; }
  #projeto-reel .works__frame, #projeto-vivo .works__frame { aspect-ratio: 16/9; }
  #projeto-vivo .works__frame img { object-position: 43% center; }
  @media (min-width: 761px) {
    #projeto-sp, #projeto-diagnostico { margin-top: clamp(24px, 4vw, 60px); }
  }
  .works__caption { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 12px; padding: 12px 0 14px; }
  .works__meta { display: block; color: var(--color-3); margin-bottom: 5px; }
  .works__title { display: block; font-size: clamp(19px, 1.85vw, 27px); line-height: 1.12; letter-spacing: -.035em; }
  .works__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; font-size: 21px; }
  .works__icon::before { content: "+"; }
  .works__cell[open] .works__icon::before { content: "−"; }
  .works__card:hover .works__icon { border-color: var(--color-2); }
  #projeto-diagnostico .works__frame { background: #e9e8e5; }
  .works__panel { display: grid; gap: 16px; padding: 0 0 22px; }
  .works__panel p { max-width: 58ch; }
  .works__role, figcaption { color: var(--color-3); font-size: 14px; }
  .works__close, .media-button { min-height: 44px; text-align: left; justify-self: start; }
  .works__close { text-decoration: underline; text-underline-offset: 4px; }
  .works__close[hidden], .media-button[hidden] { display: none; }
  .player iframe, .works__panel video { display: block; width: 100%; border: 0; background: var(--color-2); }
  .player iframe { aspect-ratio: 16/9; }
  .works__panel video { max-height: 65vh; }
  .video-list { display: grid; gap: 12px; }
  .video-list > li { border-top: 1px solid var(--color-5); padding-top: 8px; }
  .video-list a, .works__panel > a { width: fit-content; }
  .gallery { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
  .gallery img { width: 100%; }
  figcaption { padding-top: 6px; }
  .method-cover { width: 100%; padding: 8%; display: grid; align-content: center; gap: 14px; }
  .method-cover__step { display: grid; grid-template-columns: 2.4em 1fr; border-top: 1px solid #bfbfbf; padding-top: 9px; font-size: clamp(17px, 2.5vw, 32px); line-height: 1.12; letter-spacing: -.035em; }
  .method-cover small { font-size: .55em; align-self: center; color: #545454; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .about__bio, .contact__intro { font-size: clamp(18px, 2vw, 28px); letter-spacing: -.025em; line-height: 1.35; }
  .timeline { margin-top: 32px; }
  .timeline li { padding: 14px 0; border-top: 1px solid var(--color-5); }
  .timeline strong { display: block; }
  .timeline span { color: var(--color-3); }
  .clients { margin-top: clamp(36px, 6vw, 85px); }
  .clients__grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 12px; }
  .clients__grid li { display: grid; place-items: center; border-top: 1px solid var(--color-5); border-inline-end: 1px solid var(--color-5); padding: 18px 12px; min-height: 96px; text-align: center; font-weight: 600; }
  .clients__grid li:nth-child(5n) { border-inline-end: 0; }
  .clients__grid img { width: auto; height: auto; max-width: min(100%, var(--logo-width, 116px)); max-height: var(--logo-height, 43px); object-fit: contain; filter: grayscale(1); }
  .clients__grid li[data-brand="sp"] { --logo-width: 146px; --logo-height: 46px; }
  .clients__grid li[data-brand="redbull"], .clients__grid li[data-brand="prudential"] { --logo-width: 136px; }
  .clients__grid li[data-brand="nestle"], .clients__grid li[data-brand="mercedes"] { --logo-height: 51px; }
  .clients__grid li[data-brand="vivo"] { --logo-height: 32px; }
  .clients__grid li:is([data-brand="ambev"], [data-brand="eneva"], [data-brand="vivo"], [data-brand="mercedes"]) img { filter: grayscale(1) invert(1); }
  .clients__grid li:nth-last-child(-n+5) { border-bottom: 1px solid var(--color-5); }
  .expertise__list { margin-top: clamp(26px, 4vw, 54px); }
  .expertise__list li { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--color-5); }
  .expertise__list li:last-child { border-bottom: 1px solid var(--color-5); }
  .expertise__list h3 { font-size: clamp(16px, 1.7vw, 24px); letter-spacing: -.025em; line-height: 1.18; }
  .expertise__list p { color: var(--color-3); }
  .contact { background: #101010; color: #fff; border-color: #101010; padding-block: clamp(70px, 10vw, 144px); }
  .contact .split { grid-template-columns: 1.25fr 1fr; align-items: end; }
  .section-title > span { display: block; }
  .contact .section-title { font-size: clamp(46px, 7.4vw, 108px); max-width: 9ch; }
  .contact__intro { color: #e3e3e3; max-width: 29ch; }
  .contact__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
  .contact__links a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
  .footer { background: #101010; color: #d4d4d4; }
  .footer__inner { border-top: 1px solid #424242; padding-block: 14px; flex-wrap: wrap; }
  .footer a { display: inline-flex; align-items: center; min-height: 44px; }
  @media (761px <= width <= 1000px) {
    .hummingbird { width: 125%; }
  }
  @media (max-width: 760px) {
    .nav__bar { min-height: 64px; flex-wrap: wrap; }
    .nav__links { gap: 12px 20px; flex-wrap: wrap; }
    .nav__bar[data-enhanced] .nav__toggle { display: flex; gap: 8px; }
    .nav__bar[data-enhanced] .nav__links { display: none; width: 100%; margin-top: -12px; padding-bottom: 8px; }
    .nav__bar[data-enhanced] .nav__toggle[aria-expanded="true"] + .nav__links { display: flex; }
    .signature { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 9px 22px; gap: 0; }
    .hummingbird { width: min(100%, 540px); justify-self: center; margin: 0; }
    .hero__mark { font-size: clamp(44px, 16.2vw, 104px); }
    .contact .split { grid-template-columns: 1fr; }
    .contact .section-title { max-width: none; }
    .split, .expertise__list li { grid-template-columns: 1fr; }
    .hero__actions a { padding-inline: 16px; }
    .works__grid { display: flex; flex-direction: column; align-items: stretch; gap: 34px; }
    #projeto-sp, #projeto-cl9, #projeto-mercedes { width: 90%; }
    #projeto-cl9 { align-self: end; }
    #projeto-diagnostico .works__frame { aspect-ratio: 3/2; }
    .expertise__list li { gap: 6px; }
    .clients__grid { grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--color-5); }
    .clients__grid li:nth-last-child(-n+5) { border-bottom: 0; }
    .clients__grid li:nth-child(5n) { border-inline-end: 1px solid var(--color-5); }
    .clients__grid li:nth-child(2n) { border-inline-end: 0; }
  }
}
@layer scenes {
  @media (prefers-reduced-motion: no-preference) {
    .hero__line > span { animation: type-in .88s cubic-bezier(.19,1,.22,1) both; }
    .hero__line:nth-child(2) > span { animation-delay: .14s; }
    .hero__line:nth-child(3) > span { animation-delay: .32s; }
    .hero__role span { animation: role-in .55s var(--delay, .24s) ease-out both; }
    .hero__role span:nth-child(2) { --delay: .31s; }
    .hero__role span:nth-child(3) { --delay: .38s; }
    .hero__role span:nth-child(4) { --delay: .45s; }
    .hero__desc { animation: copy-in .62s .48s ease-out both; }
    .hero__actions { animation: copy-in .66s .61s cubic-bezier(.19,1,.22,1) both; }
    .hero__actions:focus-within { animation: none; }
    .hummingbird[data-landed] .hummingbird__media { transform: translate3d(var(--bird-x, 0px), var(--bird-y, 0px), 0) rotate(var(--bird-rotation, 0deg)) scale(var(--bird-scale, 1)); animation: none; }
    .hero__showreel-thumb img, .hero__showreel-icon { transition: scale .42s cubic-bezier(.19,1,.22,1); }
    .hero__showreel-link:is(:hover,:focus-visible) img { scale: 1.08; }
    .hero__showreel-link:is(:hover,:focus-visible) .hero__showreel-icon { scale: 1.12; }
    .nav__links a::after { transition: transform .3s cubic-bezier(.2,.73,.25,1); }
    .nav__links a { transition: translate .25s ease; }
    .nav__links a:hover { translate: 0 -2px; }
    .hummingbird__media { animation: bird-in .8s cubic-bezier(.19,1,.22,1) both; }
    .works__card img { transition: scale .52s cubic-bezier(.19,1,.22,1); }
    .works__icon { transition: transform .3s ease, background-color .3s ease, color .3s ease; }
    .contact__links a { transition: transform .24s ease; }
    @media (hover: hover) {
      .works__card:hover img { scale: 1.065; }
      .works__card:hover .works__icon { transform: translate(3px,-3px); background: var(--color-2); color: #fff; }
      .contact__links a:hover { transform: translateY(-3px); }
    }
    @supports (interpolate-size: allow-keywords) and selector(::details-content) {
      .works__cell { interpolate-size: allow-keywords; }
      .works__cell::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size .38s cubic-bezier(.2,.65,.25,1), opacity .28s ease, content-visibility .38s allow-discrete; }
      .works__cell[open]::details-content { block-size: auto; opacity: 1; }
    }
    @supports not (interpolate-size: allow-keywords) {
      .works__cell[open] .works__panel { animation: copy-in .28s ease-out both; }
    }
    [data-reveal="heading"] span, .works__card[data-reveal] .works__frame, .contact [data-reveal] span { clip-path: inset(0); }
    [data-reveal="heading"] span, [data-reveal="copy"],
    .works__card[data-reveal] .works__frame, .works__card[data-reveal] .works__caption,
    .contact [data-reveal] span { transition: clip-path .8s cubic-bezier(.19,1,.22,1), transform .8s cubic-bezier(.19,1,.22,1), opacity .47s ease; }
    [data-reveal="heading"]:not([data-visible]):not(:focus-within) span { clip-path: inset(0 0 100%); transform: translateY(38px); }
    [data-reveal="copy"]:not([data-visible]):not(:focus-within) { transform: translateY(30px); }
    .about__bio > span { display: block; }
    .about__bio > span, .expertise__list li > * { transition: clip-path .75s cubic-bezier(.19,1,.22,1), transform .75s cubic-bezier(.19,1,.22,1); clip-path: inset(0); }
    .about__bio > span + span { margin-top: .46em; transition-delay: .13s; }
    .about__bio[data-reveal]:not([data-visible]) > span,
    .expertise__list li[data-reveal]:not([data-visible]) > * { clip-path: inset(0 0 100%); transform: translateY(24px); }
    .expertise__list li > p { transition-delay: .1s; }
    #works-title[data-reveal]:not([data-visible]):not(:focus-within) span { clip-path: inset(0 48% 100% 0); transform: translate(clamp(12px, 2vw, 40px), 33px); }
    .works__card[data-reveal]:not([data-visible]):not(:focus-within) .works__frame { clip-path: inset(0 0 88%); transform: scale(.955); }
    .works__cell:nth-child(even) .works__card[data-reveal]:not([data-visible]):not(:focus-within) .works__frame { clip-path: inset(0 76% 0 0); }
    .works__card[data-reveal]:not([data-visible]):not(:focus-within) .works__caption { opacity: 0; transform: translateY(17px); }
    .works__card[data-visible] .works__caption { transition-delay: .105s; }
    .contact [data-reveal] span:nth-child(2) { transition-delay: .13s; }
    .contact [data-reveal]:not([data-visible]):not(:focus-within) span { clip-path: inset(0 0 100%); transform: translateY(54px) scaleY(.86); }
    @supports (animation-timeline: view()) {
      .signature { view-timeline: --signature block; }
      .signature__copy { animation: copy-depth linear both; animation-timeline: --signature; animation-range: exit 0% exit 100%; }
      @media (min-width: 761px) {
        #projeto-sp .works__frame, #projeto-vivo .works__frame { view-timeline: --scene block; }
        #projeto-sp .works__frame img, #projeto-vivo .works__frame img { inset: -4% 0; height: 108%; animation: image-drift linear both; animation-timeline: --scene; animation-range: cover 0% cover 100%; }
      }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .m-btn::before, .m-btn-2::before, .m-link { transition: none; }
    .m-btn::before, .m-btn-2::before { display: none; }
  }
  @keyframes type-in { from { transform: translateY(112%) scaleY(.9); } to { transform: none; } }
  @keyframes role-in { from { clip-path: inset(0 100% 0 0); transform: translateY(7px); } to { clip-path: inset(0); transform: none; } }
  @keyframes copy-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
  @keyframes bird-in { from { opacity: .72; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes image-drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
  @keyframes copy-depth { from { translate: 0 0; } to { translate: 0 25px; } }
}

html[data-motion-paused] *,
html[data-motion-paused] *::before,
html[data-motion-paused] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-motion-paused] [data-reveal],
html[data-motion-paused] [data-reveal] * {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
}
html[data-motion-paused] .hummingbird__media { transform: none !important; }
