:root {
  color-scheme: dark;
  --bg: #080512;
  --surface: #120b24;
  --surface-soft: #1a1032;
  --surface-strong: #fbf8ff;
  --text: #fbf8ff;
  --muted: #c4b9d8;
  --line: rgba(251, 248, 255, 0.16);
  --accent: #ff9ffc;
  --accent-2: #5227ff;
  --accent-3: #b497cf;
  --shadow: rgba(7, 2, 20, 0.62);
  --work-card-bg: rgb(18, 11, 36);
  --radius: 12px;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", sans-serif;
}

body[data-mode="signal"] {
  --bg: #070811;
  --surface: #101522;
  --surface-soft: #171d30;
  --surface-strong: #f4f7ff;
  --text: #f4f7ff;
  --muted: #adb5cc;
  --line: rgba(244, 247, 255, 0.16);
  --accent: #8cbbff;
  --accent-2: #7b50ff;
  --accent-3: #dc9cff;
  --shadow: rgba(0, 0, 0, 0.5);
}

body[data-mode="nocturne"] {
  color-scheme: dark;
  --bg: #05050a;
  --surface: #0e0d17;
  --surface-soft: #18142a;
  --surface-strong: #fbf7ff;
  --text: #fbf7ff;
  --muted: #b7adca;
  --line: rgba(251, 247, 255, 0.16);
  --accent: #ff9ffc;
  --accent-2: #5227ff;
  --accent-3: #b497cf;
  --shadow: rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(82, 39, 255, 0.22), transparent 38%),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  transition:
    background-color 260ms ease,
    color 260ms ease;
}

body::selection {
  background: var(--accent);
  color: var(--surface);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

main {
  overflow: hidden;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 0;
  padding: 16px clamp(18px, 4vw, 54px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 38px;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-weight: 400;
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  position: relative;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  display: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border: 0;
  background: transparent;
  color: var(--accent);
  outline: none;
  transform: none;
}

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

.liquid-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 999px;
  padding: 0 13px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  color: var(--muted);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 48%, transparent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.liquid-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 18px var(--accent);
  animation: liquid-pulse 1.8s ease-in-out infinite;
}

.mode-switcher,
.language-switch,
.filter-bar {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.mode-switcher,
.language-switch {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.language-switch {
  display: flex;
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 999px;
  padding: 3px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 48%, transparent);
  backdrop-filter: blur(12px);
}

.language-switch .lang-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.language-switch .lang-btn:hover {
  border: 0;
  box-shadow: none;
}

.mode-button,
.lang-btn,
.filter-btn {
  min-height: 34px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.mode-button,
.lang-btn {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 48%, transparent);
  backdrop-filter: blur(12px);
}

.mode-button {
  padding: 0 12px;
  font-size: 0.82rem;
}

.lang-btn {
  padding: 0 10px;
  font-size: 0.84rem;
}

.filter-btn {
  padding: 0 15px;
  white-space: nowrap;
}

.mode-button:hover,
.lang-btn:hover,
.filter-btn:hover {
  color: var(--text);
}

.mode-button:hover,
.lang-btn:hover {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: var(--bg);
  transform: translateY(-2px);
}

.mode-button.is-active,
.lang-btn.is-active,
.filter-btn.is-active {
  background: var(--surface-strong);
  color: var(--bg);
}

.mode-button.is-active,
.lang-btn.is-active {
  border-color: var(--surface-strong);
  box-shadow: 0 9px 24px color-mix(in srgb, var(--shadow) 68%, transparent);
}

/* GooeyNav-inspired language control. The visual layer stays behind the real
   buttons, preserving native focus and the existing language-switch behavior. */
.gooey-language-nav {
  --gooey-color-1: #fbf8ff;
  --gooey-color-2: #fbf8ff;
  --gooey-color-3: #fbf8ff;
  --gooey-color-4: #fbf8ff;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 50px);
  column-gap: 5px;
  width: 113px;
  isolation: isolate;
  box-shadow: none;
}

.gooey-language-nav .gooey-language-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  filter: blur(0.8px) contrast(100) blur(0);
  mix-blend-mode: normal;
  pointer-events: none;
  transform: translate3d(0, 0, 0.01px);
}

.gooey-language-nav .gooey-language-indicator,
.gooey-language-nav .gooey-language-particle-layer {
  position: absolute;
  left: var(--gooey-left, 3px);
  top: var(--gooey-top, 3px);
  width: var(--gooey-width, 0px);
  height: var(--gooey-height, 0px);
}

.gooey-language-nav .gooey-language-indicator {
  border-radius: 100vw;
  background: var(--surface-strong);
  z-index: 1;
  transition:
    left 300ms ease,
    top 300ms ease,
    width 300ms ease,
    height 300ms ease;
  will-change: left, top, width, height;
}

.gooey-language-nav .gooey-language-particle {
  position: absolute;
  left: calc(50% - 6px);
  top: calc(50% - 6px);
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  transform-origin: center;
  animation: gooey-language-particle var(--particle-time) ease 1 -350ms;
  will-change: transform, opacity;
}

.gooey-language-nav .gooey-language-particle::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--particle-color, var(--gooey-color-1));
  content: "";
  animation: gooey-language-point var(--particle-time) ease 1 -350ms;
}

.gooey-language-nav .lang-btn,
.gooey-language-nav .lang-btn.is-active,
.gooey-language-nav .lang-btn:hover {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.gooey-language-nav .lang-btn {
  grid-row: 1;
  flex: 0 0 50px;
  width: 50px;
  min-width: 50px;
  padding: 0;
  color: var(--muted);
  white-space: nowrap;
  transition: color 300ms ease;
}

.gooey-language-nav .lang-btn.is-active {
  color: var(--bg);
}

.gooey-language-nav .lang-btn:hover:not(.is-active) {
  color: var(--text);
}

.gooey-language-nav .lang-btn:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

/* The project filters use the same solid-pill and particle behavior as the
   language switch, while allowing each label to keep its natural width. */
.gooey-filter-nav {
  --gooey-filter-color-1: #fbf8ff;
  --gooey-filter-color-2: #fbf8ff;
  --gooey-filter-color-3: #fbf8ff;
  --gooey-filter-color-4: #fbf8ff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: visible;
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 999px;
  padding: 3px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow: none;
  isolation: isolate;
  backdrop-filter: blur(12px);
}

.toolbar.gooey-filter-nav {
  overflow: visible;
}

.gooey-filter-nav .gooey-filter-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  filter: blur(0.45px) contrast(160) blur(0);
  mix-blend-mode: normal;
  pointer-events: none;
  transform: translate3d(0, 0, 0.01px);
}

