:root {
  --color-bg-light: #f3eee4;
  --color-bg-light-secondary: #e6dece;
  --color-bg-dark: #0c1117;
  --color-bg-dark-secondary: #121a23;
  --color-surface-light: rgba(255, 251, 244, 0.72);
  --color-surface-light-strong: rgba(255, 250, 243, 0.94);
  --color-surface-dark: rgba(20, 29, 39, 0.78);
  --color-surface-dark-strong: rgba(25, 36, 49, 0.96);
  --color-text-primary: #101317;
  --color-text-secondary: #50575f;
  --color-text-muted: #7f868c;
  --color-text-primary-dark: #edf1f5;
  --color-text-secondary-dark: #aab2bb;
  --color-text-muted-dark: #78828b;
  --color-accent-primary: #2d9f95;
  --color-accent-primary-hover: #247f77;
  --color-accent-primary-soft: rgba(45, 159, 149, 0.18);
  --color-highlight-gold: #c49a57;
  --color-highlight-gold-soft: rgba(196, 154, 87, 0.2);
  --color-whisper-lavender: rgba(167, 139, 250, 0.1);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 104px;
  --space-8: 144px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 40px;

  --font-heading: "Satoshi", sans-serif;
  --font-body: "General Sans", sans-serif;
  --font-editorial: "Newsreader", serif;

  --heading-1-size: 76px;
  --heading-2-size: 48px;
  --heading-3-size: 30px;
  --body-large-size: 21px;
  --body-large-line: 33px;
  --body-regular-size: 17px;
  --body-regular-line: 28px;
  --body-small-size: 14px;
  --body-small-line: 22px;
  --label-size: 12px;
  --label-line: 16px;
  --label-weight: 500;
  --ui-button-size: 15px;
  --ui-button-line: 18px;
  --ui-button-weight: 500;

  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
  --hero-max-width: 1380px;

  --page-background:
    radial-gradient(circle at 10% 6%, rgba(196, 154, 87, 0.16), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(45, 159, 149, 0.16), transparent 24%),
    radial-gradient(circle at 58% 48%, rgba(196, 154, 87, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(243, 238, 228, 0.98)),
    var(--color-bg-light);
  --page-text: var(--color-text-primary);
  --text-secondary-current: var(--color-text-secondary);
  --text-muted-current: var(--color-text-muted);
  --surface-section: linear-gradient(180deg, rgba(255, 250, 244, 0.82), rgba(252, 245, 235, 0.7));
  --surface-panel: var(--color-surface-light);
  --surface-panel-strong: var(--color-surface-light-strong);
  --panel-ring: rgba(16, 19, 23, 0.08);
  --panel-shadow:
    0 0 0 1px rgba(16, 19, 23, 0.05),
    0 18px 50px rgba(16, 19, 23, 0.08);
  --panel-shadow-hover:
    0 0 0 1px rgba(16, 19, 23, 0.08),
    0 24px 64px rgba(16, 19, 23, 0.12);
  --section-shadow: 0 30px 96px rgba(67, 52, 27, 0.1);
  --hairline: rgba(16, 19, 23, 0.09);
  --toggle-track: rgba(16, 19, 23, 0.08);
  --toggle-thumb: rgba(255, 255, 255, 0.92);
  --button-primary-background: var(--color-text-primary);
  --button-primary-text: #fcfaf5;
  --button-secondary-background: rgba(255, 250, 242, 0.78);
  --button-secondary-border: rgba(16, 19, 23, 0.08);
  --mode-dim-opacity: 0.3;
  --header-surface: rgba(255, 252, 247, 0.72);
  --header-surface-strong: rgba(255, 252, 247, 0.9);
  --nav-hover: rgba(16, 19, 23, 0.05);
  --footer-link-surface: rgba(255, 252, 247, 0.6);
}

body[data-color-mode="dark"] {
  --page-background:
    radial-gradient(circle at 14% 10%, rgba(196, 154, 87, 0.12), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(45, 159, 149, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(11, 17, 23, 0.98), rgba(12, 17, 23, 1)),
    var(--color-bg-dark);
  --page-text: var(--color-text-primary-dark);
  --text-secondary-current: var(--color-text-secondary-dark);
  --text-muted-current: var(--color-text-muted-dark);
  --surface-section: linear-gradient(180deg, rgba(20, 29, 39, 0.7), rgba(15, 23, 31, 0.62));
  --surface-panel: var(--color-surface-dark);
  --surface-panel-strong: var(--color-surface-dark-strong);
  --panel-ring: rgba(237, 241, 245, 0.08);
  --panel-shadow:
    0 0 0 1px rgba(237, 241, 245, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.34);
  --panel-shadow-hover:
    0 0 0 1px rgba(237, 241, 245, 0.14),
    0 28px 84px rgba(0, 0, 0, 0.44);
  --section-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  --hairline: rgba(237, 241, 245, 0.08);
  --toggle-track: rgba(237, 241, 245, 0.08);
  --toggle-thumb: rgba(237, 241, 245, 0.96);
  --button-primary-background: var(--color-text-primary-dark);
  --button-primary-text: #0d1219;
  --button-secondary-background: rgba(25, 36, 49, 0.72);
  --button-secondary-border: rgba(237, 241, 245, 0.08);
  --header-surface: rgba(18, 25, 35, 0.76);
  --header-surface-strong: rgba(21, 30, 42, 0.94);
  --nav-hover: rgba(237, 241, 245, 0.06);
  --footer-link-surface: rgba(25, 36, 49, 0.72);
}

body[data-lightbox-open="true"] {
  overflow: hidden;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-background);
  color: var(--page-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 220ms var(--ease-out-strong),
    color 220ms var(--ease-out-strong);
}

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

button {
  font: inherit;
}

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

.page-shell {
  width: min(calc(100% - (var(--space-5) * 2)), var(--hero-max-width));
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-7);
}

.site-header,
.hero,
.mode-lab,
.selected-work,
.modes-section,
.background-section,
.notes-section,
.site-footer,
.case-study-shell {
  position: relative;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.header-center {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.header-eyebrow {
  margin: 0;
  color: var(--text-muted-current);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-mark {
  display: inline-grid;
  gap: 4px;
}

.site-mark-name {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-mark-role {
  max-width: 30ch;
  color: var(--text-secondary-current);
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
}

.site-nav {
  display: inline-flex;
  justify-self: center;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--header-surface-strong) 88%, transparent);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(14px);
}

.site-nav a {
  position: relative;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  overflow: hidden;
  transition:
    color 180ms var(--ease-out-strong),
    background-color 180ms var(--ease-out-strong),
    transform 180ms var(--ease-out-strong);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  background: color-mix(in srgb, var(--color-accent-primary) 60%, transparent);
  transform: scaleX(0.2);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 180ms var(--ease-out-strong),
    opacity 180ms var(--ease-out-strong);
}

.site-nav a,
.footer-links a,
.project-link,
.back-link {
  color: var(--text-secondary-current);
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  transition: color 180ms var(--ease-out-strong);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.project-link:hover,
.project-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--page-text);
  outline: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--nav-hover);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(196, 154, 87, 0.12), rgba(45, 159, 149, 0.08)),
    color-mix(in srgb, var(--header-surface) 86%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 14px 34px rgba(16, 19, 23, 0.08);
  color: var(--page-text);
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  transition:
    transform 180ms var(--ease-out-strong),
    box-shadow 180ms var(--ease-out-strong);
}

.availability-pill:hover,
.availability-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--color-accent-primary) 32%, var(--hairline)),
    0 18px 40px rgba(16, 19, 23, 0.12);
  outline: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-panel-strong) 86%, transparent);
  color: var(--page-text);
  box-shadow: var(--panel-shadow);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out-strong),
    box-shadow 200ms var(--ease-out-strong);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--panel-shadow-hover);
  outline: none;
}

