/* ZABRO Projects — site stylesheet.
   Base layer, then the sections and overrides that build on it.
   One file: the site is mounted at the web root. */

:root {
  --brand: #042f93;
  --accent: #c66b3d;
  --accent-action: #f2b84b;
  --accent-action-hover: #e9a83a;
  --surface: #eef0f1;
  --surface-alt: #d8dcde;
  --text: #042f93;
  --muted: #34383b;
  --line: rgba(4, 47, 147, 0.35);
  --white: #ffffff;
  --text-label: 0.75rem;
  --text-caption: 0.8125rem;
  --font-sans: "Manrope", sans-serif;
  --font-mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
  font: inherit;
}

.site-shell {
  isolation: isolate;
  overflow: clip;
}

.skip-link {
  background: var(--white);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  left: 20px;
  padding: 12px 16px;
  position: absolute;
  top: 12px;
  transform: translateY(-150%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 88px;
  padding: 0 clamp(20px, 4vw, 64px);
  position: relative;
  z-index: 20;
}

.brand img {
  height: 36px;
  object-fit: contain;
  object-position: left center;
  width: 108px;
}

.footer-brand img {
  height: 26px;
  object-fit: contain;
  object-position: left center;
  width: 78px;
}

.desktop-nav {
  display: flex;
  font-size: 0.82rem;
  gap: 34px;
}

.desktop-nav a,
.header-contact,
.mobile-nav a {
  position: relative;
}

.desktop-nav a::after,
.header-contact::after {
  background: currentColor;
  bottom: -5px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
  width: 100%;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.header-contact:hover::after,
.header-contact:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  justify-self: end;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  color: var(--white);
  min-height: calc(100svh - 88px);
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  animation: hero-scale 1.4s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 47, 147, 0.9) 0%, rgba(4, 47, 147, 0.56) 46%, rgba(4, 47, 147, 0.08) 78%),
    linear-gradient(0deg, rgba(4, 47, 147, 0.5) 0%, transparent 42%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 780px;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 7vw, 112px) 140px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.hero-eyebrow,
.hero h1,
.hero-copy,
.hero .primary-action {
  animation: hero-rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  animation-delay: 100ms;
  font-size: clamp(3.25rem, 10vw, 7.25rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
  margin: 0;
  max-width: 10ch;
  text-wrap: balance;
}

.hero-copy {
  animation-delay: 180ms;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  margin: 0;
  max-width: 47ch;
  text-wrap: pretty;
}

.primary-action {
  align-items: center;
  align-self: flex-start;
  animation-delay: 260ms;
  background: var(--accent-action);
  color: var(--brand);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 34px;
  justify-content: space-between;
  letter-spacing: 0.02em;
  min-height: 52px;
  padding: 13px 14px 13px 18px;
  text-transform: uppercase;
  transition: transform 150ms ease-out;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--accent-action-hover);
}

.primary-action:active {
  transform: scale(0.96);
}

.primary-action span {
  align-items: center;
  border-left: 1px solid rgba(4, 47, 147, 0.28);
  display: flex;
  min-height: 26px;
  padding-left: 14px;
  transition: transform 220ms ease;
}

.primary-action:hover span,
.primary-action:focus-visible span {
  transform: translate(2px, -2px);
}

.hero-meta {
  bottom: 34px;
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 22px;
  left: clamp(20px, 7vw, 112px);
  letter-spacing: 0.04em;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.hero-meta span + span::before {
  color: var(--accent);
  content: "/";
  margin-right: 22px;
}

.scroll-cue {
  bottom: 34px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  text-transform: uppercase;
  z-index: 2;
}

.scroll-cue span {
  color: var(--accent);
  padding-left: 8px;
}

.section {
  padding: clamp(88px, 12vw, 180px) 0;
}

.section-inner {
  margin: 0 auto;
  max-width: 1380px;
  padding-inline: clamp(20px, 6vw, 96px);
}

.intro {
  background: var(--surface);
}

.intro-grid,
.testimonial-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
}

.intro-statement {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intro h2,
.projects h2,
.approach h2,
.contact h2 {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.intro h2 {
  max-width: 16ch;
}

.intro-statement > p,
.approach-copy > p,
.projects-heading > p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

.services-wrap {
  margin-top: clamp(72px, 10vw, 140px);
}

.services-list {
  border-top: 1px solid var(--line);
  margin: 0;
}

.services-list > div {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: 1.35fr 1fr;
  padding: 31px 0;
}

.services-list dt {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.services-list dt span {
  color: var(--text);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.04em;
  min-width: 52px;
  vertical-align: middle;
}

.services-list dd {
  color: var(--muted);
  margin: 0;
  max-width: 48ch;
}

.projects {
  background: var(--brand);
  color: var(--white);
  padding: clamp(88px, 10vw, 150px) 0 clamp(100px, 12vw, 180px);
}

.projects-heading {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 64px;
}

.projects-heading > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projects h2 {
  max-width: 12ch;
}

.projects-heading > p {
  color: rgba(255, 255, 255, 0.86);
}

.project-grid {
  align-items: end;
  display: grid;
  gap: clamp(22px, 3vw, 48px);
  grid-template-columns: 8fr 5fr;
  margin-left: clamp(20px, 6vw, 96px);
}

.project {
  margin: 0;
}

.image-frame {
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
  overflow: hidden;
}

.project img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-primary .image-frame {
  aspect-ratio: 1.24;
}

.project-secondary .image-frame {
  aspect-ratio: 0.92;
}

.project figcaption {
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  justify-content: space-between;
  letter-spacing: 0.03em;
  padding-top: 13px;
  text-transform: uppercase;
}

.project figcaption span:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.approach {
  background:
    linear-gradient(rgba(4, 47, 147, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 47, 147, 0.055) 1px, transparent 1px),
    var(--surface-alt);
  background-size: 48px 48px;
}

.approach-grid {
  display: grid;
  gap: clamp(64px, 10vw, 150px);
  grid-template-columns: 1fr 1fr;
}

.approach-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.approach h2 {
  font-size: clamp(2.5rem, 4.4vw, 4.7rem);
  max-width: 13ch;
}

.process-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 26px;
  grid-template-columns: 42px 1fr;
  padding: 27px 0;
}

.process-list > li > span {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  padding-top: 4px;
}

.process-list h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.process-list p {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

.testimonial {
  background: var(--surface);
}

.testimonial figure {
  display: flex;
  flex-direction: column;
  gap: 38px;
  margin: 0;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 0;
  max-width: 22ch;
  position: relative;
  text-wrap: balance;
}

.testimonial blockquote p::before {
  color: var(--accent);
  content: "“";
  position: absolute;
  transform: translateX(-100%);
}

.testimonial blockquote p::after {
  content: "”";
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
}

.testimonial figcaption strong {
  font-weight: 600;
}

.testimonial figcaption span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}

.contact-image {
  background: url("https://irp.cdn-website.com/805be7cb/dms3rep/multi/opt/43-1D6A1934-1920w.jpg") center / cover;
}

.contact-panel {
  background: var(--brand);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 130px);
}

.contact-panel h2 {
  margin-top: 24px;
  max-width: 10ch;
}

.contact-panel > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  margin: 28px 0 0;
  max-width: 45ch;
}