.gooey-filter-nav .gooey-filter-indicator,
.gooey-filter-nav .gooey-filter-particle-layer {
  position: absolute;
  left: var(--gooey-filter-left, 3px);
  top: var(--gooey-filter-top, 3px);
  width: var(--gooey-filter-width, 0px);
  height: var(--gooey-filter-height, 0px);
}

.gooey-filter-nav .gooey-filter-indicator {
  z-index: 1;
  border-radius: 100vw;
  background: var(--surface-strong);
  transition:
    left 300ms ease,
    top 300ms ease,
    width 300ms ease,
    height 300ms ease;
  will-change: left, top, width, height;
}

.gooey-filter-nav .gooey-filter-particle {
  position: absolute;
  left: calc(50% - 6px);
  top: calc(50% - 6px);
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  transform-origin: center;
  animation: gooey-language-particle var(--particle-time) ease 1 -350ms;
  will-change: transform, opacity;
}

.gooey-filter-nav .gooey-filter-particle::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--particle-color, var(--gooey-filter-color-1));
  content: "";
  animation: gooey-language-point var(--particle-time) ease 1 -350ms;
}

.gooey-filter-nav .filter-btn,
.gooey-filter-nav .filter-btn.is-active,
.gooey-filter-nav .filter-btn:hover {
  position: relative;
  z-index: 2;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  transform: none;
}

.gooey-filter-nav .filter-btn {
  padding-inline: 14px;
  white-space: nowrap;
  transition: color 300ms ease;
}

.gooey-filter-nav .filter-btn.is-active {
  color: var(--bg);
}

.gooey-filter-nav .filter-btn:hover:not(.is-active) {
  color: var(--text);
}

.gooey-filter-nav .filter-btn:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

@keyframes gooey-language-particle {
  0% {
    opacity: 1;
    transform: rotate(0deg) translate(var(--particle-start-x), var(--particle-start-y));
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }

  60% {
    opacity: 1;
    transform: rotate(calc(var(--particle-rotate) * 0.5)) translate(var(--particle-edge-x), var(--particle-edge-y));
    animation-timing-function: ease;
  }

  78% {
    opacity: 1;
    transform: rotate(calc(var(--particle-rotate) * 0.66)) translate(var(--particle-end-x), var(--particle-end-y));
  }

  100% {
    opacity: 1;
    transform: rotate(calc(var(--particle-rotate) * 1.2)) translate(calc(var(--particle-end-x) * 0.5), calc(var(--particle-end-y) * 0.5));
  }
}

@keyframes gooey-language-point {
  0% {
    opacity: 0;
    transform: scale(0);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }

  25% {
    transform: scale(calc(var(--particle-scale) * 0.25));
  }

  38% {
    opacity: 1;
  }

  60% {
    opacity: 1;
    transform: scale(var(--particle-scale));
    animation-timing-function: ease;
  }

  78% {
    opacity: 1;
    transform: scale(var(--particle-scale));
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(22px, 5vw, 72px);
  overflow: hidden;
}

.hero-liquid {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 1fr;
  place-items: center;
  padding: clamp(42px, 8vw, 112px) clamp(18px, 5vw, 72px) clamp(128px, 16vw, 184px);
  background: #080512;
  isolation: isolate;
}

.liquid-ether-stage {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.liquid-ether-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.liquid-ether-mount {
  z-index: 0;
  overflow: hidden;
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: auto;
  background: #080512;
}

.liquid-ether-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.liquid-ether-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  pointer-events: auto;
}

.hero-liquid-grain {
  z-index: 1;
  opacity: 0.22;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--bg) 84%, transparent), transparent 38%, color-mix(in srgb, var(--bg) 72%, transparent)),
    radial-gradient(circle at 50% 50%, transparent 0 36%, color-mix(in srgb, var(--bg) 40%, transparent) 100%);
  mix-blend-mode: soft-light;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-position: center;
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
  pointer-events: none;
}

.hero-media {
  position: relative;
  min-height: 420px;
  max-height: 720px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px var(--shadow);
  transition: transform 220ms ease;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, white 34%, transparent);
  content: "";
  pointer-events: none;
}

.hero-copy {
  max-width: 610px;
}

.hero-liquid .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: min(1020px, 100%);
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero-liquid .eyebrow {
  margin-bottom: 28px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 54%, transparent);
  backdrop-filter: blur(10px);
  transform: translateY(var(--hero-kicker-offset-y, 0px));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(3.1rem, 6vw, 5rem);
  line-height: 0.98;
  font-weight: 500;
}

.hero-liquid h1 {
  max-width: min(100%, 980px);
  margin-bottom: 38px;
  color: #fff9ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  text-wrap: balance;
  text-shadow: 0 2px 38px color-mix(in srgb, var(--bg) 84%, transparent);
  transform: translateY(var(--hero-title-offset-y, 8px));
}

.hero-title-primary,
.hero-title-secondary {
  display: block;
}

