:root {
  color-scheme: light;
  --background: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #efeee9;
  --ink: #17191d;
  --muted: #66686f;
  --line: rgba(23, 25, 29, 0.16);
  --line-strong: rgba(23, 25, 29, 0.34);
  --gold: #ffb800;
  --gold-soft: #ffe9a3;
  --cobalt: #3156ff;
  --cobalt-soft: #e6eaff;
  --danger: #b42318;
  --header-height: 72px;
  --page-padding: clamp(20px, 4vw, 64px);
  --content-width: 1440px;
  --radius-small: 10px;
  --radius-medium: 20px;
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-out: var(--ease-in-out);
  --ease-standard: var(--ease-in-out);
  --transition-fast: 160ms var(--ease-standard);
  --transition-state: 360ms var(--ease-out);
  --transition-open: 520ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 184, 0, .08), transparent 27rem),
    var(--background);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
}

h1 {
  max-width: 960px;
  margin-bottom: clamp(22px, 3vw, 38px);
  font-size: clamp(3rem, 7vw, 7.8rem);
}

h2 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-padding);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-state), border-color var(--transition-state);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 246, 242, .88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  width: 28px;
  height: 28px;
  overflow: visible;
  fill: var(--gold);
  filter: drop-shadow(0 5px 10px rgba(255, 184, 0, .22));
  transition: transform var(--transition-state);
}

.brand:hover .brand-mark {
  transform: scale(1.12) rotate(2deg);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
}

.main-nav a {
  position: relative;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  content: "";
  transition: transform var(--transition-state);
}

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

.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.language-switcher button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.language-switcher button:hover {
  background: var(--surface-soft);
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.section {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding: clamp(96px, 12vw, 180px) var(--page-padding);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .73rem;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  gap: 30px 80px;
  align-items: end;
  margin-bottom: clamp(52px, 7vw, 92px);
}

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  background: var(--surface);
}

/* Hero */
.hero-frame {
  position: sticky;
  top: 0;
  z-index: 1;
}

.hero-reveal-track {
  height: clamp(64px, 13svh, 112px);
}

@media (prefers-reduced-motion: reduce), print {
  .hero-frame {
    position: relative;
  }

  .hero-reveal-track {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: 160svh;
}

.hero-sticky {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 34px) var(--page-padding) 50px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1050px;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 6.8vw, 8rem);
}

.hero-intro {
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-roles li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-roles a {
  position: relative;
  text-decoration: none;
}

.hero-roles a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform var(--transition-state);
}

.hero-roles a:hover::after,
.hero-roles a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-roles li::before {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  content: "";
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(46vw, 660px);
  aspect-ratio: 1;
  transform: translate3d(0, var(--hero-parallax, 0), 0);
  opacity: .95;
  will-change: transform;
}

.hero-symbol {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  overflow: visible;
  transform: scale(var(--hero-scale, .96));
  transform-origin: center;
  filter: drop-shadow(0 34px 50px rgba(255, 184, 0, .17));
  will-change: transform;
}

.bezier-guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, var(--guide-parallax, 0), 0);
  overflow: visible;
  opacity: var(--guide-opacity, .2);
  fill: var(--background);
  stroke: var(--cobalt);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  will-change: transform, opacity;
}

.bezier-guide circle:first-of-type,
.bezier-guide circle:last-of-type {
  fill: var(--gold);
  stroke: var(--ink);
}

.visual-label {
  position: absolute;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .62rem;
  letter-spacing: .14em;
}

.visual-label-linear {
  top: 17%;
  right: 13%;
}

.visual-label-bezier {
  bottom: 13%;
  left: 8%;
}

.scroll-cue {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span:last-child {
  color: var(--ink);
  font-size: 1rem;
}

/* Work */
.work {
  position: relative;
  z-index: 2;
  max-width: none;
  background: var(--surface);
}

.work > * {
  width: min(100%, calc(var(--content-width) - 2 * var(--page-padding)));
  margin-inline: auto;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 44px;
  margin-bottom: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-group legend {
  width: 100%;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.filter-group button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.filter-group button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.filter-group button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.results-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: inherit;
  text-transform: inherit;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px) clamp(18px, 2.6vw, 38px);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-card.is-leading {
  grid-column: 1 / -1;
}

.project-preview {
  position: relative;
  aspect-ratio: var(--project-ratio, 16 / 9);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(49, 86, 255, .18), rgba(255, 184, 0, .34)),
    var(--surface-soft);
}

.project-card.is-leading .project-preview {
  aspect-ratio: 21 / 9;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform 700ms var(--ease-out), filter var(--transition-state);
}

.project-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, .28));
  content: "";
  pointer-events: none;
}

.project-card:hover .project-preview img,
.project-card:focus-visible .project-preview img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.play-control {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  color: var(--ink);
}

.play-control svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--gold);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .16));
  transition: transform var(--transition-state);
}

.project-card:hover .play-control svg {
  transform: scale(1.08);
}

.play-control::after {
  position: relative;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--ink);
  content: "";
}

.project-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  padding: 20px 0 4px;
  border-bottom: 1px solid var(--line);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tag-pipeline {
  border-color: transparent;
  background: var(--cobalt-soft);
  color: #1e37bd;
}

.tag-technique {
  border-color: transparent;
  background: var(--gold-soft);
}

.tag-format {
  border-color: rgba(49, 86, 255, .3);
  color: #2545cf;
}

.project-title {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
}

.project-description {
  max-width: 740px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: .94rem;
}

.project-year {
  align-self: start;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .68rem;
}

.empty-state {
  padding: 70px 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.empty-state p {
  margin-bottom: 24px;
  font-size: 1.2rem;
}

/* Pipeline */
.pipeline {
  --pipeline-progress: 0;
  --pipeline-shift: 40vw;
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 260svh;
  overflow: clip;
  background:
    linear-gradient(130deg, rgba(255, 216, 77, .38), rgba(255, 184, 0, .09) 46%, rgba(49, 86, 255, .08)),
    var(--background);
}

.pipeline-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto;
  min-height: 100svh;
  padding: calc(var(--header-height) + 26px) var(--page-padding) 34px;
  overflow: clip;
}

.pipeline-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: end;
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.pipeline-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 6rem);
}

.pipeline-intro {
  padding-bottom: 4px;
}

.pipeline-intro p {
  margin: 0;
}

.pipeline-subtitle {
  margin-bottom: 16px !important;
  font-size: clamp(1.05rem, 1.65vw, 1.42rem);
  font-weight: 600;
  line-height: 1.35;
}

.pipeline-intro p:last-child {
  color: var(--muted);
  font-size: .95rem;
}

.pipeline-viewport {
  position: relative;
  display: grid;
  align-items: center;
  width: min(100%, var(--content-width));
  margin: 20px auto 0;
  touch-action: pan-y;
  overscroll-behavior-inline: contain;
}

.pipeline-track {
  position: relative;
  width: 100%;
  min-height: 280px;
  transform: translate3d(var(--pipeline-shift), 0, 0);
  will-change: transform;
}

.pipeline-connectors {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 90px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.pipeline-connectors line {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--connector-progress, 0));
}

.pipeline-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-nodes li {
  position: relative;
  min-width: 0;
  padding-inline: 8px;
  text-align: center;
  opacity: var(--node-progress, 0);
  transform: translateY(calc((1 - var(--node-progress, 0)) * 12px));
}

.stage-toggle {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.stage-symbol {
  position: relative;
  z-index: 2;
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  background: var(--background);
}

.stage-symbol svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--stage-color);
  filter: drop-shadow(0 10px 16px color-mix(in srgb, var(--stage-color) 24%, transparent));
}

.stage-number {
  position: absolute;
  top: 19px;
  left: calc(50% + 40px);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .55rem;
  letter-spacing: .1em;
}

.stage-toggle strong {
  min-height: 2.5em;
  font-size: clamp(.7rem, .9vw, .88rem);
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: var(--copy-progress, 0);
}

.stage-toggle small {
  margin-top: 7px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .63rem;
  letter-spacing: .06em;
  opacity: var(--copy-progress, 0);
  text-transform: uppercase;
}

.stage-detail {
  max-width: 210px;
  max-height: 0;
  margin: 14px auto 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
  opacity: 0;
  transition: max-height var(--transition-state), opacity var(--transition-fast);
}

.pipeline-nodes li.is-expanded .stage-detail {
  max-height: 110px;
  opacity: 1;
}

.pipeline-scroll-status {
  display: grid;
  grid-template-columns: auto minmax(80px, 220px) 24px;
  gap: 14px;
  align-items: center;
  width: min(100%, var(--content-width));
  margin-inline: auto;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pipeline-progress-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.pipeline-progress-line i {
  position: absolute;
  inset: 0;
  transform: scaleX(var(--pipeline-progress));
  transform-origin: left;
  background: var(--ink);
}

.pipeline-uses {
  position: relative;
  z-index: 2;
  max-width: none;
  background: var(--surface);
}

.pipeline-uses > * {
  width: min(100%, calc(var(--content-width) - 2 * var(--page-padding)));
  margin-inline: auto;
}

.pipeline-uses-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  gap: 40px 90px;
  align-items: end;
  margin-bottom: 70px;
}

.pipeline-uses-heading h2 {
  margin: 0;
}

.pipeline-use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}

.pipeline-use-grid article {
  min-height: 270px;
  padding: 28px clamp(18px, 3vw, 42px) 30px 0;
  border-right: 1px solid var(--line);
}

.pipeline-use-grid article + article {
  padding-left: clamp(18px, 3vw, 42px);
}

.pipeline-use-grid article:last-child {
  border-right: 0;
}

.pipeline-use-grid article > span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .62rem;
}

.pipeline-use-grid h3 {
  max-width: 300px;
  margin: 58px 0 20px;
}

.pipeline-use-grid p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
}

/* About */
.about {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.about-lead {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 3.8rem);
  letter-spacing: -.035em;
  line-height: 1.14;
}

/* Contact */
.contact {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  gap: clamp(60px, 12vw, 180px);
  align-items: start;
}

.contact-copy h2 {
  max-width: 760px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.contact-list a,
.contact-link-placeholder {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding var(--transition-state), color var(--transition-fast);
}

.contact-list a:hover {
  padding-left: 10px;
  color: var(--cobalt);
}

.contact-list img,
.contact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.contact-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  padding: 20px var(--page-padding);
  border-top: 1px solid var(--line);
  font-family: "Space Mono", monospace;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

/* Project dialog */
.project-dialog {
  width: min(1420px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100dvh - 44px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out), overlay 420ms allow-discrete, display 420ms allow-discrete;
}

.project-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .project-dialog[open] {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
}

.project-dialog::backdrop {
  background: rgba(16, 18, 22, .72);
  backdrop-filter: blur(10px);
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, .75fr);
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .24);
}

.dialog-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(74vw, 780px);
  background: #080808;
}

.dialog-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-loading {
  color: rgba(255, 255, 255, .64);
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dialog-copy {
  overflow: auto;
  padding: clamp(48px, 5vw, 78px) clamp(28px, 4vw, 64px) 44px;
}

.dialog-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 4.5rem);
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}

.dialog-short {
  margin-bottom: 26px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.45;
}

