:root {
  color-scheme: light;
  --paper: #f9f9f7;
  --ink: #242421;
  --muted: #55554e;
  --rule: #d5d5cf;
  --gutter: clamp(20px, 5.55vw, 84px);
  --gap: clamp(56px, 8vw, 120px);
  --grid-gap: clamp(10px, 1.6vw, 22px);
  --type-title: clamp(33px, 4vw, 54px);
  --type-section: clamp(24px, 2.8vw, 34px);
  --type-body: 16px;
  --type-label: 14px;
  --type-caption: 13px;
  --speed: 160ms;
  font-family: "Google Sans Flex", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { font-size: var(--type-body); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(calc(100% - var(--gutter) * 2), 1280px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 8px 16px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 1; background: var(--paper); }
#main, #work { scroll-margin-top: 104px; }
.masthead { display: flex; justify-content: space-between; gap: 12px 24px; align-items: start; padding-block: clamp(18px, 3vh, 32px) 20px; }
.masthead-project { justify-content: flex-start; align-items: baseline; flex-wrap: wrap; row-gap: 5px; }
.masthead .name { display: block; font-size: 14px; font-weight: 600; line-height: 1.15; transition: color var(--speed) ease; }
.masthead .name:hover { color: var(--muted); text-decoration: none; }
.masthead-home .name { font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0 .55em; color: var(--muted); font-size: 13px; }
.breadcrumbs [aria-current] { color: var(--ink); }
.role { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.intro { font-size: clamp(16px, 2vw, 19px); font-weight: 400; color: var(--muted); padding-block: 26px 65px; text-wrap: balance; }
.cover { display: block; width: min(calc(100% - var(--gutter) * 2), 1120px); margin-block-end: var(--gap); margin-inline: max(var(--gutter), calc((100% - 1280px) / 2)) auto; }
.cover > span { display: inline-block; margin-top: 13px; font-weight: 500; }
.cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.cover-inbox-studio { width: min(100%, 1600px); margin-inline: auto; }
.cover-inbox-studio > span { margin-inline: var(--gutter); }
.cover-optimism { margin-inline: auto max(var(--gutter), calc((100% - 1280px) / 2)); width: min(calc(100% - var(--gutter) * 2), 1060px); }
.cover-optimism img, .hero.wordmark img { background: #0d1222; object-fit: contain; padding: 15%; }
.project-title { padding-block: clamp(38px, 6vw, 90px) clamp(28px, 5vw, 68px); }
h1, h2, h3 { font-weight: 500; line-height: 1.17; text-wrap: balance; }
.project-title h1 { font-size: var(--type-title); letter-spacing: -.035em; }
.project-title p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero.wordmark img { aspect-ratio: 3.9 / 1; padding: 6% 25%; }
.chapter { margin-top: var(--gap); }
.chapter h2 { font-size: var(--type-section); letter-spacing: -.025em; margin-bottom: 19px; }
.chapter p { max-width: 62ch; color: var(--muted); }
.chapter p + img, .chapter p + .gallery, .chapter h2 + img, .chapter h2 + .gallery { margin-top: 26px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start; }
.gallery + .gallery { margin-top: var(--grid-gap); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.programs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.phones { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; }
.phones img { aspect-ratio: 1 / 2; object-fit: contain; }
figcaption { margin-top: 9px; font-size: var(--type-caption); color: var(--muted); text-align: center; }
.brand { background: #f0f0ed; margin-top: 30px; padding: clamp(14px, 2.7vw, 38px); }
.brand + .brand { margin-top: clamp(28px, 4vw, 56px); }
.brand h3 { font-size: 16px; margin-bottom: 20px; }
.brand img { width: min(100%, 1050px); margin-inline: auto; }
.brand + .brand img { width: min(100%, 920px); }
.project-website { margin-top: var(--gap); padding-top: 15px; font-size: 14px; }
.site-footer { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--rule); padding-block: 12px 26px; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px clamp(16px, 4vw, 68px); }
.site-footer [aria-current] { color: var(--ink); }
.about-page > p { max-width: 58ch; }
@media (max-width: 600px) {
  .intro { padding-block: 15px 40px; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
  .optimism-breathwork { grid-template-columns: minmax(0, 1fr); }
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .optimism-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
  .optimism-social > .gallery { display: contents; }
  .cover img { aspect-ratio: 4 / 3; }
  .cover-inbox-studio img { object-fit: contain; background: #080b13; aspect-ratio: 16 / 9; }
}

/* Shared editorial patterns */
.full { grid-template-columns: minmax(0, 1fr); }
.split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; }
.inline-link { text-decoration: underline; text-underline-offset: .2em; }
.inline-link:hover { text-decoration-thickness: 2px; }
.button { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; border: 1px solid var(--rule); padding: 8px 15px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.button:hover { border-color: var(--ink); text-decoration: none; }
.cover { text-decoration: none; }
.cover:hover { text-decoration: none; }
.cover:hover > span { text-decoration: underline; text-underline-offset: .25em; }
.cover img { transition: opacity var(--speed) ease; }
.cover:hover img { opacity: .94; }
@media (max-width: 600px) {
  .split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cover img { transition: none; }
}

/* Homepage covers */
.home .intro { padding-block: 6px clamp(16px, 3vh, 28px); }
.inbox-home-hero {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 2vw, 33px);
  height: 82vh;
  height: 82svh;
  padding-inline: var(--gutter);
  background: #0d1222 url("assets/home-inbox-gradient.jpg") center / cover no-repeat;
}
@media (min-width: 701px) {
  .home .inbox-home-hero {
    height: min(82vh, calc(100vh - 136px));
    height: min(82svh, calc(100svh - 136px));
  }
  .masthead .tagline span { display: block; }
  .masthead-home .tagline { transform: translate(12px, -4px); }
}
.inbox-home-hero img {
  width: clamp(13px, 2.8vw, 39px);
  height: clamp(15px, 2.8vw, 37px);
  aspect-ratio: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .inbox-home-hero img {
    animation: inbox-mark-reveal 1120ms ease-out both;
    animation-delay: calc(180ms + var(--mark-index) * 125ms);
  }
}
@keyframes inbox-mark-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cover-optimism img { padding: 0; }
.home .cover:not(.cover-inbox-studio) img { aspect-ratio: auto; }
.masthead .role { margin-top: 1px; line-height: 1.2; }
.masthead .tagline { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.35; text-align: right; }
.cover-exhibitions figcaption {
  margin-top: 13px;
  color: var(--ink);
  text-align: left;
  font-size: inherit;
  font-weight: 500;
}
@media (max-width: 700px) {
  .masthead-home {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-block: clamp(20px, 3vh, 28px) 30px;
  }
  .masthead-home .name { font-size: 15px; }
  .masthead-home .tagline { width: min(100%, 314px); font-size: 12px; text-align: left; }
  .inbox-home-hero {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: 74.4vh;
    height: 74.4svh;
    column-gap: 0;
    row-gap: clamp(38px, calc(13svh - 30px), 110px);
    padding-inline: 13%;
  }
  .inbox-home-hero img {
    background: transparent;
    justify-self: center;
    width: clamp(20px, 6.3vw, 36px);
    height: 30px;
  }
  .inbox-home-hero img:last-child { display: none; }
}

.home .cover { margin-block-end: clamp(68px, 10vw, 144px); }
.home .cover:not(.cover-inbox-studio) { width: min(calc(100% - var(--gutter) * 2), 1136px); margin-inline: auto; }
.home .cover-caption { margin-top: 12px; text-align: left; font-size: 16px; font-weight: 500; line-height: 1.35; }
.home .cover-caption p { margin-top: 3px; color: var(--muted); font-size: 14px; font-weight: 400; }
.cover-inbox-studio .cover-caption { margin-inline: var(--gutter); }
.cover-caption span[aria-hidden] { color: var(--muted); margin-left: .15em; }
.cover:is(:hover, :focus-visible) .cover-caption > span { text-decoration: underline; text-underline-offset: .25em; }
figure.cover:hover img { opacity: 1; }
.inbox-context p + p { margin-top: 14px; }
.brand-note { margin: 18px auto 0; }
@media (prefers-reduced-motion: no-preference) {
  .phones img { transition: opacity 550ms ease-out, transform 550ms ease-out; }
  .phones .phone-pending img { opacity: 0; transform: translateY(7px); }
}
.brand-scroller { border-top: 1px solid var(--rule); padding-top: clamp(24px, 4vw, 46px); }
.scroller-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.scroller-heading h2 { margin: 0; }
.scroller-controls:not([hidden]) { display: flex; gap: 4px; }
.scroller-controls button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.scroller-controls button:hover:not(:disabled) { background: #ecece7; }
.scroller-controls button:disabled { opacity: .36; cursor: default; }
.scroller-controls button:focus-visible, .brand-track:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.brand-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, clamp(264px, 28vw, 340px)); gap: var(--grid-gap); margin: 0; padding: 0 0 16px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #96968e transparent; scrollbar-width: thin; }
.brand-card { display: flex; flex-direction: column; scroll-snap-align: start; aspect-ratio: 4 / 5; padding: 22px; border: 1px solid #afafa7; border-radius: 6px; background: #eeeee9; }
.brand-card-mark { display: flex; align-items: center; height: 52px; margin-bottom: 36px; }
.brand-card-mark img { width: 46px; height: 42px; object-fit: contain; object-position: left center; filter: invert(1); mix-blend-mode: multiply; }
.brand-card h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 650; line-height: 1.15; letter-spacing: -.025em; text-wrap: initial; }
.brand-card p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 8px; }
.brand-card .brand-stat { margin-top: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.brand-card-links { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; margin-top: auto; padding-top: 23px; }
.brand-card-links::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--ink); }
.brand-card-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: -12px; color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; }
.brand-scroller .brand-scroller-source {
  margin-top: 12px;
  font-size: var(--type-caption);
}

.brand-gallery-module h3 { margin-bottom: 0; }
.brand-gallery-intro { margin-bottom: clamp(22px, 3vw, 38px); }
.brand .brand-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;
}
.brand-gallery picture { display: block; }
.brand .brand-gallery img { width: 100%; margin: 0; }
.brand-tile--lead { grid-column: span 7; aspect-ratio: 3 / 2; background: #000; }
.brand-tile--wordmark { grid-column: span 5; align-self: end; }
.brand-tile--wide { grid-column: 1 / -1; }
.brand-tile--half { grid-column: span 6; }
.nice-news-social, .passport-mask-grid { display: grid; gap: calc(var(--grid-gap) * .45); }
.nice-news-social { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.passport-mask-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gap); justify-items: center; align-items: start; padding-block: var(--grid-gap); }
.brand .passport-mask-grid img { width: 60%; }
.passport-photo-grid, .passport-campaign-grid { gap: calc(var(--grid-gap) * .55); }
.brand-gallery .passport-photo-grid img { aspect-ratio: 3 / 2; object-fit: cover; }
.brand-gallery .passport-campaign-grid img { aspect-ratio: 77 / 100; object-fit: cover; }
#daily-passport .brand-tile--lead { aspect-ratio: auto; }
#daily-passport .brand-tile--half img { aspect-ratio: 1; object-fit: cover; }
@media (min-width: 601px) {
  .passport-campaign-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.brand-tile--portrait { grid-column: 1 / span 4; }
.brand-tile--campaign { grid-column: 5 / -1; align-self: end; }
.brand-tile--detail { grid-column: 1 / span 5; }
.brand-tile--paired { grid-column: 6 / -1; align-self: end; }
@media (max-width: 600px) {
  .brand .brand-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-gallery .brand-tile { grid-column: 1 / -1; }
  .brand-gallery .brand-tile--half,
  .brand-gallery .brand-tile--portrait,
  .brand-gallery .brand-tile--campaign,
  .brand-gallery .brand-tile--detail,
  .brand-gallery .brand-tile--paired { grid-column: span 1; }
  #nice-news .brand-tile:nth-last-child(-n+2) { grid-column: 1 / -1; }
  .passport-mask-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(24px, 6vw, 36px); }
}

.pardon-intro p + p { margin-top: .8em; }
.pardon-lifestyle .gallery:nth-child(3) { grid-template-columns: minmax(0, 46.95fr) minmax(0, 53.05fr); }
.pardon-lifestyle .gallery:nth-child(7) { grid-template-columns: minmax(0, 53.79fr) minmax(0, 46.21fr); }
.pardon-rose {
  display: grid;
  place-items: center;
  min-height: clamp(190px, 37vw, 480px);
  margin-block: 26px var(--grid-gap);
  background: #00000d;
}
.pardon-rose picture { width: clamp(148px, 18vw, 220px); }

.optimism-insight-video {
  display: block;
  width: 100%;
  margin-top: var(--grid-gap);
  background: #0b0e17;
}

.program-motion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1;
  background: #0b0e17;
}
.program-motion video,
.program-motion img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.program-motion video { filter: brightness(.66); }
.program-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / .26), transparent 66%);
  pointer-events: none;
}
.program-motion img { z-index: 2; transform: scale(var(--mark-scale, 1)); mix-blend-mode: screen; }
.optimism-insight-video + .gallery { margin-top: var(--grid-gap); }