.hero-title-primary {
  font-size: clamp(1.5rem, 4.05vw, 64px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.22;
}

.hero-title-secondary {
  margin-top: 24px;
  color: #a8a8a8;
  font-size: clamp(1.2rem, 1.83vw, 30px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.55;
}

.split-letter {
  display: inline-block;
  min-width: 0.08em;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
}

.is-split-ready .split-letter {
  animation: letter-arrive var(--letter-duration, 1250ms) cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: var(--letter-delay);
}

.hero-summary {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 100;
  line-height: 2;
}

.hero-liquid .hero-summary {
  max-width: 42rem;
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  text-shadow: 0 1px 18px color-mix(in srgb, var(--bg) 84%, transparent);
  transform: translateY(var(--hero-summary-offset-y, 40px));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-liquid .hero-actions {
  justify-content: center;
  gap: 29px;
  margin-top: 89px;
}

.hero-liquid .primary-link,
.hero-liquid .secondary-link {
  min-width: 176px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 1rem;
}

.hero-liquid .secondary-link {
  background: color-mix(in srgb, var(--bg) 58%, transparent);
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-strong);
  border-radius: 4px;
  padding: 0 28px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-link {
  background: var(--surface-strong);
  color: var(--bg);
}

.secondary-link {
  color: var(--text);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.hero-proof {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-liquid .hero-proof {
  width: min(620px, 100%);
  margin-top: 42px;
  border-color: color-mix(in srgb, var(--text) 20%, transparent);
  background: color-mix(in srgb, var(--text) 16%, transparent);
  box-shadow: 0 18px 56px color-mix(in srgb, var(--shadow) 72%, transparent);
  backdrop-filter: blur(12px);
}

.hero-liquid .hero-proof div {
  background: color-mix(in srgb, var(--bg) 46%, transparent);
}

.hero-proof div {
  min-height: 104px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.hero-proof span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-proof strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.25;
}

.hero-index {
  position: absolute;
  right: clamp(26px, 5vw, 72px);
  left: clamp(26px, 5vw, 72px);
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-liquid .hero-index {
  z-index: 2;
  right: auto;
  left: 50%;
  bottom: 26px;
  /* Keep the original 14-inch span, pull both groups inward on compact
     screens, and let the two groups spread farther apart on wide displays. */
  width: min(calc(100% - 52px), clamp(600px, calc(90.8vw - 97px), 2100px));
  min-width: 0;
  padding-inline: 16px;
  transform: translateX(-50%);
  background: transparent;
  backdrop-filter: none;
}

.hero-index-item {
  display: inline-flex;
  align-items: baseline;
  /* Keep the label/value pair compact on small screens, preserve the 14-inch
     rhythm, and give wide desktop layouts proportionally more breathing room. */
  gap: clamp(9px, calc(0.9vw + 1px), 24px);
  white-space: nowrap;
}

.hero-index-item:last-child {
  justify-content: flex-end;
  text-align: right;
}

.hero-liquid .hero-index-item:first-child {
  transform: translateX(-5px);
}

.hero-liquid .hero-index-item:last-child {
  transform: translateX(5px);
}

.hero-cursor-note {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(102px, 12vw, 164px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
}

.hero-cursor-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent);
}

.hero-index strong {
  color: var(--text);
  font-size: 0.86rem;
}

.hero-index-item:first-child strong {
  font-weight: 200;
}

.hero-index-item:last-child strong {
  font-weight: 100;
}

/* Landing entrance: the page resolves in a short visual sequence instead of
   appearing all at once.  The final transform values keep the existing hero
   spacing intact, including the compact 8-inch layout below. */
html.is-page-loading .site-header,
html.is-page-loading .hero-liquid .liquid-ether-stage,
html.is-page-loading .hero-liquid .hero-kicker,
html.is-page-loading .hero-liquid h1,
html.is-page-loading .hero-liquid .hero-summary,
html.is-page-loading .hero-liquid .hero-actions,
html.is-page-loading .hero-liquid .hero-index {
  opacity: 0;
  pointer-events: none;
}

html.is-page-entered .site-header {
  animation: portfolio-header-enter 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html.is-page-entered .hero-liquid .liquid-ether-stage {
  animation: portfolio-background-enter 900ms ease-out backwards;
}

html.is-page-entered .hero-liquid .hero-kicker {
  animation: portfolio-kicker-enter 560ms 230ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html.is-page-entered .hero-liquid h1 {
  animation: portfolio-title-enter 760ms 330ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html.is-page-entered .hero-liquid .hero-summary {
  animation: portfolio-summary-enter 620ms 570ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html.is-page-entered .hero-liquid .hero-actions {
  animation: portfolio-actions-enter 620ms 720ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html.is-page-entered .hero-liquid .hero-index {
  animation: portfolio-index-enter 560ms 840ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes portfolio-header-enter {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes portfolio-background-enter {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
}

@keyframes portfolio-kicker-enter {
  from {
    opacity: 0;
    transform: translateY(calc(var(--hero-kicker-offset-y, 0px) + 16px));
  }
}

@keyframes portfolio-title-enter {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(calc(var(--hero-title-offset-y, 8px) + 34px));
  }
}

@keyframes portfolio-summary-enter {
  from {
    opacity: 0;
    transform: translateY(calc(var(--hero-summary-offset-y, 40px) + 20px));
  }
}

@keyframes portfolio-actions-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes portfolio-index-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
}

/* Every following module waits until it enters the viewport.  Its direct
   children stagger in gently, so the page reads as a sequence of exhibits
   rather than a single long fade. */
.scroll-reveal.is-reveal-pending > *:not(.awards-light-rays) {
  --module-enter-delay: 0ms;
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--module-enter-delay);
}

.scroll-reveal.is-reveal-pending > *:not(.awards-light-rays):nth-child(2) {
  --module-enter-delay: 80ms;
}

.scroll-reveal.is-reveal-pending > *:not(.awards-light-rays):nth-child(3) {
  --module-enter-delay: 160ms;
}

.scroll-reveal.is-reveal-pending > *:not(.awards-light-rays):nth-child(4) {
  --module-enter-delay: 240ms;
}

.scroll-reveal.is-reveal-pending:not(.is-revealed) > *:not(.awards-light-rays) {
  opacity: 0;
  transform: translateY(28px);
}

@keyframes letter-arrive {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes liquid-pulse {
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 24px var(--accent);
  }
}


.intro-band,
.work-section,
.archive-section,
.awards-section,
.process-section,
.profile-section {
  padding: clamp(56px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 64%, transparent);
}

.metric {
  min-height: 190px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  color: var(--accent-3);
}

.process-track span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 22px 0 12px;
  font-size: 1.25rem;
}

.metric p,
.process-track p,
.profile-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.profile-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 4.3vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.section-note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.capability-console {
  display: grid;
  grid-template-columns: 1.12fr repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.capability-node {
  position: relative;
  display: grid;
  min-height: 176px;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.capability-node::after {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: color-mix(in srgb, var(--accent) 36%, transparent);
  content: attr(data-ability);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
}

.capability-node:hover,
.capability-node:focus-visible,
.capability-node.is-active {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--line));
  box-shadow: 0 18px 46px var(--shadow);
  outline: none;
  transform: translateY(-4px);
}

.capability-node.is-active {
  background: #dcdae2;
  color: var(--bg);
}

.capability-node span,
.capability-node small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.capability-node.is-active span,
.capability-node.is-active small {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.capability-node strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 30px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.15;
}

.toolbar {
  max-width: min(100%, 650px);
  justify-content: end;
  overflow-x: auto;
}

.quick-browse {
  position: relative;
  height: clamp(38rem, 62vw, 88svh);
  overflow: hidden;
  border: 0;
  background: #050505;
  cursor: grab;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Both areas are drag surfaces. Apply the selection guard to generated cards
   as well, otherwise text nodes inside a card can still start a blue selection. */
.quick-browse *,
.certificate-gallery * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.quick-browse:active {
  cursor: grabbing;
}

.quick-browse:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.quick-dome-main,
.quick-dome-stage,
.quick-dome-vignette,
.quick-dome-edge,
.quick-dome-blur {
  position: absolute;
  inset: 0;
}

.quick-dome-main {
  overflow: hidden;
  touch-action: pan-y;
}

.quick-dome-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: calc(var(--quick-radius, 420px) * 3.2);
  perspective-origin: 50% 50%;
}

.quick-dome-sphere,
.quick-dome-item,
.quick-dome-tile {
  transform-style: preserve-3d;
}

.quick-dome-sphere {
  position: absolute;
  width: 1px;
  height: 1px;
  transform: translateZ(calc(var(--quick-radius, 420px) * -1));
  will-change: transform;
}

.quick-dome-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--quick-tile-width, 150px);
  height: var(--quick-tile-height, 150px);
  transform:
    translate(-50%, -50%)
    translateY(var(--quick-row-offset, 0px))
    rotateY(var(--quick-angle, 0deg))
    rotateX(var(--quick-tilt, 0deg))
    translateZ(var(--quick-radius, 420px));
  backface-visibility: hidden;
}

.quick-dome-tile {
  position: absolute;
  inset: 2px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(20px, 2vw, 34px);
  background: #111;
  cursor: pointer;
  backface-visibility: hidden;
  contain: layout paint style;
  transform: translateZ(0) scale(var(--quick-tile-scale, 1));
  transition: border-color 180ms ease, filter 220ms ease, opacity 220ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.quick-dome-tile:hover,
.quick-dome-tile:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  outline: none;
  transform: translateZ(16px) scale(var(--quick-tile-scale, 1)) scale(1.04);
}

.quick-dome-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
}

.quick-dome-item.is-secondary .quick-dome-tile {
  opacity: 0.76;
  filter: brightness(0.78);
}

.quick-dome-vignette {
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 58% at 50% 48%, transparent 42%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.2) 15%, transparent 27%, transparent 73%, rgba(0, 0, 0, 0.24) 85%, rgba(0, 0, 0, 0.7) 100%);
}

.quick-dome-edge {
  z-index: 4;
  pointer-events: none;
}

.quick-dome-blur {
  z-index: 5;
  height: 22%;
  pointer-events: none;
}

.quick-dome-blur--top {
  top: 0;
  bottom: auto;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.3) 48%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.quick-dome-blur--bottom {
  top: auto;
  bottom: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.74) 0%, rgba(5, 5, 5, 0.32) 48%, transparent 100%);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
}

.quick-dome-edge::before,
.quick-dome-edge::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  content: "";
}