.dialog-full {
  margin-bottom: 40px;
  color: var(--muted);
  font-size: .95rem;
}

.project-meta {
  margin: 0;
}

.project-meta > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.project-meta dt {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
  font-size: .88rem;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dialog-close svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--gold);
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .16));
}

.dialog-close span {
  position: relative;
  font-size: 1.5rem;
  line-height: 1;
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 300;
  margin: 0;
  padding: 16px;
  background: var(--danger);
  color: white;
  text-align: center;
}

/* Revision: section-led keyframe system and two-screen work gallery */
.header-spacer {
  width: 1px;
  height: 1px;
}

.hero {
  min-height: 132svh;
}

.hero-sticky {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 70px);
  font-size: clamp(5rem, 11vw, 12rem);
  letter-spacing: -.065em;
}

.hero-roles {
  max-width: 780px;
}

.work {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 0 var(--page-padding) clamp(100px, 13vw, 190px);
  background: transparent;
}

.work-heading-glass,
.work-showcase {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.work-heading-glass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 34px 80px;
  align-content: center;
  min-height: 70svh;
  margin-bottom: clamp(80px, 12vw, 170px);
  padding: clamp(44px, 7vw, 100px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(247, 246, 242, .62);
  box-shadow: 0 40px 90px rgba(23, 25, 29, .08), inset 0 0 70px rgba(255, 255, 255, .28);
  backdrop-filter: blur(24px) saturate(.78);
}

.work-heading-glass::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(23, 25, 29, .14) 0 .55px, transparent .75px) 0 0 / 5px 5px;
  content: "";
  mix-blend-mode: soft-light;
  opacity: .28;
  pointer-events: none;
}

.work-heading-glass .eyebrow,
.work-heading-glass h2 {
  grid-column: 1;
}

.work-heading-glass h2 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 10rem);
}

.work-heading-glass > p:last-child {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.26rem);
}

.work-showcase {
  min-height: 100svh;
  padding: calc(var(--header-height) + 46px) 0 clamp(90px, 11vw, 150px);
  scroll-margin-top: 0;
}

.work-showcase + .work-showcase {
  border-top: 1px solid var(--line-strong);
}

.showcase-heading {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 68px);
}

.showcase-heading > span,
.showcase-heading p {
  color: var(--muted);
}

.showcase-heading > span {
  padding-top: 8px;
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  letter-spacing: .08em;
}

.showcase-heading h3 {
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 6vw, 6.8rem);
}

.showcase-heading p {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.showcase-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: stretch;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(26px, 4vw, 56px) 0;
}

.showcase-title {
  margin: 10px 0 20px;
  font-size: clamp(2rem, 3.4vw, 4rem);
}