.gallery.optimism-lifestyle-row { gap: clamp(6px, 1vw, 12px); }
.gallery.optimism-lifestyle-row + .optimism-lifestyle-row { margin-top: clamp(8px, 1.2vw, 15px); }
.optimism-lifestyle-row--full { grid-template-columns: 1fr; }
.optimism-lifestyle-row:not(.optimism-lifestyle-row--full) img { object-fit: cover; }
.optimism-lifestyle-row--portrait img { aspect-ratio: 4 / 5; }
.optimism-lifestyle-row--landscape img { aspect-ratio: 3 / 2; }
.optimism-lifestyle-row--square img { aspect-ratio: 1; }

.identidades-intro p + p { margin-top: .8em; }
.identidades-gallery { margin-top: clamp(30px, 5vw, 65px); }
.gallery.identidades-row { gap: clamp(4px, .65vw, 10px); }
.gallery.identidades-row + .identidades-row { margin-top: clamp(4px, .65vw, 10px); }
.identidades-row--1 { grid-template-columns: 1fr; }
.identidades-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.identidades-row--2 img { aspect-ratio: 3 / 2; object-fit: cover; }
.identidades-row--3 img { aspect-ratio: 4 / 5; object-fit: cover; }
.identidades-stack { aspect-ratio: 9 / 4; align-items: stretch; }
.identidades-stack--left { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.identidades-stack--right { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.identidades-stack-details { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: inherit; min-height: 0; }
.identidades-stack img { height: 100%; min-height: 0; object-fit: cover; }

.identidades-row--landscape img { aspect-ratio: 3 / 2; }