.quick-dome-edge::before {
  left: 0;
  background: linear-gradient(90deg, #050505, transparent);
}

.quick-dome-edge::after {
  right: 0;
  background: linear-gradient(270deg, #050505, transparent);
}

.quick-crosshair {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.quick-crosshair.is-active {
  opacity: 1;
}

.quick-crosshair-noise-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.quick-crosshair-line {
  position: absolute;
  display: block;
  background: #7d42b8;
  opacity: 0.88;
  mix-blend-mode: screen;
  will-change: transform;
}

.quick-crosshair-line--trail {
  background: #54247e;
  filter: url(#quick-crosshair-trail-noise);
}

.quick-crosshair-line--trail-one {
  background: #f2eaff;
  opacity: 0.32;
}

.quick-crosshair-line--trail-two {
  background: #9c62d6;
  opacity: 0.17;
}

.quick-crosshair-line--trail-three {
  background: #ffffff;
  opacity: 0.1;
}

.quick-crosshair-line--horizontal {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
}

.quick-crosshair-line--vertical {
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
}

.quick-browse-hint {
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--text) 52%, transparent);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: center;
}


.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.work-card {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-column: span 4;
  grid-template-rows: minmax(180px, 0.95fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--work-card-bg);
  color: var(--text);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  transform-style: preserve-3d;
}

.work-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid color-mix(in srgb, white 34%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.work-card:nth-child(1),
.work-card:nth-child(2) {
  grid-column: span 6;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: 0 20px 50px var(--shadow);
  outline: none;
  transform: translateY(-5px) rotateX(1deg) rotateY(-1deg);
}

.work-card:hover::before,
.work-card:focus-visible::before {
  opacity: 1;
}

.card-media {
  overflow: hidden;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent 50%),
    var(--surface-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transition: transform 280ms ease;
}

.work-card[data-project-id="information-visualization"] .card-media,
.archive-card[data-project-id="information-visualization"] img {
  background: #11110f;
}

.work-card:hover .card-media img {
  transform: scale(1.035);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-index {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-title {
  max-width: 15ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.08;
}

.card-category,
.card-description {
  margin: 0;
  color: var(--muted);
}

.card-category {
  font-size: 0.9rem;
}

.card-skills,
.modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chip,
.modal-skill-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.card-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.archive-section {
  border-top: 1px solid var(--line);
  background: #000;
}

.work-section,
.process-section {
  background: #000;
}

.archive-grid {
  display: grid;
  gap: 12px;
}

.archive-console {
  width: 100%;
  position: relative;
  isolation: isolate;
}

.archive-hover-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  border-radius: var(--radius);
  background: var(--surface-strong);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    width 520ms cubic-bezier(0.22, 1, 0.36, 1),
    height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}

.archive-hover-pill.is-visible {
  opacity: 1;
}

.archive-node {
  min-height: 176px;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 0;
}

.archive-console .archive-node {
  z-index: 1;
  background: transparent;
  animation: archive-node-enter 560ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--archive-enter-delay, 0ms);
  transition:
    color 220ms ease,
    border-color 220ms ease;
}

.archive-console .archive-node:hover,
.archive-console .archive-node:focus-visible,
.archive-console .archive-node.is-pill-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  outline: none;
  transform: none;
}

.archive-console .archive-node span,
.archive-console .archive-node small,
.archive-console .archive-node strong {
  position: relative;
  z-index: 1;
}

.archive-console .archive-node::after {
  z-index: 1;
}

.archive-console .archive-node.is-pill-active {
  color: var(--bg);
}

.archive-console .archive-node.is-pill-active span,
.archive-console .archive-node.is-pill-active small {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.archive-console .archive-node.is-pill-active::after {
  color: color-mix(in srgb, var(--bg) 22%, transparent);
}

.archive-node::after {
  bottom: 10px;
}

.archive-node:hover,
.archive-node:focus-visible {
  background: var(--surface-strong);
  color: var(--bg);
}

.archive-node:hover span,
.archive-node:hover small,
.archive-node:focus-visible span,
.archive-node:focus-visible small {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.archive-node:hover::after,
.archive-node:focus-visible::after {
  color: color-mix(in srgb, var(--bg) 22%, transparent);
}

.archive-node strong {
  align-self: start;
  margin-top: 30px;
}

.archive-node span {
  color: #20a2bc;
}

.archive-node small {
  align-self: end;
}

.archive-page {
  display: grid;
  gap: 22px;
}

.archive-page-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 18px;
  align-items: end;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 78%, transparent), transparent),
    var(--surface);
  animation: archive-heading-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.archive-back {
  position: fixed;
  z-index: 30;
  top: max(18px, calc(env(safe-area-inset-top) + 12px));
  left: clamp(18px, 4vw, 54px);
  width: max-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--surface-strong);
  border-radius: 4px;
  background: var(--surface-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -8px, 0);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.archive-back.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.archive-back::before {
  margin-right: 8px;
  content: "←";
}

.archive-back.is-visible:hover,
.archive-back.is-visible:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  color: var(--text);
  outline: none;
  transform: translateY(-2px);
}

.archive-page-heading span,
.archive-page-heading small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.archive-page-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  animation: archive-title-enter 560ms 90ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.archive-page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.archive-work-card {
  min-height: 420px;
  animation: archive-card-enter 560ms var(--archive-enter-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes archive-node-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
}

@keyframes archive-heading-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
  }
}