.showcase-description {
  display: block;
  margin-bottom: 20px;
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.showcase-full-description,
.showcase-meta {
  color: var(--muted);
}

.showcase-full-description {
  margin-bottom: 24px;
}

.showcase-meta {
  margin: 0 0 32px;
  font-family: "Space Mono", monospace;
  font-size: .62rem;
  letter-spacing: .04em;
  line-height: 1.7;
  text-transform: uppercase;
}

.morph-action {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
}

.morph-action svg {
  width: 48px;
  height: 48px;
  overflow: visible;
  fill: var(--gold);
  filter: drop-shadow(0 8px 16px rgba(255, 184, 0, .2));
}

.showcase-gallery {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 20px 0 10px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}

.gallery-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px 28px minmax(110px, 1fr) 34px;
  gap: 10px;
  align-items: center;
  flex: 0 0 min(340px, 80vw);
  min-height: 84px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.gallery-item:hover,
.gallery-item.is-active {
  border-color: var(--ink);
  background: var(--surface);
}

.gallery-item:hover {
  transform: translateY(-2px);
}

.gallery-item:disabled {
  cursor: default;
}

.showcase-gallery[aria-busy="true"] .gallery-item {
  cursor: wait;
  opacity: .68;
}

.gallery-thumb {
  display: block;
  width: 84px;
  height: 58px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.gallery-item small {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .56rem;
}

.gallery-item > span:not(.gallery-thumb) {
  overflow: hidden;
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-keyframe {
  width: 32px;
  height: 32px;
  overflow: visible;
  fill: var(--gold);
}

.showcase-empty {
  padding: 64px;
  border: 1px solid var(--line);
  text-align: center;
}

.pipeline {
  --pipeline-scale: 1.62;
  background:
    radial-gradient(circle at 82% 18%, rgba(49, 86, 255, .07), transparent 24rem),
    #f1efe7;
}

.pipeline-sticky {
  grid-template-rows: auto minmax(300px, 1fr) auto;
}

.pipeline-heading h2 {
  max-width: 720px;
  font-size: clamp(2.35rem, 4.5vw, 5.2rem);
}

.pipeline-intro {
  padding-bottom: clamp(28px, 4.2vw, 58px);
}

.pipeline-subtitle {
  max-width: 560px;
  margin: 0 auto !important;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.48;
}

.pipeline-track {
  min-height: 310px;
  transform: translate3d(var(--pipeline-shift), 0, 0) scale(var(--pipeline-scale));
  transform-origin: 10% 42px;
}

.pipeline-connectors line {
  vector-effect: non-scaling-stroke;
}

.stage-symbol {
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  background: transparent;
}

.stage-symbol svg {
  filter: drop-shadow(0 12px 20px color-mix(in srgb, var(--stage-color) 20%, transparent));
}

.stage-toggle {
  cursor: default;
}

.stage-number {
  top: 24px;
  left: calc(50% + 44px);
}

.stage-toggle strong {
  min-height: 0;
  font-size: clamp(.72rem, .92vw, .9rem);
}

.stage-detail {
  max-width: 190px;
  max-height: none;
  margin: 10px auto 0;
  overflow: visible;
  font-size: .7rem;
  opacity: var(--copy-progress, 0);
}

.pipeline-uses {
  padding-top: clamp(90px, 9vw, 130px);
  padding-bottom: clamp(90px, 10vw, 150px);
  background: var(--background);
}

.pipeline-uses-heading {
  margin-bottom: clamp(46px, 6vw, 76px);
}

.pipeline-uses-heading h2 {
  font-size: clamp(2.1rem, 4vw, 4.7rem);
}

.pipeline-use-grid article {
  min-height: 230px;
}

.pipeline-use-grid h3 {
  margin-top: 42px;
}

.about,
.contact {
  overflow: hidden;
  isolation: isolate;
}

.contact-copy h2 {
  max-width: 820px;
}

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

  .main-nav {
    display: none;
  }

  .hero-sticky {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  }

  .hero-visual {
    width: min(43vw, 510px);
  }

  .dialog-shell {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 62px;
  }

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

  .language-switcher {
    min-width: 0;
  }

  .language-switcher button {
    min-width: 32px;
    min-height: 32px;
    padding: 0 5px;
  }

  .hero {
    min-height: 135svh;
  }

  .hero-sticky {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 12vw, 6.2rem);
  }

  .hero-copy {
    max-width: 90%;
  }

  .hero-visual {
    position: absolute;
    right: -10vw;
    bottom: 9%;
    z-index: -1;
    width: min(66vw, 420px);
    opacity: .42;
  }

  .hero-actions {
    margin-bottom: 28px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p:last-child {
    max-width: 600px;
    margin-top: 28px;
  }

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

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

  .project-card.is-leading {
    grid-column: auto;
  }

  .project-card.is-leading .project-preview {
    aspect-ratio: var(--project-ratio, 16 / 9);
  }

  .pipeline-diagram {
    min-height: auto;
    margin-bottom: 46px;
  }

  .pipeline-path {
    display: none;
  }

  .pipeline-nodes {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .pipeline-nodes::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: 2px;
    transform: scaleY(var(--pipeline-progress, 0));
    transform-origin: top;
    background: var(--cobalt);
    content: "";
  }

  .pipeline-nodes li {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 3px 18px;
    min-height: 108px;
    text-align: left;
  }

  .node-symbol {
    grid-row: 1 / span 2;
    margin: 2px 0 0;
  }

  .pipeline-nodes strong,
  .pipeline-nodes small {
    max-width: none;
  }

  .pipeline-outcome {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .dialog-shell {
    display: block;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .project-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .dialog-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .dialog-copy {
    overflow: visible;
    padding-top: 42px;
  }

  .dialog-close {
    position: fixed;
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.85rem, 13.4vw, 5.2rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-roles {
    gap: 8px 14px;
  }

  .scroll-cue span:first-child {
    display: none;
  }

  .filter-group button {
    flex: 1 1 auto;
  }

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

  .project-year {
    grid-row: 1;
  }

  .play-control {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .about-lead {
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .contact {
    gap: 60px;
  }

  .contact-list a,
  .contact-link-placeholder {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .site-footer {
    gap: 20px;
    align-items: flex-start;
    font-size: .57rem;
  }

  .dialog-copy {
    padding: 36px 22px 32px;
  }

  .project-meta > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* Responsive overrides for the pipeline story */
@media (max-width: 820px), (pointer: coarse) {
  .pipeline {
    min-height: auto;
  }

  .pipeline-sticky {
    position: relative;
    display: block;
    min-height: auto;
    padding: clamp(96px, 16vw, 140px) var(--page-padding);
    overflow: visible;
  }

  .pipeline-heading {
    display: block;
  }

  .pipeline-heading h2 {
    margin-bottom: 34px;
    font-size: clamp(2.6rem, 10vw, 5.3rem);
  }

  .pipeline-intro {
    max-width: 680px;
  }

  .pipeline-viewport {
    display: block;
    margin-top: 74px;
  }

  .pipeline-track {
    min-height: 0;
    transform: none !important;
  }

  .pipeline-connectors {
    display: none;
  }

  .pipeline-nodes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipeline-nodes::before {
    position: absolute;
    top: 26px;
    bottom: 68px;
    left: 25px;
    width: 2px;
    background: linear-gradient(var(--gold), var(--cobalt), var(--gold));
    content: "";
  }

  .pipeline-nodes li {
    position: relative;
    display: block;
    min-height: 128px;
    padding: 0 0 38px 68px;
    text-align: left;
    opacity: 1;
    transform: none;
  }

  .stage-toggle {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0;
    text-align: left;
  }

  .stage-symbol {
    position: absolute;
    top: 0;
    left: -68px;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .stage-number {
    position: static;
    margin-bottom: 8px;
  }

  .stage-toggle strong {
    min-height: 0;
    font-size: .88rem;
  }

  .stage-toggle small {
    font-size: .62rem;
  }

  .stage-detail {
    max-width: 520px;
    margin: 12px 0 0;
  }

  .pipeline-scroll-status {
    display: none;
  }

  .pipeline-uses-heading {
    display: block;
  }

  .pipeline-uses-heading .eyebrow {
    margin-bottom: 20px;
  }

  .pipeline-use-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-use-grid article,
  .pipeline-use-grid article + article {
    min-height: 0;
    padding: 26px 0 36px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pipeline-use-grid h3 {
    margin: 28px 0 14px;
  }

}

@media (max-width: 560px) {
  .pipeline-uses-heading {
    margin-bottom: 46px;
  }
}

@media (max-width: 980px) {
  .work-heading-glass {
    grid-template-columns: 1fr;
    min-height: 58svh;
  }

  .work-heading-glass > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .showcase-feature {
    grid-template-columns: 1fr;
  }

  .showcase-copy {
    max-width: 720px;
    padding: 12px 0 24px;
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .pipeline-sticky {
    grid-template-rows: auto minmax(220px, 1fr) auto;
    padding-top: calc(var(--header-height) + 14px);
    padding-bottom: 22px;
  }

  .pipeline-heading h2 {
    font-size: clamp(2.2rem, 4.1vw, 4.4rem);
  }

  .pipeline-track {
    min-height: 230px;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .work {
    padding-inline: var(--page-padding);
  }

  .work-heading-glass {
    margin-bottom: 70px;
    padding: 38px 26px;
  }

  .work-showcase {
    min-height: auto;
    padding-top: calc(var(--header-height) + 34px);
  }

  .showcase-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .showcase-heading h3 {
    font-size: clamp(2.65rem, 11vw, 5rem);
  }

  .gallery-item {
    flex-basis: min(310px, 84vw);
    grid-template-columns: 72px 24px minmax(96px, 1fr) 30px;
  }

  .gallery-thumb {
    width: 72px;
    height: 50px;
  }

  .pipeline-heading h2,
  .pipeline-uses-heading h2 {
    margin: 0;
  }

  .pipeline-intro {
    max-width: none;
    padding-bottom: 34px;
  }

  .pipeline-subtitle {
    margin: 0 !important;
  }

  .stage-detail {
    max-height: none;
    opacity: 1;
  }

}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: clamp(4.4rem, 22vw, 7.5rem);
  }

  .work-heading-glass h2 {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .showcase-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .showcase-copy {
    padding-top: 4px;
  }

  .showcase-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .gallery-item {
    flex-basis: 86vw;
  }

}

@media (max-width: 1100px) and (min-width: 821px) {
  .site-header {
    grid-template-columns: 1px minmax(0, 1fr) auto;
  }

  .main-nav {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
  }

  .main-nav a {
    font-size: .76rem;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 96px;
  }

  .site-header {
    grid-template-areas:
      "language"
      "navigation";
    grid-template-columns: 1fr;
    grid-template-rows: 42px 42px;
    height: var(--header-height);
    padding: 6px var(--page-padding);
  }

  .header-spacer {
    display: none;
  }

  .language-switcher {
    grid-area: language;
    justify-self: end;
  }

  .main-nav {
    grid-area: navigation;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .main-nav a {
    font-size: .68rem;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 7px;
  }

  .main-nav a {
    font-size: .61rem;
  }
}

@media (pointer: coarse) {
  .cv-widget-actions a {
    min-height: 44px;
  }
}

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

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

  .hero {
    min-height: 100svh;
  }

  .hero-visual,
  .hero-symbol,
  .bezier-guide {
    transform: none !important;
  }

  .pipeline,
  .pipeline-sticky {
    min-height: auto;
  }

  .pipeline-sticky {
    position: relative;
  }

  .pipeline-track {
    transform: none !important;
  }

  .pipeline-path path,
  .pipeline-connectors line {
    stroke-dashoffset: 0;
  }

  .pipeline-nodes li {
    opacity: 1;
    transform: none;
  }
}

/* Revision: distributed keyframes, immediate work and split-stage pipeline */
body {
  position: relative;
  background: var(--background);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.keyframe-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.keyframe-field-layer {
  position: absolute;
  inset: 0;
}

.keyframe-field-layer-far {
  opacity: .34;
}

.keyframe-field-layer-far .field-keyframe {
  filter: blur(2.4px);
}

.keyframe-field-layer-near {
  opacity: .54;
}

.field-keyframe {
  --field-tone: #8f96a3;
  position: absolute;
  top: var(--field-y);
  left: var(--field-x);
  width: var(--field-size);
  aspect-ratio: 1;
  color: var(--field-tone);
  transform: translate(-50%, -50%) translate3d(0, var(--field-shift, 0), 0) rotate(var(--field-rotate)) scale(var(--field-scale, 1));
  transform-origin: center;
  will-change: transform;
}

.field-keyframe[data-tone="amber"] { --field-tone: #b89548; }
.field-keyframe[data-tone="blue"] { --field-tone: #7585ad; }
.field-keyframe[data-tone="sage"] { --field-tone: #82998a; }
.field-keyframe[data-tone="clay"] { --field-tone: #ad806d; }
.field-keyframe[data-tone="mauve"] { --field-tone: #9185a0; }

.field-keyframe svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.field-keyframe-shape {
  fill: currentColor;
  opacity: .28;
}

.field-keyframe-handles {
  fill: var(--background);
  stroke: currentColor;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.field-keyframe-handles line {
  opacity: .7;
}

.field-keyframe-handles circle {
  opacity: .9;
}

.field-keyframe-value {
  position: absolute;
  right: -6px;
  bottom: -4px;
  color: currentColor;
  font-family: "Space Mono", monospace;
  font-size: .54rem;
  letter-spacing: .08em;
  transform: rotate(var(--field-label-rotate));
}

.work {
  background: rgba(247, 246, 242, .86);
}

.work-heading-glass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px clamp(42px, 7vw, 110px);
  align-items: end;
  min-height: 0;
  margin-bottom: 0;
  padding: clamp(86px, 10vw, 138px) 0 34px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.work-heading-glass::after {
  display: none;
}

.work-heading-glass .eyebrow,
.work-heading-glass h2 {
  grid-column: auto;
}

.work-heading-glass h2 {
  font-size: clamp(3.8rem, 8vw, 8.4rem);
}

.work-heading-glass > p:last-of-type {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin-bottom: 8px;
  color: var(--muted);
}

.work-showcase {
  min-height: 0;
  padding: clamp(48px, 6vw, 84px) 0 clamp(92px, 11vw, 150px);
}

.work-showcase + .work-showcase {
  padding-top: calc(var(--header-height) + clamp(48px, 6vw, 84px));
}

.showcase-preview-shell {
  --scrub-progress: 0;
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: var(--project-ratio, 16 / 9);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(49, 86, 255, .17), rgba(255, 184, 0, .28)),
    var(--surface-soft);
  isolation: isolate;
}

.showcase-preview-shell.is-portrait {
  justify-self: center;
  width: min(100%, 430px);
}

.showcase-preview-shell.is-square {
  justify-self: center;
  width: min(100%, 680px);
}

.scrub-media,
.scrub-media img,
.scrub-player,
.showcase-preview-action {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scrub-media {
  display: block;
}

.scrub-media img {
  z-index: 2;
  object-fit: cover;
  transition: opacity 180ms linear, transform 800ms var(--ease-out), filter 420ms var(--ease-out);
}

.scrub-player {
  z-index: 1;
  border: 0;
  pointer-events: none;
}

.showcase-preview-shell.has-scrub-frame .scrub-media img {
  opacity: 0;
}

.showcase-preview-action {
  z-index: 4;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(0, 0, 0, .25));
  cursor: ew-resize;
}

.showcase-preview-action:focus-visible {
  outline-offset: -5px;
}

.showcase-preview-action .play-control {
  width: 76px;
  height: 76px;
}

.showcase-preview-shell:hover .scrub-media img {
  transform: scale(1.022);
  filter: saturate(1.06);
}

.scrub-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 3px;
  background: rgba(255, 255, 255, .24);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.scrub-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scrub-progress));
  transform-origin: left;
  background: var(--gold);
}

.showcase-preview-shell:hover .scrub-progress {
  opacity: 1;
}

.pipeline {
  --pipeline-scale: 1.62;
  min-height: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(117, 133, 173, .09), transparent 26rem),
    rgba(241, 239, 231, .9);
}

.pipeline-story {
  position: relative;
  min-height: 260svh;
}

.pipeline-copy-with-accent {
  position: relative;
  padding-left: clamp(44px, 4.2vw, 64px);
}

.pipeline-accent {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(24px, 2.3vw, 34px);
  height: clamp(48px, 5.2vw, 68px);
  overflow: visible;
  transform: translateY(-50%);
}

.pipeline-accent-diamond {
  fill: rgba(184, 149, 72, .86);
}

.pipeline-accent-hourglass {
  max-height: calc(100% - 4px);
  fill: rgba(117, 133, 173, .86);
}

.pipeline-heading {
  align-items: center;
}

.pipeline-heading h2 {
  max-width: 760px;
  margin: 0;
}

.pipeline-heading .eyebrow {
  margin-bottom: 16px;
}

.pipeline-intro {
  padding-bottom: 0;
}

.pipeline-subtitle {
  max-width: 560px;
  margin: 0 !important;
}

.stage-symbol path {
  fill: var(--stage-color);
  transform-box: view-box;
  transform-origin: center;
  will-change: transform;
}

.pipeline-uses {
  position: relative;
  z-index: 3;
  padding: clamp(88px, 10vw, 150px) var(--page-padding) clamp(96px, 11vw, 170px);
  background: rgba(247, 246, 242, .9);
}

.pipeline-uses > * {
  width: min(100%, calc(var(--content-width) - 2 * var(--page-padding)));
  margin-inline: auto;
}

.pipeline-uses-heading {
  display: block;
  margin-bottom: clamp(44px, 6vw, 76px);
  opacity: var(--uses-progress, 0);
  transform: translateY(var(--uses-y, 18px));
  will-change: opacity, transform;
}

.pipeline-uses-heading h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 5.2rem);
}

.pipeline-use-grid article {
  opacity: var(--use-card-progress, 0);
  transform: translateY(var(--use-card-y, 24px));
  filter: blur(var(--use-card-blur, 6px));
  will-change: opacity, transform, filter;
}

.pipeline-principle-note {
  max-width: 760px;
  margin-top: 34px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .82rem;
  opacity: var(--uses-progress, 0);
  transform: translateY(var(--uses-y, 18px));
}

.about {
  max-width: none;
  padding-top: clamp(112px, 13vw, 190px);
  padding-bottom: clamp(112px, 13vw, 190px);
  background: rgba(247, 246, 242, .8);
}

.about .section-heading {
  display: block;
  width: min(100%, calc(var(--content-width) - 2 * var(--page-padding)));
  margin: 0 auto 36px;
}

.about .section-heading .eyebrow {
  margin: 0;
  font-size: .73rem;
  letter-spacing: .11em;
  line-height: 1.4;
}

.about-lead {
  width: min(100%, calc(var(--content-width) - 2 * var(--page-padding)));
  max-width: 1240px;
  margin: 0 auto;
  font-size: clamp(2rem, 4.2vw, 4.8rem);
}

.contact {
  max-width: none;
  padding-right: max(var(--page-padding), calc((100% - var(--content-width)) / 2 + var(--page-padding)));
  padding-left: max(var(--page-padding), calc((100% - var(--content-width)) / 2 + var(--page-padding)));
  background: rgba(247, 246, 242, .9);
}

@media (max-width: 980px) {
  .work-heading-glass {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .work-heading-glass > p:last-of-type {
    grid-column: 1;
    grid-row: auto;
    max-width: 620px;
  }

  .showcase-preview-shell {
    aspect-ratio: var(--project-ratio, 16 / 9);
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .keyframe-field-layer-far {
    opacity: .25;
  }

  .keyframe-field-layer-far .field-keyframe {
    filter: blur(2.8px);
  }

  .keyframe-field-layer-near {
    opacity: .38;
  }

  .field-keyframe {
    --field-scale: .76;
  }

  .work-heading-glass {
    margin-bottom: 0;
    padding: clamp(64px, 14vw, 100px) 0 28px;
  }

  .work-showcase {
    padding-top: 44px;
  }

  .showcase-preview-action {
    cursor: pointer;
  }

  .scrub-progress {
    display: none;
  }

  .showcase-preview-action .play-control {
    width: 58px;
    height: 58px;
  }

  .pipeline-story {
    min-height: auto;
  }

  .pipeline-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .pipeline-copy-with-accent {
    padding-left: 42px;
  }

  .pipeline-accent {
    width: 24px;
    height: 50px;
  }

  .pipeline-uses-heading {
    opacity: 1;
    transform: none;
  }

  .pipeline-use-grid article {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .pipeline-principle-note {
    opacity: 1;
    transform: none;
  }

  .about,
  .contact {
    background: rgba(247, 246, 242, .9);
  }
}

@media (max-width: 560px) {
  .work-heading-glass h2 {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .work-showcase + .work-showcase {
    padding-top: calc(var(--header-height) + 40px);
  }

  .pipeline-copy-with-accent {
    padding-left: 34px;
  }

  .pipeline-accent {
    width: 20px;
    height: 44px;
  }

  .about-lead {
    font-size: clamp(1.85rem, 9.2vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .keyframe-field-layer,
  .pipeline-use-grid article,
  .pipeline-uses-heading,
  .pipeline-principle-note {
    transform: none !important;
  }

  .pipeline-story {
    min-height: auto;
  }

  .pipeline-uses-heading,
  .pipeline-use-grid article,
  .pipeline-principle-note {
    opacity: 1;
    filter: none;
  }

  .scrub-progress {
    display: none;
  }
}

/* ==========================================================================
   Rigid 3D section keyframes — final overrides
   Fixed SVG geometry only: motion is created with transforms and solid color.
   ========================================================================== */

body {
  background: #f7f6f2;
}

.keyframe-field {
  display: none !important;
}

.hero,
.work,
.about,
.contact {
  background: #f7f6f2;
}

.pipeline,
.pipeline-uses {
  background: #f0efe9;
}

/* Shared rigid object ----------------------------------------------------- */

.section-kf {
  --kf-color: #9a8150;
  --kf-color-depth: #756641;
  --kf-spin-x: 0deg;
  --kf-spin-y: 0deg;
  --kf-spin-z: 0deg;
  --kf-object-scale: 1;
  --kf-lift: 0px;
  --kf-left-x: 0px;
  --kf-left-y: 0px;
  --kf-left-z: 0px;
  --kf-left-rx: 0deg;
  --kf-left-ry: 0deg;
  --kf-left-rz: 0deg;
  --kf-right-x: 0px;
  --kf-right-y: 0px;
  --kf-right-z: 0px;
  --kf-right-rx: 0deg;
  --kf-right-ry: 0deg;
  --kf-right-rz: 0deg;
  position: relative;
  width: clamp(150px, 20vw, 300px);
  aspect-ratio: 1;
  perspective: 920px;
  perspective-origin: 50% 46%;
  pointer-events: none;
  isolation: isolate;
}

.section-kf .kf-rig,
.section-kf .kf-kick {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.section-kf .kf-rig {
  transform: translate3d(0, 0, var(--kf-lift))
    rotateX(var(--kf-spin-x))
    rotateY(var(--kf-spin-y))
    rotateZ(var(--kf-spin-z))
    scale(var(--kf-object-scale));
  transform-origin: center;
  filter: drop-shadow(0 13px 22px color-mix(in srgb, var(--kf-color) 18%, transparent));
  will-change: transform;
}

.section-kf .kf-kick {
  transform-origin: center;
  will-change: transform;
}

.section-kf .kf-piece-left,
.section-kf .kf-piece-right,
.section-kf .kf-piece-top,
.section-kf .kf-piece-bottom {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-box: border-box;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.section-kf .kf-piece-left {
  color: var(--kf-color);
  transform: translate3d(var(--kf-left-x), var(--kf-left-y), var(--kf-left-z))
    rotateX(var(--kf-left-rx))
    rotateY(var(--kf-left-ry))
    rotateZ(var(--kf-left-rz));
}

.section-kf .kf-piece-right {
  color: var(--kf-color-depth);
  transform: translate3d(var(--kf-right-x), var(--kf-right-y), var(--kf-right-z))
    rotateX(var(--kf-right-rx))
    rotateY(var(--kf-right-ry))
    rotateZ(var(--kf-right-rz));
}

.section-kf .kf-piece-left path,
.section-kf .kf-piece-right path,
.section-kf .kf-piece-top path,
.section-kf .kf-piece-bottom path,
.section-kf svg.kf-piece-left path,
.section-kf svg.kf-piece-right path,
.section-kf svg.kf-piece-top path,
.section-kf svg.kf-piece-bottom path {
  fill: currentColor;
  stroke: none;
  vector-effect: non-scaling-stroke;
}

.section-kf .kf-piece > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rigid-control {
  pointer-events: auto;
  cursor: pointer;
}

.rigid-control .kf-kick {
  transition: transform 560ms cubic-bezier(.65, 0, .35, 1),
    filter 360ms var(--ease-out);
}

.rigid-control:is(:hover, :focus-visible) .kf-kick {
  transform: translate3d(0, -2px, 18px) rotateX(-7deg) rotateY(13deg);
  filter: saturate(1.04);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  min-height: 142svh;
  overflow: clip;
}

.hero-sticky {
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-content: start;
  align-items: start;
  padding-top: calc(var(--header-height) + clamp(28px, 5.5svh, 66px));
  padding-bottom: 44px;
}

.hero-copy {
  z-index: 3;
  padding-top: 0;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(5rem, 10.3vw, 11.4rem);
}

.hero-kf {
  --kf-color: #b06f5e;
  --kf-color-depth: #7f554c;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: min(48vw, 650px);
  margin-top: clamp(72px, 13svh, 142px);
}

.hero-kf .hero-roles {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(46vw, 520px);
  max-width: none;
  gap: 12px;
  color: var(--ink);
  font-size: clamp(.63rem, .82vw, .76rem);
  text-align: center;
  opacity: var(--hero-links-opacity, 0);
  transform: translate3d(-50%, calc(-50% + var(--hero-links-y, 14px)), 12px);
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-kf .hero-roles.is-links-visible {
  visibility: visible;
  pointer-events: auto;
}

.hero-kf .hero-roles li {
  display: block;
}

.hero-kf .hero-roles li::before {
  display: none;
}

.hero-kf .hero-roles a {
  display: inline-block;
  padding: 5px 8px;
}

.hero-kf .kf-piece-left,
.hero-kf .kf-piece-right {
  z-index: 2;
}

.scroll-cue {
  opacity: var(--scroll-cue-opacity, 1);
}

.scroll-cue:focus-visible {
  opacity: 1;
}

/* Work ------------------------------------------------------------------- */

.work {
  padding-top: 0;
}

.work-heading-glass {
  display: block;
  min-height: 0;
  margin-bottom: 0;
  padding: calc(var(--header-height) + clamp(26px, 4vw, 54px)) 0 clamp(20px, 3vw, 34px);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.work-heading-glass::after,
.work-heading-glass > p:not(.eyebrow) {
  display: none;
}

.work-heading-glass .eyebrow {
  margin: 0;
  color: var(--ink);
}

.work-heading-glass h2 {
  margin: 0;
}

.work-heading-glass h2.eyebrow {
  font-size: .73rem;
  font-weight: 400;
  letter-spacing: .11em;
  line-height: 1.4;
}

.work-showcase {
  padding-top: clamp(30px, 4vw, 56px);
}

.work-showcase + .work-showcase {
  padding-top: calc(var(--header-height) + clamp(38px, 5vw, 66px));
  border-top-color: var(--line);
}

.showcase-heading {
  grid-template-columns: 48px minmax(0, 1fr) clamp(116px, 15vw, 210px);
  gap: 20px clamp(24px, 4vw, 64px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.showcase-heading > span {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.showcase-heading > div:not(.showcase-kf) {
  grid-column: 2;
  grid-row: 1;
}

.showcase-heading h3 {
  font-size: clamp(2.65rem, 5.3vw, 6rem);
}

.showcase-kf {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: clamp(116px, 15vw, 210px);
}

#motion-work .showcase-kf {
  --kf-color: #b38a3f;
  --kf-color-depth: #826a38;
}

#ai-work .showcase-kf {
  --kf-color: #667fb0;
  --kf-color-depth: #4f6388;
}

.gallery-keyframe,
.morph-action svg,
.showcase-preview-action .play-control svg {
  transform-origin: center;
  transition: transform 420ms cubic-bezier(.65, 0, .35, 1),
    filter 300ms var(--ease-out);
}

.gallery-item:is(:hover, :focus-visible) .gallery-keyframe,
.morph-action:is(:hover, :focus-visible) svg,
.showcase-preview-action:is(:hover, :focus-visible) .play-control svg {
  transform: perspective(280px) rotateX(-10deg) rotateY(24deg) translateZ(7px);
}

/* Vimeo scrub states */

.showcase-preview-shell::before,
.showcase-preview-shell::after {
  position: absolute;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  content: "";
  transition: opacity 180ms linear;
}

.showcase-preview-shell {
  background: #ebe9e2;
}

.showcase-preview-shell::before {
  inset: 0;
  background: rgba(23, 25, 29, .08);
}

.showcase-preview-shell::after {
  top: 22px;
  right: 22px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .48);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scrub-loading-spin 720ms linear infinite;
}

.showcase-preview-shell.is-scrub-loading::before,
.showcase-preview-shell.is-scrub-loading::after {
  opacity: 1;
}

.showcase-preview-shell.is-scrub-ready::before,
.showcase-preview-shell.has-scrub-frame::before {
  opacity: 0;
}

@keyframes scrub-loading-spin {
  to { transform: rotate(1turn); }
}

/* Pipeline --------------------------------------------------------------- */

.pipeline {
  min-height: 0;
  overflow: clip;
}

.pipeline-story {
  min-height: 238svh;
}

.pipeline-nodes li:nth-child(1) { --stage-color: #99785f !important; }
.pipeline-nodes li:nth-child(2) { --stage-color: #607392 !important; }
.pipeline-nodes li:nth-child(3) { --stage-color: #78906d !important; }
.pipeline-nodes li:nth-child(4) { --stage-color: #a06f82 !important; }
.pipeline-nodes li:nth-child(5) { --stage-color: #766b92 !important; }

.stage-symbol {
  position: relative;
  perspective: 620px;
  perspective-origin: 50% 45%;
}

.stage-rig {
  --stage-spin-x: 0deg;
  --stage-spin-y: 0deg;
  --stage-spin-z: 0deg;
  --stage-lift: 0px;
  --stage-left-x: 0px;
  --stage-left-y: 0%;
  --stage-left-z: 0px;
  --stage-left-ry: 0deg;
  --stage-right-x: 0px;
  --stage-right-y: 0%;
  --stage-right-z: 0px;
  --stage-right-ry: 0deg;
  --stage-piece-rz: 0deg;
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, var(--stage-lift))
    rotateX(var(--stage-spin-x))
    rotateY(var(--stage-spin-y))
    rotateZ(var(--stage-spin-z));
  transform-origin: center;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 17px color-mix(in srgb, var(--stage-color) 20%, transparent));
  will-change: transform;
}

.stage-rig > svg.stage-piece-left,
.stage-rig > svg.stage-piece-right {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-box: border-box;
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.stage-rig > svg {
  filter: none;
}

.stage-rig > svg.stage-piece-left {
  color: var(--stage-color);
  transform: translate3d(var(--stage-left-x), var(--stage-left-y), var(--stage-left-z))
    rotateY(var(--stage-left-ry)) rotateZ(var(--stage-piece-rz));
}

.stage-rig > svg.stage-piece-right {
  color: color-mix(in srgb, var(--stage-color) 78%, #30343c);
  transform: translate3d(var(--stage-right-x), var(--stage-right-y), var(--stage-right-z))
    rotateY(var(--stage-right-ry)) rotateZ(var(--stage-piece-rz));
}

.stage-rig > svg path {
  fill: currentColor;
  stroke: none;
}

.pipeline-uses {
  margin: 0;
  padding: clamp(24px, 3vw, 40px) var(--page-padding) clamp(88px, 9vw, 132px);
}

.pipeline-uses-heading {
  display: none !important;
}

.pipeline-use-grid {
  margin-top: 0;
}

.pipeline-use-grid article {
  min-height: clamp(190px, 20vw, 250px);
}

.pipeline-principle-note {
  margin-top: 28px;
}

/* About ------------------------------------------------------------------ */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  gap: clamp(56px, 10vw, 150px);
  align-items: center;
  max-width: none;
  padding: clamp(104px, 11vw, 164px)
    max(var(--page-padding), calc((100% - var(--content-width)) / 2 + var(--page-padding)));
}

.about-copy {
  min-width: 0;
}

.about .section-heading {
  width: auto;
  margin: 0 0 26px;
}

.about-lead {
  width: auto;
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.25rem, 2.05vw, 2rem);
  letter-spacing: -.025em;
  line-height: 1.36;
}

.about-kf {
  --kf-color: #916b9c;
  --kf-color-depth: #6f5379;
  justify-self: end;
  width: clamp(210px, 27vw, 390px);
}

/* Contact ---------------------------------------------------------------- */

.contact {
  --contact-layout-gap: clamp(34px, 6vw, 92px);
  --contact-pointer-gutter: clamp(58px, 11vw, 150px);
  grid-template-columns: minmax(0, .92fr) minmax(190px, 260px) minmax(340px, .82fr);
  gap: var(--contact-layout-gap);
  align-items: center;
  max-width: none;
  padding-top: clamp(104px, 11vw, 164px);
  padding-bottom: clamp(104px, 11vw, 164px);
}

.contact-copy {
  grid-column: 1;
}

.contact-copy h2 {
  font-size: clamp(2.5rem, 4.6vw, 5.2rem);
}

.contact-kf {
  --kf-color: #4f827c;
  --kf-color-depth: #3d625e;
  --pointer-x: 0px;
  --pointer-y: 0px;
  --pointer-z: 0px;
  --pointer-angle: 0deg;
  --pointer-tilt: 0deg;
  grid-column: 2;
  justify-self: center;
  width: clamp(180px, 19vw, 260px);
}

.contact-kf .kf-rig {
  transition: transform 260ms cubic-bezier(.65, 0, .35, 1);
}

.contact-kf.is-pointing .kf-rig {
  transform: translate3d(0, 0, 18px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.contact-kf .kf-piece-top {
  color: var(--kf-color);
  transform: none;
  transition: transform 520ms cubic-bezier(.65, 0, .35, 1), color 260ms linear;
}

.contact-kf .kf-piece-bottom {
  color: var(--kf-color-depth);
  transform: translate3d(var(--contact-anchor-x, 0px), var(--contact-anchor-y, 0px), var(--contact-anchor-z, 0px))
    rotateY(var(--contact-anchor-ry, 0deg));
}

.contact-kf.is-pointing .kf-piece-top {
  color: color-mix(in srgb, var(--kf-color) 76%, #435b56);
  transform: translate3d(var(--pointer-x), var(--pointer-y), var(--pointer-z))
    rotateZ(var(--pointer-angle)) rotateY(var(--pointer-tilt));
}

.contact-list,
.contact-cv {
  grid-column: 1 / -1;
  margin-right: var(--contact-pointer-gutter);
}

.contact-list a span {
  overflow-wrap: anywhere;
}

.contact-list a {
  transition: padding var(--transition-state), color var(--transition-fast),
    background-color var(--transition-fast);
}

.contact-list a:is(:hover, :focus-visible) {
  padding-right: 10px;
  padding-left: 10px;
  background: #eeeee8;
  color: #496f68;
}

.contact-cv {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 112px;
  margin-top: calc(var(--contact-layout-gap) * -1);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-cv a {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-width: 132px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.contact-cv a:is(:hover, :focus-visible) {
  border-color: #517e78;
  background: #517e78;
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-sticky {
    grid-template-columns: minmax(0, .9fr) minmax(330px, 1.1fr);
  }

  .hero-kf {
    width: min(50vw, 540px);
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  }

  .contact-copy {
    grid-column: 1;
  }

  .contact-kf {
    grid-column: 2;
  }

  .contact-list {
    margin-top: 18px;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .hero {
    min-height: 128svh;
  }

  .hero-sticky {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 58px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(4.35rem, 19vw, 8rem);
  }

  .hero-kf {
    position: absolute;
    right: clamp(-86px, -7vw, -32px);
    bottom: 7svh;
    grid-column: 1;
    width: min(75vw, 470px);
    margin: 0;
    opacity: .88;
  }

  .hero-kf .hero-roles {
    width: min(76vw, 390px);
    font-size: .61rem;
  }

  .work-heading-glass {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 18px;
  }

  .work-showcase,
  .work-showcase + .work-showcase {
    padding-top: 34px;
  }

  .showcase-heading {
    grid-template-columns: 34px minmax(0, 1fr) 94px;
    gap: 14px 18px;
  }

  .showcase-heading h3 {
    font-size: clamp(2.4rem, 10vw, 4.8rem);
  }

  .showcase-kf {
    width: 94px;
  }

  .pipeline-story {
    min-height: auto;
  }

  .pipeline-uses {
    padding-top: 26px;
  }

  .stage-symbol {
    perspective: 460px;
  }

  .pipeline-nodes::before {
    background: #aaa89f;
  }

  .about {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 30vw);
    gap: 36px;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .about-lead {
    font-size: clamp(1.2rem, 3.7vw, 1.65rem);
  }

  .about-kf {
    width: min(30vw, 210px);
  }

  .contact {
    --contact-layout-gap: 46px;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .contact-copy,
  .contact-kf,
  .contact-list,
  .contact-cv {
    grid-column: 1;
  }

  .contact-kf {
    justify-self: center;
    width: min(52vw, 250px);
  }

  .contact-list {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .contact-cv {
    margin-right: 0;
    padding: 24px 0;
  }

  .contact-cv a {
    flex: 1 1 132px;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: clamp(4rem, 20vw, 6.4rem);
  }

  .hero-kf {
    right: -96px;
    bottom: 9svh;
    width: 360px;
  }

  .hero-kf .hero-roles {
    width: 290px;
    gap: 7px;
    font-size: .54rem;
  }

  .work-heading-glass h2.eyebrow {
    font-size: .7rem;
  }

  .showcase-heading {
    position: relative;
    grid-template-columns: 28px minmax(0, 1fr);
    padding-right: 74px;
  }

  .showcase-heading > div:not(.showcase-kf) {
    grid-column: 2;
  }

  .showcase-kf {
    position: absolute;
    top: -8px;
    right: 0;
    width: 68px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-kf {
    justify-self: center;
    width: min(62vw, 250px);
  }

  .contact-copy h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-kf .kf-rig,
  .section-kf .kf-kick,
  .section-kf .kf-piece-left,
  .section-kf .kf-piece-right,
  .section-kf .kf-piece-top,
  .section-kf .kf-piece-bottom,
  .stage-rig,
  .stage-rig > svg,
  .hero-copy,
  .scroll-cue {
    transition: none !important;
    animation: none !important;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-sticky {
    position: relative;
  }

  .hero-copy {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-kf .hero-roles {
    opacity: 1 !important;
    transform: translate3d(-50%, -50%, 12px) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .hero-kf .kf-rig,
  .about-kf .kf-rig,
  .contact-kf .kf-rig {
    transform: none !important;
  }

  .hero-kf .kf-piece-left {
    transform: translate3d(clamp(-220px, -18vw, -110px), 0, 0) !important;
  }

  .hero-kf .kf-piece-right {
    transform: translate3d(clamp(110px, 18vw, 220px), 0, 0) !important;
  }

  .about-kf .kf-piece-left {
    transform: translate3d(-34px, -34px, 10px) !important;
  }

  .about-kf .kf-piece-right {
    transform: translate3d(34px, 34px, -6px) !important;
  }

  .stage-rig {
    transform: none !important;
  }

  .stage-rig > svg.stage-piece-left {
    transform: translate3d(0, 44%, 0) rotateZ(90deg) !important;
  }

  .stage-rig > svg.stage-piece-right {
    transform: translate3d(0, -44%, 0) rotateZ(90deg) !important;
  }

  .contact-kf .kf-piece-bottom {
    transform: none !important;
  }

  .contact-kf:not(.is-pointing) .kf-piece-top {
    transform: none !important;
  }

  .contact-kf.is-pointing .kf-piece-top {
    transform: translate3d(var(--pointer-x), var(--pointer-y), var(--pointer-z))
      rotateZ(var(--pointer-angle)) !important;
  }

  .pipeline-use-grid article,
  .pipeline-principle-note {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .showcase-preview-shell::after {
    animation: none !important;
  }
}

/* ==========================================================================
   Volumetric keyframes — physical prism geometry and section-specific motion
   ========================================================================== */

.section-kf {
  --kf-thickness: clamp(11px, 1.25vw, 20px);
  --kf-top-x: 0px;
  --kf-top-y: 0px;
  --kf-top-z: 0px;
  --kf-top-rx: 0deg;
  --kf-top-ry: 0deg;
  --kf-top-rz: 0deg;
  --kf-bottom-x: 0px;
  --kf-bottom-y: 0px;
  --kf-bottom-z: 0px;
  --kf-bottom-rx: 0deg;
  --kf-bottom-ry: 0deg;
  --kf-bottom-rz: 0deg;
  isolation: auto;
  overflow: visible;
}

.section-kf .kf-rig,
.stage-rig {
  filter: none;
}

.section-kf .kf-kick,
.section-kf .kf-piece,
.section-kf .kf-articulation,
.section-kf .kf-prism,
.stage-rig > .stage-piece,
.stage-rig .kf-articulation,
.stage-rig .kf-prism {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-style: preserve-3d;
}

.section-kf .kf-piece,
.stage-rig > .stage-piece {
  transform-origin: 50% 50%;
  backface-visibility: visible;
  will-change: transform;
}

.kf-articulation {
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 50%;
}

.kf-prism {
  --prism-rz: 0deg;
  transform: rotateZ(var(--prism-rz));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.kf-prism.prism-top { --prism-rz: 0deg; }
.kf-prism.prism-right { --prism-rz: 90deg; }
.kf-prism.prism-bottom { --prism-rz: 180deg; }
.kf-prism.prism-left { --prism-rz: -90deg; }

.kf-prism .kf-face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  backface-visibility: hidden;
  pointer-events: none;
}

.kf-prism .kf-face path {
  stroke: none;
  vector-effect: non-scaling-stroke;
}

.kf-prism .kf-face-front {
  transform: translateZ(calc(var(--kf-thickness) / 2));
}

.kf-prism .kf-face-front path {
  fill: currentColor;
}

.kf-prism .kf-face-back {
  transform: translateZ(calc(var(--kf-thickness) / -2)) rotateY(180deg);
}

.kf-prism .kf-face-back path {
  fill: color-mix(in srgb, currentColor 72%, #20242a);
}

.kf-prism .kf-edge {
  position: absolute;
  display: block;
  height: calc(var(--kf-thickness) + 1px);
  margin-top: calc((var(--kf-thickness) + 1px) / -2);
  transform-origin: 0 50%;
  backface-visibility: hidden;
  background: color-mix(in srgb, currentColor 79%, #34383e);
  pointer-events: none;
}

.kf-prism .kf-edge-a {
  top: 50%;
  left: 6%;
  width: 88%;
  transform: rotateZ(0deg) rotateX(90deg);
}

.kf-prism .kf-edge-b {
  top: 50%;
  left: 94%;
  width: 62.23%;
  transform: rotateZ(-135deg) rotateX(90deg);
}

.kf-prism .kf-edge-c {
  top: 6%;
  left: 50%;
  width: 62.23%;
  transform: rotateZ(135deg) rotateX(90deg);
}

.section-kf .kf-piece-left {
  color: var(--kf-color);
  transform: translate3d(var(--kf-left-x), var(--kf-left-y), var(--kf-left-z))
    rotateX(var(--kf-left-rx))
    rotateY(var(--kf-left-ry))
    rotateZ(var(--kf-left-rz));
}

.section-kf .kf-piece-right {
  color: var(--kf-color-depth);
  transform: translate3d(var(--kf-right-x), var(--kf-right-y), var(--kf-right-z))
    rotateX(var(--kf-right-rx))
    rotateY(var(--kf-right-ry))
    rotateZ(var(--kf-right-rz));
}

.section-kf .kf-piece-top {
  color: var(--kf-color);
  transform: translate3d(var(--kf-top-x), var(--kf-top-y), var(--kf-top-z))
    rotateX(var(--kf-top-rx))
    rotateY(var(--kf-top-ry))
    rotateZ(var(--kf-top-rz));
}

.section-kf .kf-piece-bottom {
  color: var(--kf-color-depth);
  transform: translate3d(var(--kf-bottom-x), var(--kf-bottom-y), var(--kf-bottom-z))
    rotateX(var(--kf-bottom-rx))
    rotateY(var(--kf-bottom-ry))
    rotateZ(var(--kf-bottom-rz));
}

/* Hero: one restrained 3D diamond, opening to reveal useful navigation. */

.hero-kf {
  --kf-object-scale: .5;
  width: clamp(340px, 35vw, 500px);
  margin-top: clamp(-124px, -9svh, -88px);
  opacity: 1;
}

.hero-kf .hero-roles {
  z-index: 4;
  width: clamp(218px, 18vw, 250px);
  gap: 8px;
  font-size: clamp(.66rem, .72vw, .74rem);
}

.hero-kf .hero-roles li {
  width: 100%;
}

.hero-kf .hero-roles a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 17%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #f7f6f2 92%, transparent);
  box-shadow: 0 8px 24px rgba(23, 25, 29, .055);
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 360ms var(--ease-in-out),
    border-color 360ms var(--ease-in-out),
    background-color 360ms var(--ease-in-out);
}

.hero-kf .hero-roles a:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--kf-color) 56%, var(--line));
  background: #fff;
  transform: translateY(-2px) scale(1.015);
}

/* Works: upper and lower prisms move independently and kick on selection. */

.showcase-kf .kf-articulation {
  will-change: transform;
}

.showcase-kf .kf-face-front {
  filter: drop-shadow(0 9px 12px color-mix(in srgb, currentColor 14%, transparent));
}

/* Pipeline: every node is the same physical prism system at a smaller scale. */

.stage-rig {
  --kf-thickness: clamp(4px, .55vw, 8px);
}

.stage-rig > .stage-piece-left {
  color: var(--stage-color);
  transform: translate3d(var(--stage-left-x), var(--stage-left-y), var(--stage-left-z))
    rotateY(var(--stage-left-ry))
    rotateZ(var(--stage-piece-rz));
}

.stage-rig > .stage-piece-right {
  color: color-mix(in srgb, var(--stage-color) 78%, #30343c);
  transform: translate3d(var(--stage-right-x), var(--stage-right-y), var(--stage-right-z))
    rotateY(var(--stage-right-ry))
    rotateZ(var(--stage-piece-rz));
}

.stage-rig svg,
.stage-rig .kf-face {
  filter: none;
}

/* About: diamond -> hourglass -> horizontal butterfly. */

.about-kf {
  perspective: 1050px;
}

/* Contact: the hourglass closes vertically; pointing is a nested articulation. */

.section-kf.contact-kf .kf-rig,
.section-kf.contact-kf.is-pointing .kf-rig {
  transform: translate3d(0, 0, var(--kf-lift))
    rotateX(var(--kf-spin-x))
    rotateY(var(--kf-spin-y))
    rotateZ(var(--kf-spin-z));
}

.section-kf.contact-kf .kf-piece-top {
  color: var(--kf-color);
  transform: translate3d(var(--kf-top-x), var(--kf-top-y), var(--kf-top-z))
    rotateX(var(--kf-top-rx))
    rotateY(var(--kf-top-ry))
    rotateZ(var(--kf-top-rz));
  transition: none;
}

.section-kf.contact-kf .kf-piece-bottom {
  color: var(--kf-color-depth);
  transform: translate3d(var(--kf-bottom-x), var(--kf-bottom-y), var(--kf-bottom-z))
    rotateX(var(--kf-bottom-rx))
    rotateY(var(--kf-bottom-ry))
    rotateZ(var(--kf-bottom-rz));
}

.contact-kf .kf-piece-top .kf-articulation {
  transition: transform 520ms var(--ease-in-out), color 360ms var(--ease-in-out);
}

.section-kf.contact-kf.is-pointing .kf-piece-top {
  color: color-mix(in srgb, var(--kf-color) 76%, #435b56);
  transform: translate3d(var(--kf-top-x), var(--kf-top-y), var(--kf-top-z))
    rotateX(var(--kf-top-rx))
    rotateY(var(--kf-top-ry))
    rotateZ(var(--kf-top-rz));
}

.contact-kf.is-pointing .kf-piece-top .kf-articulation {
  transform: translate3d(var(--pointer-x), var(--pointer-y), var(--pointer-z))
    rotateZ(var(--pointer-angle)) rotateY(var(--pointer-tilt));
}

/* Global motion language: all state changes use the same ease-in-out curve. */

.scrub-media img {
  transition: opacity 180ms var(--ease-in-out),
    transform 800ms var(--ease-in-out),
    filter 420ms var(--ease-in-out);
}

.showcase-preview-shell::before,
.showcase-preview-shell::after {
  transition-timing-function: var(--ease-in-out);
}

.showcase-preview-shell::after {
  animation: scrub-loading-spin 720ms var(--ease-in-out) infinite;
  animation-timing-function: var(--ease-in-out);
}

.showcase-preview-action {
  touch-action: pan-y;
}

.contact-list a {
  transition-timing-function: var(--ease-in-out);
}

@media (max-width: 820px) {
  :root {
    --header-height: 108px;
  }

  .site-header {
    grid-template-rows: 48px 48px;
  }

  .language-switcher button {
    min-width: 44px;
    min-height: 44px;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .section-kf {
    --kf-thickness: clamp(7px, 2.2vw, 10px);
  }

  .hero {
    min-height: 130svh;
  }

  .hero-sticky {
    padding-top: calc(var(--header-height) + 18px);
  }

  .hero-kf {
    right: auto;
    bottom: 6svh;
    left: 50%;
    width: min(58vw, 340px);
    margin: 0;
    opacity: 1;
    transform: translateX(-50%);
  }

  .hero-kf .hero-roles {
    width: min(42vw, 172px);
    gap: 7px;
    font-size: clamp(.64rem, 2.2vw, .7rem);
  }

  .hero-kf .hero-roles a {
    min-height: 44px;
    padding: 7px 10px;
    line-height: 1.25;
  }

  .showcase-kf {
    --kf-thickness: 7px;
  }

  .stage-rig {
    --kf-thickness: 4px;
  }

  .about-kf,
  .contact-kf {
    --kf-thickness: clamp(7px, 2vw, 9px);
  }
}

@media (max-width: 560px) {
  .hero-kf {
    right: auto;
    bottom: 7svh;
    left: 50%;
    width: min(58vw, 280px);
    transform: translateX(-50%);
  }

  .hero-kf .hero-roles {
    width: min(42vw, 164px);
    font-size: clamp(.62rem, 2.65vw, .68rem);
  }

  .showcase-kf {
    width: 72px;
  }
}

@media (pointer: coarse) and (min-width: 821px) {
  .section-kf {
    --kf-thickness: 9px;
  }

  .hero-kf {
    right: auto;
    left: 50%;
    width: min(55vw, 420px);
    opacity: 1;
    transform: translateX(-50%);
  }

  .hero-kf .hero-roles {
    width: min(30vw, 220px);
  }

  .stage-rig {
    --kf-thickness: 4px;
  }
}

@media (max-height: 560px) and (max-width: 900px) {
  .hero-kf {
    bottom: 2svh;
    width: min(54svh, 230px);
  }

  .hero-kf .hero-roles {
    width: min(31vw, 160px);
  }
}

/* Header navigation menus ------------------------------------------------ */

.site-header {
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
}

.main-nav {
  grid-column: 2;
  align-items: center;
  gap: clamp(15px, 2.3vw, 34px);
}

.language-switcher {
  grid-column: 3;
  justify-self: end;
}

.header-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.header-menu-trigger {
  position: relative;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}

.header-menu-trigger::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  content: "";
  transition: transform var(--transition-state);
}

.header-menu:is(.is-open, :hover, :focus-within) .header-menu-trigger::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-menu-caret {
  display: inline-block;
  margin-top: -3px;
  color: var(--muted);
  font-size: .7em;
  line-height: 1;
  transition: transform 320ms var(--ease-in-out), color 220ms var(--ease-in-out);
}

.header-menu.is-open .header-menu-caret {
  transform: translateY(1px) rotate(180deg);
  color: var(--ink);
}

.header-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 120;
  min-width: 176px;
  padding: 8px;
  border: 1px solid rgba(23, 25, 29, .16);
  border-radius: 14px;
  background: rgba(247, 246, 242, .96);
  box-shadow: 0 14px 38px rgba(23, 25, 29, .11);
  opacity: 0;
  transform: translate3d(0, -7px, 0);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease-in-out),
    transform 300ms var(--ease-in-out),
    visibility 0s linear 300ms;
  backdrop-filter: blur(16px);
}

.header-menu-panel::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 11px;
  content: "";
}

.header-menu.is-open .header-menu-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.header-menu--work .header-menu-panel {
  left: -12px;
}

.header-menu--contact .header-menu-panel,
.header-menu--cv .header-menu-panel {
  right: -8px;
}

.header-menu-panel a::after {
  display: none;
}

.header-menu-panel--links {
  display: grid;
  gap: 3px;
}

.header-menu-panel--links a {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 220ms var(--ease-in-out),
    transform 220ms var(--ease-in-out);
}

.header-menu-panel--links a:is(:hover, :focus-visible) {
  background: rgba(23, 25, 29, .065);
  transform: translateX(2px);
}

.header-menu-panel--icons {
  display: flex;
  gap: 6px;
  width: max-content;
}

.header-menu-panel--icons a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color 220ms var(--ease-in-out),
    transform 260ms var(--ease-in-out);
}

.header-menu-panel--icons a:is(:hover, :focus-visible) {
  background: rgba(23, 25, 29, .07);
  transform: translateY(-2px);
}

.header-menu-panel--icons img,
.header-contact-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header-contact-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-cv-trigger {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid rgba(23, 25, 29, .48);
  border-radius: 50%;
  background: transparent;
  font-family: "Space Mono", monospace;
  font-size: .66rem;
  letter-spacing: .06em;
  transition:
    border-color 240ms var(--ease-in-out),
    transform 300ms var(--ease-in-out);
}

.header-cv-trigger::after {
  display: none;
}

.header-menu--cv:is(.is-open, :hover, :focus-within) .header-cv-trigger {
  border-color: var(--ink);
  background: transparent;
  transform: rotate(5deg);
}

.header-menu-panel--cv {
  min-width: 174px;
}

/* Only the contact half that follows a highlighted link becomes smaller. */

.contact-kf.is-pointing .kf-piece-top .kf-articulation {
  transform: translate3d(var(--pointer-x), var(--pointer-y), var(--pointer-z))
    rotateZ(var(--pointer-angle)) rotateY(var(--pointer-tilt))
    scale3d(.6, .6, .6);
}

@media (max-width: 1100px) and (min-width: 821px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(150px, 1fr);
  }

  .main-nav {
    grid-column: 2;
    gap: clamp(12px, 1.8vw, 24px);
  }

  .main-nav > .main-nav-link,
  .header-menu-trigger {
    font-size: .76rem;
  }

  .language-switcher {
    grid-column: 3;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-areas:
      "language"
      "navigation";
    grid-template-columns: 1fr;
    grid-template-rows: 48px 48px;
    height: var(--header-height);
    padding: 6px var(--page-padding);
  }

  .language-switcher {
    grid-area: language;
    grid-column: 1;
    justify-self: end;
  }

  .main-nav {
    grid-area: navigation;
    grid-column: 1;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: clamp(4px, 2vw, 10px);
  }

  .main-nav > .main-nav-link,
  .header-menu-trigger {
    min-height: 44px;
    font-size: clamp(.57rem, 2.8vw, .68rem);
  }

  .header-menu-caret {
    display: none;
  }

  .header-cv-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: .6rem;
  }

  .header-menu-panel {
    position: fixed;
    top: calc(var(--header-height) - 2px);
    right: var(--page-padding);
    left: var(--page-padding);
    width: auto;
    min-width: 0;
    transform: translate3d(0, -7px, 0);
  }

  .header-menu.is-open .header-menu-panel {
    transform: translate3d(0, 0, 0);
  }

  .header-menu-panel--links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-menu-panel--links a {
    justify-content: space-between;
    min-height: 44px;
    white-space: normal;
  }

  .header-menu-panel--icons {
    justify-content: center;
    width: auto;
  }

  .header-menu-panel--icons a {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 3px;
  }

  .main-nav > .main-nav-link,
  .header-menu-trigger {
    font-size: .57rem;
  }

  .header-menu-trigger {
    gap: 2px;
  }

  .header-menu-panel--icons {
    gap: 3px;
  }

  .header-menu-panel--icons a {
    width: 39px;
    height: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-menu-trigger,
  .header-menu-caret,
  .header-menu-panel,
  .header-menu-panel a,
  .contact-kf.is-pointing .kf-piece-top .kf-articulation {
    transition: none;
  }
}

/* Full-width showreel between the hero and the project galleries. */

.hero-showreel {
  position: relative;
  z-index: 1;
  margin: 0;
  background: #fff;
}

.hero-showreel-visual {
  position: relative;
  aspect-ratio: var(--showreel-ratio, 16 / 9);
}

.hero-showreel-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.hero-showreel-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.hero-showreel-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.showreel-dialog {
  width: min(94vw, 144svh, 1100px);
  max-width: none;
  padding: 0;
  border: 0;
  overflow: visible;
  background: #000;
}

.showreel-dialog::backdrop {
  background: rgb(0 0 0 / .8);
}

.showreel-dialog-media {
  aspect-ratio: 16 / 9;
}

.showreel-dialog-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.showreel-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--background);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero-showreel-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 280ms var(--ease-in-out);
}

.hero-showreel.is-ready .hero-showreel-frame {
  opacity: 1;
}

.hero-showreel-label {
  padding: 0 var(--page-padding) 12px;
  background: var(--background);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: .58rem;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .hero-showreel-frame {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-kf .kf-rig,
  .section-kf .kf-kick,
  .section-kf .kf-piece,
  .section-kf .kf-articulation,
  .section-kf .kf-prism,
  .stage-rig,
  .stage-rig > .stage-piece,
  .stage-rig .kf-articulation,
  .stage-rig .kf-prism {
    animation: none !important;
    transition: none !important;
  }

  .section-kf.hero-kf .kf-rig {
    transform: rotateX(-5deg) rotateY(8deg) scale(var(--kf-object-scale)) !important;
  }

  .section-kf.hero-kf .kf-piece-left {
    transform: translate3d(var(--kf-left-x), 0, 0) !important;
  }

  .section-kf.hero-kf .kf-piece-right {
    transform: translate3d(var(--kf-right-x), 0, 0) !important;
  }

  .section-kf.showcase-kf .kf-rig {
    transform: none !important;
  }

  .section-kf.showcase-kf .kf-piece-top {
    transform: translate3d(var(--kf-top-x), 0, 0) !important;
  }

  .section-kf.showcase-kf .kf-piece-bottom {
    transform: translate3d(var(--kf-bottom-x), 0, 0) !important;
  }

  .section-kf.about-kf .kf-rig {
    transform: rotateY(180deg) rotateZ(90deg) !important;
  }

  .section-kf.about-kf .kf-piece-left {
    transform: translate3d(0, 44%, 0) rotateZ(90deg) !important;
  }

  .section-kf.about-kf .kf-piece-right {
    transform: translate3d(0, -44%, 0) rotateZ(90deg) !important;
  }

  .stage-rig > .stage-piece-left {
    transform: translate3d(0, 44%, 0) rotateZ(90deg) !important;
  }

  .stage-rig > .stage-piece-right {
    transform: translate3d(0, -44%, 0) rotateZ(90deg) !important;
  }

  .section-kf.contact-kf .kf-rig,
  .section-kf.contact-kf.is-pointing .kf-rig {
    transform: none !important;
  }

  .section-kf.contact-kf .kf-piece-top {
    transform: translate3d(0, -44%, 0) !important;
  }

  .section-kf.contact-kf .kf-piece-bottom {
    transform: translate3d(0, 44%, 0) !important;
  }
}

/* ==========================================================================
   Section-local WebGL keyframes — native scrolling without overlay lag
   ========================================================================== */

.webgl-keyframes {
  display: none;
}

.local-webgl-keyframe,
.webgl-keyframes.local-webgl-keyframe {
  position: absolute;
  z-index: 2;
  display: block;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  contain: strict;
}

.keyframe-3d-ready > [data-kf-rig],
.keyframe-3d-ready > [data-stage-rig] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.work,
.about,
.contact {
  z-index: auto;
}

.about,
.contact {
  isolation: auto;
}

.hero-sticky,
.hero-copy,
.hero-kf,
.scroll-cue,
.work-heading-glass,
.work-showcase,
.pipeline-sticky,
.pipeline-uses,
.about-copy,
.contact-copy,
.contact-list {
  z-index: 3;
}

.work-showcase,
.about-copy,
.contact-copy,
.contact-list {
  position: relative;
}

@media print {
  .webgl-keyframes,
  .local-webgl-keyframe {
    display: none !important;
  }

  .keyframe-3d-ready > [data-kf-rig],
  .keyframe-3d-ready > [data-stage-rig] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Tighter section rhythm and faster narrative scroll -------------------- */

.hero {
  min-height: 126svh;
}

@media (min-width: 821px) and (pointer: fine) {
  .hero {
    --hero-intro-height: max(calc(var(--header-height) + 300px), 42svh);
    min-height: var(--hero-intro-height);
  }

  .hero-sticky {
    min-height: var(--hero-intro-height);
    padding-bottom: 36px;
  }

  .hero-kf {
    align-self: start;
    /* The 3D canvas has transparent space below its visible shape. */
    margin-bottom: calc(-1 * clamp(130px, 16vw, 220px));
  }
}

.work-heading-glass {
  padding-top: calc(var(--header-height) + clamp(16px, 2vw, 28px));
  padding-bottom: clamp(14px, 2vw, 24px);
}

.pipeline-story {
  min-height: 190svh;
}

.pipeline-uses {
  padding-top: clamp(12px, 1.5vw, 22px);
}

@media (max-width: 820px), (pointer: coarse) {
  .hero {
    min-height: 118svh;
  }

  .work-heading-glass {
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 14px;
  }

  .pipeline-story {
    min-height: auto;
  }

  .pipeline-uses {
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .pipeline-story {
    min-height: auto;
  }
}

/* Pipeline stage details ------------------------------------------------ */

.stage-toggle {
  appearance: none;
  color: inherit;
  font: inherit;
  pointer-events: none;
  touch-action: pan-y;
}

.pipeline-nodes li.is-details-ready .stage-toggle {
  cursor: pointer;
  pointer-events: auto;
}

.pipeline-nodes li.is-details-open {
  z-index: 20;
}

.stage-toggle:focus-visible {
  border-radius: 14px;
  outline: 2px solid color-mix(in srgb, var(--stage-color) 62%, var(--ink));
  outline-offset: 7px;
}

.pipeline-stage-more {
  --pipeline-detail-x: -50%;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 12;
  width: clamp(220px, 19vw, 272px);
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 24%, var(--line));
  border-radius: 14px;
  background: rgba(247, 246, 242, .97);
  box-shadow: 0 16px 38px rgba(31, 31, 29, .11);
  text-align: left;
  opacity: 0;
  transform: translate3d(var(--pipeline-detail-x), 9px, 24px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms var(--ease-in-out),
    transform 360ms var(--ease-in-out),
    visibility 0s linear 360ms;
}

.pipeline-nodes li:first-child .pipeline-stage-more {
  --pipeline-detail-x: 0%;
  left: 0;
}

.pipeline-nodes li:last-child .pipeline-stage-more {
  --pipeline-detail-x: 0%;
  right: 0;
  left: auto;
}

.pipeline-nodes li.is-details-open .pipeline-stage-more {
  opacity: 1;
  transform: translate3d(var(--pipeline-detail-x), 0, 24px);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.pipeline-stage-concepts {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: .7rem;
  line-height: 1.5;
}

.pipeline-stage-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-tool {
  position: relative;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(31, 31, 29, .11);
  border-radius: 9px;
  background: #fff;
  outline: none;
  transition:
    border-color 220ms var(--ease-in-out),
    transform 280ms var(--ease-in-out);
}

.pipeline-tool img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.pipeline-tool::after {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 4;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  content: attr(data-tool);
  font-family: "Space Mono", monospace;
  font-size: .52rem;
  letter-spacing: .03em;
  line-height: 1.25;
  opacity: 0;
  transform: translate3d(-50%, 4px, 0);
  white-space: nowrap;
  pointer-events: none;
  transition:
    opacity 160ms var(--ease-in-out),
    transform 220ms var(--ease-in-out);
}

.pipeline-tool:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--stage-color) 54%, var(--line));
  transform: translateY(-2px);
}

.pipeline-tool:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

@media (max-width: 820px), (pointer: coarse) {
  .pipeline-stage-more,
  .pipeline-nodes li:first-child .pipeline-stage-more,
  .pipeline-nodes li:last-child .pipeline-stage-more {
    position: static;
    display: none;
    width: min(100%, 520px);
    margin: 16px 0 0;
    padding: 14px;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .pipeline-nodes li.is-details-open .pipeline-stage-more {
    display: block;
    transform: none;
    animation: pipeline-detail-enter 360ms var(--ease-in-out) both;
  }

  .pipeline-stage-concepts {
    font-size: .75rem;
  }
}

@keyframes pipeline-detail-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-stage-more,
  .pipeline-tool,
  .pipeline-tool::after {
    transition: none;
  }

  .pipeline-nodes li.is-details-open .pipeline-stage-more {
    animation: none;
  }
}

/* Shared pipeline details: fixed-size information outside the scaled track */
[data-pipeline-details-source][hidden] {
  display: none !important;
}

.pipeline-viewport {
  grid-template-rows: none;
  align-content: normal;
  align-items: center;
  row-gap: 0;
}

.pipeline-track {
  grid-row: auto;
  min-height: 310px;
}

.pipeline-details-zone {
  position: absolute;
  right: 0;
  bottom: clamp(10px, 1.8svh, 22px);
  left: 0;
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
  width: 100%;
  min-height: 88px;
  opacity: 0;
  transform: translate3d(0, 9px, 0);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms var(--ease-in-out),
    transform 360ms var(--ease-in-out),
    visibility 0s linear 360ms;
}

.pipeline-details-zone.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.pipeline-details-zone .pipeline-copy-with-accent {
  min-width: 0;
  padding-left: clamp(38px, 3.8vw, 56px);
}

.pipeline-details-zone .pipeline-accent {
  width: clamp(20px, 1.9vw, 28px);
  height: clamp(42px, 4.6vw, 58px);
}

.pipeline-details-concepts p {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(.76rem, .92vw, .9rem);
  line-height: 1.55;
}

.pipeline-details-tools .pipeline-stage-tools {
  flex-wrap: nowrap;
  gap: clamp(8px, .8vw, 11px);
  margin: 0;
}

.pipeline-details-zone .pipeline-tool {
  border: 0;
  background: transparent;
}

.pipeline-details-zone .pipeline-tool:is(:hover, :focus-visible) {
  border-color: transparent;
}

@media (min-width: 821px) and (max-height: 700px) {
  .pipeline-track {
    min-height: 230px;
  }

  .pipeline-details-zone {
    bottom: 0;
    min-height: 68px;
  }

  .pipeline-details-zone .pipeline-accent {
    width: 18px;
    height: 38px;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .pipeline-viewport {
    display: block;
  }

  .pipeline-track {
    min-height: 0;
  }

  .pipeline-details-zone {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    min-height: 0;
    margin: 18px 0 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .pipeline-details-zone.is-visible {
    display: grid;
    animation: pipeline-detail-enter 360ms var(--ease-in-out) both;
  }

  .pipeline-details-zone .pipeline-copy-with-accent {
    padding-left: 34px;
  }

  .pipeline-details-zone .pipeline-accent {
    width: 20px;
    height: 44px;
  }

  .pipeline-details-concepts p {
    font-size: .78rem;
  }

  .pipeline-details-tools .pipeline-stage-tools {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-details-zone {
    transition: none;
  }

  .pipeline-details-zone.is-visible {
    animation: none;
  }
}

/* Header CV widget ------------------------------------------------------- */

.cv-widget {
  position: relative;
  z-index: 6;
  grid-column: 1;
  justify-self: start;
  align-self: center;
  width: 60px;
  height: 64px;
  overflow: visible;
  isolation: isolate;
  transform: translateY(5px);
}

.cv-widget-trigger {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: 44px 16px;
  justify-items: center;
  align-content: center;
  width: 58px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.cv-widget-kf {
  --kf-color: #ee967f;
  --kf-color-depth: #85574f;
  --kf-thickness: 7px;
  --kf-spin-x: -7deg;
  --kf-spin-y: 14deg;
  width: 48px;
  aspect-ratio: 1;
  pointer-events: none;
  perspective: 520px;
}

.cv-widget-kf .kf-rig {
  filter:
    drop-shadow(0 7px 10px rgba(102, 57, 49, .2))
    drop-shadow(0 2px 2px rgba(23, 25, 29, .1));
  transition:
    transform 760ms var(--ease-in-out),
    filter 360ms var(--ease-in-out);
}

.cv-widget-kf .kf-piece-top,
.cv-widget-kf .kf-piece-bottom {
  transition: transform 760ms var(--ease-in-out);
}

.cv-widget-kf .kf-piece-top .kf-articulation {
  animation: cv-top-idle-spin 10s linear infinite;
}

.cv-widget-kf .kf-piece-bottom .kf-articulation {
  animation: cv-bottom-idle-spin 10s linear infinite;
}

@keyframes cv-top-idle-spin {
  to { transform: rotateY(-360deg); }
}

@keyframes cv-bottom-idle-spin {
  to { transform: rotateY(360deg); }
}

.cv-widget.is-open .cv-widget-kf {
  --kf-top-x: -10px;
  --kf-bottom-x: 238px;
}

.cv-widget.is-open .cv-widget-kf .kf-piece-top,
.cv-widget.is-open .cv-widget-kf .kf-piece-bottom {
  transition-delay: 100ms;
}

.cv-widget.is-open .cv-widget-kf .kf-rig {
  transform: translate3d(0, 0, 14px) scale(.98);
  filter:
    drop-shadow(0 10px 14px rgba(102, 57, 49, .25))
    drop-shadow(0 3px 3px rgba(23, 25, 29, .13));
}

.cv-widget-caption {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 7px;
  border: 1px solid rgba(23, 25, 29, .17);
  border-radius: 999px;
  background: rgba(247, 246, 242, .92);
  box-shadow: 0 4px 12px rgba(23, 25, 29, .07);
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.cv-widget-actions {
  position: absolute;
  top: 50%;
  left: 54px;
  z-index: 4;
  display: grid;
  gap: 5px;
  width: 160px;
  opacity: 0;
  transform: translate3d(-12px, -50%, 0) scale(.96);
  transform-origin: left center;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms var(--ease-in-out),
    transform 400ms var(--ease-in-out),
    visibility 0s linear 400ms;
}

.cv-widget-actions a {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(23, 25, 29, .18);
  border-radius: 999px;
  background: rgba(247, 246, 242, .96);
  box-shadow: 0 6px 18px rgba(23, 25, 29, .09);
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
  backdrop-filter: blur(12px);
}

.cv-widget-actions a:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, #ee967f 62%, var(--ink));
  background: #fff;
  transform: translateX(3px);
}

.cv-widget.is-open .cv-widget-actions {
  opacity: 1;
  transform: translate3d(0, -50%, 0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 300ms, 260ms, 0s;
}

@media (max-width: 820px) {
  .cv-widget {
    grid-area: cv;
    width: 48px;
    height: 48px;
  }

  .cv-widget-trigger {
    grid-template-rows: 34px 12px;
    width: 44px;
    height: 48px;
  }

  .cv-widget-kf {
    --kf-thickness: 6px;
    width: 36px;
  }

  .cv-widget-caption {
    min-width: 31px;
    padding: 2px 6px;
    font-size: .5rem;
  }

  .cv-widget.is-open .cv-widget-kf {
    --kf-top-x: -4px;
    --kf-bottom-x: 220px;
    --kf-top-z: 22px;
    --kf-bottom-z: 22px;
  }

  .cv-widget-actions {
    top: 0;
    left: 45px;
    width: 142px;
    transform: translate3d(-12px, 0, 0) scale(.96);
  }

  .cv-widget.is-open .cv-widget-actions {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .cv-widget-actions a {
    min-height: 44px;
    padding-inline: 10px;
    font-size: .48rem;
  }
}

@media (pointer: coarse) and (min-width: 821px) {
  .cv-widget-actions {
    top: 0;
    transform: translate3d(-12px, 0, 0) scale(.96);
  }

  .cv-widget.is-open .cv-widget-actions {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-widget-kf .kf-rig,
  .cv-widget-kf .kf-piece-top,
  .cv-widget-kf .kf-piece-bottom,
  .cv-widget-kf .kf-articulation,
  .cv-widget-actions,
  .cv-widget-actions a {
    animation: none;
    transition: none;
  }
}

/* Hero positioning after removing the background media ------------------- */

.hero-positioning {
  width: min(100%, 660px);
  margin-top: clamp(20px, 2.2vw, 34px);
}

.hero-specialty {
  max-width: 620px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.hero-positioning .hero-intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  line-height: 1.58;
}

.hero-kf {
  width: clamp(380px, 38vw, 560px);
  margin-top: clamp(-82px, -5svh, -44px);
}

@media (max-width: 1100px) and (min-width: 821px) {
  .hero-positioning {
    max-width: 520px;
  }

  .hero-kf {
    width: clamp(360px, 42vw, 480px);
    margin-top: clamp(-54px, -3svh, -28px);
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .hero-positioning {
    width: min(92vw, 560px);
    margin-top: 18px;
  }

  .hero-specialty {
    max-width: 520px;
    margin-bottom: 10px;
    font-size: clamp(.92rem, 4vw, 1.1rem);
  }

  .hero-positioning .hero-intro {
    max-width: 520px;
    font-size: clamp(.82rem, 3.35vw, .96rem);
    line-height: 1.52;
  }

  .hero-kf {
    right: auto;
    bottom: 4svh;
    left: 50%;
    width: min(66vw, 360px);
    margin: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .hero-positioning {
    width: 100%;
  }

  .hero-kf {
    bottom: 4svh;
    width: min(70vw, 310px);
  }
}

@media (max-height: 560px) and (max-width: 900px) {
  .hero-kf {
    bottom: 2svh;
    width: min(54svh, 230px);
  }

  .hero-kf .hero-roles {
    width: min(31vw, 160px);
  }
}
