:root {
  --ink: #212933;
  --paper: #eee;
  --viewport-height: 100vh;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
@supports (height: 100dvh) { :root { --viewport-height: 100dvh; } }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { display: block; }
::selection { background: #b6d9e7; }
:focus-visible { outline: 2px solid #3185ae; outline-offset: 5px; }
#page {
  height: var(--viewport-height); overflow: auto; scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain; scrollbar-width: none;
  transition: transform .65s var(--ease);
}
#page::-webkit-scrollbar, .carousel::-webkit-scrollbar { display: none; }
body.modal-open #page { transform: scale(.985); }
.section { position: relative; width: 100%; height: var(--viewport-height); scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.hero { background: var(--paper); isolation: isolate; }
.site-header { position: absolute; z-index: 10; top: 5.35%; left: 5.55%; right: 5.55%; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.brand { display: flex; align-items: center; width: max-content; gap: 13px; text-decoration: none; }
.brand-mark { position: relative; display: block; width: 32px; height: 42px; }
.brand-mark img { position: absolute; width: 28.4px; height: 28.41px; }
.brand-mark img:first-child { top: 0; left: 3px; }
.brand-mark img:last-child { bottom: 0; left: 0; }
.brand-wordmark { width: 82.455px; height: 30.304px; }
.header-label { text-align: center; font: 400 15px/1.2 'Azeret Mono', monospace; text-transform: uppercase; letter-spacing: .16em; white-space: nowrap; }
.cv-link { position: relative; justify-self: end; width: 76px; height: 34px; border: 1.5px solid var(--ink); border-radius: 30px; display: grid; place-items: center; text-decoration: none; font: 600 16px/1 Gabarito, sans-serif; letter-spacing: 3px; padding-left: 3px; transition: background .3s, color .3s, transform .4s var(--ease); }
.cv-link::after { content: ''; position: absolute; inset: -5px 0; }
.cv-link:hover { background: var(--ink); color: #fafafa; transform: translateY(-2px); }
.cv-link:active { transform: scale(.97); }
.hero-stage { position: absolute; width: 1440px; height: 1027px; left: 50%; bottom: 0; transform: translateX(-50%) scale(var(--hero-scale, 1)); transform-origin: center bottom; }
.hero-copy { position: absolute; margin: 0; font: 600 163.854px/1.2 Gabarito, sans-serif; white-space: nowrap; padding-bottom: .07em; }
.hero-copy > span { display: block; overflow: hidden; padding: .02em .03em .06em 0; }
.hero-copy .letter { display: inline-block; will-change: transform; }
.hero-line-one { left: 108px; top: 244.49px; z-index: 1; }
.hero-line-two { left: 813.18px; top: 685px; z-index: 2; }
.portrait-depth { position: absolute; z-index: 3; width: 994.642px; height: 715.056px; left: 223px; bottom: 0; transform: translate(var(--portrait-x, 0px), var(--portrait-y, 0px)); }
.portrait-breathe { width: 100%; height: 100%; transform-origin: 50% 100%; animation: breathe 9s ease-in-out 1.6s infinite; }
.hero-portrait { width: 100%; height: 100%; animation: portrait-reveal 1.4s var(--ease) both; }
.thought-depth { position: absolute; z-index: 2; left: 859px; top: 149px; width: 710.317px; height: 442px; transform: translate(var(--thought-x, 0px), var(--thought-y, 0px)); }
.thought-bubble { width: 100%; height: 100%; position: relative; -webkit-mask: url('/assets/main/684c2.svg') center/100% 100% no-repeat; mask: url('/assets/main/684c2.svg') center/100% 100% no-repeat; transform-origin: 9% 94%; animation: thought-reveal 1.3s var(--ease) .62s both; }
.thought-bubble video { position: absolute; width: 784px; height: 441px; left: -44px; top: 0; object-fit: cover; }
.thought-sheen { position: absolute; inset: 0; background: linear-gradient(125deg, #ffffff15, transparent 45%, #1025380b); pointer-events: none; }
.thought-puffs { position: absolute; z-index: 4; left: 896.158px; top: 576.04px; width: 148.521px; height: 101.531px; -webkit-mask: url('/assets/main/bce45.svg') center/100% 100% no-repeat; mask: url('/assets/main/bce45.svg') center/100% 100% no-repeat; transform-origin: 0 100%; animation: puff-reveal .85s var(--ease) .35s both; }
.thought-puffs video { position: absolute; width: 784px; height: 441px; left: -154.211px; top: -103.04px; object-fit: cover; }
@keyframes portrait-reveal { from { opacity: 0; transform: translateY(18px) scale(1.012); } to { opacity: 1; transform: none; } }
@keyframes thought-reveal { from { opacity: 0; transform: translate(-24px, 28px) scale(.84); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes puff-reveal { from { opacity: 0; transform: scale(.72); clip-path: inset(100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.006); } }
.hero:not(.is-active) .portrait-breathe { animation-play-state: paused; }
.work-section { background: #fafafa; --card-height: min(calc(var(--viewport-height) * .5986), 613px, 68.4vw); --gutter: 10vw; }
.is-grey { background: var(--paper); }
.work-section h2 { position: absolute; left: var(--gutter); top: 12.3%; margin: 0; font: 600 clamp(28px, 2.92vw, 42.021px)/.95 Gabarito, sans-serif; }
#branding h2 { top: 14.06%; }
.carousel-wrap { position: absolute; top: 23.92%; left: 0; right: 0; height: var(--card-height); }
.carousel { position: relative; display: flex; gap: calc(var(--card-height) * .06705); height: 100%; padding: 0 var(--gutter); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; user-select: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scroll-behavior: smooth; }
.carousel:after { content: ''; flex: 0 0 max(0px, calc(100vw - 2 * var(--gutter) - var(--card-height) * 1.20542)); pointer-events: none; }
.carousel.dragging, .carousel.dragging .project-card { cursor: grabbing; }
.carousel.dragging, .carousel.settling { scroll-snap-type: none; scroll-behavior: auto; }
.project-card { position: relative; flex: 0 0 auto; width: calc(var(--card-height) * 1.13837); height: 100%; padding: 0; border: 0; border-radius: calc(var(--card-height) * .06713); overflow: hidden; isolation: isolate; background: #d9dfe5; color: white; text-align: left; cursor: pointer; scroll-snap-align: start; scroll-snap-stop: always; }
.project-card:after { content: ''; position: absolute; z-index: 4; inset: 0; border: 1px solid #ffffff18; border-radius: inherit; pointer-events: none; transition: border-color .35s; }
.project-card:focus-visible { outline-offset: -4px; }
.mobile-card-sky, .mobile-title-break, .card-tint { display: none; }
.card-picture { display: contents; }
.card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card-overlay { position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; width: 31.08%; background: var(--overlay); backdrop-filter: blur(15.5px); -webkit-backdrop-filter: blur(15.5px); }
.card-caption { position: absolute; z-index: 3; left: 74%; right: 3.2%; bottom: 5.3%; display: flex; flex-direction: column; gap: calc(var(--card-height) * .01594); pointer-events: none; transition: transform .7s var(--ease); }
.card-company { font: 400 clamp(9px, calc(var(--card-height) * .01901), 11.67px)/1.25 'Azeret Mono', monospace; text-transform: uppercase; }
.card-title { font: 600 clamp(18px, calc(var(--card-height) * .03998), 24.507px)/1 Gabarito, sans-serif; }
.card-bullets { display: flex; flex-direction: column; gap: calc(var(--card-height) * .01651); margin-top: calc(var(--card-height) * .01594); font: 400 clamp(11px, calc(var(--card-height) * .02307), 14.149px)/1.2 Inter, sans-serif; white-space: nowrap; }
@media(hover: hover) and (pointer: fine) {
  .carousel:not(.dragging) .project-card:hover .card-caption { transform: translateY(-3px); }
  .project-card:hover:after { border-color: #ffffff45; }
}
.footer { background: var(--ink); color: #fafafa; display: grid; place-items: center; }
.footer-inner { width: min(1138px, 79vw); display: grid; grid-template-columns: 260px 1fr 1fr; gap: 48px 40px; align-items: start; }
.footer-brand { display: flex; gap: 27px; align-items: center; }
.footer-symbol { position: relative; width: 51px; height: 66px; flex-shrink: 0; }
.footer-symbol img { position: absolute; width: 45.68px; height: 45.7px; }
.footer-symbol img:first-child { top: 0; left: 5px; }
.footer-symbol img:last-child { bottom: 0; left: 0; }
.footer-brand > img { width: 132.622px; height: 48.742px; }
.footer-contact { grid-column: 2/4; display: flex; justify-content: space-between; gap: 20px; align-self: center; }
.footer-contact a { text-decoration: none; font: 400 clamp(16px, 1.6vw, 23px)/1.55 Inter, sans-serif; text-underline-offset: 5px; }
.footer-contact a:hover { text-decoration: underline; }
.footer-note { grid-column: 1/-1; margin: 28px 0 0; font: 400 14px/1.6 Inter, sans-serif; }
/* Project stage. Device PNGs have real transparency; shadows follow the silhouette. */
#project-dialog { --modal-gutter: clamp(24px, 4vw, 64px); width: min(1120px, calc(100vw - 64px)); max-width: none; height: min(920px, calc(var(--viewport-height) - 64px)); max-height: calc(var(--viewport-height) - 64px); margin: auto; padding: 0; border: 1px solid #ffffff75; border-radius: 30px; background: #eee; color: var(--ink); overflow: hidden; box-shadow: 0 40px 110px #0b14252e, 0 8px 30px #0b142514; }
#project-dialog::backdrop { background: #17212d8c; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: backdrop-in .55s var(--ease) both; }
#project-dialog.closing::backdrop { animation: backdrop-out .28s ease both; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
#dialog-content { height: 100%; }
.detail-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #aeb3b7 transparent; scrollbar-gutter: stable; }
.detail-header { position: sticky; z-index: 5; top: 0; padding: 30px 96px 28px; min-height: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; background: #eeeeeef5; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.detail-header:after { content: ''; position: absolute; bottom: 0; left: 40px; right: 40px; height: 1px; background: #2129330d; opacity: 0; transition: opacity .3s; }
.detail-scroll.has-scrolled .detail-header:after { opacity: 1; }
.detail-header .company { font: 400 11px/1.4 'Azeret Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.detail-header h2 { max-width: 780px; margin: 0; font: 600 clamp(28px, 3vw, 40px)/1.05 Gabarito, sans-serif; letter-spacing: -.025em; text-wrap: balance; }
.modal-close { position: absolute; z-index: 9; right: 26px; top: 26px; width: 44px; height: 44px; padding: 0; border: 1px solid #21293312; border-radius: 50%; background: #ffffffa6; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.modal-close svg { width: 18px; height: 18px; display: block; }
.modal-close:hover { background: #fff; border-color: #21293329; transform: scale(1.06); box-shadow: 0 3px 12px #1420310a; }
.modal-close:active { transform: scale(.94); }
.modal-close:focus-visible { outline-offset: 4px; }
.detail-gallery { width: min(860px, calc(100% - 2 * var(--modal-gutter))); margin: 32px auto 64px; display: flex; flex-direction: column; gap: clamp(48px, 7vh, 88px); align-items: center; }
.media-row { width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: clamp(28px, 5vw, 76px); }
.mockup { margin: 0; flex: 0 1 auto; min-width: 0; }
.mockup.phone { width: min(36%, calc((var(--viewport-height) - 290px) * .482), 286px); }
.mockup.desktop { width: 100%; }
.mockup img { width: 100%; height: auto; object-fit: contain; }
.mockup.phone img { filter: drop-shadow(0 8px 8px #18243109) drop-shadow(0 20px 25px #1824310d); }
.mockup.desktop img { filter: drop-shadow(0 12px 20px #1824310b); }
.detail-gallery .guideline { width: 100%; height: auto; border-radius: 16px; }
.detail-gallery.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 70px; padding: 15px 0; }
.logo-grid img { width: 100%; max-height: 280px; height: auto; object-fit: contain; }
.gallery-reveal { opacity: 1; transform: none; }
.motion-ready .gallery-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .85s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .gallery-reveal.revealed { opacity: 1; transform: none; }
.image-size#project-dialog { width: min(932px, calc(100vw - 64px), calc((var(--viewport-height) - 64px) * 1.13837)); height: auto; aspect-ratio: 697.823/613; border: 0; }
.image-dialog { position: relative; width: 100%; height: 100%; overflow: hidden; background: #202832; }
.image-dialog .image-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-dialog .modal-close { background: #f7f9fbcf; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: #ffffff80; }
.image-dialog .bottom-blur { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; min-height: 112px; background: var(--overlay); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; gap: 9px; padding: 24px 40px; }
.bottom-blur .company { font: 400 10px/1.4 'Azeret Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.bottom-blur .title { font: 600 clamp(22px, 2.2vw, 30px)/1.08 Gabarito, sans-serif; text-wrap: balance; }
/* Artwork-only Figma frames keep their complete composition above the caption. */
#project-dialog.framed-size { --frame-margin: 64px; --frame-margin-inline: 144px; --frame-caption: 112px; aspect-ratio: auto; border-radius: 24px; overflow: visible; background: transparent; }
#project-dialog.image-size.framed-size { --frame-width: min(932px, calc(100vw - var(--frame-margin-inline)), calc((var(--viewport-height) - var(--frame-margin) - var(--frame-caption)) * var(--image-ratio))); width: var(--frame-width); height: calc(var(--frame-width) / var(--image-ratio) + var(--frame-caption)); }
.framed-size #dialog-content { height: auto; }
.framed-size .modal-close { top: 0; right: -60px; background: #ffffffe6; }
.framed-dialog { height: auto; border-radius: 24px; background: var(--modal-poster) center / cover; }
.framed-art-window { width: 100%; aspect-ratio: var(--image-ratio); overflow: hidden; background: #fff; }
.framed-art { display: block; width: 100%; height: auto; }
.image-dialog.framed-dialog .bottom-blur { position: relative; height: var(--frame-caption); min-height: var(--frame-caption); padding: 16px 18px; gap: 8px; }
.framed-dialog .bottom-blur .title { font-size: clamp(21px, 2vw, 26px); line-height: 1.08; }
@media(max-width:1000px) and (min-width:601px) and (min-height:850px) {
  .hero-stage { width: 100%; height: 100%; left: 0; transform: none; }
  .hero-copy { font-size: 13.5vw; }
  .hero-line-one { left: 7%; top: 24%; }
  .hero-line-two { left: auto; right: 5%; top: auto; bottom: 1.5%; z-index: 5; }
  .portrait-depth { width: 100vw; height: 71.89vw; left: 0; }
  .thought-depth { left: 62%; top: 35%; width: 54vw; height: 33.6vw; }
  .thought-bubble video { width: 59.6vw; height: 33.55vw; left: -3.35vw; }
  .thought-puffs { left: 66%; top: calc(35% + 32.5vw); width: 11.29vw; height: 7.72vw; }
  .thought-puffs video { width: 59.6vw; height: 33.55vw; left: -11.73vw; top: -7.84vw; }
}
@media(max-width:900px) {
  .header-label { font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-contact { grid-column: 1; flex-wrap: wrap; gap: 16px; }
  .footer-note { margin: 0; }
}
@media(max-width:600px) and (orientation:portrait) {
  .hero { --hero-unit: min(calc(100vw / 440), calc(var(--viewport-height) / 956)); }
  .site-header { left: 8.636%; right: 5.227%; top: calc(max(0px, env(safe-area-inset-top)) + 16.591vw); height: 10.83vw; grid-template-columns: 1fr auto; }
  .brand { gap: 4.568vw; }
  .brand-mark { width: 8.263vw; height: 10.83vw; transform: none; }
  .brand-mark img { width: 7.479vw; height: 7.481vw; }
  .brand-mark img:first-child { left: .784vw; }
  .brand-wordmark { width: 21.713vw; height: 7.98vw; }
  .header-label { display: grid; place-items: center; position: absolute; left: -8.636vw; right: -5.227vw; top: -16.591vw; height: 10.455vw; min-height: 36px; margin-top: calc(-1 * env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); box-sizing: content-box; background: var(--ink); color: var(--paper); font: 600 clamp(11px, 3.019vw, 15px)/1 Gabarito, sans-serif; letter-spacing: .255em; }
  .cv-link { width: 22.273vw; height: 7.756vw; min-height: 30px; font-size: 4.182vw; letter-spacing: 1.22vw; padding-left: 1.22vw; border-width: 1.75px; align-self: start; margin-top: 1.082vw; }
  .cv-link::after { inset: -8px 0; }
  .hero-stage { width: 100%; height: 100%; left: 0; transform: none; }
  .hero-copy { font-size: 17.99vw; line-height: 1.2; }
  .hero-copy > span { padding: 0; }
  .hero-line-one { left: 18.409%; top: 73.4726%; z-index: 1; }
  .hero-line-two { left: 31.298%; top: 81.2208%; bottom: auto; z-index: 2; }
  .hero-line-two .letter:first-child { text-transform: uppercase; }
  .portrait-depth { width: calc(837.205 * var(--hero-unit)); height: calc(601.873 * var(--hero-unit)); left: calc(-430.322 * var(--hero-unit)); bottom: 0; }
  .portrait-breathe { transform-origin: 60% 100%; }
  .thought-depth { left: 12.5%; right: auto; top: 18.306%; bottom: auto; width: calc(528.72 * var(--hero-unit)); height: calc(329 * var(--hero-unit)); }
  .thought-bubble { -webkit-mask-image: url('/assets/mobile/thought.svg'); mask-image: url('/assets/mobile/thought.svg'); transform-origin: 25% 100%; }
  .thought-bubble video { width: calc(583.566 * var(--hero-unit)); height: calc(328.256 * var(--hero-unit)); left: calc(-32.751 * var(--hero-unit)); }
  .thought-puffs { left: calc(126 * var(--hero-unit)); top: 59.3209%; bottom: auto; width: calc(106.761 * var(--hero-unit)); height: calc(86.033 * var(--hero-unit)); rotate: -24.359deg; transform-origin: 0 0; -webkit-mask-image: url('/assets/mobile/puffs.svg'); mask-image: url('/assets/mobile/puffs.svg'); }
  .thought-puffs video { width: calc(830.059 * var(--hero-unit)); height: calc(466.908 * var(--hero-unit)); left: calc(-207.142 * var(--hero-unit)); top: calc(-324.35 * var(--hero-unit)); }
  .work-section { --gutter: 10vw; --card-width: min(73.864vw, calc(var(--viewport-height) * .64 * .609756)); --card-height: calc(var(--card-width) * 1.64); }
  .work-section h2, #branding h2 { left: var(--gutter); top: 11.82%; width: 75.68%; font-size: 10.744vw; line-height: .95; }
  .carousel-wrap { top: 26.569%; }
  .carousel { gap: 6.054vw; }
  .carousel:after { display: block; flex: 0 0 calc(100vw - 2 * var(--gutter) - var(--card-width) - 6.054vw); }
  .project-card { width: var(--card-width); border-radius: calc(var(--card-width) * .08206); background: #263243; }
  .card-art { object-position: 40% center; transform: none !important; }
  .card-overlay { top: auto; left: 0; bottom: 0; width: 100%; height: var(--caption-height, 28.303%); background: var(--mobile-overlay, var(--overlay)); -webkit-backdrop-filter: blur(10.059px); backdrop-filter: blur(10.059px); }
  .card-tint { display: block; position: absolute; z-index: 1; inset: auto 0 0; height: var(--caption-height, 28.303%); background: var(--mobile-tint, transparent); mix-blend-mode: overlay; pointer-events: none; }
  .card-caption { inset: auto 0 0; min-height: 28.303%; padding: calc(var(--card-width) * .1169); gap: 9px; color: #fff; -webkit-text-fill-color: #fff; transform: none !important; }
  .card-company { display: block; font-size: max(11px, calc(var(--card-width) * .03818)); line-height: 1.15; }
  .card-title { display: block; max-width: calc(var(--card-width) * .673846); font-size: max(22px, calc(var(--card-width) * .080166)); line-height: .95; }
  [data-project="bingo"] .card-company, [data-project="horses"] .card-company, [data-project="ccp"] .card-company { text-transform: none; }
  .card-bullets { display: none; }
  .mobile-title-break { display: initial; }
  .mobile-card-sky { display: block; position: absolute; width: 462.95%; height: 117.43%; left: -229.615%; top: -14.89%; max-width: none; pointer-events: none; }
  [data-project="at-guidelines"] { --mobile-overlay: rgba(21, 28, 83, .2); --mobile-tint: rgba(156, 165, 237, .55); }
  [data-project="at-guidelines"] .card-art { inset: auto; left: -57.231%; top: -14.045%; width: 212.308%; height: 115.947%; }
  [data-project="at-pass"] { --mobile-tint: rgba(164, 205, 255, .52); }
  [data-project="bingo"] { --mobile-overlay: rgba(76, 33, 140, .45); --mobile-tint: #c18fe8; }
  [data-project="at-pass"] .card-art { inset: auto; left: -10.658%; top: -2.251%; width: 121.231%; height: auto; aspect-ratio: 1; }
  [data-project="bingo"] .card-art { inset: auto; left: -101.622%; top: -15.947%; width: 284%; height: 117.824%; }
  [data-project="pass-motion"] .card-art { object-position: 50% center; }
  .footer-inner { width: 85%; display: flex; flex-direction: column; gap: 35px; }
  .footer-contact { flex-direction: column; gap: 8px; }
  .footer-contact a { font-size: 17px; }
  .footer-note { font-size: 12px; }
  #project-dialog { --modal-gutter: 20px; width: calc(100vw - 20px); height: calc(var(--viewport-height) - 32px); max-height: calc(var(--viewport-height) - 32px); border-radius: 23px; }
  .detail-header { min-height: 118px; padding: 25px 56px 22px 22px; gap: 9px; text-align: left; align-items: flex-start; }
  .detail-header .company { font-size: 9px; letter-spacing: .07em; }
  .detail-header h2 { font-size: 28px; }
  .detail-header:after { left: 20px; right: 20px; }
  .modal-close { top: 16px; right: 14px; width: 38px; height: 38px; }
  .modal-close svg { width: 16px; height: 16px; }
  .detail-gallery { margin-top: 26px; margin-bottom: 42px; gap: 38px; }
  .media-row { gap: 18px; }
  .mockup.phone { width: calc(50% - 9px); }
  .mockup.phone:only-child { width: 65%; }
  .detail-gallery.logo-grid { gap: 30px 22px; }
  .image-size#project-dialog { width: min(calc(100vw - 20px), calc((var(--viewport-height) - 32px) * 1.13837)); }
  #project-dialog.framed-size { --frame-margin: 112px; --frame-margin-inline: 32px; }
  .framed-size .modal-close { top: -48px; right: 0; }
  .image-dialog .bottom-blur { min-height: 94px; padding: 18px 22px; }
  .bottom-blur .company { font-size: 9px; }
  .bottom-blur .title { font-size: 23px; }
}
@supports (height: 100svh) {
  @media(max-width:600px) { :root { --viewport-height: 100svh; } }
}
@media(max-height:550px) and (orientation:landscape) {
  .work-section { --card-height: calc(var(--viewport-height) * .65); }
  .work-section h2, #branding h2 { top: 10%; font-size: 27px; }
  .card-overlay { width: 40%; }
  .card-caption { left: 65%; right: 4%; gap: 5px; }
  .card-title { font-size: 15px; }
  .card-company { font-size: 8px; }
  .card-bullets { font-size: 9px; gap: 4px; margin-top: 4px; }
  .detail-header { min-height: 90px; padding: 18px 82px; gap: 7px; }
  .detail-header h2 { font-size: 28px; }
  .mockup.phone { width: min(35%, 190px); }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-ready .gallery-reveal { opacity: 1; transform: none; }
  body.modal-open #page { transform: none; }
}