@keyframes archive-title-enter {
  from {
    opacity: 0;
    transform: translate3d(-18px, 0, 0);
    filter: blur(8px);
  }
}

@keyframes archive-card-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.98);
  }
}

.archive-group {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.archive-group.is-open {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 18px 46px var(--shadow);
}

.archive-group-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 34px;
  align-content: start;
  align-items: end;
  gap: 10px;
  width: 100%;
  min-height: 132px;
  padding: 22px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.archive-group-heading::after {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-2);
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.archive-group-heading[aria-expanded="true"]::after {
  content: "-";
}

.archive-group-heading:hover,
.archive-group-heading:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
}

.archive-group-heading span,
.archive-group-heading small {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.archive-group-heading h3 {
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

.archive-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.archive-group-grid[hidden] {
  display: none;
}

.archive-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--work-card-bg);
  color: var(--text);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.archive-card:hover,
.archive-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 16px 40px var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

.archive-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: var(--surface-soft);
}

.archive-card[data-project-id="information-visualization"] img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
}

.archive-card[data-project-id$="-infographic"] img {
  object-position: top center;
}

.archive-card span {
  display: block;
  padding: 10px 10px 4px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.3;
}

.archive-card small {
  display: block;
  padding: 0 10px 12px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.awards-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 5.6vw, 72px);
  padding-inline: 0;
  border-top: 0;
  background: #000;
}

.awards-section .section-heading {
  margin-bottom: 18px;
}

.awards-section > :not(.awards-light-rays) {
  position: relative;
  z-index: 1;
}

.awards-section > .section-heading,
.awards-section > .certificate-gallery,
.awards-section > .certificate-gallery-hint {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.awards-section > .section-heading {
  padding-inline: clamp(18px, 5vw, 72px);
}

.awards-section > .certificate-gallery-hint {
  padding-inline: clamp(18px, 5vw, 72px);
}

.awards-light-rays {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(196, 177, 231, 0.10), transparent 42%, rgba(116, 165, 225, 0.10) 100%),
    linear-gradient(118deg, transparent 31%, rgba(196, 177, 231, 0.10) 46%, transparent 61%),
    radial-gradient(ellipse 55% 46% at 50% -14%, rgba(196, 177, 231, 0.30), transparent 72%),
    radial-gradient(ellipse 62% 34% at 50% 112%, rgba(116, 165, 225, 0.16), transparent 75%),
    #000;
}

.awards-light-rays canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline-card {
  position: relative;
  display: grid;
  min-height: 220px;
  align-content: space-between;
  padding: 22px;
  background: #000;
  color: var(--text);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.timeline-card::before {
  width: 42px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.timeline-card:hover,
.timeline-card:focus-visible {
  z-index: 1;
  background: var(--surface-strong);
  color: var(--bg);
  outline: none;
  transform: translateY(-4px);
}

.timeline-card span {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 850;
}

.timeline-card strong {
  display: block;
  margin-top: 36px;
  font-size: clamp(1.05rem, 1.5vw, 1.36rem);
  line-height: 1.35;
}

.timeline-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-card:hover small,
.timeline-card:focus-visible small {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}

.certificate-gallery {
  position: relative;
  height: clamp(22rem, 40vw, 31rem);
  margin-top: 0;
  overflow: hidden;
  cursor: grab;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.certificate-gallery:active {
  cursor: grabbing;
}

.certificate-gallery:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.certificate-gallery::before,
.certificate-gallery::after {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: min(11vw, 10rem);
  content: "";
  pointer-events: none;
}

.certificate-gallery::before,
.certificate-gallery::after {
  display: none;
}

.certificate-gallery::before {
  left: 0;
  background: linear-gradient(90deg, #000 8%, transparent);
}

.certificate-gallery::after {
  right: 0;
  background: linear-gradient(270deg, #000 8%, transparent);
}

.certificate-gallery-track {
  position: absolute;
  inset: 0;
}

.certificate-gallery-card {
  position: absolute;
  left: 50%;
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: 8px;
  padding: 10px;
  background: #090909;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.46);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transform-origin: center center;
  cursor: grab;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}

.certificate-gallery-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.certificate-gallery-media {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  border-radius: inherit;
  background: #151515;
  place-items: center;
}

.certificate-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.certificate-gallery-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 34px 18px 16px;
  text-align: left;
}

.certificate-gallery-copy::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.43) 37%, rgba(0, 0, 0, 0.21) 62%, transparent 100%);
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 44%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 44%, #000 100%);
}

.certificate-gallery-copy span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.certificate-gallery-copy strong {
  display: -webkit-box;
  overflow: hidden;
  max-width: 72%;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.certificate-gallery-copy small {
  max-width: 62%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certificate-gallery-hint {
  margin: 2px 0 0;
  color: color-mix(in srgb, var(--text) 48%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-height: 760px) and (min-width: 720px) {
  .awards-section {
    padding-block: 44px;
  }

  .certificate-gallery {
    height: min(62svh, 28rem);
  }
}

.process-section {
  border-top: 1px solid var(--line);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-track article {
  min-height: 250px;
  padding: 30px clamp(18px, 3vw, 36px) 0 0;
  border-right: 1px solid var(--line);
}

.process-track article:last-child {
  border-right: 0;
}

.process-track h3 {
  margin: 28px 0 14px;
  font-size: 1.45rem;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: 44px;
  align-items: start;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--bg);
}

.profile-section .eyebrow {
  color: var(--accent-3);
}

.profile-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  background: color-mix(in srgb, var(--bg) 18%, transparent);
}

.profile-highlights div {
  min-height: 112px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.profile-highlights.is-revealed > div {
  animation: profile-highlight-enter 850ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.profile-highlights.is-revealed > div:nth-child(2) {
  animation-delay: 180ms;
}

.profile-highlights.is-revealed > div:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes profile-highlight-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
}

.profile-highlights span,
.resume-block-heading span {
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-highlights strong {
  display: block;
  margin-top: 18px;
  color: var(--bg);
  font-size: clamp(1rem, 1.5vw, 1.26rem);
  line-height: 1.25;
}

.profile-meta {
  align-self: end;
  border-top: 1px solid color-mix(in srgb, var(--bg) 70%, transparent);
}

.profile-meta dl {
  margin: 0;
}

.profile-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
}

.profile-meta dt {
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}

.profile-meta dd {
  margin: 0;
  font-weight: 750;
}

.profile-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-3) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.resume-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  padding-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 24%, transparent);
}

.resume-block {
  display: grid;
  grid-column: span 6;
  align-content: start;
  gap: 22px;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 5%, transparent);
}

