﻿/* --------------------------------------------------------------------------
   Place font files in css/fonts/ (names below) or update src paths.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "GeistMono-Regular";
  src: url("fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

   @font-face {
    font-family: "Suisse Intl";
    src: url("fonts/SuisseIntl-Regular.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }   

   @font-face {
  font-family: "Suisse Intl";
  src: url("fonts/SuisseIntl-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("fonts/SuisseIntl-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("fonts/SuisseIntl-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* --------------------------------------------------------------------------
   Type system (sizes, weights, line-height, tracking)
   -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --content-pad: clamp(1.75rem, 4vw, 3rem);
  --color-bg: #0a0a0a;
  --color-surface: #121212;
  --color-text: #ffffff;
  --color-border: #383838;
  --color-muted: #888888;
  --color-subtle: #9c9c9c;
  --color-success: #3ddc84;
  --color-warning: #f2b84b;
  --scrollbar-track: var(--color-bg);
  --scrollbar-thumb: color-mix(in srgb, var(--color-text) 28%, var(--color-surface));
  --scrollbar-thumb-hover: color-mix(in srgb, var(--color-text) 42%, var(--color-surface));
  --font-sans: "Suisse Intl", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "GeistMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fw-regular: 300;
  --fw-book: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --type-xs: 0.6875rem;
  --type-sm: 0.8125rem;
  --type-md: 0.9375rem;
  --type-lg: clamp(1.6rem, 2.95vw, 2.9rem);
  --type-display: clamp(1.75rem, 3.2vw, 3.25rem);

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-body: 1.5;

  --tracking-tight: -0.03em;
  --tracking-display: -0.02em;
  --tracking-nav: 0.02em;
  --tracking-caps: 0.06em;

  /* Nav collapses to hamburger at this width and below */
  --header-nav-breakpoint: 768px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f5f5f5;
  --color-surface: #ededed;
  --color-text: #121212;
  --color-border: #c7c7c7;
  --color-muted: #6f6f6f;
  --color-subtle: #646464;
  --color-success: #1f8f4f;
  --color-warning: #9c6512;
  --scrollbar-thumb: color-mix(in srgb, var(--color-text) 22%, var(--color-bg));
  --scrollbar-thumb-hover: color-mix(in srgb, var(--color-text) 38%, var(--color-bg));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
}

html,
.split,
.split__left > .hero,
.project-info-panel {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
.split::-webkit-scrollbar,
.split__left > .hero::-webkit-scrollbar,
.project-info-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
.split::-webkit-scrollbar-track,
.split__left > .hero::-webkit-scrollbar-track,
.project-info-panel::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
.split::-webkit-scrollbar-thumb,
.split__left > .hero::-webkit-scrollbar-thumb,
.project-info-panel::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb:hover,
.split::-webkit-scrollbar-thumb:hover,
.split__left > .hero::-webkit-scrollbar-thumb:hover,
.project-info-panel::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Project case studies: allow document scroll + sticky TOC (global html cap breaks sticky) */
html:has(body.project-page--doc),
html.project-doc-html {
  height: auto;
  min-height: 100dvh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.project-page--doc),
  html.project-doc-html {
    scroll-behavior: auto;
  }
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--type-md);
  line-height: var(--leading-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

body.project-page {
  /* Same inset as `.split__left > .hero`; extra bottom space vs footer overlay */
  --hero-pad: var(--content-pad);
  --project-page-pad-bottom: calc(2 * var(--hero-pad));
  padding-top: var(--hero-pad);
  padding-right: var(--hero-pad);
  padding-bottom: var(--project-page-pad-bottom);
  padding-left: var(--hero-pad);
  background: var(--color-surface);
}

/* Project doc layout: TOC rail (`.project-doc-shell`) + case study column (`.project-doc`) */
body.project-page--doc {
  /* Block layout avoids flex scrollport quirks with position:sticky in some browsers */
  display: block;
  overflow: visible;
  max-height: none;
  height: auto;
  min-height: 100dvh;
}

/* Loaded inside index iframe on desktop — content height only, no extra chrome */
body.project-page--embed.project-page--doc {
  min-height: 0;
}

body.project-page--embed .project-doc-shell {
  min-height: 0;
}

body.project-page--embed .project-doc__toc-column {
  min-height: 0;
}

/* Outer frame: fixed-width TOC rail + fluid column for the case study (`.project-doc`). */
.project-doc-shell {
  --project-doc-toc-shell-max: 14rem;
  display: grid;
  grid-template-columns: minmax(0, var(--project-doc-toc-shell-max)) minmax(0, 1fr);
  column-gap: var(--content-pad);
  row-gap: 0;
  align-items: stretch;
  min-height: 100dvh;
}

/* TOC rail; sticky nav lives inside `.project-toc`. */
.project-doc__toc-column {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 100dvh;
}

.project-doc__toc-column::after {
  content: "";
  position: absolute;
  /* Extend into body padding so the rule meets the top/bottom of the page chrome */
  top: calc(-1 * var(--hero-pad, var(--content-pad)));
  right: 0;
  bottom: calc(-1 * var(--project-page-pad-bottom, var(--hero-pad, var(--content-pad))));
  width: 1px;
  background: var(--color-border);
  pointer-events: none;
}

/* Case study column only (no TOC); stays max-width inside the second shell track. */
.project-doc {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.project-toc {
  position: sticky;
  /* Must match body padding so sticky doesn’t “jump” vs in-flow layout (was smaller vw clamp) */
  top: var(--hero-pad, var(--content-pad));
  z-index: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.project-toc__inner {
  box-sizing: border-box;
  text-align: left;
  padding-right: var(--hero-pad, var(--content-pad));
  margin-right: 0;
}

.project-toc__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
}

.project-toc__link {
  display: block;
  text-align: left;
  font-size: var(--type-xs);
  font-family: var(--font-mono);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-subtle);
  line-height: 1.35;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.project-toc__link:hover,
.project-toc__link:focus-visible {
  color: var(--color-text);
  opacity: 1;
}

.project-main {
  display: flex;
  flex-direction: column;
  --project-main-block-gap: clamp(4.6rem, 8.75vw, 7.25rem);
  gap: 0;
  min-width: 0;
}

.project-main > .project-block:not([hidden]) + .project-block:not([hidden]) {
  padding-top: var(--project-main-block-gap);
}

.project-block {
  min-width: 0;
}

/* Shared image placeholder (replace <figure> with <img> later) */
.project-media-placeholder {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--color-text) 7%, var(--color-surface));
  border-radius: 0;
}