.theme-toggle:active,
.mode-button:active,
.button:active {
  transform: scale(0.97);
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--toggle-track);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  box-shadow: 0 2px 8px rgba(16, 19, 23, 0.14);
  transition:
    transform 180ms var(--ease-out-strong),
    background-color 220ms var(--ease-out-strong);
}

body[data-color-mode="dark"] .theme-toggle-thumb {
  transform: translateX(18px);
}

.theme-toggle-label,
.section-kicker,
.hero-meta-label,
.project-index,
.mode-number,
.note-label,
.timeline-year,
.depth-label,
.visual-label,
.project-overline,
.depth-project-label {
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--label-size);
  line-height: var(--label-line);
  font-weight: var(--label-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero,
.mode-lab,
.selected-work,
.modes-section,
.background-section,
.case-study-shell {
  overflow: hidden;
  border-radius: var(--band-radius, var(--radius-xl));
  background: var(--band-surface, var(--surface-section));
  box-shadow: var(--band-shadow, var(--section-shadow));
  isolation: isolate;
}

.hero::before,
.mode-lab::before,
.selected-work::before,
.modes-section::before,
.background-section::before,
.case-study-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(
    --band-atmosphere,
    linear-gradient(125deg, rgba(45, 159, 149, 0.06), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(196, 154, 87, 0.12), transparent 28%),
    radial-gradient(circle at 18% 86%, rgba(167, 139, 250, 0.08), transparent 26%)
  );
  pointer-events: none;
  z-index: -2;
}

.hero::after,
.mode-lab::after,
.selected-work::after,
.modes-section::after,
.background-section::after,
.case-study-shell::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--band-radius, var(--radius-xl)) - 1px);
  box-shadow: inset 0 0 0 1px var(--band-ring, var(--panel-ring));
  pointer-events: none;
  z-index: -1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 64vh;
  padding: clamp(32px, 4.6vw, 64px);
}

.hero-copy-block {
  position: relative;
  z-index: 2;
}

.hero-intro {
  max-width: 31ch;
  margin: 0 0 18px;
}

.editorial-line {
  font-family: var(--font-editorial);
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-title {
  max-width: 13.6ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.hero-description,
.section-heading p,
.project-description,
.project-points li,
.mode-panel p,
.background-story p,
.timeline-item p,
.note-strip p,
.note-article p,
.hero-meta p,
.mode-lab-copy p,
.case-study-section p,
.placeholder-card p,
.case-study-lead p {
  color: var(--text-secondary-current);
  font-size: var(--body-large-size);
  line-height: var(--body-large-line);
  text-wrap: pretty;
}

.hero-description {
  max-width: 43ch;
  margin: var(--space-3) 0 0;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
}

.hero-actions,
.project-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-actions {
  margin-top: var(--space-4);
}

.button,
.mode-button,
.note-open,
.note-reader-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  font-size: var(--ui-button-size);
  line-height: var(--ui-button-line);
  font-weight: var(--ui-button-weight);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out-strong),
    box-shadow 200ms var(--ease-out-strong),
    background-color 200ms var(--ease-out-strong),
    color 200ms var(--ease-out-strong),
    border-color 200ms var(--ease-out-strong),
    opacity 200ms var(--ease-out-strong);
}

.button-primary {
  background: var(--button-primary-background);
  color: var(--button-primary-text);
  box-shadow: 0 16px 36px rgba(16, 19, 23, 0.18);
}

.button-secondary {
  background: var(--button-secondary-background);
  color: var(--page-text);
  box-shadow: inset 0 0 0 1px var(--button-secondary-border);
}

.button:hover,
.button:focus-visible,
.mode-button:hover,
.mode-button:focus-visible,
.note-open:hover,
.note-open:focus-visible,
.note-reader-close:hover,
.note-reader-close:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-meta {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
}

.hero-meta p {
  margin: 8px 0 0;
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.meta-block {
  min-height: 100%;
}

.hero-depth {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: stretch;
}

.depth-stage {
  position: relative;
  min-height: 100%;
  perspective: 1800px;
  transform-style: preserve-3d;
  width: min(100%, 520px);
  margin-left: auto;
}

.depth-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 2%;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 26% 18%, rgba(196, 154, 87, 0.1), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(45, 159, 149, 0.1), transparent 24%);
  filter: blur(10px);
  pointer-events: none;
}