.resume-block-wide {
  grid-column: span 12;
}

.resume-block-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
}

.resume-block-heading h3 {
  margin: 0;
  color: var(--bg);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

.resume-entry {
  display: grid;
  gap: 14px;
}

.resume-entry header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.resume-entry header span {
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.resume-entry header strong {
  color: var(--bg);
  font-size: 1.08rem;
  text-align: right;
}

.resume-entry p,
.resume-entry li,
.resume-list li,
.skill-list dd {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.resume-entry p {
  margin: 0;
}

.resume-entry ul,
.resume-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15rem;
}

.resume-list a {
  border-bottom: 1px solid color-mix(in srgb, var(--accent-3) 78%, transparent);
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.resume-list a:hover,
.resume-list a:focus-visible {
  border-color: var(--accent-2);
  color: var(--bg);
  outline: none;
}

.resume-more {
  margin-top: 14px;
}

.resume-more summary {
  width: max-content;
  max-width: 100%;
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.resume-list-compact {
  margin-top: 12px;
}

.skill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-stack span {
  display: grid;
  min-width: 74px;
  min-height: 58px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  color: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1;
}

.skill-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.skill-list div {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
}

.skill-list dt {
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 850;
}

.skill-list dd {
  margin: 0;
}

.awards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(22px, 4vw, 54px);
}

.awards-layout h4 {
  margin: 0 0 16px;
  color: var(--bg);
  font-size: 1rem;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  --modal-origin-x: 50%;
  --modal-origin-y: 50%;
}

.project-modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.project-modal.is-open .modal-backdrop {
  animation: modal-backdrop-enter 220ms ease-out both;
}

.modal-panel {
  position: absolute;
  inset: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.project-modal.is-open .modal-panel {
  transform-origin: var(--modal-origin-x) var(--modal-origin-y);
  animation: modal-panel-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-backdrop-enter {
  from {
    opacity: 0;
  }
}

@keyframes modal-panel-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.94);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: #fff;
  background: color-mix(in srgb, #fff 14%, transparent);
  color: #fff;
  outline: none;
}

.modal-media {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 20px;
  background: #11110f;
}

.modal-media.is-pdf {
  padding: 0;
  background: #f6f2ea;
}

.modal-media img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 96px);
  cursor: zoom-in;
  object-fit: contain;
}

.modal-media img[hidden] {
  display: none;
}

.modal-pdf {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 56px);
  border: 0;
  background: #f6f2ea;
}

.modal-pdf[hidden] {
  display: none;
}

.modal-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 48px 26px 24px;
  overflow: auto;
}

.modal-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
}

.modal-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}

html[lang="en"] h1 {
  max-width: 15ch;
  font-size: clamp(2.55rem, 4.9vw, 4.15rem);
  line-height: 1.12;
}

html[lang="en"] .section-heading h2,
html[lang="en"] .profile-copy h2 {
  font-size: clamp(1.95rem, 3.5vw, 3rem);
  line-height: 1.14;
}

html[lang="en"] .card-title {
  max-width: 100%;
  font-size: 1.42rem;
  line-height: 1.22;
  overflow-wrap: break-word;
}

html[lang="en"] .archive-group-heading h3 {
  max-width: 12ch;
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.16;
}

html[lang="en"] .modal-content h2 {
  font-size: 1.72rem;
  line-height: 1.22;
  overflow-wrap: break-word;
}

html[lang="en"] .resume-block-heading h3 {
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.12;
}

.modal-content p {
  color: var(--muted);
}

.modal-skills {
  margin-top: 14px;
}

.modal-skill-chip {
  min-height: 28px;
}

.modal-case {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}

.modal-case[hidden] {
  display: none;
}

.modal-case-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
}

.modal-case-item strong {
  color: var(--text);
  font-size: 0.78rem;
}

.modal-case-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.modal-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-original-link {
  width: max-content;
  max-width: 100%;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  font-weight: 750;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: clamp(8px, 0.65vw, 14px);
  margin-top: 12px;
}

.thumb-btn {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--surface-soft);
}

.thumb-btn.is-active {
  border-color: var(--accent);
}

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

/* On larger screens, use the open lower half of the detail panel for a
   complete, roomier preview grid instead of pinning cropped thumbnails. */
@media (min-width: 900px) and (min-height: 720px) {
  .gallery-strip {
    flex: 1 1 0;
    min-height: clamp(13rem, 30vh, 25rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
  }

  .thumb-btn {
    min-height: 0;
    aspect-ratio: auto;
  }

  .thumb-btn img {
    object-fit: contain;
  }
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.image-viewer.is-open {
  display: block;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.image-viewer.is-open .image-viewer-backdrop {
  animation: image-viewer-backdrop-enter 220ms ease-out both;
}

.image-viewer-panel {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, white 24%, transparent);
  border-radius: var(--radius);
  background: #0e0e0d;
  color: #f7f0e8;
}

.image-viewer.is-open .image-viewer-panel {
  animation: image-viewer-panel-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes image-viewer-backdrop-enter {
  from {
    opacity: 0;
  }
}

@keyframes image-viewer-panel-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
  }
}

.image-viewer-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}

.image-viewer-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transform-origin: center;
  transition: transform 160ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer-stage img.is-zoomed {
  cursor: grab;
  transition: none;
}

.image-viewer-stage:active img.is-zoomed {
  cursor: grabbing;
}

.image-viewer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, white 28%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, #0e0e0d 82%, transparent);
  color: #f7f0e8;
  font-size: 1.65rem;
  line-height: 1;
}