.project-media-placeholder--blank {
  background: #fff;
}

.project-block figure {
  margin: 0;
}

/* Header block: title + subheading + hero media */
.project-header-block {
  --project-header-media-gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

body.project-page .project-header-block__title {
  margin: 0;
  font-size: var(--type-lg);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-display);
  /* Tighter than --leading-tight: extra space was mostly line-box, not margin */
  line-height: 1.05;
}

body.project-page .project-header-block__title:has(+ .project-header-block__sub) {
  margin-bottom: 0.35rem;
}

.project-header-block__sub {
  margin: 0;
  max-width: 65ch;
  font-size: var(--type-xs);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-nav);
  color: var(--color-subtle);
}

.project-header-block__sub + .project-text-block__paragraph {
  margin-top: 1.5rem;
  color: var(--color-subtle);
}

.project-header-block .project-media-placeholder {
  margin-top: var(--project-header-media-gap);
}

.project-header-block figure:has(> img),
.project-section-block figure:has(> img) {
  display: block;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.project-header-block figure:has(> img) {
  margin-top: var(--project-header-media-gap);
  margin-bottom: 0;
}

.project-section-block figure:has(> img) {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
}

.project-header-block figure:has(> img) img,
.project-section-block figure:has(> img) img {
  display: block;
  width: 100%;
  height: auto;
}

.project-header-block figure:has(> video),
.project-section-block figure:has(> video) {
  display: block;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.project-header-block figure:has(> video) {
  margin-top: var(--project-header-media-gap);
  margin-bottom: 0;
}

.project-section-block figure:has(> video) {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
}

.project-header-block figure:has(> video) video,
.project-section-block figure:has(> video) video {
  display: block;
  width: 100%;
  height: auto;
}

.project-media-stack {
  --project-stack-gap: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--project-stack-gap);
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
}

.project-header-block > .project-media-stack {
  margin-top: var(--project-header-media-gap);
  margin-bottom: 0;
}

.project-section-block > .project-media-stack > figure:has(> img),
.project-section-block > .project-media-stack > figure:has(> video),
.project-header-block > .project-media-stack > figure:has(> img),
.project-header-block > .project-media-stack > figure:has(> video) {
  margin: 0;
}

/* Video preview: muted autoplay + play button to unlock sound/controls */
.project-video-preview {
  position: relative;
}

.project-video-preview__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.17s ease-in-out, transform 0.17s ease-in-out;
}

.project-video-preview__play svg {
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
}

.project-video-preview__play:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.project-video-preview__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  opacity: 1;
}

.project-video-preview--active .project-video-preview__play {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-video-preview__play {
    transition: none;
  }
}

.project-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.project-media-row--balance {
  display: flex;
  align-items: flex-start;
}

.project-media-row--balance > figure {
  flex: var(--media-flex, 1) 1 0;
  min-width: 0;
}

.project-media-stack > .project-media-row > figure:has(> img),
.project-media-stack > .project-media-row > figure:has(> video),
.project-media-split > figure:has(> img),
.project-media-split > figure:has(> video) {
  margin: 0;
}

/* Side image aligns to the top of the main image; the tail stays under the main column. */
.project-media-split {
  display: grid;
  grid-template-columns: var(--split-main, 1fr) var(--split-side, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.project-media-split__main {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.project-media-split__side {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: start;
}

.project-media-split__tail {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

@media (max-width: 640px) {
  .project-media-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-media-row--balance {
    flex-direction: column;
  }

  .project-media-row--balance > figure {
    flex: none;
    width: 100%;
  }

  .project-media-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-media-split__side,
  .project-media-split__tail {
    grid-column: 1;
  }

  .project-media-split__side {
    grid-row: 2;
  }

  .project-media-split__tail {
    grid-row: 3;
  }
}

/* Project image carousel */
.project-carousel {
  position: relative;
  margin: 0;
  line-height: 0;
  outline: none;
}

.project-carousel__viewport {
  position: relative;
  overflow: hidden;
}

.project-carousel__viewport::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
  pointer-events: none;
}

.project-carousel__track {
  display: flex;
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-section-block .project-carousel__slide,
.project-header-block .project-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
}

.project-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
}

.project-carousel__control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.17s ease-in-out;
}

.project-carousel__control svg {
  display: block;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.55));
}

.project-carousel__control:hover {
  opacity: 1;
}

.project-carousel__control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  opacity: 1;
}

.project-carousel__control--prev {
  left: 0.65rem;
}

.project-carousel__control--next {
  right: 0.65rem;
}

.project-carousel__dots {
  position: absolute;
  right: 0;
  bottom: 1rem;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  line-height: 0;
  pointer-events: auto;
}

.project-carousel__dot {
  width: 0.4rem;
  height: 0.4rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.17s ease-in-out, transform 0.17s ease-in-out;
}

.project-carousel__dot:hover,
.project-carousel__dot:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.project-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.project-carousel__dot--active {
  background: #fff;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .project-carousel__track {
    transition: none;
  }
}

/* Before / after image compare */
.project-compare {
  margin: 0;
  line-height: 0;
}

.project-compare__viewport {
  position: relative;
  --compare-split: 50%;
  overflow: hidden;
  border-radius: 0;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.project-compare__image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.project-compare__image--before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--compare-split)) 0 0);
}

.project-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-split);
  z-index: 2;
  width: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  transform: translateX(-50%);
  cursor: ew-resize;
  color: #fff;
  touch-action: none;
}

.project-compare__handle:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.project-compare__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.project-compare__handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.project-compare__handle-grip svg {
  display: block;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45));
}