.depth-layer {
  position: absolute;
  width: min(100%, 356px);
  min-height: 260px;
  padding: 22px 22px 20px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-panel) 92%, transparent);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(16px);
  transition:
    transform 220ms var(--ease-out-strong),
    opacity 220ms var(--ease-out-strong),
    box-shadow 220ms var(--ease-out-strong),
    filter 220ms var(--ease-out-strong);
}

.depth-layer h2 {
  max-width: 11ch;
  margin: var(--space-2) 0 0;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.depth-layer p {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary-current);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.depth-layer-back {
  top: 0;
  left: 0;
  opacity: 0.92;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(196, 154, 87, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 62%),
    color-mix(in srgb, var(--surface-panel) 94%, transparent);
}

.depth-layer-mid {
  top: 18px;
  left: 84px;
  opacity: 0.92;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(45, 159, 149, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(196, 154, 87, 0.08), transparent 60%),
    color-mix(in srgb, var(--surface-panel) 94%, transparent);
}

.depth-layer-front {
  top: 40px;
  left: 168px;
  width: min(100%, 356px);
  z-index: 3;
  background: color-mix(in srgb, var(--surface-panel-strong) 94%, transparent);
}

.depth-layer-back h2,
.depth-layer-mid h2 {
  max-width: none;
  font-size: 30px;
  margin-top: 28px;
}

.depth-layer-back p,
.depth-layer-mid p {
  max-width: 19ch;
  font-size: 15px;
  line-height: 23px;
}

.depth-layer-back p:not(.depth-project-label),
.depth-layer-mid p:not(.depth-project-label) {
  display: none;
}

.depth-layer-back .depth-project-label,
.depth-layer-mid .depth-project-label {
  margin-top: 26px;
}

.depth-project-copy {
  max-width: 26ch;
}

.depth-device-frame {
  margin-top: 20px;
  width: 100%;
  max-width: 266px;
  padding: 10px;
  border-radius: 30px;
  background: rgba(14, 18, 24, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.depth-device-screen {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(45, 159, 149, 0.36), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(196, 154, 87, 0.24), transparent 28%),
    linear-gradient(180deg, #17323a, #0d141a 72%);
}

.screen-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 60% 42%, rgba(255, 255, 255, 0.06), transparent 20%);
}

.screen-stack {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 9px;
}

.screen-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(252, 250, 245, 0.1);
  color: #f4efe6;
  backdrop-filter: blur(10px);
}

.hero-flow-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(145deg, rgba(45, 159, 149, 0.08), transparent 46%),
    color-mix(in srgb, var(--surface-panel-strong) 94%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 24px 58px rgba(16, 19, 23, 0.14);
  overflow: hidden;
}

.hero-flow-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 159, 149, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-flow-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  width: 100%;
}

.hero-flow-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 4vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-flow-logo-shell {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(45, 159, 149, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(10, 16, 22, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(5, 10, 16, 0.22);
}

.hero-flow-logo-shell img {
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16));
}

.hero-flow-card-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary-current);
  max-width: 36ch;
}

.hero-flow-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(196, 154, 87, 0.06), rgba(45, 159, 149, 0.14)),
    color-mix(in srgb, var(--surface-panel) 76%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--page-text);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.hero-flow-link:hover,
.hero-flow-link:focus-visible {
  background:
    linear-gradient(135deg, rgba(196, 154, 87, 0.1), rgba(45, 159, 149, 0.18)),
    color-mix(in srgb, var(--surface-panel) 82%, transparent);
  outline: none;
}

.mode-lab,
.selected-work,
.modes-section,
.background-section,
.notes-section,
.case-study-shell {
  margin-top: var(--space-4);
  padding: var(--band-padding, clamp(var(--space-4), 5vw, var(--space-6)));
}

.mode-lab {
  display: grid;
  gap: var(--space-3);
}

.mode-lab-copy {
  max-width: 58ch;
}

.mode-lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: var(--space-4);
  align-items: start;
}

.mode-lab-companion {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-4);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(196, 154, 87, 0.18), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(45, 159, 149, 0.16), transparent 26%),
    color-mix(in srgb, var(--surface-panel) 92%, transparent);
  box-shadow: var(--panel-shadow);
}

.mode-companion-label,
.visual-floating-label {
  color: var(--text-secondary-current);
  font-size: var(--label-size);
  line-height: var(--label-line);
  font-weight: var(--label-weight);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mode-lab-companion h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mode-lab-companion p,
.visual-floating-card p {
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
  text-wrap: pretty;
}

.mode-lab-copy h2,
.section-heading h2,
.case-study-hero h1,
.case-study-section h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, var(--heading-2-size));
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.mode-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mode-controls .mode-button[data-mode-trigger="all"] {
  grid-column: 1 / -1;
}

.mode-button {
  background: color-mix(in srgb, var(--surface-panel-strong) 82%, transparent);
  color: var(--text-secondary-current);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.mode-controls .mode-button {
  width: 100%;
}

.mode-button.is-active {
  background:
    linear-gradient(135deg, rgba(196, 154, 87, 0.12), rgba(45, 159, 149, 0.18)),
    color-mix(in srgb, var(--surface-panel) 82%, transparent);
  color: color-mix(in srgb, var(--color-accent-primary-hover) 80%, var(--page-text));
  box-shadow:
    inset 0 0 0 1px rgba(45, 159, 149, 0.18),
    0 14px 32px rgba(45, 159, 149, 0.12);
}

.mode-status {
  margin: var(--space-4) 0 0;
  width: min(100%, 34rem);
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--hairline) 84%, transparent);
  border-radius: calc(var(--radius-md) + 2px);
  background:
    linear-gradient(135deg, rgba(45, 159, 149, 0.08), rgba(196, 154, 87, 0.035)),
    color-mix(in srgb, var(--surface-panel-strong) 62%, transparent);
  color: var(--text-secondary-current);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.3;
}

.lens-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    color-mix(in srgb, var(--header-surface-strong) 92%, transparent);
  box-shadow:
    0 18px 42px rgba(16, 19, 23, 0.14),
    inset 0 0 0 1px var(--hairline);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 220ms var(--ease-out-strong),
    transform 220ms var(--ease-out-strong);
}