.image-viewer-tools {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, white 18%, transparent);
  border-radius: 6px;
  background: rgba(14, 14, 13, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.image-viewer-tool {
  display: grid;
  min-width: 56px;
  height: 40px;
  place-items: center;
  border: 1px solid color-mix(in srgb, white 24%, transparent);
  border-radius: 4px;
  background: #f7f0e8;
  color: #11110f;
  font-size: 0.86rem;
  font-weight: 800;
}

.image-viewer-zoom-label {
  min-width: 64px;
  background: color-mix(in srgb, #11110f 92%, transparent);
  color: #f7f0e8;
  font-size: 0.82rem;
}

/* Gooey-style zoom controls: the solid indicator remains crisp while the
   particle layer animates behind it. */
.gooey-viewer-tools {
  --gooey-viewer-color-1: #f7f0e8;
  --gooey-viewer-color-2: #f7f0e8;
  --gooey-viewer-color-3: #f7f0e8;
  --gooey-viewer-color-4: #f7f0e8;
  gap: 5px;
  overflow: visible;
  border-radius: 999px;
  padding: 3px;
  background: rgba(14, 14, 13, 0.72);
  box-shadow: none;
  isolation: isolate;
}

.gooey-viewer-tools .gooey-viewer-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  filter: blur(0.8px) contrast(100) blur(0);
  mix-blend-mode: normal;
  pointer-events: none;
  transform: translate3d(0, 0, 0.01px);
}

.gooey-viewer-tools .gooey-viewer-indicator,
.gooey-viewer-tools .gooey-viewer-particle-layer {
  position: absolute;
  left: var(--gooey-viewer-left, 3px);
  top: var(--gooey-viewer-top, 3px);
  width: var(--gooey-viewer-width, 0px);
  height: var(--gooey-viewer-height, 0px);
}

.gooey-viewer-tools .gooey-viewer-indicator {
  z-index: 1;
  border-radius: 100vw;
  background: #f7f0e8;
  transition:
    left 300ms ease,
    top 300ms ease,
    width 300ms ease,
    height 300ms ease;
  will-change: left, top, width, height;
}

.gooey-viewer-tools .gooey-viewer-particle {
  position: absolute;
  left: calc(50% - 6px);
  top: calc(50% - 6px);
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  transform-origin: center;
  animation: gooey-language-particle var(--particle-time) ease 1 -350ms;
  will-change: transform, opacity;
}

.gooey-viewer-tools .gooey-viewer-particle::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--particle-color, var(--gooey-viewer-color-1));
  content: "";
  animation: gooey-language-point var(--particle-time) ease 1 -350ms;
}

.gooey-viewer-tools .image-viewer-tool,
.gooey-viewer-tools .image-viewer-tool.is-active,
.gooey-viewer-tools .image-viewer-tool:hover,
.gooey-viewer-tools .image-viewer-tool:focus-visible {
  position: relative;
  z-index: 2;
  min-width: 56px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, #f7f0e8 72%, transparent);
  outline: none;
  transform: none;
}

.gooey-viewer-tools .image-viewer-zoom-label {
  min-width: 64px;
}

.gooey-viewer-tools .image-viewer-tool.is-active {
  color: #11110f;
}

.gooey-viewer-tools .image-viewer-tool:hover:not(.is-active) {
  color: #f7f0e8;
}