.contact-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 34px;
  margin-top: 40px;
}

.primary-action.light {
  background: var(--accent-action);
  color: var(--brand);
}

.primary-action.light span {
  border-left-color: rgba(4, 47, 147, 0.28);
}

.contact-actions > a:last-child {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.offices {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  margin-top: 64px;
  padding-top: 28px;
}

.offices address {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-style: normal;
  line-height: 1.7;
}

.offices strong {
  color: var(--white);
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
}

footer {
  align-items: center;
  background: var(--surface);
  display: grid;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 20px;
  grid-template-columns: 1fr 2fr 1fr;
  letter-spacing: 0.02em;
  padding: 34px clamp(20px, 4vw, 64px);
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer p:nth-child(2) {
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.hero a:focus-visible,
.contact a:focus-visible {
  outline-color: var(--white);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 400ms ease,
    transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scale {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 74px;
  }

  .desktop-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 48px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 48px;
    z-index: 22;
  }

  .menu-toggle span {
    background: var(--brand);
    height: 1px;
    transition: transform 220ms ease;
    width: 24px;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-nav {
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 15px;
    inset: 74px 0 auto;
    min-height: calc(100svh - 74px);
    opacity: 0;
    padding: 50px 20px;
    pointer-events: none;
    position: absolute;
    transform: translateY(-8px);
    transition:
      opacity 200ms ease-out,
      transform 200ms ease-out,
      visibility 0s linear 200ms;
    visibility: hidden;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  .mobile-nav a {
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    letter-spacing: -0.04em;
    padding: 8px 0;
  }

  .mobile-nav a:not(:last-child) {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .mobile-nav a:last-child {
    align-self: flex-start;
    background: var(--accent-action);
    border-bottom: 0;
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.02em;
    margin-top: auto;
    padding: 14px 16px;
    text-transform: uppercase;
  }

  .hero {
    min-height: calc(100svh - 74px);
  }

  .intro-grid,
  .testimonial-grid,
  .projects-heading,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 3fr 2fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-image {
    min-height: 58vw;
  }
}

@media (max-width: 620px) {
  .hero-image {
    object-position: 67% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(4, 47, 147, 0.9), rgba(4, 47, 147, 0.3));
  }

  .hero-meta {
    bottom: 68px;
    flex-wrap: wrap;
    gap: 6px 15px;
    max-width: calc(100% - 40px);
  }

  .hero-meta span + span::before {
    margin-right: 15px;
  }

  .scroll-cue {
    bottom: 27px;
    left: 20px;
    right: auto;
  }

  .services-list > div {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 25px 0;
  }

  .project-grid {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-inline: 20px;
  }

  .project-secondary {
    align-self: flex-end;
    width: 72%;
  }

  .project figcaption {
    flex-direction: column;
    gap: 2px;
  }

  .testimonial blockquote p {
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.4;
    padding-left: 0.65em;
    text-wrap: pretty;
  }

  .testimonial blockquote p::before {
    left: 0;
    transform: none;
  }

  .offices,
  footer {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 72px 20px;
  }

  footer {
    gap: 14px;
    padding-block: 30px;
  }

  footer p:nth-child(2),
  footer p:last-child {
    text-align: left;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero-content {
    gap: 12px;
    padding-block: 24px 96px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 5vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---- site sections and overrides ---- */

@font-face {
  font-display: swap;
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  src: url("assets/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  src: url("assets/dm-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  src: url("assets/dm-mono-500-latin.woff2") format("woff2");
}

:root {
  --brand-rgb: 4 47 147;
  --brand-scrim: rgb(var(--brand-rgb) / 0.78);
  --brand-scrim-strong: rgb(var(--brand-rgb) / 0.8);
  --brand-line: rgb(var(--brand-rgb) / 0.3);
  --brand-tint: rgb(var(--brand-rgb) / 0.06);
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

/* Discreet corner control for the looping hero reel. Icon only, 44px target,
   brand scrim so the glyph holds its contrast wherever the video lands. It sits
   bottom-right, where a thumb can reach it, clear of the region list. */
.hero-video-toggle {
  align-items: center;
  background: var(--brand-scrim);
  border: 0;
  border-radius: 2px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(22px, 3vw, 38px);
  transition: background 180ms ease;
  width: 44px;
  z-index: 3;
}

.hero-video-toggle:hover {
  background: rgb(var(--brand-rgb) / 0.92);
}

.hero-video-toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.hero-video-icon {
  align-items: center;
  display: inline-flex;
}

.hero-video-icon svg {
  display: block;
  height: 16px;
  width: 16px;
}

.hero-video-icon-pause svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
}

.hero-video-icon-play svg {
  fill: currentColor;
  stroke: none;
}

.hero-video-toggle[aria-pressed="true"] .hero-video-icon-pause,
.hero-video-toggle[aria-pressed="false"] .hero-video-icon-play {
  display: none;
}

.desktop-nav {
  gap: clamp(20px, 2.35vw, 34px);
}

html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 1;
  transform: none;
}

.js.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.js.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.site-shell img {
  height: auto;
}

.site-shell .hero-image {
  height: 100%;
}

.site-shell picture {
  display: block;
}

.icon-arrow {
  display: block;
  fill: none;
  height: 1em;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
  width: 1em;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

.brand {
  background: url("assets/logo-432.webp") no-repeat left center / 108px 36px;
  flex: 0 0 108px;
  width: 108px;
}

.no-script-nav {
  display: none;
}

.js .no-script-nav {
  display: none;
}

html:not(.js) .menu-toggle {
  display: none;
}

h1,
h2,
h3,
.eyebrow,
.contact-direct a,
.project-gallery figcaption {
  overflow-wrap: anywhere;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

[tabindex="-1"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.case-study {
  background: var(--brand);
  color: var(--white);
  padding-top: clamp(88px, 10vw, 150px);
}

.projects-index {
  background: var(--brand);
  color: var(--white);
  padding: 0;
}

.projects-index-title {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.projects-index-bar {
  background: var(--accent-action);
  color: var(--brand);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.projects-index-bar a {
  align-items: center;
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 20px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  min-height: 96px;
  padding-inline: clamp(20px, 4vw, 64px);
  text-transform: uppercase;
}

.projects-index-bar a + a {
  border-left: 1px solid var(--brand-line);
}

.projects-index-bar .icon-arrow {
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.projects-index-bar a:hover,
.projects-index-bar a:focus-visible {
  background: var(--brand-tint);
}

.projects-index .projects-index-bar a:focus-visible {
  outline-color: var(--brand);
  outline-offset: -4px;
}

.projects-index-bar a:hover .icon-arrow,
.projects-index-bar a:focus-visible .icon-arrow {
  transform: translate(3px, -2px);
}

.projects-index {
  position: relative;
}

.projects-index:focus-visible {
  outline: 3px solid var(--accent-action);
  outline-offset: -3px;
}

.projects-index:focus-visible::after {
  border: 3px solid var(--accent-action);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.archive-hero h1 {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
}

.intro .services-wrap {
  margin-top: clamp(64px, 7vw, 96px);
}

.archive-hero {
  background: var(--surface);
  padding-block: clamp(150px, 18vw, 260px) clamp(90px, 11vw, 160px);
}

.archive-hero-grid,
.archive-cta-grid {
  align-items: start;
  display: grid;
  gap: clamp(40px, 8vw, 130px);
  grid-template-columns: 0.55fr 1.45fr;
}

.archive-hero h1 {
  color: var(--brand);
}

.archive-hero-grid > div > p {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  margin: 30px 0 0;
  max-width: 54ch;
}

.project-archive {
  padding-block: clamp(80px, 10vw, 150px);
}

.project-archive-grid {
  display: grid;
  gap: clamp(64px, 8vw, 120px) clamp(24px, 4vw, 64px);
  grid-template-columns: 1fr 1fr;
}

.archive-entry-featured {
  grid-column: 1 / -1;
}

.archive-entry-featured img {
  aspect-ratio: 1.8;
}

.archive-entry a,
.archive-entry picture {
  display: block;
}

.archive-entry picture {
  overflow: hidden;
}

.archive-entry img {
  aspect-ratio: 1.22;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}

.archive-entry a:hover img,
.archive-entry a:focus-visible img {
  transform: scale(1.015);
}

.archive-entry-copy {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.archive-entry-copy h2 {
  color: var(--brand);
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 12px 0 16px;
}

.archive-entry-copy > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.archive-entry-copy > span {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  gap: 10px;
  margin-top: 24px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.archive-entry-copy .icon-arrow {
  flex: 0 0 auto;
  transition: transform 220ms ease;
}

.archive-entry a:hover .icon-arrow,
.archive-entry a:focus-visible .icon-arrow {
  transform: translate(2px, -2px);
}

.archive-cta {
  background: var(--accent-action);
  color: var(--brand);
  padding-block: clamp(80px, 10vw, 150px);
}

.archive-cta h2 {
  font-size: clamp(2.3rem, 4.8vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  max-width: 13ch;
}

.archive-cta-grid > div > p {
  margin: 24px 0 32px;
  max-width: 54ch;
}

.text-link {
  align-items: center;
  align-self: flex-start;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  gap: 12px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.project-entry-grid {
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 1px;
  height: clamp(620px, 78svh, 880px);
  overflow: hidden;
}

.project-entry {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.project-entry a {
  color: var(--white);
  display: block;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.project-entry picture {
  height: 100%;
  inset: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
}

.project-entry img {
  height: 100%;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.project-entry-shade {
  background:
    linear-gradient(0deg, rgba(4, 47, 147, 0.92) 0%, rgba(4, 47, 147, 0.6) 42%, rgba(4, 47, 147, 0.16) 74%, rgba(4, 47, 147, 0.24) 100%),
    rgba(4, 47, 147, 0.1);
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 260ms ease;
}

.project-entry-meta {
  bottom: 0;
  display: flex;
  flex-direction: column;
  inset-inline: 0;
  padding: clamp(24px, 3vw, 44px);
  position: absolute;
  z-index: 1;
}

.project-entry-index,
.project-entry-details {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
}

.project-entry-index {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-entry-meta h3 {
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

.project-entry-details {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 10px;
}

.project-entry-description {
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  max-width: 34ch;
  opacity: 0;
  overflow: hidden;
  text-wrap: pretty;
  transform: translateY(10px);
  transition:
    opacity 220ms ease,
    margin-top 260ms cubic-bezier(0.25, 1, 0.5, 1),
    max-height 260ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.project-entry-rule {
  background: rgba(255, 255, 255, 0.42);
  display: block;
  height: 2px;
  margin-top: 24px;
  overflow: hidden;
  width: 100%;
}

.project-entry-rule > span {
  background: var(--white);
  display: block;
  height: 100%;
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.project-entry-index .icon-arrow {
  flex: 0 0 auto;
  font-size: 1.25rem;
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .project-entry-grid:has(.project-entry a:hover) .project-entry {
    flex-grow: 0.88;
  }

  .project-entry-grid:has(.project-entry a:hover) .project-entry:has(a:hover) {
    flex-grow: 1.24;
  }

  .project-entry a:hover img {
    transform: scale(1.025);
  }

  .project-entry a:hover .project-entry-description {
    margin-top: 16px;
    max-height: 8em;
    opacity: 1;
    transform: translateY(0);
  }

  .project-entry a:hover .project-entry-rule > span {
    transform: scaleX(1);
  }

  .project-entry a:hover .project-entry-index .icon-arrow {
    transform: translate(3px, -3px);
  }
}

.project-entry a:focus-visible img {
  transform: scale(1.025);
}

.project-entry a:focus-visible {
  outline-offset: -4px;
}

.project-entry a::after {
  border: 2px solid var(--white);
  content: "";
  inset: 4px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.project-entry a:focus-visible::after {
  opacity: 1;
}

.project-entry a:focus-visible .project-entry-description {
  margin-top: 16px;
  max-height: 8em;
  opacity: 1;
  transform: translateY(0);
}

.project-entry a:focus-visible .project-entry-rule > span {
  transform: scaleX(1);
}

.project-entry a:focus-visible img,
.project-entry a:focus-visible .project-entry-description,
.project-entry a:focus-visible .project-entry-rule > span {
  transition-duration: 0s;
}

.js.reveal-ready .project-entry-grid[data-reveal].is-visible .project-entry {
  animation: project-entry-in 500ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.js.reveal-ready .project-entry-grid[data-reveal].is-visible .project-entry:nth-child(2) {
  animation-delay: 70ms;
}

.js.reveal-ready .project-entry-grid[data-reveal].is-visible .project-entry:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes project-entry-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-index a:focus-visible,
.case-study a:focus-visible {
  outline-color: var(--white);
}

@media (hover: none), (max-width: 1050px) {
  .project-entry-description {
    margin-top: 16px;
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }

  .project-entry-rule > span {
    transform: scaleX(1);
  }

  .project-entry-index .icon-arrow {
    transform: translate(3px, -3px);
  }
}

.case-study-header {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr;
  padding-bottom: 64px;
}

.project-page {
  padding-top: 0;
}

.breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  gap: 10px;
  padding-bottom: clamp(56px, 7vw, 100px);
  padding-top: clamp(130px, 14vw, 200px);
  text-transform: uppercase;
}

.breadcrumb a {
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  display: inline-flex;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-page .case-study-heading h1 {
  font-size: clamp(3rem, 6.7vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0;
  max-width: 11ch;
  text-wrap: balance;
}

.case-study-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-study h2,
.team h2 {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.case-study h2 {
  max-width: 13ch;
}

.case-study-summary {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  max-width: 54ch;
  text-wrap: pretty;
}

.case-study-hero {
  margin: 0;
}

.case-study-hero img {
  aspect-ratio: 1.8;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.case-study-hero figcaption,
.project-gallery figcaption,
.approach-image figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-study-hero figcaption {
  display: flex;
  justify-content: space-between;
  padding-block: 14px;
}

.case-study-hero figcaption span:last-child,
.project-gallery figcaption {
  color: rgba(255, 255, 255, 0.7);
}

.project-details {
  display: grid;
  gap: clamp(64px, 10vw, 150px);
  grid-template-columns: 1fr 1fr;
  padding-block: clamp(84px, 10vw, 140px);
}

.project-facts {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0;
}

.project-facts > div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.65fr 1.35fr;
  padding: 20px 0;
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-brief {
  align-self: center;
}

.project-brief > p:last-child {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 24px 0 0;
  max-width: 27ch;
  text-wrap: pretty;
}

.project-gallery {
  display: grid;
  gap: clamp(22px, 3vw, 48px);
  grid-template-columns: 1fr 1fr;
  padding-bottom: clamp(100px, 12vw, 180px);
}

.project-gallery figure {
  margin: 0;
}

.project-gallery .gallery-wide {
  grid-column: 1 / -1;
}

.project-gallery img {
  aspect-ratio: 1.36;
  height: auto;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
  width: 100%;
}

.project-gallery .gallery-wide img {
  aspect-ratio: 1.8;
}

.project-gallery figcaption {
  padding-top: 12px;
}

.project-decisions {
  display: grid;
  gap: clamp(64px, 10vw, 150px);
  grid-template-columns: 1fr 1fr;
  padding-bottom: clamp(100px, 12vw, 180px);
}

.project-decisions h2,
.project-outcomes h2 {
  font-size: clamp(2.3rem, 4.4vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.04;
  margin: 24px 0 0;
  max-width: 9ch;
  text-wrap: balance;
}

.related-project {
  background: var(--surface);
  padding-block: clamp(80px, 10vw, 150px);
}

.related-project-grid {
  align-items: end;
  display: grid;
  gap: clamp(48px, 8vw, 130px);
  grid-template-columns: 0.85fr 1.15fr;
}

.related-project h2 {
  color: var(--brand);
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 24px 0;
  max-width: 12ch;
}

.related-project-image {
  display: block;
  overflow: hidden;
}

.related-project-image img {
  aspect-ratio: 1.35;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}

.related-project-image:hover img,
.related-project-image:focus-visible img {
  transform: scale(1.015);
}

.decisions-list {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0;
}

.decisions-list > div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px 0;
}

.decisions-list dt {
  font-size: 1.15rem;
  font-weight: 600;
}

.decisions-list dt span {
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 400;
  min-width: 44px;
}

.decisions-list dd {
  color: rgba(255, 255, 255, 0.78);
  margin: 10px 0 0 44px;
  max-width: 47ch;
}

.project-outcomes {
  background: var(--accent-action);
  color: var(--brand);
  padding: clamp(72px, 8vw, 110px) 0;
}

.outcomes-grid {
  align-items: end;
  display: grid;
  gap: clamp(64px, 10vw, 150px);
  grid-template-columns: 1fr 1fr;
}

.outcomes-grid dl {
  border-top: 1px solid rgba(4, 47, 147, 0.35);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.outcomes-grid dl > div {
  padding: 22px 16px 0;
}

.outcomes-grid dl > div:first-child {
  padding-left: 0;
}

.outcomes-grid dl > div + div {
  border-left: 1px solid rgba(4, 47, 147, 0.35);
}

.outcomes-grid dt {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.outcomes-grid dd {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.45;
  margin: 12px 0 0;
  text-transform: uppercase;
}

.ocean-project {
  background: var(--surface);
  color: var(--brand);
}

.ocean-hero {
  color: var(--white);
  height: clamp(500px, 58svh, 620px);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.ocean-hero-media,
.ocean-hero-media img,
.ocean-hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.ocean-hero-media img {
  object-fit: cover;
  object-position: center;
}

.ocean-hero-shade {
  background:
    linear-gradient(180deg, var(--brand-scrim-strong) 0%, var(--brand-scrim-strong) 190px, rgb(var(--brand-rgb) / 0.55) 300px, rgb(var(--brand-rgb) / 0) 430px),
    linear-gradient(0deg, rgba(4, 47, 147, 0.94) 0%, rgba(4, 47, 147, 0.68) 38%, rgba(4, 47, 147, 0.28) 72%, rgba(4, 47, 147, 0.1) 100%);
  z-index: 1;
}

.ocean-hero-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding-block: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

.ocean-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  gap: 10px;
  text-transform: uppercase;
}

.ocean-breadcrumb a {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ocean-hero-copy {
  align-items: end;
  display: grid;
  gap: clamp(48px, 8vw, 130px);
  grid-template-columns: 1.35fr 0.65fr;
}

.ocean-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ocean-hero h1 {
  font-size: clamp(3.5rem, 7.4vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
  margin: 0;
  max-width: 10ch;
  text-wrap: balance;
}

.ocean-hero-summary > p {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.5;
  margin: 0;
  max-width: 38ch;
  text-wrap: pretty;
}

.ocean-hero-summary > span {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.03em;
  margin-top: 24px;
  padding-top: 14px;
  text-transform: uppercase;
}

.ocean-overview {
  background: var(--surface);
  padding-block: clamp(84px, 9vw, 132px) clamp(64px, 7vw, 104px);
}

.ocean-overview-layout,
.ocean-evidence,
.ocean-chapter-heading,
.project-endcap-grid {
  display: grid;
  gap: clamp(48px, 8vw, 130px);
  grid-template-columns: 0.82fr 1.18fr;
}

.ocean-overview-copy h2,
.ocean-chapter-heading h2,
.project-endcap h2 {
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 20px 0 0;
  max-width: 13ch;
  text-wrap: balance;
}

.ocean-facts {
  border-top: 1px solid var(--line);
  margin: 0;
}

.ocean-facts > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.62fr 1.38fr;
  padding-block: 20px;
}

.ocean-facts dt,
.ocean-facts dd {
  margin: 0;
}

.ocean-facts dt,
.ocean-evidence strong {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ocean-facts dt {
  color: var(--muted);
}

.ocean-evidence {
  border-top: 1px solid var(--line);
  margin-top: clamp(52px, 6vw, 84px);
  padding-top: 24px;
}

.ocean-evidence p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 72ch;
  text-wrap: pretty;
}

.ocean-story {
  background: var(--surface);
}

.ocean-chapter {
  border-top: 1px solid var(--line);
  color: var(--brand);
  padding-block: clamp(88px, 10vw, 148px);
}

.ocean-chapter-soft {
  background: var(--surface-alt);
}

.ocean-chapter-heading {
  align-items: start;
  grid-template-columns: 0.52fr 1.48fr;
}

.ocean-chapter-heading h2 {
  margin-top: 0;
  max-width: 15ch;
}

.ocean-chapter-heading > div > p,
.project-endcap-grid > div > p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
  margin: 26px 0 0;
  max-width: 64ch;
  text-wrap: pretty;
}

.ocean-media {
  align-items: end;
  display: grid;
  gap: clamp(24px, 3.5vw, 52px);
  margin-top: clamp(56px, 7vw, 92px);
}

.ocean-media-process,
.ocean-media-arrival {
  grid-template-columns: 0.76fr 1.24fr;
}

.ocean-media-clinical {
  align-items: start;
  grid-template-columns: 1fr 1fr;
}

.ocean-figure,
.ocean-finale-media {
  margin: 0;
  min-width: 0;
}

.ocean-figure picture {
  display: block;
  overflow: hidden;
}

.ocean-figure img {
  aspect-ratio: 1.34;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  width: 100%;
}

.ocean-figure-inset {
  justify-self: end;
  max-width: 460px;
}

.ocean-figure-inset img {
  aspect-ratio: 1.05;
}

.ocean-figure-feature img {
  aspect-ratio: 1.5;
}

.ocean-figure figcaption,
.ocean-finale-media figcaption {
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  gap: 20px;
  justify-content: space-between;
  letter-spacing: 0.02em;
  padding-top: 12px;
  text-transform: uppercase;
}

.ocean-figure figcaption span:last-child,
.ocean-finale-media figcaption span:last-child {
  color: var(--muted);
  text-align: right;
}

.ocean-finale {
  padding-bottom: 0;
}

.ocean-finale-media {
  margin-top: clamp(56px, 7vw, 92px);
}

.ocean-finale-media img {
  aspect-ratio: 1.8;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  width: 100%;
}

.ocean-finale-media figcaption {
  padding-block: 14px;
}

.project-endcap {
  background: var(--accent-action);
  color: var(--brand);
  padding-block: clamp(72px, 9vw, 120px);
}

.project-endcap-grid {
  align-items: end;
  grid-template-columns: 1fr 1fr;
}

.project-endcap-grid > div:last-child {
  display: flex;
  flex-direction: column;
}

.project-endcap .primary-action {
  background: var(--brand);
  color: var(--white);
  margin-top: 30px;
}

.project-endcap .text-link {
  margin-top: 16px;
}

.approach-intro {
  display: grid;
  gap: clamp(64px, 10vw, 150px);
  grid-template-columns: 1fr 1fr;
}

.process-showcase {
  --process-duration: 7000ms;
  --process-media-block: clamp(270px, 78vw, 340px);
  background: var(--brand);
  color: var(--white);
  isolation: isolate;
  min-height: clamp(760px, 88svh, 940px);
  overflow: hidden;
  position: relative;
}

.process-backdrops,
.process-backdrop,
.process-backdrop img,
.process-wash {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.process-backdrop {
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.77, 0, 0.175, 1);
}

.process-backdrop.is-active {
  opacity: 1;
}

.process-backdrop.is-active img {
  animation: process-image-settle var(--process-duration) linear both;
}

.process-backdrop img {
  object-fit: cover;
  object-position: center;
}

.process-wash {
  background:
    linear-gradient(90deg, rgba(4, 47, 147, 0.62) 0%, rgba(4, 47, 147, 0.18) 48%, rgba(4, 47, 147, 0.08) 100%),
    linear-gradient(0deg, rgba(4, 47, 147, 0.46) 0%, transparent 46%);
  z-index: 1;
}

.process-card {
  background: rgba(248, 249, 251, 0.97);
  color: var(--brand);
  display: grid;
  grid-template-rows: auto 1fr auto;
  inset: clamp(64px, 8vh, 92px) auto clamp(64px, 8vh, 92px) clamp(20px, 6vw, 96px);
  max-width: 590px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(42px, 4.5vw, 64px);
  position: absolute;
  width: min(38vw, 590px);
  z-index: 2;
}

.process-card .eyebrow,
.process-panel,
.process-tabs {
  position: relative;
  z-index: 1;
}

.process-stage-number {
  bottom: clamp(76px, 9vh, 104px);
  color: rgba(4, 47, 147, 0.045);
  font-size: clamp(24rem, 32vw, 34rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.72;
  position: absolute;
  right: -0.04em;
  top: auto;
}

.process-stage-number.is-changing {
  animation: process-number-in 520ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.process-panel.is-changing {
  animation: process-copy-in 280ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.process-panel {
  align-self: center;
  padding-block: 52px 34px;
}

.process-panel h2 {
  font-size: clamp(2.75rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin: 0;
  max-width: 10ch;
  text-wrap: balance;
}

.process-divider {
  background: var(--brand);
  display: block;
  height: 3px;
  margin-block: 30px;
  width: 30px;
}

.process-panel > p:not(.process-proof) {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  max-width: 32ch;
  text-wrap: pretty;
}

.process-panel .process-proof {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 42ch;
  text-transform: uppercase;
}

.process-tabs {
  display: grid;
  gap: clamp(16px, 2.5vw, 34px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(4, 47, 147, 0.28);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  min-height: 50px;
  padding: 0 0 14px;
  text-align: left;
  transition:
    border-color 180ms ease,
    color 180ms ease;
  white-space: nowrap;
}

.process-tabs button span {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  margin-right: 6px;
}

.process-tabs button:hover {
  color: var(--brand);
}

.process-tabs button[aria-selected="true"] {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.process-tabs button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 5px;
}

@keyframes process-copy-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes process-number-in {
  from {
    clip-path: inset(100% 0 0);
    opacity: 0;
    transform: translateY(14%) scale(0.94);
  }
  to {
    clip-path: inset(0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes process-image-settle {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1);
  }
}

.approach-image {
  margin: 0;
}

.approach-image img {
  aspect-ratio: 1.2;
  height: auto;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  width: 100%;
}

.approach-image figcaption {
  color: var(--muted);
  padding-top: 12px;
}

.process-list-expanded {
  margin-top: clamp(72px, 9vw, 120px);
}

.process-list-expanded li {
  align-items: start;
  grid-template-columns: 42px 1fr minmax(240px, 0.75fr);
}

.process-proof {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.team {
  background: var(--surface);
}

.team-founders {
  padding: 0;
}

.team-founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(620px, 58vw, 860px);
}

.team-founders-copy {
  background:
    linear-gradient(rgba(4, 47, 147, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 47, 147, 0.055) 1px, transparent 1px),
    var(--surface-alt);
  background-size: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(56px, 7vw, 120px);
  position: relative;
}

.team-founders-copy::after {
  background: linear-gradient(90deg, transparent, var(--surface-alt));
  content: "";
  inset: 0 0 0 auto;
  pointer-events: none;
  position: absolute;
  width: clamp(80px, 9vw, 150px);
}

.team-founders-copy > * {
  position: relative;
  z-index: 1;
}

.team-founders-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-founders-story {
  max-width: 680px;
}

.team-founders-story > p {
  color: var(--muted);
  margin: 24px 0 0;
  max-width: 70ch;
  text-wrap: pretty;
}

.founder-list {
  display: grid;
  gap: clamp(24px, 4vw, 54px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.founder-list > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.founder-list .founder-portrait {
  margin: 0;
  order: -1;
}

.founder-list picture {
  background: var(--brand);
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  width: clamp(140px, 11vw, 190px);
}

.founder-list picture::after {
  background: linear-gradient(0deg, rgba(4, 47, 147, 0.82) 0%, rgba(4, 47, 147, 0.38) 38%, rgba(4, 47, 147, 0.08) 72%, transparent 100%);
  content: "";
  inset: 0;
  opacity: 0.88;
  pointer-events: none;
  position: absolute;
  transition: opacity 220ms ease;
}

.founder-list img {
  aspect-ratio: 4 / 5;
  filter: grayscale(1) contrast(1.05);
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  transition: transform 360ms cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .founder-list picture:hover img {
    transform: scale(1.025);
  }

  .founder-list picture:hover::after {
    opacity: 0.68;
  }
}

.founder-list dt {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.founder-list dd {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.02em;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.founder-list dd.founder-portrait {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.team-founders-media {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.team-founders-media picture {
  background: var(--brand);
  display: block;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.team-founders-media picture::after {
  background:
    linear-gradient(90deg, #d8dcde 0%, rgba(216, 220, 222, 0.9) 10%, rgba(216, 220, 222, 0.42) 36%, rgba(216, 220, 222, 0.12) 72%, transparent 100%),
    linear-gradient(0deg, rgba(216, 220, 222, 0.34) 0%, transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.team-founders-media img {
  height: 100%;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  width: 100%;
}

.project-quote {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  color: var(--brand);
}

.project-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-quote h2,
.project-quote figure {
  margin: 0;
  padding: clamp(42px, 4.5vw, 68px) clamp(20px, 4vw, 64px);
}

.project-quote h2 {
  border-right: 1px solid var(--line);
  font-size: var(--text-label);
}

.project-quote figure {
  grid-column: 2 / -1;
  min-width: 0;
}

.project-quote blockquote {
  margin: 0;
}

.project-quote blockquote p {
  font-size: clamp(1.75rem, 2.8vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0;
  max-width: 29ch;
  position: relative;
  text-wrap: pretty;
}

.project-quote blockquote p::before,
.project-quote blockquote p::after {
  font-weight: 400;
}

.project-quote blockquote p::before {
  content: "\201C";
  position: absolute;
  transform: translateX(-100%);
}

.project-quote blockquote p::after {
  content: "\201D";
}

.project-quote figcaption {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 18px;
}

.project-quote-author {
  display: flex;
  flex-direction: column;
}

.project-quote-author strong {
  font-size: 1rem;
  font-weight: 600;
}

.project-quote-author span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.team-founders h2 {
  font-size: clamp(2.5rem, 4.4vw, 4.75rem);
  max-width: 9ch;
  overflow-wrap: normal;
}

.team-image {
  grid-row: span 2;
  margin: 0;
}

.team-image img {
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  width: 100%;
}

.team-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-list li {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.team-list p {
  margin: 0;
}

.team-list .team-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.team-list .team-role {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  margin-top: 2px;
  text-transform: uppercase;
}

.team-list li > p:last-child {
  color: var(--muted);
  margin-top: 12px;
  max-width: 48ch;
}

.contact {
  min-height: 720px;
}

.contact-panel {
  padding: clamp(64px, 8vw, 130px);
}

.contact-actions > a:last-child {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

.contact .offices {
  margin-top: 64px;
}

.contact-image {
  background: none;
  min-width: 0;
  overflow: hidden;
}

.contact-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.intro-statement,
.case-study-heading,
.project-brief,
.approach-copy,
.team-founders-copy,
.contact-panel,
.form-field {
  min-width: 0;
}

@media (min-width: 901px) and (max-width: 1350px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    justify-self: center;
  }

  .header-contact {
    display: none;
  }

  .process-card {
    left: clamp(28px, 5vw, 52px);
    width: min(54vw, 560px);
  }
}

@media (max-width: 900px) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  /* The video control sits bottom-right. Cap the region list so it can never
     reach the control, including at very large text sizes. */
  .hero-meta {
    bottom: auto;
    left: auto;
    margin-top: auto;
    max-width: calc(100% - 88px);
    padding: 0 20px 8px;
    position: relative;
  }

  .mobile-nav {
    height: calc(100dvh - 74px);
    inset: 74px 0 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(50px + env(safe-area-inset-bottom));
    position: fixed;
  }

  .no-script-nav {
    background: var(--surface);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    inset: 74px 0 auto;
    padding: 16px 20px;
    position: absolute;
  }

  .no-script-nav a {
    min-height: 44px;
    padding-block: 10px;
  }

  .case-study-header,
  .intro .intro-grid,
  .archive-hero-grid,
  .archive-cta-grid,
  .project-details,
  .project-decisions,
  .outcomes-grid,
  .approach-intro,
  .team-grid,
  .team-founders-grid,
  .related-project-grid,
  .ocean-hero-copy,
  .ocean-overview-layout,
  .ocean-evidence,
  .ocean-chapter-heading,
  .ocean-media,
  .project-endcap-grid {
    grid-template-columns: 1fr;
  }

  .ocean-hero-copy,
  .ocean-overview-layout,
  .ocean-evidence,
  .ocean-chapter-heading,
  .project-endcap-grid {
    gap: 40px;
  }

  .ocean-hero {
    height: clamp(560px, 68svh, 640px);
  }

  .ocean-figure-inset {
    max-width: none;
  }

  .ocean-media-process .ocean-figure-inset {
    justify-self: start;
    width: 82%;
  }

  .ocean-media-arrival .ocean-figure-inset {
    justify-self: end;
    width: 78%;
  }

  .team-founders h2 {
    overflow-wrap: anywhere;
  }

  .team-founders-grid {
    min-height: 0;
  }

  .team-founders-copy {
    gap: 80px;
    min-height: 560px;
    padding: 72px 20px;
  }

  .team-founders-copy::after {
    background: linear-gradient(180deg, transparent, var(--surface-alt));
    height: 96px;
    inset: auto 0 0;
    width: auto;
  }

  /* The faded group photograph is a desktop composition: it sits beside the
     copy and the copy fades into it. Once the grid stacks, it reads as a stray
     panel below the text, so it is not shown on narrow screens. */
  .team-founders-media {
    display: none;
  }

  .project-archive-grid {
    gap: 72px 28px;
  }

  .case-study-hero img,
  .project-gallery .gallery-wide img,
  .archive-entry-featured img {
    aspect-ratio: 1.45;
  }

  .process-list-expanded li {
    grid-template-columns: 42px 1fr;
  }

  .process-proof {
    grid-column: 2;
  }

  .team-image {
    grid-row: auto;
  }

  .team-image img {
    aspect-ratio: 1.2;
    min-height: 0;
  }

  .contact {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .process-showcase {
    min-height: 0;
    padding: var(--process-media-block) 20px 20px;
  }

  .process-backdrops,
  .process-wash {
    height: clamp(320px, 88vw, 380px);
  }

  .process-backdrop img {
    object-position: center;
  }

  .process-card {
    inset: auto;
    max-width: none;
    min-height: 560px;
    padding: 32px 24px 28px;
    position: relative;
    width: 100%;
  }

  .process-stage-number {
    bottom: 82px;
    font-size: clamp(17rem, 90vw, 22rem);
    right: -0.08em;
    top: auto;
  }

  .process-panel {
    padding-block: 86px 42px;
  }

  .process-panel h2 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .process-panel > p:not(.process-proof) {
    font-size: 1rem;
  }

  .process-tabs {
    gap: 12px;
  }

  .process-tabs button {
    font-size: 0.875rem;
    min-height: 62px;
    white-space: normal;
  }

  .process-tabs button span {
    display: block;
    margin: 0 0 3px;
  }

  .projects-index-bar {
    grid-template-columns: 1fr;
  }

  .projects-index-bar a {
    min-height: 72px;
  }

  .projects-index-bar a + a {
    border-left: 0;
    border-top: 1px solid rgba(4, 47, 147, 0.3);
  }

  /* Below the wide layout the triptych stacks: the same cards, one per row,
     separated by the same 1px hairline the wide layout shows. The grid keeps
     its translucent background so that hairline matches, and it keeps no
     padding at all, so the images run edge to edge with nothing around them:
     no page margin, no surround, no carousel padding, no visible heading. */
  .project-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  /* A stacked card matches the wide card's portrait proportion instead of
     filling the viewport height the row used. */
  .project-entry {
    height: min(118vw, 620px);
  }

  .project-entry-index {
    margin-bottom: 20px;
  }

  .project-entry-description {
    margin-top: 16px;
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-backdrop.is-active img,
  .process-panel.is-changing,
  .process-stage-number.is-changing,
  .project-entry {
    animation: none;
    transition: none;
  }
}

@media (max-width: 620px) {
  :root {
    --text-label: 0.8125rem;
  }

  .contact-panel {
    padding: 72px 20px;
  }

  .intro .intro-grid,
  .intro .intro-statement {
    gap: 24px;
  }

  .intro .services-wrap {
    margin-top: 48px;
  }

  .case-study-header {
    padding-bottom: 42px;
  }

  .case-study-hero img {
    aspect-ratio: 0.95;
  }

  .case-study-hero figcaption {
    flex-direction: column;
    gap: 3px;
  }

  .project-details,
  .project-decisions {
    gap: 56px;
  }

  .project-facts > div {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .ocean-hero {
    height: clamp(560px, calc(100svh - 74px), 620px);
  }

  .ocean-hero-media img {
    object-position: 70% center;
  }

  .ocean-hero-shell {
    padding-block: 20px 32px;
  }

  .ocean-hero-copy {
    gap: 32px;
  }

  .ocean-hero h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .ocean-hero-summary > p {
    font-size: 1rem;
  }

  .ocean-overview {
    padding-block: 48px 40px;
  }

  .ocean-overview-layout {
    gap: 28px;
  }

  .ocean-facts > div {
    gap: 8px;
    grid-template-columns: 1fr;
    padding-block: 14px;
  }

  .ocean-evidence {
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .ocean-chapter {
    padding-block: 72px;
  }

  .ocean-chapter-heading {
    gap: 30px;
  }

  .ocean-media {
    gap: 34px;
    margin-top: 48px;
  }

  .ocean-figure figcaption,
  .ocean-finale-media figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .ocean-figure figcaption span:last-child,
  .ocean-finale-media figcaption span:last-child {
    text-align: left;
  }

  .ocean-finale {
    padding-bottom: 0;
  }

  .ocean-finale-media img {
    aspect-ratio: 1.05;
  }

  .project-archive-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    padding-top: 116px;
  }

  .archive-entry-featured img {
    aspect-ratio: 1.25;
  }

  .project-quote-grid {
    grid-template-columns: 1fr;
  }

  .project-quote h2 {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding-bottom: 20px;
  }

  .project-quote figure {
    grid-column: auto;
    padding-top: 32px;
  }

  .project-quote blockquote p {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    line-height: 1.2;
  }

  .project-quote blockquote p::before {
    position: static;
    transform: none;
  }

  .project-quote figcaption {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .project-gallery .gallery-wide {
    grid-column: auto;
  }

  .project-gallery img,
  .project-gallery .gallery-wide img {
    aspect-ratio: 1.08;
  }

  .decisions-list dd {
    margin-left: 0;
  }

  .outcomes-grid dl {
    grid-template-columns: 1fr;
  }

  .outcomes-grid dl > div {
    padding: 20px 0;
  }

  .outcomes-grid dl > div + div {
    border-left: 0;
    border-top: 1px solid rgba(4, 47, 147, 0.35);
  }

  .approach-image img,
  .team-image img {
    aspect-ratio: 0.9;
  }

  .process-list-expanded li {
    grid-template-columns: 34px 1fr;
  }

  .process-proof {
    font-size: var(--text-label);
  }
}

@media (max-width: 900px) and (max-height: 600px) {
  .hero-content {
    gap: 12px;
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    max-width: 12ch;
  }

  .hero-copy {
    line-height: 1.4;
  }

  .mobile-nav {
    gap: 8px;
    padding-block: 18px calc(18px + env(safe-area-inset-bottom));
  }

  .mobile-nav a:not(:last-child) {
    font-size: clamp(1.75rem, 7vh, 2.5rem);
    line-height: 1.15;
  }
}