.lens-dock.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lens-dock-label {
  color: var(--text-secondary-current);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lens-dock-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 320px);
}

.lens-dock-button {
  min-height: 40px;
  padding: 10px 14px;
  width: 100%;
  justify-content: center;
}

.lens-dock-button[data-mode-trigger="all"] {
  grid-column: 1 / -1;
}

.section-heading {
  display: grid;
  gap: var(--space-2);
  max-width: 62ch;
  margin-bottom: var(--space-5);
}

.section-heading p {
  margin: 0;
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.project-stage {
  display: grid;
  gap: var(--space-4);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: var(--space-4);
  align-items: stretch;
}

.project-feature-copy,
.project-support,
.mode-panel,
.background-story,
.timeline-item,
.note-strip,
.placeholder-card,
.case-study-callout,
.case-study-card {
  background: var(--surface-panel);
  box-shadow: var(--panel-shadow);
}

.project-feature-copy,
.project-support,
.mode-panel,
.background-story,
.note-strip,
.placeholder-card,
.case-study-callout,
.case-study-card {
  padding: var(--space-4);
  border-radius: calc(var(--radius-lg) + 4px);
}

.project-feature-visual {
  display: grid;
  gap: var(--space-3);
}

.feature-visual-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  padding: var(--space-4);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--surface-panel-strong);
  box-shadow: var(--panel-shadow);
}

.visual-panel-primary {
  min-height: 420px;
  grid-template-rows: auto auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% 16%, rgba(196, 154, 87, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(45, 159, 149, 0.12), transparent 34%),
    var(--surface-panel-strong);
}

.flow-proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  align-self: stretch;
  height: 100%;
  gap: 18px;
  padding-top: 18px;
}

.visual-panel-secondary p,
.project-overline,
.project-subtitle,
.project-description,
.project-support p,
.mode-panel p,
.note-strip p,
.timeline-item p,
.background-story p,
.case-study-meta,
.case-study-grid p {
  margin: 0;
}

.visual-device {
  width: min(100%, 260px);
  padding: 10px;
  border-radius: 30px;
  background: rgba(15, 20, 26, 0.92);
}

.visual-device-proof {
  position: relative;
  justify-self: center;
  width: min(100%, 260px);
  align-self: start;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 42px rgba(0, 0, 0, 0.2);
}

.visual-device-screen {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(45, 159, 149, 0.38), transparent 28%),
    linear-gradient(180deg, #102026, #0c1015 78%);
}

.visual-device-proof .visual-device-screen {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(45, 159, 149, 0.22), transparent 28%),
    linear-gradient(180deg, #102026, #0c1015 78%);
}

.visual-device-proof .visual-device-screen img {
  display: block;
  width: 100%;
  max-width: 232px;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.28);
}

.visual-orbit {
  position: absolute;
  top: 56px;
  left: 50%;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translateX(-50%);
}

.visual-orbit::before,
.visual-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(252, 250, 245, 0.78);
}

.visual-orbit::before {
  top: 18px;
  left: 16px;
  width: 9px;
  height: 9px;
}

.visual-orbit::after {
  right: 16px;
  bottom: 24px;
  width: 12px;
  height: 12px;
  background: rgba(196, 154, 87, 0.84);
}

.visual-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(252, 250, 245, 0.08);
  color: #f7f2ea;
  backdrop-filter: blur(12px);
}

.visual-card strong {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.visual-proof-note {
  max-width: none;
  margin: 3px 0 0;
  color: var(--text-secondary-current);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.mode-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mode-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(196, 154, 87, 0.08), rgba(45, 159, 149, 0.16)),
    color-mix(in srgb, var(--surface-panel) 72%, transparent);
  color: color-mix(in srgb, var(--color-accent-primary-hover) 84%, var(--page-text));
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  box-shadow: inset 0 0 0 1px rgba(45, 159, 149, 0.1);
}

body[data-color-mode="dark"] .mode-row span {
  background:
    linear-gradient(135deg, rgba(196, 154, 87, 0.08), rgba(45, 159, 149, 0.18)),
    rgba(25, 36, 49, 0.82);
  color: #8cd9d0;
  box-shadow: inset 0 0 0 1px rgba(45, 159, 149, 0.18);
}

.project-feature h3,
.project-support h3,
.mode-panel h3,
.timeline-item h3,
.note-strip h3,
.case-study-card h3,
.placeholder-card h3,
.case-study-callout h3 {
  margin: var(--space-2) 0 0;
  font-family: var(--font-heading);
  font-size: var(--heading-3-size);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.project-subtitle {
  margin-top: var(--space-2);
  color: var(--page-text);
  font-size: 18px;
  line-height: 28px;
}

.project-description {
  margin-top: var(--space-3);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.project-support .project-description {
  margin-top: var(--space-4);
}

.project-points {
  margin: var(--space-3) 0 0;
  padding-left: 20px;
}

.project-points li + li {
  margin-top: 10px;
}

.project-actions {
  margin-top: var(--space-4);
}

.project-link,
.back-link {
  display: inline-flex;
  align-items: center;
}

.project-link {
  margin-top: var(--space-3);
  color: color-mix(in srgb, var(--color-accent-primary-hover) 86%, var(--page-text));
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.project-link::after {
  content: "->";
  margin-left: 8px;
  font-size: 0.9em;
  transform: translateY(-1px);
}

.project-support-grid,
.modes-grid,
.notes-grid,
.case-study-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mode-panel {
  display: grid;
  grid-template-rows: 24px 68px 1fr;
  gap: var(--space-2);
  min-height: 360px;
  align-content: start;
}

.mode-panel h3 {
  align-self: end;
  margin: 0;
}

.background-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: var(--space-4);
  align-items: start;
}

.background-story {
  display: grid;
  gap: var(--space-3);
}

.background-story .editorial-line {
  margin: 0;
}

.timeline {
  display: grid;
  gap: var(--space-2);
}

.timeline-item {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  padding: var(--space-3);
  border-radius: calc(var(--radius-md) + 6px);
}

.notes-section {
  padding-left: 0;
  padding-right: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.notes-section::before,
.notes-section::after {
  display: none;
}

.note-strip {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  gap: var(--space-2);
  min-height: 100%;
  border-radius: calc(var(--radius-md) + 4px);
}

.note-open {
  width: fit-content;
  min-height: 42px;
  margin-top: var(--space-3);
  align-self: end;
  padding: 10px 14px;
  border: 0;
  background: var(--button-primary-background);
  color: var(--button-primary-text);
  box-shadow: 0 12px 26px rgba(16, 19, 23, 0.12);
}

.note-reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 64px);
  background:
    radial-gradient(circle at 14% 16%, rgba(45, 159, 149, 0.16), transparent 26%),
    radial-gradient(circle at 86% 80%, rgba(196, 154, 87, 0.12), transparent 24%),
    rgba(7, 10, 14, 0.5);
  backdrop-filter: blur(18px);
}

.note-reader[hidden] {
  display: none;
}

.note-reader-panel {
  position: relative;
  display: grid;
  min-height: 0;
  width: min(100%, 1180px);
  height: min(88vh, 860px);
  overflow: hidden;
  padding: clamp(var(--space-4), 5vw, var(--space-6));
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-panel-strong) 92%, transparent), color-mix(in srgb, var(--surface-panel) 82%, transparent)),
    radial-gradient(circle at 86% 16%, rgba(45, 159, 149, 0.12), transparent 28%);
  color: var(--page-text);
  box-shadow:
    0 0 0 1px var(--panel-ring),
    0 28px 92px rgba(0, 0, 0, 0.28);
}

