/* Grounded in website develop: 6833:75082 and 6833:71052. */
:root { --page-gutter: 80px; --header-height: 90px; --accent: #29e5a7; }
.header { position: fixed; z-index: 20; height: var(--header-height); min-height: 0; padding: 32px var(--page-gutter); background: transparent; opacity: 1; transition: none; }
.nav { margin-left: 0; }
.nav__link[aria-disabled], .language-switcher__button[aria-disabled] { cursor: default; }
a:focus-visible, button:focus-visible { outline: 2px solid #245ffe; outline-offset: 6px; }
.intro { top: 243px; }
.selected-work { display: flex; flex-direction: column; min-height: max(820px, 100svh); padding-top: 50px; scroll-margin-top: var(--header-height); }
.work-meta { display: flex; justify-content: space-between; align-items: center; padding: 32px var(--page-gutter); font: 12px/15px Inter, sans-serif; text-transform: uppercase; }
.work-meta h2 { font: inherit; margin: 0; }
.work-meta > * { flex: 1; }
.work-meta > :nth-child(2) { text-align: center; }
.work-meta > :last-child { text-align: right; }
.project-card { display: flex; align-items: flex-start; justify-content: center; gap: clamp(32px, 12.6389vw, 182px); padding: 50px 44px; margin-top: 50px; }
.project-card__copy { flex: 0 1 302px; display: flex; flex-direction: column; gap: 12px; }
.project-card__copy h3 { margin: 0; font: 400 17px/21px Inter, sans-serif; }
.project-card__copy p { margin: 0; color: #0008; font: 400 15px/18px Inter, sans-serif; }
.project-card > img { display: block; width: min(64.2%, 868px); height: auto; min-width: 0; }
.project-card:focus-visible { outline-offset: -6px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 32px var(--page-gutter); font: 400 12px/15px Inter, sans-serif; }
.selected-work > .site-footer { margin-top: auto; }
.case-study { position: relative; isolation: isolate; padding-top: 106px; min-height: 0; padding-bottom: 100px; }
.case-backdrop { display: none; }
.case-section[data-figma-id="6833:71061"] { position: relative; isolation: isolate; }
.case-section[data-figma-id="6833:71061"]::before { content: none; }
.case-content { max-width: 1442px; margin: 0 auto; }
.case-text { margin: 0; white-space: pre-line; flex-shrink: 1; min-width: 0; }
.case-group { min-width: 0; flex-shrink: 1; }
.case-section.layout-row > .case-text { flex: 0 1 506px; }
.case-section.layout-row > .case-group { flex: 0 1 743px; }
.case-section .layout-row[style*="612px"] { gap: 30px !important; }
.case-section .layout-row[style*="29px"] { width: max-content !important; max-width: 100%; }
.case-section .layout-row[style*="29px"] > .case-text { white-space: nowrap; }
.case-section .layout-row[style*="29px"] > .case-text { flex-shrink: 0; }
.case-group:has(> .principle-title) { width: max-content !important; max-width: 100%; }
.principle-title { max-width: 100% !important; }
.principle-title { display: inline-block; width: fit-content; border-bottom: 2px solid #000; padding-bottom: 5px; cursor: default; transform-origin: left center; transition: font-size 160ms ease, border-color 160ms ease; }
.principle-title:hover { font-size: 22px !important; font-weight: 500 !important; border-bottom: 4px solid var(--accent); }
.case-figure { margin: 0; overflow: hidden; }
.case-figure > img { display: block; width: 100%; height: auto; }
.case-figure[data-figma-id="6833:71205"] { overflow-x: auto; }
.case-figure[data-figma-id="6833:71205"] > img { width: 129.9237%; max-width: none; }
.journey-comparison { display: flex; flex-direction: column; gap: 10px; }
.comparison-toolbar { display: flex; justify-content: flex-end; padding-right: var(--page-gutter); }
.changes-toggle { display: inline-flex; align-items: center; gap: 10px; height: 35px; padding: 10px; border: 1px solid #000; border-radius: 30px; color: #000; opacity: .5; font: 600 11px/13px Inter, sans-serif; }
.changes-toggle[aria-checked="true"], .changes-toggle:hover, .changes-toggle:focus-visible { opacity: 1; }
.toggle-dot { display: block; width: 11px; height: 11px; border: 1px solid #000; border-radius: 50%; }
.changes-toggle[aria-checked="true"] .toggle-dot { background: #212121; border-color: #212121; }
.journey-comparison > img { display: block; width: 100%; height: auto; }
.impact-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch !important; grid-auto-rows: 1fr; }
.impact-cards > .case-group { width: auto !important; }
.case-page .nav__link { font-weight: 400; }
.case-image-trigger { cursor: zoom-in; }
.case-image-trigger:focus-visible { outline: 2px solid #245ffe; outline-offset: -3px; }
html:has(.image-viewer[open]) { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #111e; color: white; }
.image-viewer::backdrop { background: #111; }
.image-viewer__toolbar { position: absolute; z-index: 1; top: 16px; right: 16px; display: flex; gap: 12px; }
.image-viewer__toolbar button { padding: 12px 16px; border: 1px solid #ffffff70; border-radius: 24px; background: #222; color: white; font: 14px/1.2 Inter, sans-serif; cursor: pointer; }
.image-viewer__stage { width: 100%; height: 100%; overflow: auto; padding: 80px 24px 24px; display: grid; place-items: center; }
.image-viewer__image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 104px); object-fit: contain; cursor: zoom-in; }
.image-viewer.is-zoomed .image-viewer__stage { display: block; }
.image-viewer.is-zoomed .image-viewer__image { max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.image-viewer--interactive .image-viewer__stage,
.image-viewer--interactive.is-zoomed .image-viewer__stage { display: grid; overflow: hidden; touch-action: none; overscroll-behavior: contain; user-select: none; }
.image-viewer--interactive .image-viewer__image,
.image-viewer--interactive.is-zoomed .image-viewer__image { max-width: none; max-height: none; margin: 0; transform-origin: center; transition: none; }
.image-viewer--interactive.is-zoomed .image-viewer__image { cursor: grab; }
.image-viewer--interactive.is-zoomed .image-viewer__image:active { cursor: grabbing; }
.next-project { max-width: 1440px; margin: 100px auto 0; padding: 0 var(--page-gutter); display: flex; justify-content: flex-end; align-items: center; gap: 25px; font: 400 17px/21px Inter,sans-serif; cursor: default; }
.next-project img { width: 9px; height: 18px; }
a.next-project { cursor: pointer; }
a.next-project:hover { text-decoration: none; }
@media (max-width: 1100px) {
  :root { --page-gutter: 40px; }
  .case-section { padding-left: var(--page-gutter) !important; padding-right: var(--page-gutter) !important; }
  .case-section.layout-row > .case-text { flex-basis: 36%; }
  .case-section.layout-row > .case-group { flex-basis: 60%; }
  .case-section .layout-row { flex-wrap: wrap; }
  .project-card { padding-inline: 40px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 24px; --header-height: 68px; }
  .home { min-height: 100svh; }
  .intro { top: 31svh; }
  .selected-work { min-height: calc(100svh - var(--header-height)); padding-top: 20px; }
  .work-meta { gap: 16px; font-size: 10px; }
  .project-card { flex-direction: column; gap: 32px; padding: 32px 24px; margin-top: 24px; }
  .project-card__copy { flex-basis: auto; }
  .project-card > img { width: 100%; }
  .case-study { padding-top: var(--header-height); min-height: 0; padding-bottom: 100px; }
 .case-section[data-figma-id="6833:71061"]::before { top: calc(-1 * var(--header-height)); }
 .impact-cards { grid-template-columns: 1fr; }
  .case-section { flex-direction: column !important; gap: 28px !important; padding: 48px var(--page-gutter) !important; }
  .case-section > .case-group, .case-section > .case-text { width: 100% !important; max-width: 100% !important; flex-basis: auto !important; }
  .case-section .layout-row { flex-wrap: wrap; gap: 16px !important; }
  .case-section .layout-row[style*="29px"] > .case-text { white-space: normal; }
  .case-section .layout-row[style*="29px"] > .case-text { flex-shrink: 1; }
  .case-section .layout-row[style*="29px"] > .case-text:nth-child(2) { display: none; }
  .case-text { max-width: 100% !important; }
  .case-figure, .journey-comparison { overflow-x: hidden; }
  .case-figure > img, .journey-comparison > img { min-width: 0; }
  .case-figure[data-figma-id="6833:71078"] > img { min-width: 0; }
  .principle-title:hover { font-size: 19px !important; }
  .next-project { margin-top: 48px; font-size: 14px; }
}
.project-card--deposit { margin-top: 40px; }
.project-card--deposit > img { width: min(61.8%, 835.5555px); }
.deposit-page .case-study { min-height: 0; padding-bottom: 145px; }
.deposit-intro { position: relative; isolation: isolate; }
.deposit-intro::before { content: none; }
.deposit-intro [data-figma-id="6844:84064"] { flex-shrink: 0; }
.case-list p, .case-list ul { margin: 0; }
.case-list ul { padding-left: 1.3em; white-space: normal; }
.deposit-routing { width: calc(100% - 160px); margin: 0 auto; }
.case-demo { position: relative; margin: 0; padding: 48px 24px; border-bottom: 1px solid #0000000f; text-align: center; background: #f4f4f8; }
.demo-expand { display: inline-flex; position: relative; max-width: 100%; padding: 0; border: 0; cursor: zoom-in; background: transparent; }
.deposit-demo { display: block; height: 500px; width: auto; max-width: 100%; object-fit: contain; }
.video-viewer .image-viewer__stage { cursor: default; }
.video-viewer video { display: block; height: calc(100dvh - 104px); width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 1100px) {
 .deposit-routing { width: calc(100% - 80px); }
 .deposit-intro [data-figma-id="6844:84062"] { flex-wrap: wrap; }
}
@media (max-width: 760px) {
 .project-card--deposit > img { width: 100%; }
 .deposit-intro::before { top: calc(-1 * var(--header-height)); }
 .deposit-intro [data-figma-id="6844:84064"] { flex-shrink: 1; }
 .deposit-routing { width: calc(100% - 48px); }
 .case-demo { padding-inline: 24px; }
 .deposit-page .next-project { margin-top: 76px; }
}
@media (prefers-reduced-motion: reduce) { .header, .principle-title { transition: none; } }
/* Keep navigation on one aligned row until a genuinely narrow phone viewport. */
@media (max-width:760px) {
 :root { --header-height: 68px; }
 .header { height: var(--header-height); padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
 .header .logo { white-space: nowrap; }
 .header .nav { display: flex; margin: 0; width: auto; justify-content: flex-start; gap: 20px; font-size: 14px; white-space: nowrap; }
 .header .language-switcher { width: auto; justify-self: end; font-size: 14px; }
}
@media (max-width:520px) {
 :root { --header-height: 100px; }
 .header { grid-template-columns: 1fr auto; row-gap: 12px; }
 .header .nav { grid-row: 2; grid-column: 1 / -1; }
 .header .language-switcher { grid-row: 1; grid-column: 2; }
}
/* Fit page artwork, not the independently zoomable lightbox image. */
@media (max-width:1100px) {
 main img { max-width: 100%; min-width: 0; }
 .case-figure[data-figma-id="6833:71205"] > img { width: 100%; max-width: 100%; }
 .case-figure > img, .journey-comparison > img { width: 100%; height: auto; min-width: 0; }
}
