/* Portfolio typography: three reading scales, plus the name as a wordmark.
   Project artwork and the standalone campaign experience keep their own type. */
@font-face {
  font-family: "Portfolio Sans";
  src: url("assets/fonts/roboto-latin-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Portfolio Sans";
  src: url("assets/fonts/roboto-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Portfolio Sans";
  src: url("assets/fonts/roboto-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Portfolio Sans";
  src: url("assets/fonts/roboto-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --type-text: 1rem;
  --type-phrase: clamp(1.75rem, 3vw, 2.5rem);
  --type-title: clamp(2.75rem, 6.6667vw, 6rem);
  --type-wordmark: 1.5rem;
  --text-leading: 1.5;
  --column-inset: 24px;
  --section-space: clamp(40px, 4.5vw, 64px);
}
body {
  font-family: "Portfolio Sans", Arial, Helvetica, sans-serif;
  font-size: var(--type-text);
  font-weight: 400;
  line-height: var(--text-leading);
}
.xiidra-browser,
.animated-mailing {
  font-family: Arial, Helvetica, sans-serif;
}
/* Equal lower line boxes put the role, navigation and city on one baseline. */
body > header {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  padding-block: 28px 24px;
  min-height: 104px;
}
body > header .wordmark {
  display: inline-grid;
  grid-template-columns: max-content;
  justify-self: start;
  gap: 1px;
  line-height: 1;
}
body > header .wordmark-name {
  font-size: var(--type-wordmark);
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: -.025em;
  margin: 0;
  white-space: nowrap;
  transform: translateX(-.05em);
}
body > header .wordmark-role {
  display: flex;
  justify-content: space-between;
  gap: .25em;
  width: 0;
  min-width: 100%;
  margin: 0;
  font-size: var(--type-text);
  font-weight: 400;
  line-height: var(--text-leading);
  letter-spacing: 0;
  white-space: nowrap;
}
body > header .wordmark-role > span {
  display: inline;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}
body > header nav {
  align-items: baseline;
  justify-content: flex-start;
  padding-left: var(--column-inset);
  gap: 28px;
  font-size: var(--type-text);
  font-weight: 400;
  line-height: var(--text-leading);
}
body > header nav a {
  position: relative;
  padding: 0;
}
body > header nav a::before {
  content: "";
  position: absolute;
  inset: -10px -5px;
}
body > header .location {
  display: block;
  padding: 0;
  font-size: var(--type-text);
  font-weight: 400;
  line-height: var(--text-leading);
  white-space: nowrap;
}
/* First and second rows share the same three columns and inset. */
body .case-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: baseline;
  margin: 36px 0 44px;
  font-size: var(--type-text);
  line-height: var(--text-leading);
  font-weight: 300;
  color: #595b57;
}
body .case-top > :nth-child(2) { padding-left: var(--column-inset); }
body .case-top > :last-child { text-align: right; }
/* 01 · page titles and the homepage statement. */
body .case h1,
body .intro h1,
body .review h1 {
  font-size: var(--type-title);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
/* 02 — project phrases and section headings. */
body .case .case-deck h2,
body .case .case-copy h2,
body .about h2,
body .review h2,
body .options h3,
body .eye-rationales h3,
body .original-heading,
body .archive-row h3,
body .next-project strong,
body .footer-title {
  font-size: var(--type-phrase);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}
/* 03 — navigation, descriptions, links, labels and captions. */
body .eyebrow,
body .intro-bottom p,
body .text-link,
body .section-top h2,
body .section-top > span,
body .card-label h3,
body .card-label > span,
body .archive-row > span,
body .about p,
body .case .case-deck p,
body .case .case-copy p,
body .case figcaption,
body .case .source-note,
body .next-project > span,
body .downloads,
body .review p,
body .options > article > span,
body .eye-rationales p,
body .eye-rationales > article > span,
body .original-archive summary,
body .footer-bottom,
body .recording-bar,
body .case .casa-agave-original-link {
  font-size: var(--type-text);
  line-height: var(--text-leading);
  letter-spacing: 0;
}
body .card-label {
  grid-template-columns: 32px minmax(0, 1fr) 22px;
  gap: 0 12px;
}
body .card-label h3 { font-weight: 500; }
body .card-label > span:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
  line-height: 1.375;
}
body .card-label b { grid-column: 3; grid-row: 1; }
/* Monochrome navigation arrows, without an icon tile or emoji styling. */
body .arrow-icon {
  display: inline-block;
  width: .85em;
  height: .85em;
  vertical-align: -.04em;
  color: #484848;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body .section-top h2 { font-weight: 400; }
body .section-top > span,
body .card-label > span,
body .archive-row > span,
body .case figcaption,
body .case .source-note,
body .next-project > span,
body .footer-bottom { font-weight: 300; }
body .motion-toggle,
body .xiidra-toggle,
body .whywait-cover-toggle {
  font-family: inherit;
  font-size: var(--type-text);
  font-weight: 400;
  line-height: var(--text-leading);
}
body .case-copy p,
body .intro-bottom p { padding-left: var(--column-inset); }
body .intro-bottom .text-link { margin-left: var(--column-inset); }
body .footer-title { padding-left: var(--column-inset); }
/* Secondary copy shares the exact category color and weight. */
body .intro > .eyebrow,
body .intro-bottom p,
body .intro-bottom .text-link,
body .about > .eyebrow,
body .about p,
body > footer > .eyebrow {
  color: var(--muted);
  font-weight: 300;
}
/* Equal vertical padding frames each group between its horizontal rules. */
body .intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: var(--section-space) 4% 0;
  row-gap: var(--section-space);
}
body .intro > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  /* Optical fallback from the self-hosted typeface's cap-height metrics. */
  padding-top: max(0px, calc(var(--type-title) * .151 - var(--type-text) * .381));
}
body .intro h1 {
  grid-column: 2 / 4;
  grid-row: 1;
  margin: 0;
}
body .intro h1 > .intro-title-copy {
  display: block;
  transform: translateX(-2px);
}
body .intro-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding-block: 32px;
  gap: 0;
}
body .intro-bottom p { margin: 0; }
body .intro-bottom .text-link {
  align-self: start;
  align-items: baseline;
  margin-block: 0;
  padding-block: 0;
  border-bottom: 0;
  text-decoration: none;
}
body .text-link-label {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #b9bbb6;
  text-underline-offset: 5px;
  text-decoration-skip-ink: auto;
}
body .about {
  margin: 128px 4% 0;
  padding-block: var(--section-space);
  align-items: start;
}
body .about h2 { margin: 0 0 28px; }
body .about > .eyebrow,
body > footer > .eyebrow {
  padding-top: max(0px, calc(var(--type-phrase) * .206 - var(--type-text) * .381));
}
body > footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  row-gap: var(--section-space);
  margin-inline: 4%;
  padding: var(--section-space) 0 0;
}
body > footer > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding-right: var(--column-inset);
}
body > footer .footer-title {
  grid-column: 2 / 4;
  grid-row: 1;
  margin: 0;
}
body > footer .footer-bottom {
  grid-column: 1 / -1;
  padding-block: 24px;
}
/* Align visible capital edges in browsers supporting native text trimming. */
@supports (text-box-trim: trim-start) {
  body .intro > .eyebrow,
  body .intro h1,
  body .about > .eyebrow,
  body .about h2,
  body > footer > .eyebrow,
  body > footer .footer-title {
    text-box-trim: trim-start;
    text-box-edge: cap alphabetic;
  }
  body .intro > .eyebrow,
  body .about > .eyebrow,
  body > footer > .eyebrow { padding-top: 0; }
}
/* Two deliberate rows on compact screens; every label stays at text size. */
@media (max-width: 760px) {
  body > header {
    grid-template-columns: 1fr auto;
    gap: 24px 16px;
    padding-block: 24px;
  }
  body > header .wordmark { grid-column: 1 / -1; }
  body > header nav { grid-row: 2; padding: 0; gap: 20px; }
  body > header .location { grid-row: 2; }
  body .case-top {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 12px;
    margin-block: 28px 32px;
  }
  body .case-top > :nth-child(2) { grid-column: 1; grid-row: 2; padding: 0; }
  body .case-top > :last-child { grid-column: 2; grid-row: 1; }
  body .case-copy p,
  body .intro-bottom p,
  body .footer-title { padding-left: 0; }
  body .intro-bottom .text-link { margin-left: 0; }
  body .intro {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
  body .intro > .eyebrow,
  body .intro h1 { grid-column: 1; grid-row: auto; }
  body .intro > .eyebrow { padding-top: 0; }
  body .intro-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 12px;
  }
  body .intro-bottom p,
  body .intro-bottom .text-link { grid-column: 1; }
  body .about { margin-top: 80px; }
  body > footer {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  body > footer > .eyebrow,
  body > footer .footer-title { grid-column: 1; grid-row: auto; padding: 0; }
  body > footer .footer-bottom { margin-top: 16px; }
}
@media (max-width: 380px) {
  body > header { column-gap: 8px; }
  body > header nav { gap: 12px; }
}

/* Approved editorial hierarchy: title, category, optional phrase, description. */
body .case-top {
  grid-template-columns: minmax(0, 1fr) auto;
}
body .case-top > :last-child {
  grid-column: 2;
  grid-row: 1;
  padding-left: 0;
}
body .case h1 { margin-bottom: 16px; }
body .case .case-category {
  margin: 0 0 32px;
  font-size: var(--type-text);
  line-height: var(--text-leading);
  font-weight: 300;
  color: #595b57;
}
body .case .project-statement {
  max-width: 26ch;
  margin: 44px 0 60px;
  font-size: var(--type-phrase);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 400;
  text-wrap: balance;
}
body .case .project-editorial-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 3.333vw, 64px);
  align-items: start;
  margin: 48px 0 clamp(80px, 9vw, 128px);
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
body .case .project-editorial-block {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body .case .editorial-label {
  margin: 0 0 22px;
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: .055em;
  color: #737570;
}
body .case .project-editorial-block p {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: .9375rem;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--muted);
  text-wrap: balance;
}
@media (max-width: 800px) {
  body .case .project-statement { margin: 36px 0 40px; }
  body .case .project-editorial-intro {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
    margin-top: 36px;
    margin-bottom: 72px;
  }
  body .case .editorial-label { margin-bottom: 16px; }
  body .case .project-editorial-block p { max-width: none; text-wrap: pretty; }
}
body .case .full-film { margin: 48px 0 0; }
body .case .full-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #171717;
}
body > footer .footer-support {
  text-transform: none;
  letter-spacing: 0;
}
body > footer .footer-connect {
  display: block;
}