.note-reader-panel::-webkit-scrollbar {
  width: 0;
}

.note-article {
  display: none;
  gap: var(--space-3);
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding-right: clamp(var(--space-3), 3vw, var(--space-5));
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-accent-primary) 38%, transparent) transparent;
}

.note-article::-webkit-scrollbar {
  width: 8px;
}

.note-article::-webkit-scrollbar-track {
  background: transparent;
}

.note-article::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent-primary) 34%, transparent);
  background-clip: padding-box;
}

.note-article::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-accent-primary) 48%, transparent);
  background-clip: padding-box;
}

.note-reader-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--button-secondary-background);
  color: var(--page-text);
  box-shadow: inset 0 0 0 1px var(--button-secondary-border);
}

.note-reader-close span {
  font-size: 24px;
  line-height: 1;
}

.note-article.is-active {
  display: grid;
  width: 100%;
  max-width: none;
}

.note-article h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.note-article p {
  max-width: 88ch;
  margin: 0;
}

.note-article .note-label {
  color: var(--color-accent-primary-hover);
  font-size: var(--label-size);
  line-height: var(--label-line);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--hairline);
}

.footer-copy {
  display: grid;
  gap: var(--space-2);
  max-width: 54ch;
}

.footer-line,
.footer-subline {
  margin: 0;
}

.footer-line {
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
  color: var(--text-secondary-current);
}

.footer-subline {
  font-size: 26px;
  line-height: 1.1;
}

.footer-links a {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--footer-link-surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

[data-modes] {
  transition:
    opacity 200ms var(--ease-out-strong),
    transform 220ms var(--ease-out-strong),
    box-shadow 220ms var(--ease-out-strong),
    filter 200ms var(--ease-out-strong),
    background-color 220ms var(--ease-out-strong);
}

body[data-active-mode]:not([data-active-mode="all"]) [data-modes].is-inactive-match {
  opacity: var(--mode-dim-opacity);
  filter: saturate(0.8);
}

body[data-active-mode]:not([data-active-mode="all"]) [data-modes].is-active-match {
  opacity: 1;
  filter: none;
}

body[data-active-mode]:not([data-active-mode="all"]) [data-mode-elevate].is-active-match {
  transform: translateY(-2px);
  box-shadow: var(--panel-shadow-hover);
}

body[data-active-mode]:not([data-active-mode="all"]) .project-points li.is-active-match {
  color: var(--page-text);
}

body[data-active-mode]:not([data-active-mode="all"]) .project-points li.is-inactive-match {
  opacity: 0.42;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 680ms var(--ease-out-strong),
    transform 680ms var(--ease-out-strong),
    filter 680ms var(--ease-out-strong);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.case-body .page-shell {
  padding-top: var(--space-5);
}

.back-link {
  margin-bottom: var(--space-3);
}

.case-study-shell {
  display: grid;
  gap: var(--space-5);
}

.case-study-hero {
  display: grid;
  gap: var(--space-3);
}

.case-study-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.case-study-hero-copy {
  display: grid;
  gap: var(--space-3);
}

.case-study-hero-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: calc(var(--radius-lg) - 4px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 44%),
    color-mix(in srgb, var(--surface-panel-strong) 92%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 16px 34px rgba(16, 19, 23, 0.08);
}

.case-study-hero-board img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(7, 13, 18, 0.18);
}

.case-study-hero-board p {
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.case-study-hero-mark {
  align-self: center;
  justify-items: center;
  text-align: center;
  padding: 28px 24px;
}

.case-study-hero-mark img {
  max-width: min(100%, 520px);
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.case-study-hero-mark p {
  max-width: 22ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
}

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

.case-study-hero-support {
  max-width: 20ch;
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

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

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

.marc-hero {
  gap: clamp(20px, 3vw, 32px);
}

.marc-hero .case-study-hero-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
}

.marc-hero-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.marc-status-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marc-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-panel-strong) 86%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-secondary-current);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marc-status-pill.is-live::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent-primary) 76%, #9cffd3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent-primary) 18%, transparent);
}

.marc-hero-line {
  max-width: 20ch;
  font-family: var(--font-editorial);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.marc-hero .case-study-hero-copy > p:not(.marc-hero-line):not(.section-kicker) {
  max-width: 62ch;
}

.marc-hero-status {
  gap: 18px;
  padding: clamp(20px, 2.8vw, 24px);
}

.marc-status-points {
  display: grid;
  gap: 14px;
}

.marc-status-point {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--hairline) 92%, transparent);
}