.gooey-viewer-tools .image-viewer-tool:focus-visible {
  outline: 1px solid #f7f0e8;
  outline-offset: 2px;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 76px;
  place-items: center;
  border: 1px solid color-mix(in srgb, white 24%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, #0e0e0d 78%, transparent);
  color: #f7f0e8;
  font-size: 2.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.image-viewer-prev {
  left: 14px;
}

.image-viewer-next {
  right: 14px;
}

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

.image-viewer-tool:hover,
.image-viewer-tool:focus-visible,
.image-viewer-nav:hover,
.image-viewer-nav:focus-visible,
.image-viewer-close:hover,
.image-viewer-close:focus-visible {
  background: var(--accent);
  color: #11110f;
  outline: none;
}

.image-viewer-close:hover,
.image-viewer-close:focus-visible {
  border-color: #fff;
  background: color-mix(in srgb, #fff 14%, transparent);
  color: #fff;
}

.image-viewer-panel figcaption {
  color: color-mix(in srgb, #f7f0e8 72%, transparent);
  font-size: 0.86rem;
  text-align: center;
}

/* Keep the 14-inch composition untouched.  On wide desktop canvases the
   hero grows as one visual unit, so the text never feels undersized against
   the full-screen Liquid Ether background. */
@media (min-width: 1680px) and (min-height: 900px) {
  .hero-liquid .hero-copy {
    max-width: min(1280px, 100%);
  }

  .hero-liquid .eyebrow {
    margin-bottom: clamp(28px, 1.5vw, 40px);
    padding: clamp(5px, 0.3vw, 8px) clamp(10px, 0.6vw, 16px);
    font-size: clamp(0.78rem, 0.85vw, 1rem);
  }

  .hero-liquid h1 {
    max-width: min(1200px, 100%);
    margin-bottom: clamp(38px, 2.2vw, 56px);
  }

  .hero-title-primary {
    font-size: clamp(64px, 3.75vw, 92px);
  }

  .hero-title-secondary {
    margin-top: clamp(24px, 1.45vw, 36px);
    font-size: clamp(30px, 1.82vw, 46px);
  }

  .hero-summary,
  .hero-liquid .hero-summary {
    max-width: 54rem;
    font-size: clamp(13px, 0.72vw, 18px);
  }

  .hero-liquid .hero-actions {
    gap: clamp(24px, 1.6vw, 40px);
    margin-top: clamp(64px, 3.2vw, 82px);
  }

  .hero-liquid .primary-link,
  .hero-liquid .secondary-link {
    min-width: clamp(176px, 10.5vw, 244px);
    min-height: clamp(58px, 3.05vw, 76px);
    padding-inline: clamp(28px, 1.6vw, 42px);
    font-size: clamp(1rem, 0.92vw, 1.18rem);
  }

  .hero-liquid .hero-index {
    bottom: clamp(26px, 2.1vw, 48px);
    font-size: clamp(0.78rem, 0.66vw, 0.95rem);
  }

  .hero-index strong {
    font-size: clamp(0.86rem, 0.74vw, 1.06rem);
  }

  .awards-section {
    padding-block: clamp(72px, 5vw, 112px);
  }

  .awards-section > .section-heading,
  .awards-section > .certificate-gallery,
  .awards-section > .certificate-gallery-hint {
    width: 100%;
  }

  .awards-section .section-heading h2 {
    font-size: clamp(3.6rem, 4.7vw, 5.9rem);
  }

  .certificate-gallery {
    height: clamp(34rem, 42vw, 48rem);
  }
}

/* Keep the subtitle more legible and slightly lower on compact laptops and
   tablets, without changing the small-phone or wide-desktop composition. */
@media (min-width: 760px) and (max-width: 1679px) {
  .hero-title-secondary {
    margin-top: 30px;
    font-size: 24px;
  }
}

/* The 8-inch layout shown in the review has a shorter visual header.
   Shift only its heading cluster down, leaving other screen sizes untouched. */
@media (min-width: 900px) and (max-width: 1200px) and (max-height: 800px) {
  .hero-liquid .eyebrow {
    --hero-kicker-offset-y: 7px;
  }

  .hero-liquid h1 {
    --hero-title-offset-y: 15px;
  }
}

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

  .mobile-nav-toggle {
    display: inline-grid;
    grid-column: 2;
    justify-self: end;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--text) 24%, transparent);
    border-radius: 50%;
    padding: 0;
    background: color-mix(in srgb, var(--bg) 66%, transparent);
    color: var(--text);
    backdrop-filter: blur(12px);
  }

  .mobile-nav-toggle-icon,
  .mobile-nav-toggle-icon::before,
  .mobile-nav-toggle-icon::after {
    display: block;
    width: 17px;
    height: 1px;
    border-radius: 1px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-nav-toggle-icon {
    position: relative;
  }

  .mobile-nav-toggle-icon::before,
  .mobile-nav-toggle-icon::after {
    position: absolute;
    left: 0;
  }

  .mobile-nav-toggle-icon::before {
    transform: translateY(-6px);
  }

  .mobile-nav-toggle-icon::after {
    transform: translateY(6px);
  }

  .site-header.is-mobile-nav-open .mobile-nav-toggle-icon {
    background: transparent;
  }

  .site-header.is-mobile-nav-open .mobile-nav-toggle-icon::before {
    transform: rotate(45deg);
  }

  .site-header.is-mobile-nav-open .mobile-nav-toggle-icon::after {
    transform: rotate(-45deg);
  }

  .header-actions {
    grid-column: 3;
  }

  .nav-links {
    position: absolute;
    z-index: 1;
    top: calc(100% + 2px);
    right: clamp(18px, 4vw, 54px);
    left: clamp(18px, 4vw, 54px);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    border-radius: 16px;
    padding: 8px;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    box-shadow: 0 18px 46px color-mix(in srgb, var(--shadow) 70%, transparent);
    backdrop-filter: blur(16px);
  }

  .site-header.is-mobile-nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    min-height: 46px;
    border: 1px solid color-mix(in srgb, #111 12%, transparent);
    border-radius: 10px;
    background: #fff;
    color: #111;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    border-color: #fff;
    background: color-mix(in srgb, #fff 86%, var(--accent));
    color: #111;
  }

  .hero,
  .profile-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 92px;
  }

  .hero.hero-liquid {
    min-height: 100svh;
    padding-top: clamp(42px, 10vw, 72px);
    padding-bottom: 126px;
  }

  .hero-copy {
    order: -1;
  }

  .hero-media {
    min-height: 340px;
  }

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

  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(2) {
    grid-column: span 6;
  }

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

  .archive-group-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .resume-block {
    grid-column: span 12;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 128px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 14px 18px;
  }

  .header-actions {
    justify-self: end;
  }

  .mode-switcher,
  .language-switch {
    justify-self: stretch;
  }

  .language-switch {
    width: auto;
  }

  .mode-switcher {
    overflow-x: auto;
  }

  .mode-button {
    flex: 1;
  }

  h1 {
    font-size: 3rem;
  }

  .hero.hero-liquid {
    min-height: max(660px, 100svh);
    padding-top: 40px;
    padding-bottom: 118px;
  }

  .hero-liquid .hero-actions {
    width: 100%;
  }

.hero-liquid .primary-link,
.hero-liquid .secondary-link {
    flex: 1 1 140px;
  }

  .hero-liquid .hero-proof {
    margin-top: 30px;
  }

  .hero-liquid .hero-index {
    bottom: 18px;
  }

  .hero-cursor-note {
    display: none;
  }

  html[lang="en"] h1 {
    font-size: 2.45rem;
    line-height: 1.14;
  }

  .hero,
  .intro-band,
  .work-section,
  .archive-section,
  .awards-section,
  .process-section,
  .profile-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-proof,
  .capability-console,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-index {
    left: 18px;
    right: 18px;
  }

  .intro-band,
  .process-track {
    grid-template-columns: 1fr;
  }

  .metric,
  .process-track article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child,
  .process-track article:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .toolbar {
    max-width: 100%;
    justify-content: start;
  }

  .filter-bar {
    width: 100%;
  }

  .filter-btn {
    min-width: max-content;
  }

  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(2) {
    grid-column: span 12;
  }

  .archive-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-group-heading {
    grid-template-columns: 1fr 34px;
    min-height: 118px;
    padding: 18px;
  }

  .archive-group-heading span,
  .archive-group-heading small,
  .archive-group-heading h3 {
    grid-column: 1;
  }

  .archive-group-heading::after {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .profile-highlights {
    grid-template-columns: 1fr;
  }

  .profile-meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .resume-grid {
    gap: 14px;
  }

  .resume-block {
    padding: 20px;
  }

  .resume-block-heading,
  .resume-entry header {
    display: grid;
    align-items: start;
  }

  .resume-entry header strong {
    text-align: left;
  }

  .resume-entry header span {
    white-space: normal;
  }

  .modal-panel {
    inset: 8px;
    display: flex;
    max-height: calc(100svh - 16px);
    flex-direction: column;
  }

  .modal-media {
    min-height: 0;
    max-height: 46svh;
    flex: 0 0 clamp(250px, 43svh, 360px);
    padding: 12px;
    touch-action: pan-y;
  }

  .modal-media img {
    min-height: 0;
    max-height: 100%;
  }

  .modal-media.is-pdf {
    max-height: none;
    flex: 1 1 48%;
    padding: 0;
  }

  .modal-pdf {
    min-height: 0;
  }

  .modal-content {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1 1 0;
    overflow-y: auto;
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
  }

  .image-viewer-panel {
    inset: 10px;
    padding: 12px;
  }

  .image-viewer-tools {
    top: 10px;
    left: 10px;
  }

  .image-viewer-tool {
    min-width: 36px;
    height: 36px;
  }

  .image-viewer-zoom-label {
    min-width: 54px;
  }

  .image-viewer-nav {
    width: 42px;
    height: 62px;
    font-size: 2.1rem;
  }

  .image-viewer-prev {
    left: 10px;
  }

  .image-viewer-next {
    right: 10px;
  }

  .modal-content {
    padding: 28px 18px 18px;
  }

  .gallery-strip {
    display: none;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