.project-compare.is-dragging .project-compare__viewport,
.project-compare.is-dragging .project-compare__handle {
  cursor: ew-resize;
}

/* Section block: split header, media, footer copy */
.project-section-block__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(40%, 22rem));
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.project-section-block__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.05vw, 1.6rem);
  font-weight: var(--fw-book);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.project-section-block__meta {
  margin: 0;
  font-size: var(--type-sm);
  line-height: var(--leading-body);
  color: var(--color-subtle);
}

.project-section-block .project-media-placeholder {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.project-media-stack > .project-media-placeholder {
  margin-bottom: 0;
}

.project-section-block__footer .project-text-block__paragraph {
  margin: 0;
  max-width: 65ch;
}

/* Standard body text block */
.project-text-block__paragraph {
  margin: 0;
  font-size: var(--type-md);
  line-height: var(--leading-body);
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
  max-width: 65ch;
}

/* Emphasis / statement block */
.project-statement-block__text {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.45rem);
  font-weight: var(--fw-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  max-width: 42rem;
}

[id^="chapter-"] {
  scroll-margin-top: 1rem;
}

.project-main > .project-block.project-header-block,
.project-main > .project-block[data-nav] {
  /* Match body.project-page top padding so in-page nav leaves the same inset above the section */
  scroll-margin-top: var(--hero-pad, var(--content-pad));
}

/* Project case study: staggered entrance (TOC links + main blocks) */
@keyframes project-doc-enter {
  0% {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes project-doc-enter-toc {
  0% {
    transform: translateY(0.35rem);
  }
  100% {
    transform: translateY(0);
  }
}

/* TOC built by project-doc.js from `.project-header-block` titles; stagger via inline animation-delay */
.project-page--doc .project-toc__nav > .project-toc__link {
  opacity: 0.5;
  animation: project-doc-enter-toc 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-page--doc .project-toc__nav > .project-toc__link.project-toc__link--active {
  opacity: 0.75;
  color: var(--color-text);
  font-weight: var(--fw-regular);
}

.project-page--doc .project-main > .project-block {
  opacity: 0;
  animation: project-doc-enter 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-page--doc .project-main > .project-block:nth-child(1) {
  animation-delay: 0.14s;
}
.project-page--doc .project-main > .project-block:nth-child(2) {
  animation-delay: 0.225s;
}
.project-page--doc .project-main > .project-block:nth-child(3) {
  animation-delay: 0.31s;
}
.project-page--doc .project-main > .project-block:nth-child(4) {
  animation-delay: 0.395s;
}
.project-page--doc .project-main > .project-block:nth-child(5) {
  animation-delay: 0.48s;
}
.project-page--doc .project-main > .project-block:nth-child(6) {
  animation-delay: 0.565s;
}
.project-page--doc .project-main > .project-block:nth-child(7) {
  animation-delay: 0.65s;
}
.project-page--doc .project-main > .project-block:nth-child(8) {
  animation-delay: 0.735s;
}
.project-page--doc .project-main > .project-block:nth-child(9) {
  animation-delay: 0.82s;
}
.project-page--doc .project-main > .project-block:nth-child(10) {
  animation-delay: 0.905s;
}
.project-page--doc .project-main > .project-block:nth-child(11) {
  animation-delay: 0.99s;
}
.project-page--doc .project-main > .project-block:nth-child(12) {
  animation-delay: 1.075s;
}
.project-page--doc .project-main > .project-block:nth-child(n + 13) {
  animation-delay: 1.16s;
}

@media (prefers-reduced-motion: reduce) {
  .project-page--doc .project-main > .project-block {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .project-page--doc .project-toc__nav > .project-toc__link {
    animation: none;
    transform: none;
    opacity: 0.5;
  }

  .project-page--doc .project-toc__nav > .project-toc__link.project-toc__link--active {
    opacity: 0.75;
  }
}

@media (max-width: 900px) {
  .project-doc-shell {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.75rem;
  }

  .project-doc__toc-column {
    min-height: 0;
  }

  .project-doc__toc-column::after {
    display: none;
  }

  .project-toc {
    position: static;
    top: auto;
    z-index: auto;
  }

  .project-toc__inner {
    padding-top: 0.85rem;
    padding-right: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    overflow: visible;
  }

  .project-toc__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.85rem 1.25rem;
    overflow: visible;
  }

  .project-page--doc .project-toc__nav > .project-toc__link {
    animation: none;
    transform: none;
    opacity: 0.5;
    line-height: 1.4;
  }

  .project-page--doc .project-toc__nav > .project-toc__link.project-toc__link--active {
    opacity: 0.75;
  }

  .project-section-block__header {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .project-section-block__header > .project-section-block__title {
    margin-bottom: 0;
  }
}

body.project-page h1,
body.project-page h2,
body.project-page h3,
body.project-page h4,
body.project-page h5,
body.project-page h6 {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

body.project-page h1 {
  font-size: var(--type-display);
}

body.project-page p,
body.project-page li,
body.project-page span {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--type-md);
  line-height: var(--leading-body);
}

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

a:hover {
  opacity: 0.85;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top bar */
.site-header {
  position: relative;
  z-index: 200;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* padding: 1.75rem 3rem; */
  padding: clamp(1.05rem, 2.5vw, 1.05rem) clamp(1.75rem, 4vw, 3rem);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--type-sm);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-nav);
}

.site-header__start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.site-header__project-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  margin: 0;
  max-width: min(46vw, 22rem);
  font-size: var(--type-sm);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-nav);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-header__project-title[hidden] {
  display: none !important;
}

.site-header__name {
  display: inline-flex;
  flex-shrink: 0;
  align-items: baseline;
  white-space: nowrap;
}

.site-header__name-letter {
  display: inline-block;
  will-change: transform;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-header__name-letter {
    transform: none !important;
  }
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem clamp(1.75rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--color-surface) 40%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
}

.site-footer__copyright {
  color: var(--color-subtle);
  font-size: var(--type-xs);
  line-height: 1;
  white-space: nowrap;
  opacity: 0.8;
}

.site-footer__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--color-subtle);
  font-size: var(--type-xs);
  line-height: 1;
  white-space: nowrap;
  opacity: 0.55;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  opacity: 0.9;
}

.site-footer__links .site-header__link-arrow {
  position: absolute;
  right: 100%;
  margin-right: 0.35rem;
  opacity: 0;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__links a:hover .site-header__link-arrow,
.site-footer__links a:focus-visible .site-header__link-arrow {
  opacity: 1;
  transform: translateX(-0.28em);
}

.site-header__menu-toggle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-header__menu-toggle:hover {
  opacity: 0.85;
}

.site-header__menu-toggle:focus-visible {
  outline: none;
}

.site-header__menu-bars {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.site-header__menu-bars::before,
.site-header__menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.site-header__menu-bars::before {
  top: -6px;
}

.site-header__menu-bars::after {
  top: 6px;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-bars {
  background: transparent;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: stretch;
  flex: none;
  gap: 0;
  padding: 1rem clamp(1.75rem, 4vw, 3rem) 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__menu.is-open {
  display: flex;
}

.site-header__links {
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  opacity: 1;
}

.site-header__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  opacity: 0.55;
}

.site-header__links a:hover {
  opacity: 0.9;
}

.site-header__link-arrow {
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header__links a:hover .site-header__link-arrow,
.site-header__links a:focus-visible .site-header__link-arrow {
  transform: translateX(-0.28em);
}

.site-theme-toggle {
  --theme-toggle-size: 1.9rem;
  --theme-toggle-gap: 0.25rem;
  --theme-toggle-pad: 0.3rem;
  --theme-toggle-index: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--theme-toggle-gap);
  padding: var(--theme-toggle-pad);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
}

.site-theme-toggle::before {
  content: "";
  position: absolute;
  top: var(--theme-toggle-pad);
  left: var(--theme-toggle-pad);
  width: var(--theme-toggle-size);
  height: var(--theme-toggle-size);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text) 12%, transparent);
  transform: translateX(calc(var(--theme-toggle-index) * (var(--theme-toggle-size) + var(--theme-toggle-gap))));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-theme-toggle__btn {
  position: relative;
  z-index: 1;
  width: var(--theme-toggle-size);
  height: var(--theme-toggle-size);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-subtle);
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
}

.site-theme-toggle__btn.is-active {
  color: var(--color-text);
}

.site-theme-toggle__glyph {
  display: inline-block;
  transform: translateY(-0.02em);
}

.site-theme-toggle__btn[data-theme-choice="system"] .site-theme-toggle__glyph {
  transform: translate(0.01em, -0.01em);
}

.site-theme-toggle__btn[data-theme-choice="light"] .site-theme-toggle__glyph {
  transform: translateY(-0.02em);
}

.site-theme-toggle__btn[data-theme-choice="dark"] .site-theme-toggle__glyph {
  transform: translate(-0.01em, -0.01em);
}

.site-theme-toggle__btn:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 1px;
}

/* Split layout — fills viewport below header; never taller than the display */
.split {
  display: grid;
  grid-template-columns: 3.5fr 6.5fr;
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}

.split__left {
  --split-left-preview-step-delay: 200ms;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow: hidden;
}

.split__left > .hero,
.split__left-bottom {
  min-width: 0;
}

.split__left > .hero {
  --hero-pad: var(--content-pad);
  --hero-status-reserve: 1.85rem;
  container-type: inline-size;
  flex: 0 0 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  overflow-y: auto;
  /* border-bottom: 1px solid #383838; */
  padding-top: calc(var(--hero-pad) + var(--hero-status-reserve));
  padding-right: var(--hero-pad);
  padding-bottom: var(--hero-pad);
  padding-left: var(--hero-pad);
}

.split__left-bottom {
  flex: 0 0 50%;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-top: 1px solid var(--color-border);
}

@keyframes split__left_bottom_intro {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.split__left.split__left--hover-out-replay > .split__left-bottom {
  animation: split__left_bottom_intro 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--split-left-preview-step-delay);
}

@media (prefers-reduced-motion: reduce) {
  .split__left.split__left--hover-out-replay > .split__left-bottom {
    animation: none;
    animation-delay: 0ms;
    opacity: 1;
    transform: none;
  }
}

.thumb-board {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.thumb-board__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumb-board__loader-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #c7c7c7;
  animation: thumb-loader-pulse 0.85s ease-in-out infinite alternate;
}

@keyframes thumb-loader-pulse {
  0% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.thumb-board--loading .thumb-board__loader {
  opacity: 1;
}

.thumb-board--loading .thumb-grid {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.thumb-grid {
  --thumb-gap: clamp(0.72rem, 1.95vw, 1.05rem);
  --thumb-pad: var(--content-pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--thumb-gap);
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: var(--thumb-pad);
  list-style: none;
  align-content: start;
  justify-items: stretch;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.2s ease;
  scrollbar-width: none;
}

.thumb-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.thumb-grid__cell {
  margin: 0;
  padding: 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.32s ease-out, transform 0.32s ease-out;
  transition-delay: var(--thumb-reveal-delay, 0ms);
}

.thumb-board:not(.thumb-board--loading) .thumb-grid__cell {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .thumb-grid__cell {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }
}

.thumb-grid__link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: clamp(0.2rem, 0.4vw, 0.4rem);
  cursor: pointer;
  background: transparent;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.thumb-grid__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #5a5a5a;
  object-fit: cover;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

img.thumb-grid__img {
  height: auto;
}

.thumb-board--carousel .thumb-grid__link:not(.thumb-grid__link--rotate-active) .thumb-grid__img {
  opacity: 0.25;
}

.thumb-board--carousel .thumb-grid__link:hover .thumb-grid__img,
.thumb-board--carousel .thumb-grid__link:focus-visible .thumb-grid__img {
  opacity: 1;
}

.thumb-grid:has(.thumb-grid__link:hover) .thumb-grid__link:not(:hover) .thumb-grid__img {
  opacity: 0.25;
}

.thumb-grid:focus-within:has(.thumb-grid__link:focus-visible) .thumb-grid__link:not(:focus-visible) .thumb-grid__img {
  opacity: 0.25;
}

.thumb-grid__link--rotate-active .thumb-grid__img {
  opacity: 1;
}

.thumb-grid__link:hover .thumb-grid__img,
.thumb-grid__link:focus-visible .thumb-grid__img {
  opacity: 1;
  filter: brightness(1.08);
}

.thumb-grid__link:hover,
.thumb-grid__link:focus-visible {
  transform: scale(1.03);
}

.thumb-grid__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.thumb-grid__link:active {
  transform: scale(0.98);
}

.thumb-grid__link[data-project="external-data-conf"] {
  position: relative;
}

.thumb-grid__link[data-project="external-data-conf"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  text-align: left;
  overflow: hidden;
  color: var(--hero-text-color, var(--color-text));
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 180ms ease;
}

:root[data-theme="light"] .hero.hero--use-dark-treatment {
  --hero-text-color: #ffffff;
  --hero-subtle-color: color-mix(in srgb, #ffffff 50%, transparent);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: rgb(0 0 0 / var(--hero-overlay-strength, 0.6));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: none;
}

:root[data-theme="light"] .hero::after {
  background: rgb(255 255 255 / var(--hero-overlay-strength, 0.6));
}

.hero.hero--project-active::after {
  opacity: 1;
}

.hero.hero--project-open::after {
  opacity: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    opacity 550ms cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0s linear 550ms,
    backdrop-filter 0s linear 550ms;
}

body.is-project-open .split__left > .hero > .hero__title,
body.is-project-open .split__left > .hero > .hero__meta,
body.is-project-open .split__left > .hero > .hero__status-progress {
  opacity: 0;
  pointer-events: none;
  transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.split:has(.project-viewport:not([hidden])) .hero.hero--project-settled > .hero__title,
.split:has(.project-viewport:not([hidden])) .hero.hero--project-settled > .hero__meta,
.split:has(.project-viewport:not([hidden])) .hero.hero--project-settled > .hero__status,
.split:has(.project-viewport:not([hidden])) .hero.hero--project-settled > .hero__status-progress {
  display: none !important;
}

.split:has(.project-viewport:not([hidden])) .hero.hero--project-settled {
  --hero-status-reserve: 0;
  padding-top: var(--hero-pad);
  justify-content: center;
  min-height: clamp(11rem, 30vw, 17rem);
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--project-open::after,
  body.is-project-open .split__left > .hero > .hero__title,
  body.is-project-open .split__left > .hero > .hero__meta,
  body.is-project-open .split__left > .hero > .hero__status-progress {
    transition: none;
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__status {
  position: absolute;
  top: var(--hero-pad);
  left: var(--hero-pad);
  right: var(--hero-pad);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.34rem;
  width: auto;
  max-width: calc(100% - (2 * var(--hero-pad)));
  margin: 0;
  color: var(--hero-subtle-color, color-mix(in srgb, var(--color-text) 50%, transparent));
  pointer-events: none;
}

.hero__status-progress {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.hero__status-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-success);
  opacity: 0.75;
  transform-origin: left center;
  transform: scaleX(0);
}

.hero__status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.1;
  opacity: 1;
}

.hero__status-countdown {
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

#hero-status-state {
  font-weight: var(--fw-medium);
}

.hero__status[data-autoplay="on"] #hero-status-state {
  color: var(--color-success);
}

.hero__status[data-autoplay="off"] #hero-status-state {
  color: var(--color-warning);
}

.hero__status[data-autoplay="on"] .hero__status-countdown {
  display: none;
}

.hero__status[data-autoplay="on"] ~ .hero__status-progress {
  display: block;
}

.hero__status.is-countdown-hidden .hero__status-countdown {
  display: none;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 7cqi, 2.75rem);
  font-weight: var(--fw-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  max-width: max-content;
}

.hero__title.hero__title--intro-fade {
  animation: hero-title-intro-fade 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0ms;
}

.hero__meta.hero__meta--intro-fade {
  animation: hero-title-intro-fade 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0ms;
}

/* Stagger: meta follows title (default landing + return from project hover) */
.hero .hero__title.hero__title--intro-fade ~ .hero__meta.hero__meta--intro-fade {
  animation-delay: 100ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title.hero__title--intro-fade,
  .hero__meta.hero__meta--intro-fade {
    animation: none;
    animation-delay: 0ms;
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-title-intro-fade {
  0% {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero-meta:empty {
  display: none;
}

.hero__meta {
  margin: 1.75rem 0 0;
  font-size: var(--type-sm);
  line-height: var(--leading-body);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.hero__meta .muted {
  color: var(--hero-subtle-color, color-mix(in srgb, var(--color-text) 50%, transparent));
  padding-inline: 0.35rem;
  font-size: inherit;
}

.hero__meta .company {
  display: inline;
  padding-inline: 0.35rem;
  font-size: inherit;
}

.hero__meta .company:has(.hero__company-mark) {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.hero__meta .company .hero__company-mark {
  display: block;
  height: 1.125rem;
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.17s ease-in-out;
}

.hero__meta .company .hero__company-mark.is-fading {
  opacity: 0;
}

.split__right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
  background-color: var(--color-surface);
}

.project-viewport {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border: none;
  background-color: transparent;
}

.project-viewport:not([hidden]) {
  display: block;
}

.split__right:has(.project-viewport:not([hidden])) .thumb-board {
  display: none;
}

.project-viewport__close {
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  color: var(--color-text);
  font: inherit;
  font-size: var(--type-sm);
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header__back.project-viewport__close,
a.site-header__back.site-header__back--page {
  position: static;
  flex: 0 0 auto;
  opacity: 0.65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.project-viewport__close[hidden] {
  display: none !important;
}

.project-viewport__close:not([hidden]) {
  display: inline-flex;
  animation: project-close-fade-in 0.22s ease-out both;
}

.project-viewport__close-icon {
  display: inline-block;
  font-size: 1.35em;
  transform: translateY(-0.02em);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-viewport__close:hover,
.project-viewport__close:focus-visible {
  opacity: 0.9;
}

.project-viewport__close:hover .project-viewport__close-icon,
.project-viewport__close:focus-visible .project-viewport__close-icon {
  transform: translate(-0.28em, -0.02em);
}

@keyframes project-close-fade-in {
  0% {
    opacity: 0;
    transform: translateY(0.2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-viewport__close:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.project-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.work-preview {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
}

.work-preview[hidden] {
  display: none !important;
}

.project-info-panel {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: var(--content-pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.875rem, 3.3vw, 3rem);
  overflow: auto;
  background: var(--color-surface);
  --scrollbar-track: var(--color-surface);
}

.project-info-panel[hidden] {
  display: none !important;
}

.project-info-panel__meta {
  margin: 0;
  padding-left: 0.9rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.project-info-panel__meta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--color-text);
  transform-origin: top;
  transform: scaleY(1);
}

.project-info-panel__meta-row[hidden] {
  display: none;
}

.project-info-panel__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--type-sm);
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  text-transform: uppercase;
}

.project-info-panel__meta-row dt,
.project-info-panel__meta-row dd {
  margin: 0;
}

.project-info-panel__meta-row dt {
  color: var(--color-text);
}

.project-info-panel__meta-row dd {
  color: var(--color-text);
}

.project-info-panel__summary {
  margin: 0;
  max-width: 65ch;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--type-md);
  line-height: calc(var(--leading-body) + 0.12);
  color: var(--color-subtle);
}

.project-info-panel.is-animating .project-info-panel__meta::before {
  animation: project-info-line-draw 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-info-panel.is-animating .project-info-panel__meta-row {
  opacity: 0;
  transform: translateY(0.35rem);
  animation: project-info-fade-up 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-info-panel.is-animating .project-info-panel__meta-row:nth-child(1) {
  animation-delay: 90ms;
}

.project-info-panel.is-animating .project-info-panel__meta-row:nth-child(2) {
  animation-delay: 180ms;
}

.project-info-panel.is-animating .project-info-panel__meta-row:nth-child(3) {
  animation-delay: 270ms;
}

.project-info-panel.is-animating .project-info-panel__summary {
  opacity: 0;
  transform: translateY(0.45rem);
  animation: project-info-fade-up 420ms cubic-bezier(0.22, 1, 0.36, 1) 360ms both;
}

@keyframes project-info-line-draw {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes project-info-fade-up {
  0% {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-info-panel.is-animating .project-info-panel__meta::before,
  .project-info-panel.is-animating .project-info-panel__meta-row,
  .project-info-panel.is-animating .project-info-panel__summary {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.work-preview__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    ellipse 45% 40% at 50% 48%,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 65%
  );
  animation: ai-glow-breathe 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ai-glow-breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.work-preview__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  object-fit: cover;
  object-position: center;
}

.work-preview__media--default {
  z-index: 1;
  opacity: 0.5;
}

@keyframes work-preview-media-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

.work-preview.work-preview--media-fade-in .work-preview__media--default {
  animation: work-preview-media-fade-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  .work-preview.work-preview--media-fade-in .work-preview__media--default {
    animation: none;
    animation-delay: 0ms;
    opacity: 0.5;
  }
}

.work-preview__media--hover {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.work-preview__media--hover.is-active {
  opacity: 1;
}

.work-preview--show-hover .work-preview__media--hover-generic {
  opacity: 1;
}

@media (max-width: 1200px) {
  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.thumb-grid__label {
  display: none;
}

.project-page-intro {
  display: none;
}

.project-page-intro__hero {
  position: relative;
  width: 100%;
  min-height: clamp(11rem, 38vw, 17rem);
  overflow: hidden;
}

.project-page-intro__hero-img {
  display: block;
  width: 100%;
  height: clamp(11rem, 38vw, 17rem);
  object-fit: cover;
}

.project-page-intro__info.project-info-panel {
  display: flex;
  flex: none;
  min-height: 0;
  overflow: visible;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    display: block;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .split {
    display: flex;
    flex-direction: column;
    flex: none;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .split__left {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    min-height: 0;
    overflow: visible;
    flex: none;
    display: flex;
    flex-direction: column;
  }

  .split__left-bottom {
    display: none;
  }

  .split__left > .hero {
    flex: none;
    --hero-status-reserve: 0;
    justify-content: flex-start;
    overflow: visible;
    padding-top: var(--hero-pad);
  }

  .hero__title {
    margin-top: clamp(1.5rem, 5vw, 2.25rem);
  }

  .hero__status,
  .hero__status-progress {
    display: none !important;
  }

  .split__right {
    min-height: 0;
    overflow: visible;
    flex: none;
    padding-bottom: calc(1.4rem + var(--type-xs) + 1px);
  }

  .thumb-board {
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .thumb-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .thumb-grid__link {
    transform: none !important;
  }

  .thumb-grid__link:hover,
  .thumb-grid__link:focus-visible,
  .thumb-grid__link:active {
    transform: none !important;
  }

  .thumb-grid__img,
  .thumb-board--carousel .thumb-grid__link:not(.thumb-grid__link--rotate-active) .thumb-grid__img,
  .thumb-grid:has(.thumb-grid__link:hover) .thumb-grid__link:not(:hover) .thumb-grid__img,
  .thumb-grid:focus-within:has(.thumb-grid__link:focus-visible) .thumb-grid__link:not(:focus-visible) .thumb-grid__img {
    border-radius: clamp(0.2rem, 0.4vw, 0.4rem);
    opacity: 1 !important;
    filter: none !important;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
  }

  body.project-page:has(.site-header) {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body.project-page:has(.project-page-intro) .project-doc-shell {
    min-height: 0;
    padding-left: var(--hero-pad);
    padding-right: var(--hero-pad);
  }

  .project-page-intro {
    display: block;
  }

  body.project-page .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
  }
}

@media (max-width: 900px) {
  .site-header__back.site-header__back--page {
    display: inline-flex;
  }
}

@media (min-width: 901px) {
  .site-header__back.site-header__back--page {
    display: none;
  }
}

html:has(body.gate-page),
body.gate-page {
  background: transparent;
}

body.gate-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

html.project-gate-pending .project-doc-shell {
  display: none !important;
}

.gate {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: var(--content-pad);
}

.project-page .gate--project {
  flex: none;
  min-height: 16rem;
}

.gate__stage {
  display: grid;
  place-items: center;
  width: min(100%, 18rem);
}

.gate__sphere {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  pointer-events: none;
  background: transparent;
}

.gate__sphere svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gate__message {
  grid-area: 1 / 1;
  z-index: 1;
  margin: 0;
  max-width: 22rem;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  font-weight: var(--fw-regular);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-nav);
  text-align: center;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

@media (max-width: 900px) {
  html.project-gate-pending:has(body.project-page) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  html.project-gate-pending body.project-page.project-page--doc {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 0;
  }

  html.project-gate-pending .project-page-intro {
    flex: none;
  }

  html.project-gate-pending .gate.gate--project {
    flex: 1 1 auto;
  }
}

/* 3D project carousel — desktop cylinder. Mobile keeps the stacked thumbnail list. */
@media (min-width: 901px) {
  .thumb-board--3d {
    justify-content: center;
  }

  .thumb-board--3d .carousel-3d {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .thumb-board--3d .carousel-3d__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: var(--carousel-perspective, 1100px);
    perspective-origin: 50% 46%;
    overflow: visible;
    cursor: grab;
    touch-action: none;
    user-select: none;
  }

  .thumb-board--3d .carousel-3d__viewport.is-dragging {
    cursor: grabbing;
  }

  .thumb-board--3d .carousel-3d__viewport.is-dragging .thumb-grid__link {
    pointer-events: none;
  }

  .thumb-board--3d.thumb-board--loading .thumb-grid {
    opacity: 1;
    visibility: hidden;
  }

  .thumb-board--3d .thumb-grid.carousel-3d__cylinder {
    position: relative;
    flex: none;
    width: var(--face-w, 240px);
    height: var(--face-h, 160px);
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;
    align-content: normal;
    transform-style: preserve-3d;
    transform: rotateY(var(--carousel-rot, 0deg));
    transition: none;
    list-style: none;
  }

  .thumb-board--3d .carousel-3d__cylinder.is-animating {
    transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .thumb-board.thumb-board--3d .thumb-grid__cell,
  .thumb-board.thumb-board--3d:not(.thumb-board--loading) .thumb-grid__cell {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    opacity: 1;
    transform: var(--face-transform, none);
    transform-style: preserve-3d;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transition: none;
  }

  .thumb-board--3d .thumb-grid__link,
  .thumb-board--3d .thumb-grid__back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .thumb-board--3d .thumb-grid__link {
    height: 100%;
    border-radius: 0.95rem;
    box-shadow: 0 18px 44px rgb(0 0 0 / 0.38);
    transform: none;
  }

  .thumb-board--3d .thumb-grid__back {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: rotateY(180deg);
    background: transparent;
  }

  .thumb-board--3d .thumb-grid__img--back {
    border-radius: 0.95rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .thumb-board--3d .thumb-grid__cell.is-front .thumb-grid__link {
    box-shadow: 0 22px 54px rgb(0 0 0 / 0.48);
  }

  .thumb-board--3d .thumb-grid__link:hover,
  .thumb-board--3d .thumb-grid__link:focus-visible,
  .thumb-board--3d .thumb-grid__link:active {
    transform: none;
  }

  .thumb-board--3d .thumb-grid__img,
  .thumb-board--3d .thumb-grid:has(.thumb-grid__link:hover) .thumb-grid__link:not(:hover) .thumb-grid__img,
  .thumb-board--3d .thumb-grid:focus-within:has(.thumb-grid__link:focus-visible) .thumb-grid__link:not(:focus-visible) .thumb-grid__img,
  .thumb-board--3d.thumb-board--carousel .thumb-grid__link:not(.thumb-grid__link--rotate-active) .thumb-grid__img,
  .thumb-board--3d .thumb-grid__link--rotate-active .thumb-grid__img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    opacity: 1;
    border-radius: inherit;
    object-fit: cover;
  }

  .thumb-board--3d .thumb-grid__link:hover .thumb-grid__img,
  .thumb-board--3d .thumb-grid__link:focus-visible .thumb-grid__img {
    opacity: 1;
    filter: brightness(1.05);
  }
}

@media (max-width: 900px) {
  .thumb-board--3d .carousel-3d,
  .thumb-board--3d .carousel-3d__viewport {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    perspective: none;
    cursor: auto;
    touch-action: auto;
  }

  .thumb-board--3d .thumb-grid.carousel-3d__cylinder,
  .thumb-board--3d .thumb-grid__cell {
    transform: none !important;
  }

  .thumb-board--3d .thumb-grid__back {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thumb-board--3d .carousel-3d__cylinder.is-animating {
    transition: none;
  }
}

/* Horizontal filmstrip — desktop. Mobile keeps the stacked thumbnail list. */
@media (min-width: 901px) {
  .thumb-board--strip {
    justify-content: center;
  }

  .thumb-board--strip .strip-carousel {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
  }

  .thumb-board--strip .strip-carousel__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
  }

  .thumb-board--strip .strip-carousel__viewport.is-dragging {
    cursor: grabbing;
  }

  .thumb-board--strip .strip-carousel__viewport.is-dragging .thumb-grid__link {
    pointer-events: none;
  }

  .thumb-board--strip.thumb-board--loading .thumb-grid,
  .thumb-board--strip.thumb-board--loading .strip-carousel__title,
  .thumb-board--strip.thumb-board--loading .strip-carousel__count {
    opacity: 1;
    visibility: hidden;
  }

  .thumb-board--strip .thumb-grid.strip-carousel__track {
    position: relative;
    display: block;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
  }

  .thumb-board.thumb-board--strip .thumb-grid__cell,
  .thumb-board.thumb-board--strip:not(.thumb-board--loading) .thumb-grid__cell {
    position: absolute;
    top: var(--strip-center, 46%);
    left: 0;
    width: auto;
    margin: 0;
    opacity: 1;
    transform: translate3d(0, -50%, 0);
    transition: none;
  }

  .thumb-board--strip .thumb-grid__link {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .thumb-board--strip .thumb-grid__link:hover,
  .thumb-board--strip .thumb-grid__link:focus-visible,
  .thumb-board--strip .thumb-grid__link:active {
    transform: none;
  }

  .thumb-board--strip .thumb-grid__img,
  .thumb-board--strip .thumb-grid:has(.thumb-grid__link:hover) .thumb-grid__link:not(:hover) .thumb-grid__img,
  .thumb-board--strip .thumb-grid:focus-within:has(.thumb-grid__link:focus-visible) .thumb-grid__link:not(:focus-visible) .thumb-grid__img,
  .thumb-board--strip.thumb-board--carousel .thumb-grid__link:not(.thumb-grid__link--rotate-active) .thumb-grid__img,
  .thumb-board--strip .thumb-grid__link--rotate-active .thumb-grid__img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    opacity: 1;
    border-radius: 0;
    object-fit: cover;
    filter: none;
  }

  .thumb-board--strip .thumb-grid__link:hover .thumb-grid__img,
  .thumb-board--strip .thumb-grid__link:focus-visible .thumb-grid__img {
    opacity: 1;
    filter: brightness(1.04);
  }

  .strip-carousel__title {
    position: absolute;
    top: var(--strip-center, 46%);
    left: 50%;
    z-index: 2;
    margin: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 18px rgb(0 0 0 / 0.45);
  }

  .strip-carousel__title-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.12em;
  }

  .strip-carousel__title-text {
    display: block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.45vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transform: translate3d(0, 0, 0);
    transition: transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .strip-carousel__title.is-leaving .strip-carousel__title-text {
    transform: translate3d(0, -110%, 0);
  }

  .strip-carousel__title.is-enter .strip-carousel__title-text {
    transform: translate3d(0, 110%, 0);
    transition: none;
  }

  .strip-carousel__count {
    position: absolute;
    left: 50%;
    bottom: 3.35rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: none;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
  }

  .strip-carousel__count-current,
  .strip-carousel__count-total {
    min-width: 1.1em;
    text-align: center;
  }

  .strip-carousel__count-rule {
    width: 1.35rem;
    text-align: center;
    opacity: 0.7;
  }
}

@media (max-width: 900px) {
  .thumb-board--strip .strip-carousel,
  .thumb-board--strip .strip-carousel__viewport {
    display: contents;
  }

  .thumb-board--strip .strip-carousel__title,
  .thumb-board--strip .strip-carousel__count {
    display: none;
  }

  .thumb-board--strip .thumb-grid__cell {
    position: static;
    width: auto !important;
    height: auto !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strip-carousel__title-text {
    transition: none;
  }
}

/* Cyber60 market charts */
.cyber60-charts {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--project-stack-gap, clamp(1rem, 2vw, 1.5rem));
}

.cyber60-charts .c60-chart,
.cyber60-charts .c60-chart--double {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.cyber60-charts .c60-chart--double {
  flex-grow: 1.35;
}

.c60-chart {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
  text-transform: uppercase;
  container-type: inline-size;
}

.c60-frame {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 1.05rem 1.15rem 0.95rem;
  background: var(--color-surface);
}

.c60-head {
  display: flex;
  justify-content: flex-end;
  min-height: 1rem;
  margin-bottom: 0.85rem;
}

body.project-page .c60-head__range {
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.5;
}

.c60-legend {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.85rem;
  padding: 0 0 0 0.15rem;
  list-style: none;
}

.c60-head .c60-legend {
  margin: 0;
  padding: 0;
}

.c60-chart--double .c60-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

body.project-page .c60-legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.c60-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.55rem;
  flex: 0 0 auto;
}

.c60-swatch--traditional {
  background: #8a9ead;
}

.c60-swatch--cloud {
  background: #ff6838;
}

.c60-draw {
  position: relative;
  flex: 1 1 auto;
  height: auto;
  min-height: var(--c60-draw, 17rem);
}

.c60-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.c60-line {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.c60-line:last-child {
  z-index: 2;
  border-top-color: #fff;
}

body.project-page .c60-line span {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-50%);
  padding-right: 0.5rem;
  background: var(--color-surface);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

body.project-page .c60-line__wide {
  padding-right: 1.15rem;
}

.c60-columns {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0.15rem;
  bottom: 0;
  left: var(--c60-axis, 4rem);
  display: flex;
  align-items: flex-end;
}

.c60-baseline {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: var(--c60-axis, 4rem);
  height: 1px;
  background: #fff;
  pointer-events: none;
}

.c60-col {
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
}

.c60-bar {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 0;
  background: #fff;
  font-style: normal;
}

body.project-page .c60-bar > span {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 0.3rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.c60-chart--double .c60-bar {
  width: 0.95rem;
}

.c60-bar--traditional {
  background: #8a9ead;
}

.c60-bar--cloud {
  background: #ff6838;
}

body.project-page .c60-chart--double .c60-bar > span {
  bottom: auto;
  top: 0.85rem;
  width: auto;
  margin: 0;
  color: #000;
  font-size: 0.58rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center center;
}

.c60-years {
  display: flex;
  margin-top: 0.7rem;
  margin-right: 0.15rem;
  margin-left: var(--c60-axis, 4rem);
}

body.project-page .c60-years span {
  flex: 1 1 0;
  min-width: 0;
  font-size: clamp(0.5rem, 3.1cqi, 0.72rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .cyber60-charts {
    flex-direction: column;
  }

  .cyber60-charts .c60-chart,
  .cyber60-charts .c60-chart--double {
    width: 100%;
    flex: none;
  }

  .c60-frame {
    padding: 0.85rem 0.7rem 0.75rem;
  }

  body.project-page .c60-line span,
  body.project-page .c60-years span,
  body.project-page .c60-bar > span {
    font-size: 0.58rem;
  }
}