.marc-status-point:first-child {
  padding-top: 0;
  border-top: 0;
}

.marc-status-label {
  color: var(--text-secondary-current);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marc-status-point p {
  margin: 0;
  color: var(--page-text);
  font-size: var(--body-regular-size);
  line-height: 1.55;
  text-wrap: pretty;
}

.case-study-section {
  display: grid;
  gap: var(--space-4);
}

.case-study-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: var(--space-4);
  align-items: start;
}

.case-study-prose {
  display: grid;
  gap: var(--space-3);
}

.case-study-prose p {
  margin: 0;
}

.case-study-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-study-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-panel-strong) 88%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-secondary-current);
  font-size: var(--body-small-size);
}

.case-study-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: var(--space-4);
}

.case-study-callout {
  align-self: start;
}

.placeholder-card {
  display: grid;
  gap: var(--space-2);
}

.artifact-board {
  align-self: stretch;
}

.artifact-board img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(7, 13, 18, 0.18);
}

.artifact-board figcaption {
  display: grid;
  gap: 8px;
}

.artifact-board h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.artifact-board figcaption p {
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.artifact-grid {
  display: grid;
  gap: var(--space-2);
}

.artifact-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: calc(var(--radius-md) - 2px);
  background: color-mix(in srgb, var(--surface-panel-strong) 90%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.artifact-note h3,
.case-study-aside h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.artifact-note p {
  margin: 0;
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.artifact-label {
  color: var(--text-secondary-current);
  font-size: var(--label-size);
  line-height: var(--label-line);
  font-weight: var(--label-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-study-aside {
  display: grid;
  gap: var(--space-2);
}

.case-study-concept-note {
  align-self: stretch;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 32px);
}

.case-study-concept-note blockquote {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid color-mix(in srgb, var(--color-accent-primary) 48%, var(--hairline));
}

.case-study-concept-note blockquote p {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(28px, 2.9vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--page-text);
  text-wrap: balance;
}

.case-study-concept-note > p {
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--body-large-size);
  line-height: var(--body-large-line);
}

.case-study-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary-current);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.case-study-list li {
  margin: 0;
}

.flow-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: start;
}

.flow-gallery-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: calc(var(--radius-lg) - 4px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 44%),
    color-mix(in srgb, var(--surface-panel-strong) 92%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 16px 34px rgba(16, 19, 23, 0.08);
  align-content: start;
}

.flow-gallery-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 620px;
  margin: 0 auto;
  border-radius: calc(var(--radius-md) - 2px);
  object-fit: contain;
  background: rgba(8, 13, 18, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(7, 13, 18, 0.18);
}

.flow-gallery-card figcaption {
  display: grid;
  gap: 8px;
}

.flow-gallery-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.flow-gallery-card p {
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--body-regular-size);
  line-height: var(--body-regular-line);
}

.marc-gallery-card {
  grid-template-rows: auto 1fr;
}

.marc-shot-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.marc-shot-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent-primary) 72%, white);
  outline-offset: 6px;
  border-radius: calc(var(--radius-md) + 10px);
}

.marc-shot-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  padding: clamp(14px, 1.8vw, 18px);
  border-radius: calc(var(--radius-md) + 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    color-mix(in srgb, var(--surface-panel) 94%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 18px 28px rgba(255, 255, 255, 0.02);
}

.marc-shot-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  border-radius: calc(var(--radius-md) - 1px);
  background: #0f1319;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-panel-strong) 78%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--page-text);
  font: inherit;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms cubic-bezier(0.2, 0, 0, 1),
    background-color 180ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 180ms cubic-bezier(0.2, 0, 0, 1);
}

.image-lightbox-close span {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

.image-lightbox-close:focus-visible,
a.case-study-footer-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent-primary) 74%, white);
  outline-offset: 4px;
}

.image-lightbox-media {
  display: block;
  width: min(92vw, 1400px);
  max-width: 1400px;
  max-height: calc(90vh - 36px);
  padding: 18px;
  border-radius: calc(var(--radius-md) + 2px);
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    color-mix(in srgb, var(--surface-panel) 96%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 32px 90px rgba(0, 0, 0, 0.42);
}

.case-study-footer-nav {
  display: grid;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--hairline) 88%, transparent);
}

.case-study-footer-note {
  margin: 0;
  color: var(--text-secondary-current);
  font-size: var(--label-size);
  line-height: var(--label-line);
  font-weight: var(--label-weight);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

a.case-study-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-panel-strong) 88%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--page-text);
  font-size: var(--body-small-size);
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 180ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 180ms cubic-bezier(0.2, 0, 0, 1),
    background-color 180ms cubic-bezier(0.2, 0, 0, 1);
}

.case-study-footer-link-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-panel) 72%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hairline) 92%, transparent);
  font-size: 13px;
  line-height: 1;
}

.placeholder-block {
  min-height: 220px;
  border-radius: calc(var(--radius-md) + 4px);
  background:
    radial-gradient(circle at 30% 26%, rgba(45, 159, 149, 0.18), transparent 24%),
    radial-gradient(circle at 72% 68%, rgba(196, 154, 87, 0.18), transparent 24%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-panel-strong) 94%, transparent), var(--surface-panel));
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.depth-band {
  --band-radius: var(--radius-xl);
  --band-ring: var(--panel-ring);
}

.depth-band-surface {
  --band-radius: 42px;
  --band-padding: clamp(var(--space-5), 7vw, var(--space-8));
  --band-shadow: 0 34px 104px rgba(88, 67, 31, 0.1);
  --band-surface:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(249, 243, 233, 0.84)),
    linear-gradient(135deg, rgba(196, 154, 87, 0.06), rgba(255, 255, 255, 0));
  --band-atmosphere:
    linear-gradient(132deg, rgba(45, 159, 149, 0.06), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(196, 154, 87, 0.2), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.28), transparent 22%);
}