/* One shared gutter throughout each visual case study, including the cover. */
body .case { --media-gap: 32px; }
body .case .case-visuals {
  display: grid;
  gap: var(--media-gap);
  min-width: 0;
}
body .case .case-visuals > *,
body .case .case-visuals figure,
body .case .case-visuals .case-gallery {
  margin-block: 0;
}
body .case .case-visuals :is(.case-gallery, .story-grid, .web-screens, .lab-sequence, .xiidra-ui-studies) {
  gap: var(--media-gap);
}
body .case .case-visuals > section > .case-gallery {
  margin: 0;
}
body .case .case-visuals .motion-figure { position: relative; }
body .case.film .story-grid .motion-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
body .case.film .story-grid .motion-figure img.media-wide {
  height: 100%;
  object-fit: cover;
  /* Remove the narrow white export border without changing the shared frame. */
  transform: scale(1.035);
}
body .case .case-visuals .motion-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  margin: 0;
}
body .eye-feel-case .hero-figure img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
}
body .case .case-visuals img.brand-plate {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
body .case .case-visuals .brand-plate-frame {
  display: grid;
  place-items: center;
  aspect-ratio: var(--plate-ratio);
  background: var(--plate-background, #f0f0ee);
}
body .case .case-visuals .brand-plate-frame img.brand-plate {
  width: var(--plate-width, 100%);
}
body .eye-feel-case .eye-prototype-link .text-link {
  align-items: baseline;
  padding-block: 0;
  border: 0;
  text-decoration: none;
  font-weight: 300;
  color: var(--muted);
}
@media (max-width: 760px) {
  body .case { --media-gap: 24px; }
}
/* Shared 16:9 modules, with the same gutter on both axes. */
body .case .case-visuals > *,
body .case .case-visuals figure {
  min-width: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}
body .case .case-visuals :is(.case-gallery, .story-grid, .web-screens, .lab-sequence, .xiidra-ui-studies) {
  column-gap: var(--media-gap);
  row-gap: var(--media-gap);
  align-items: start;
}
body main.case .case-visuals figure > img:not([aria-hidden]),
body main.case .case-visuals figure > a > img:not([aria-hidden]),
body main.case .case-visuals :is(.eye-construction, .lab-glitch) > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body main.case .case-visuals figure > img:is(.brand-plate, .media-natural) {
  object-fit: contain;
  background: #f0f0ee;
}
body .case .case-visuals .brand-plate-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
body .case .case-visuals .brand-plate-frame img.brand-plate {
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--plate-width, 100%);
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
body .case.film .story-grid .motion-figure img.media-wide {
  position: absolute;
  inset: 0;
}
/* Keep portrait coordinates tied to the original image inside a 16:9 crop. */
body .xiidra-case .xiidra-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
body .xiidra-case .xiidra-media-frame > :is(.xiidra-motion, .xiidra-print) {
  position: absolute;
  width: 100%;
  aspect-ratio: 3 / 2;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
body .xiidra-case .xiidra-media-frame.atm-print > .xiidra-print {
  top: 0;
  transform: none;
}
body .xiidra-case .xiidra-media-frame img.campaign-scene {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* Use the original campaign pixels in the ATM portrait, with their original blur. */
body .xiidra-case .xiidra-atm-original-portrait {
  position: absolute;
  left: 71.1589%;
  top: 1.953125%;
  width: 20.9635%;
  height: 24.3164%;
  overflow: visible;
}
body .xiidra-case .xiidra-atm-plane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 0 0;
}
body .xiidra-case .xiidra-atm-plane > img.campaign-portrait {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 45% center;
}
body .xiidra-case .xiidra-keyvisual-static {
  width: 100%;
  aspect-ratio: 16 / 9;
}
body .xiidra-case .xiidra-keyvisual-static > img.campaign-scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
/* Browser studies use the same landscape proportions as adjacent mockups. */
body .xiidra-case .xiidra-browser {
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
}
body .xiidra-case .xiidra-browser-bar {
  height: 5.5cqw;
  min-height: 0;
  flex-shrink: 0;
  font-size: 1.5cqw;
  gap: 1cqw;
  padding-inline: 2cqw;
}
body .xiidra-case .xiidra-browser-bar i { width: 1cqw; height: 1cqw; }
body .xiidra-case .xiidra-ui-layout,
body .xiidra-case .xiidra-ui-layout.reverse {
  flex: 1;
  min-height: 0;
  grid-template-columns: 48% 52%;
}
body .xiidra-case .xiidra-ui-copy { padding: 9%; }
body .xiidra-case .xiidra-ui-layout.reverse .xiidra-ui-copy { order: 2; }
body .xiidra-case .xiidra-ui-copy small { font-size: 1.35cqw; }
body .xiidra-case .xiidra-ui-copy h3 { font-size: 4.4cqw; margin: 3cqw 0 2cqw; }
body .xiidra-case .xiidra-ui-copy p { font-size: 1.8cqw; line-height: 1.5; }
body .xiidra-case .xiidra-ui-button { font-size: 1.4cqw; margin-top: 3cqw; padding: 1.5cqw 2cqw; }
body .xiidra-case .xiidra-ui-image { min-height: 0; }
body .xiidra-case .xiidra-ui-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 761px) {
  body .intro h1,
  body .about > div {
    position: relative;
    border-left-color: transparent;
  }
  body .intro h1::before,
  body .about > div::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    /* Center on the closing question/title gutter; keep room on compact screens. */
    left: min(-16px, calc(11.1rem + 12px - 25%));
    background: #ededed;
    pointer-events: none;
  }
}

/* Match the artwork edge of motion excerpts to the approved still-image frame. */
body main.case.film .story-grid .motion-figure {
  background: #fff;
}
body main.case.film .story-grid .motion-figure .motion-art {
  position: absolute;
  inset: .45% 1.5625%;
  overflow: hidden;
}
body main.case.film .story-grid .motion-art img.media-wide {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  transform: scale(1.04);
}

/* Retain the original map and footer below the corrected home artwork. */
body main.case .cd-home-composite {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: grid;
  place-items: center;
  background: #f0f0ee;
  overflow: hidden;
}
body main.case .cd-home-artwork {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  aspect-ratio: 1162 / 2400;
}
body main.case .cd-home-artwork > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: fill;
}
body main.case .cd-home-artwork > .cd-home-copy-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 45% 0);
}

/* Artwork adapted to fill the shared 16:9 modules without outer mats. */
body main.case .case-visuals.full-bleed-visuals figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}
body main.case .case-visuals.full-bleed-visuals figure > a {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body main.case .case-visuals.full-bleed-visuals figure > img,
body main.case .case-visuals.full-bleed-visuals figure > a > img {
  display: block;
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* Exact brandbook photographs fill both iPad screens in one scene. */
body main.case .ilaris-photo-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
body main.case .ilaris-photo-scene > .ilaris-scene-base {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: fill;
}
body main.case .ilaris-photo-scene > .ilaris-original-art {
  position: absolute;
  display: block;
  left: var(--art-left);
  top: var(--art-top);
  width: var(--art-width);
  height: var(--art-height);
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--art-position, center);
  border-radius: var(--art-radius);
  background: transparent;
}

/* Preserve the complete original passport inside the extended photographic scene. */
body main.case .legendary-passport-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
body main.case .legendary-passport-scene > .passport-scene-base {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
body main.case .legendary-passport-scene > .passport-original {
  position: absolute;
  display: block;
  top: 0;
  left: 7.8125%;
  width: 84.375%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: fill;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
