/* The 984 x 588 InDesign artboard is the desktop composition anchor.
   Coordinates become proportions; media respond immediately to a resize. */
:root {
  --site-font: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --paper: #fff;
  --ink: #080808;
  --muted: #777;
  --gutter: 3.66vw;
  --header-top: 5.95svh;
  --header-size: clamp(12px, 1.219512vw, 20px);
  --contact-size: clamp(9px, .914634vw, 14px);
  --ui-size: var(--contact-size);
  --body-size: var(--contact-size);
  --clock-size: var(--contact-size);
  --case-top: 11.1svh;
  --case-bottom: 7.5svh;
  --caption-space: calc(var(--body-size) * 1.25 + 6px);
  --overview-top: max(84px, 14svh);
  --overview-bottom: max(74px, 12svh);
  --overview-caption-space: calc(var(--body-size) * 2.7 + 30px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); scroll-behavior: auto; scrollbar-gutter: stable; overflow-anchor: none; overscroll-behavior-y: none; }
html.dialog-open { overflow: hidden; scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--site-font);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.22;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
body.dialog-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; padding: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:hover, a:hover { color: var(--muted); }
button:focus-visible, a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: .3em;
}
input:focus-visible { outline: none; }
.case-figure:has(.enlarge-media:focus-visible) figcaption,
.overview-composition:has(.overview-image-link:focus-visible) .project-number { text-decoration: underline; text-underline-offset: .3em; }
button:disabled { opacity: .25; cursor: default; }
button:disabled:hover { color: inherit; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
figure, h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #d8d8d8; color: #080808; }
/* Blurred glyph shadows avoid Safari's offscreen text-filter edge artifacts. */
.optical-departure {
  --departure-ink: 8, 8, 8;
  color: rgba(var(--departure-ink), var(--departure-fill));
  text-shadow: 0 0 var(--departure-blur) rgba(var(--departure-ink), var(--departure-shadow));
}
a.optical-departure:hover { --departure-ink: 119, 119, 119; color: rgba(var(--departure-ink), var(--departure-fill)); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Section navigation replaces the legacy focus-triggered skip overlay. */
.skip-link { display: none; }
.noscript { padding: 15svh var(--gutter); max-width: 70ch; }
.atmosphere {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.atmosphere canvas { display: block; width: 100%; height: 100%; }
#page { position: relative; z-index: 1; }

/* The 12 pt header has its own scale; content and clocks follow Contact's 9 pt. */
.site-header, .overlay-header, .lightbox-head {
  position: fixed;
  z-index: 30;
  top: var(--header-top);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--header-size);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}
.site-header a, .site-header button,
.overlay-header a, .overlay-header button,
.lightbox-head button { pointer-events: auto; }
.identity { white-space: nowrap; font-size: inherit; font-weight: 400; }
.site-header a:focus-visible, .site-header button:focus-visible,
.overlay-header a:focus-visible, .overlay-header button:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: .3em;
}
#menu-close, #lightbox-close { text-decoration: none; }
#menu-close:focus-visible, #lightbox-close:focus-visible {
  outline: none;
  text-decoration: none;
  color: var(--muted);
}
#case-main:focus { outline: none; }
.desktop-nav { display: flex; align-items: baseline; gap: 1.6704vw; }
.menu-toggle, .case-mobile-back { display: none; }
.menu-toggle, .case-mobile-back, .overlay-header button, .lightbox-head button { position: relative; }
.menu-toggle::after, .case-mobile-back::after, .overlay-header button::after, .lightbox-head button::after {
  content: "";
  position: absolute;
  inset: calc((1em - 44px) / 2) -8px;
}
body.hide-identity .site-header > .identity { opacity: 0; pointer-events: none; }
body.is-home-media .site-header,
body[data-view="project"] .site-header { color: #fff; mix-blend-mode: difference; }
body.is-home-media .site-header a:hover,
body.is-home-media .site-header button:hover,
body[data-view="project"] .site-header a:hover,
body[data-view="project"] .site-header button:hover { color: #b7b7b7; }

.live-clocks {
  position: fixed;
  z-index: 25;
  right: var(--gutter);
  bottom: 5.6556svh;
  font-size: var(--clock-size);
  line-height: 1.2;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
body > .live-clocks { color: #fff; mix-blend-mode: difference; }
.clocks-ready > .live-clocks { opacity: var(--clock-visibility, 0); }
body.clocks-clearance > .live-clocks { opacity: 0; transition-duration: 150ms; }
body[data-view="project"] > .live-clocks { opacity: 0; visibility: hidden; }
.clock-row { display: grid; grid-template-columns: 7.17em 3.892em 3.892em; column-gap: .556em; }
.clock-date, .clock-time { text-align: right; }

/* HOME: the entire viewport is the media field, without an extra name layer. */
.home { position: relative; min-height: 100svh; height: 100svh; }
.home-media { position: absolute; inset: 0; overflow: hidden; }
.home-media > a { display: block; width: 100%; height: 100%; }
.home-media img, .home-media video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--media-position, 50% 50%);
}
.home-media-controls {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: calc(5.95svh + var(--clock-size) * 3.7);
  font-size: var(--clock-size);
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
  mix-blend-mode: difference;
}
.video-controls { display: flex; gap: 1.5em; align-items: center; font-size: var(--clock-size); }
.home-demo-note {
  position: absolute;
  left: var(--gutter);
  bottom: calc(5.95svh + 2.7em);
  max-width: 35ch;
  color: #fff;
  font-size: var(--clock-size);
  mix-blend-mode: difference;
}

/* BIO follows the artboard: text and photo share a 52.3% left column. */
.bio-section { min-height: 100svh; padding: 15.4svh var(--gutter) 6.2svh; }
.bio-copy { width: 52.3vw; max-width: 70ch; }
.bio-copy p + p { margin-top: 1.5em; }
.bio-copy .bio-lead { margin-bottom: 1.5em; white-space: pre-line; }
.bio-portrait { width: 52.3vw; margin-top: 11svh; }
.bio-portrait img { width: 100%; }
.demo-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid #d0d0d0;
  color: #8a8a8a;
  font-size: var(--body-size);
  font-weight: 300;
  text-align: center;
  background: transparent;
}
.bio-portrait.demo-placeholder,
.bio-portrait > .demo-placeholder { aspect-ratio: 1.715; }
.bio-record { min-height: 100svh; padding: 11.1svh var(--gutter) 18svh; }
.record-group + .record-group { margin-top: 3.4em; }
.record-group h2 { margin-bottom: 1.6em; font-size: inherit; font-weight: 400; }
.record-group li { line-height: 1.2; }

/* The right edge of the numbered list follows the end of CONTACT. */
.projects-index { min-height: 100svh; padding: 29svh var(--gutter) 16svh; }
.project-list {
  width: max-content;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  font-size: var(--ui-size);
  font-weight: 300;
}
.project-list li + li { margin-top: 1.45em; }
.project-list a { display: block; }

/* Each overview has a height-aware white boundary and one bottom label. */
.project-overview {
  min-height: 112svh;
  padding: var(--overview-top) var(--gutter) var(--overview-bottom);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.overview-composition {
  --panel-width: 63vw;
  width: min(var(--panel-width), calc((100svh - var(--overview-top) - var(--overview-bottom) - var(--overview-caption-space)) * var(--media-ratio, 1.5)), var(--source-width, 4000px));
  margin-top: max(0px, calc((100svh - var(--overview-top) - var(--overview-bottom) - var(--overview-caption-space) - (min(var(--panel-width), var(--source-width, 4000px)) / var(--media-ratio, 1.5))) / 2));
  text-align: right;
}
.project-overview[data-aspect="portrait"] .overview-composition { --panel-width: 41vw; }
.overview-image-link { display: block; width: 100%; }
.overview-image-link img, .overview-image-link video {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: var(--media-position, 50% 50%);
}
.project-number { display: inline-block; margin-top: 14px; font-size: var(--ui-size); font-weight: 300; line-height: 1.2; }

/* Project pages: left record, then one right-anchored picture at a time. */
.case-study {
  --case-meta-top: 16svh;
  --case-first-top: max(43svh, calc(var(--case-meta-top) + var(--case-record-height, 16svh) + 11.1svh));
  display: grid;
  grid-template-columns: 29.6vw minmax(0, 1fr);
  align-items: start;
}
.case-meta {
  position: sticky;
  top: var(--case-meta-top);
  padding-left: var(--gutter);
  padding-right: 2vw;
  font-size: var(--body-size);
  font-weight: 300;
  line-height: 1.2;
}
.case-number { display: none; }
.case-title { font-size: inherit; line-height: 1.2; font-weight: 300; }
.case-year { font-weight: 300; }
.case-roles { margin-top: 1.5em; }
.case-sequence { padding-right: var(--gutter); min-width: 0; }
.case-item { min-height: 100svh; padding-top: var(--case-top); padding-bottom: var(--case-bottom); }
.case-item:first-child { padding-top: var(--case-first-top); }
.case-figure {
  --panel-width: 63vw;
  width: min(var(--panel-width), calc((100svh - var(--case-top) - var(--case-bottom) - var(--caption-space)) * var(--media-ratio, 1.5)), var(--source-width, 4000px));
  min-height: calc(100svh - var(--case-top) - var(--case-bottom));
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case-item[data-aspect="portrait"] .case-figure { --panel-width: 41vw; }
.case-item:first-child .case-figure { min-height: 0; }
.enlarge-media { display: block; width: 100%; flex: none; }
.enlarge-media img, .enlarge-media video {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: var(--media-position, 50% 50%);
}
.enlarge-media:hover { color: inherit; }
.case-figure figcaption {
  margin-top: 6px;
  display: flex;
  gap: .35em;
  justify-content: flex-end;
  text-align: right;
  font-size: var(--body-size);
  font-weight: 300;
  line-height: 1.25;
}
.case-figure .video-controls { margin-top: 10px; justify-content: flex-end; }
.case-item > .video-controls { margin-top: 10px; justify-content: flex-end; }
.case-description { width: min(33vw, 100%); margin: 5svh 0 0 auto; text-align: right; line-height: 1.45; }
.case-press { padding: 8svh 0 22svh; display: grid; gap: 1.2em; text-align: center; font-size: var(--body-size); font-weight: 300; }

/* Contact's media is inset, as in page 7, followed by its two text anchors. */
.contact-section { min-height: 100svh; padding: 12.5svh var(--gutter) 12svh; }
.contact-media { width: 100%; height: 52.3svh; overflow: hidden; }
.contact-media > img, .contact-media > video { width: 100%; height: 100%; object-fit: cover; object-position: var(--media-position, 50% 50%); }
.contact-media .demo-placeholder { width: 100%; height: 100%; }
.contact-media.demo-placeholder { border: 0; }
.contact-information { display: flex; justify-content: space-between; align-items: flex-start; gap: 3em; margin-top: 7.2svh; }
.contact-identity { font-size: var(--contact-size); font-weight: 300; line-height: 1.3; }
.contact-identity h2 { font-size: inherit; font-weight: 300; }
.contact-links { position: relative; max-width: 100%; padding-top: 11svh; padding-bottom: 5.6em; font-size: var(--contact-size); font-weight: 300; line-height: 1.3; text-align: right; }
.contact-links > a { display: block; }
.return-top-wrap {
  padding: 0 var(--gutter) max(100px, 17svh);
  text-align: right;
}
.return-top {
  display: inline-block;
  padding: 8px 0;
  width: 1.5em;
  text-align: right;
  font-size: var(--ui-size);
  font-weight: 300;
  line-height: 1;
}
#newsletter-toggle { display: inline-block; }
.newsletter-row { display: flex; justify-content: flex-end; align-items: baseline; gap: .65em; min-height: 1.65em; white-space: nowrap; }
.newsletter-row > button, #newsletter-form > button { flex: none; }
#newsletter-form { min-width: 0; margin: 0; display: flex; justify-content: flex-end; align-items: baseline; gap: .65em; }
#newsletter-form[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
#newsletter-email { width: min(180px, 19vw); min-width: 0; background: transparent; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 0 0 2px; outline: none; }
#newsletter-email::placeholder { color: var(--muted); opacity: 1; }
#newsletter-email:focus-visible { outline: none; border-bottom-color: var(--ink); }
.newsletter-status { position: absolute; top: calc(100% - 4.8em); right: 0; max-width: 34ch; margin: 0; line-height: 1.4; }

/* Opaque menus and the uncropped viewer are separate, quiet surfaces. */
dialog { color: var(--ink); font-family: var(--site-font); }
dialog::backdrop { background: var(--paper); }
.mobile-menu, .lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--paper);
  outline: none;
}
.mobile-menu { padding: 31.5svh var(--gutter) 17svh; overflow-y: auto; }
.overlay-header { z-index: 1; }
.menu-links, .mobile-project-list { display: grid; gap: max(20px, calc(6.2svh - var(--ui-size))); text-align: right; font-size: var(--ui-size); font-weight: 300; }
.menu-links { justify-items: end; }
.mobile-project-list a { display: block; }
.mobile-menu .live-clocks { display: none; }
.lightbox { overflow: hidden; }
.lightbox-stage { position: absolute; top: 14svh; right: var(--gutter); bottom: 14svh; left: var(--gutter); display: flex; align-items: center; justify-content: center; }
.lightbox-stage img, .lightbox-stage video { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-stage .video-controls { position: absolute; left: 0; bottom: 0; }
.lightbox-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5.95svh; display: flex; justify-content: space-between; align-items: baseline; gap: 2em; font-size: var(--body-size); font-weight: 300; }
.lightbox-navigation { display: flex; gap: 1.5em; font-size: var(--ui-size); }
.lightbox-navigation button { min-width: 24px; min-height: 32px; }

/* Small screens change the composition, rather than shrinking desktop text. */
@media (max-width: 700px) and (orientation: portrait) {
  :root {
    --gutter: clamp(20px, 7.3vw, 32px);
    --header-top: max(32px, calc(5.95svh + env(safe-area-inset-top)));
    --header-size: 16px;
    --contact-size: 13px;
  }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  body.hide-identity .site-header > .identity { opacity: 1; pointer-events: auto; }
  body[data-view="project"] .menu-toggle { display: none; }
  body[data-view="project"] .case-mobile-back { display: inline-block; }
  .live-clocks { bottom: max(22px, calc(22px + env(safe-area-inset-bottom))); }
  .home-media-controls { bottom: calc(22px + env(safe-area-inset-bottom) + var(--clock-size) * 3.7); }
  .home-demo-note { bottom: max(62px, calc(62px + env(safe-area-inset-bottom))); max-width: 26ch; }
  .home-media-controls, .home-demo-note { max-width: 34vw; font-size: var(--ui-size); }
  .home-media-controls .video-controls { flex-direction: column; align-items: flex-start; gap: 9px; font-size: var(--ui-size); }
  .bio-section { padding: 17svh 0 10svh; }
  .bio-copy { width: auto; max-width: none; margin: 0 var(--gutter); line-height: 1.4; }
  .bio-portrait { width: 100%; margin-top: 8svh; }
  .bio-record { padding-top: 14svh; padding-bottom: 18svh; }
  .record-group + .record-group { margin-top: 3em; }
  .record-group h2 { margin-bottom: 1.4em; }
  .record-group li { line-height: 1.3; }
  .projects-index { padding-top: 31.5svh; }
  .project-list { margin-right: 0; }
  .project-list li + li { margin-top: max(20px, calc(6.2svh - var(--ui-size))); }
  .project-overview { display: block; min-height: 100svh; padding: 14svh 0 18svh; }
  .overview-composition { width: 100%; margin-top: 0; }
  .project-number { margin: 16px var(--gutter) 0; }
  .case-study { display: block; }
  .case-meta { position: static; min-height: 50svh; padding: 27svh var(--gutter) 3svh; font-size: var(--ui-size); line-height: 1.25; text-align: right; }
  .case-number { display: block; margin-bottom: 5px; }
  .case-title { line-height: 1.25; }
  .case-year { margin-top: 4px; }
  .case-roles { margin-top: 5.5svh; }
  .case-sequence { padding-right: 0; }
  .case-item { min-height: 0; padding: 10svh 0 14svh; }
  .case-item:first-child { padding-top: 0; }
  .case-figure { width: 100%; min-height: 0; }
  .case-item:first-child[data-aspect="landscape"] .enlarge-media { height: 50svh; overflow: hidden; }
  .case-item:first-child[data-aspect="landscape"] .enlarge-media img,
  .case-item:first-child[data-aspect="landscape"] .enlarge-media video { height: 100%; max-width: none; object-fit: cover; }
  .case-figure figcaption { margin: 10px var(--gutter) 0; font-size: var(--body-size); }
  .case-figure .video-controls { margin-right: var(--gutter); }
  .case-item > .video-controls { margin-right: var(--gutter); }
  .case-description { width: auto; margin: 5svh var(--gutter) 0; font-size: var(--body-size); text-align: left; }
  .case-press { padding: 3svh var(--gutter) 20svh; }
  .contact-section { padding: 14svh 0 18svh; }
  .contact-media { height: 45svh; }
  .contact-information { margin: 7svh var(--gutter) 0; display: block; }
  .contact-links { padding-top: 10svh; }
  #newsletter-form { flex: 0 1 245px; }
  #newsletter-email { width: min(180px, 43vw); flex: 1 1 auto; font-size: 16px; }
  #newsletter-email::placeholder { font-size: var(--contact-size); }
  .lightbox-stage { top: 15svh; left: 0; right: 0; bottom: 17svh; }
  .lightbox-foot { bottom: max(24px, calc(24px + env(safe-area-inset-bottom))); align-items: flex-end; font-size: var(--body-size); }
  .lightbox-navigation { gap: 1em; font-size: var(--ui-size); }
  .lightbox-navigation button { min-width: 34px; min-height: 44px; }
}

/* A horizontal phone keeps the right-anchored desktop vocabulary, but MENU.
   Portrait art remains at a natural scrolling height as page 12 requests. */
@media (max-width: 900px) and (max-height: 450px) and (orientation: landscape) {
  :root {
    --gutter: max(4.5vw, env(safe-area-inset-left));
    --header-top: max(24px, calc(5.95svh + env(safe-area-inset-top)));
    --header-size: 16px;
    --contact-size: 13px;
    --case-top: 20svh;
    --case-bottom: 10svh;
  }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  body[data-view="project"] .menu-toggle { display: none; }
  body[data-view="project"] .case-mobile-back { display: inline-block; }
  body.hide-identity .site-header > .identity { opacity: 1; pointer-events: auto; }
  .live-clocks { bottom: max(18px, env(safe-area-inset-bottom)); }
  .bio-copy { max-width: 75ch; width: 65vw; }
  .bio-portrait { margin-top: 9svh; }
  .case-study { --case-meta-top: 25svh; }
  .case-meta { font-size: var(--body-size); padding-bottom: 16svh; }
  .case-item[data-aspect="portrait"] .case-figure { width: min(41vw, var(--source-width, 4000px)); }
  .case-item[data-aspect="portrait"] { min-height: 100svh; }
  .projects-index { min-height: 140svh; }
  .project-list { margin-right: 0; }
  .mobile-menu { padding-top: 27svh; padding-bottom: 28svh; }
  .menu-links, .mobile-project-list { gap: 20px; }
  .contact-section { min-height: 140svh; }
  .contact-links { padding-top: 8svh; }
  #newsletter-email { font-size: 16px; }
  #newsletter-email::placeholder { font-size: var(--contact-size); }
  .lightbox-stage { top: 22svh; bottom: 20svh; }
  .lightbox-foot { bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (min-width: 701px) and (max-height: 500px) {
  .case-study { --case-meta-top: 0px; }
  .case-meta { position: static; padding-top: 25svh; padding-bottom: 10svh; }
  .bio-record { min-height: 140svh; }
}
@media (prefers-reduced-motion: reduce) {
  .live-clocks { transition: none; }
  [data-departure] { filter: none !important; }
  .optical-departure { color: var(--ink); text-shadow: none; }
}