.depth-band-threshold {
  --band-radius: 38px;
  --band-padding: clamp(var(--space-4), 5vw, 68px);
  --band-shadow: 0 28px 90px rgba(82, 64, 33, 0.1);
  --band-surface:
    linear-gradient(180deg, rgba(253, 248, 240, 0.92), rgba(245, 237, 226, 0.82)),
    linear-gradient(135deg, rgba(196, 154, 87, 0.04), rgba(45, 159, 149, 0.05));
  --band-atmosphere:
    linear-gradient(140deg, rgba(45, 159, 149, 0.09), transparent 36%),
    radial-gradient(circle at 86% 16%, rgba(196, 154, 87, 0.16), transparent 24%),
    radial-gradient(circle at 12% 80%, rgba(196, 154, 87, 0.08), transparent 22%);
}

.depth-band-mid {
  --band-radius: 34px;
  --band-padding: clamp(28px, 4.5vw, 60px);
  --band-ring: rgba(16, 19, 23, 0.11);
  --band-shadow: 0 24px 74px rgba(60, 52, 38, 0.11);
  --band-surface:
    linear-gradient(180deg, rgba(247, 241, 231, 0.92), rgba(240, 233, 223, 0.88)),
    linear-gradient(160deg, rgba(23, 52, 67, 0.03), rgba(196, 154, 87, 0.04));
  --band-atmosphere:
    linear-gradient(155deg, rgba(45, 159, 149, 0.08), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(196, 154, 87, 0.12), transparent 22%),
    radial-gradient(circle at 24% 84%, rgba(24, 42, 58, 0.08), transparent 24%);
}

.depth-band-deep {
  --band-radius: 30px;
  --band-padding: clamp(26px, 4.2vw, 56px);
  --band-ring: rgba(16, 19, 23, 0.12);
  --band-shadow: 0 20px 62px rgba(44, 47, 49, 0.12);
  --band-surface:
    linear-gradient(180deg, rgba(239, 234, 225, 0.94), rgba(231, 228, 220, 0.92)),
    linear-gradient(165deg, rgba(20, 42, 56, 0.05), rgba(196, 154, 87, 0.025));
  --band-atmosphere:
    linear-gradient(160deg, rgba(20, 42, 56, 0.12), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(196, 154, 87, 0.1), transparent 20%),
    radial-gradient(circle at 12% 88%, rgba(45, 159, 149, 0.07), transparent 20%);
}

.depth-band-deeper {
  --band-radius: 28px;
  --band-padding: clamp(24px, 4vw, 52px);
  --band-ring: rgba(16, 19, 23, 0.11);
  --band-shadow: 0 18px 50px rgba(46, 42, 36, 0.08);
  --band-surface:
    linear-gradient(180deg, rgba(240, 236, 228, 0.94), rgba(234, 229, 220, 0.9)),
    linear-gradient(180deg, rgba(17, 35, 47, 0.025), rgba(196, 154, 87, 0.02));
  --band-atmosphere:
    linear-gradient(180deg, rgba(16, 31, 43, 0.06), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(196, 154, 87, 0.08), transparent 18%),
    radial-gradient(circle at 14% 76%, rgba(45, 159, 149, 0.05), transparent 16%);
}

.depth-band-bottom {
  --band-radius: 26px;
  --band-shadow: 0 16px 46px rgba(32, 37, 42, 0.1);
}

.depth-band-end {
  position: relative;
}

.depth-band-deep .mode-panel,
.depth-band-deeper .background-story,
.depth-band-deeper .timeline-item,
.depth-band-bottom .note-strip {
  border-radius: calc(var(--radius-md) + 2px);
  box-shadow:
    0 0 0 1px var(--hairline),
    0 14px 30px rgba(16, 19, 23, 0.08);
}

.depth-band-mid .project-feature-copy,
.depth-band-mid .feature-visual-panel,
.depth-band-mid .project-support {
  border-radius: calc(var(--radius-lg) - 2px);
  box-shadow:
    0 0 0 1px var(--hairline),
    0 16px 34px rgba(16, 19, 23, 0.09);
}

body[data-color-mode="dark"] .depth-band-surface {
  --band-shadow: 0 30px 96px rgba(0, 0, 0, 0.34);
  --band-surface:
    linear-gradient(180deg, rgba(17, 23, 31, 0.92), rgba(14, 20, 28, 0.94)),
    linear-gradient(135deg, rgba(196, 154, 87, 0.05), rgba(45, 159, 149, 0.04));
  --band-atmosphere:
    linear-gradient(132deg, rgba(45, 159, 149, 0.12), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(196, 154, 87, 0.18), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.04), transparent 22%);
}

body[data-color-mode="dark"] .depth-layer-back,
body[data-color-mode="dark"] .depth-layer-mid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%),
    linear-gradient(135deg, rgba(196, 154, 87, 0.06), rgba(45, 159, 149, 0.08)),
    color-mix(in srgb, var(--surface-panel) 96%, transparent);
}

body[data-color-mode="dark"] .depth-band-threshold {
  --band-shadow: 0 26px 82px rgba(0, 0, 0, 0.34);
  --band-surface:
    linear-gradient(180deg, rgba(16, 23, 31, 0.94), rgba(13, 19, 27, 0.96)),
    linear-gradient(150deg, rgba(196, 154, 87, 0.03), rgba(45, 159, 149, 0.07));
  --band-atmosphere:
    linear-gradient(140deg, rgba(45, 159, 149, 0.14), transparent 36%),
    radial-gradient(circle at 86% 16%, rgba(196, 154, 87, 0.14), transparent 22%),
    radial-gradient(circle at 12% 80%, rgba(196, 154, 87, 0.05), transparent 18%);
}

body[data-color-mode="dark"] .depth-band-mid {
  --band-ring: rgba(237, 241, 245, 0.1);
  --band-shadow: 0 22px 68px rgba(0, 0, 0, 0.38);
  --band-surface:
    linear-gradient(180deg, rgba(15, 22, 30, 0.96), rgba(12, 18, 26, 0.98)),
    linear-gradient(160deg, rgba(23, 52, 67, 0.12), rgba(196, 154, 87, 0.04));
  --band-atmosphere:
    linear-gradient(155deg, rgba(45, 159, 149, 0.1), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(196, 154, 87, 0.12), transparent 20%),
    radial-gradient(circle at 24% 84%, rgba(24, 42, 58, 0.16), transparent 24%);
}

body[data-color-mode="dark"] .depth-band-deep {
  --band-ring: rgba(237, 241, 245, 0.11);
  --band-shadow: 0 18px 58px rgba(0, 0, 0, 0.4);
  --band-surface:
    linear-gradient(180deg, rgba(13, 19, 27, 0.98), rgba(11, 16, 23, 1)),
    linear-gradient(165deg, rgba(20, 42, 56, 0.16), rgba(196, 154, 87, 0.03));
  --band-atmosphere:
    linear-gradient(160deg, rgba(20, 42, 56, 0.18), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(196, 154, 87, 0.1), transparent 18%),
    radial-gradient(circle at 12% 88%, rgba(45, 159, 149, 0.05), transparent 18%);
}

body[data-color-mode="dark"] .depth-band-deeper {
  --band-ring: rgba(237, 241, 245, 0.12);
  --band-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
  --band-surface:
    linear-gradient(180deg, rgba(11, 16, 23, 1), rgba(10, 14, 20, 1)),
    linear-gradient(180deg, rgba(17, 35, 47, 0.18), rgba(196, 154, 87, 0.02));
  --band-atmosphere:
    linear-gradient(180deg, rgba(16, 31, 43, 0.18), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(196, 154, 87, 0.08), transparent 16%),
    radial-gradient(circle at 14% 76%, rgba(45, 159, 149, 0.04), transparent 14%);
}

body[data-color-mode="dark"] .depth-band-deep .mode-panel,
body[data-color-mode="dark"] .depth-band-deeper .background-story,
body[data-color-mode="dark"] .depth-band-deeper .timeline-item,
body[data-color-mode="dark"] .depth-band-bottom .note-strip {
  box-shadow:
    0 0 0 1px rgba(237, 241, 245, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

body[data-color-mode="dark"] .depth-band-mid .project-feature-copy,
body[data-color-mode="dark"] .depth-band-mid .feature-visual-panel,
body[data-color-mode="dark"] .depth-band-mid .project-support {
  box-shadow:
    0 0 0 1px rgba(237, 241, 245, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.24);
}

@media (hover: hover) and (pointer: fine) {
  .project-feature-copy:hover,
  .project-support:hover,
  .mode-panel:hover,
  .note-strip:hover,
  .timeline-item:hover,
  .placeholder-card:hover,
  .case-study-callout:hover,
  .case-study-card:hover {
    box-shadow: var(--panel-shadow-hover);
    transform: translateY(-2px);
  }

  a.case-study-footer-link:hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--color-accent-primary) 24%, var(--hairline)),
      0 10px 22px rgba(10, 15, 21, 0.12);
  }

  .image-lightbox-close:hover {
    transform: scale(1.04);
    background: color-mix(in srgb, var(--surface-panel-strong) 90%, transparent);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--color-accent-primary) 20%, var(--hairline)),
      0 12px 30px rgba(0, 0, 0, 0.24);
  }
}

@media (max-width: 1200px) {
  .site-header,
  .hero,
  .project-feature,
  .background-layout,
  .case-study-lead,
  .case-study-hero-layout,
  .case-study-columns {
    grid-template-columns: 1fr;
  }


  .header-center {
    justify-items: start;
  }

  .site-nav {
    justify-self: start;
  }

  .hero {
    min-height: auto;
  }

  .hero-depth {
    min-height: 560px;
  }

  .flow-proof-strip {
    grid-template-columns: 1fr;
  }

  .visual-device-proof {
    justify-self: start;
  }

  .mode-lab-layout {
    grid-template-columns: 1fr;
  }

  .modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marc-hero-topline {
    align-items: start;
    justify-content: start;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(calc(100% - (var(--space-4) * 2)), var(--hero-max-width));
    padding: var(--space-3) 0 var(--space-6);
  }

  .site-header {
    gap: var(--space-2);
  }

  .marc-hero-line {
    max-width: 12ch;
  }

  .marc-shot-frame {
    aspect-ratio: 4 / 3;
  }

  .case-study-footer-nav {
    justify-items: start;
  }

  .case-study-footer-actions {
    width: 100%;
  }

  a.case-study-footer-link {
    flex: 1 1 220px;
    justify-content: center;
  }

  .image-lightbox {
    width: min(96vw, 1400px);
    padding: 14px;
  }

  .image-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .mode-lab,
  .selected-work,
  .modes-section,
  .background-section,
  .case-study-shell {
    padding: var(--space-4);
    border-radius: 28px;
  }

  .hero::after,
  .mode-lab::after,
  .selected-work::after,
  .modes-section::after,
  .background-section::after,
  .case-study-shell::after {
    border-radius: 27px;
  }

  .hero-title {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-description,
  .mode-lab-copy p,
  .project-description,
  .project-points li,
  .background-story p,
  .timeline-item p,
  .note-strip p,
  .case-study-section p {
    font-size: 18px;
    line-height: 29px;
  }

  .hero-meta,
  .project-support-grid,
  .modes-grid,
  .notes-grid,
  .case-study-grid,
  .flow-gallery {
    grid-template-columns: 1fr;
  }

  .flow-gallery-card img {
    max-height: 560px;
  }

  .hero-depth {
    min-height: 520px;
  }

  .depth-layer-back {
    top: 0;
    left: 0;
    width: min(100%, 320px);
  }

  .depth-layer-mid {
    top: 18px;
    left: 48px;
    width: min(100%, 320px);
  }

  .depth-layer-front {
    top: 40px;
    left: 96px;
    width: min(100%, 320px);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .lens-dock {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }

  .lens-dock-controls {
    max-width: none;
  }

  .note-reader {
    padding: 16px;
  }

  .note-reader-panel {
    max-height: 86vh;
    padding: var(--space-4);
    border-radius: 26px;
  }

  .note-article h2 {
    max-width: 14ch;
    font-size: clamp(34px, 11vw, 46px);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
