:root {
  --bg: #ffffff;
  --paper: #fcfcfb;
  --text: #0d0d0d;
  --muted: rgba(13, 13, 13, 0.62);
  --line: rgba(13, 13, 13, 0.14);
  --line-soft: rgba(13, 13, 13, 0.06);
  --line-strong: rgba(13, 13, 13, 0.34);
  --shadow: 0 18px 40px rgba(13, 13, 13, 0.05);
  --story-bubble-x: 0px;
  --story-bubble-scale: 1;
  --story-bubble-y: 0px;
  --story-bubble-rotate: 0deg;
  --story-bubble-shadow: 1;
  --story-bubble-opacity: 1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.overlay-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

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

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

.is-hidden {
  display: none !important;
}

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

.meta-line {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.52);
}

.bubble-defs {
  position: absolute;
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.top-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.top-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.top-link {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: rgba(13, 13, 13, 0.74);
}

.top-link::after,
.hero-aside-link::after,
.window-close::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.top-link:hover::after,
.hero-aside-link:hover::after,
.window-close:hover::after {
  transform: scaleX(1);
}

.story-scene {
  position: relative;
  min-height: 260vh;
  background: white;
  --hero-fade: 0;
  --hero-shift-y: 0px;
  --hero-name-shift: 0px;
  --hero-role-shift: 0px;
  --hero-aside-shift: 0px;
}

.story-guides {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}

.story-guides span {
  border-left: 1px dashed var(--line-soft);
}

.story-guides span:last-child {
  border-right: 1px dashed var(--line-soft);
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: visible;
}

.hero-stack {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(100%, 1240px);
  transform: translate(-50%, calc(-50% - var(--hero-shift-y)));
  text-align: center;
  opacity: calc(1 - var(--hero-fade));
  pointer-events: none;
}

.hero-role {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.15vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  color: rgba(13, 13, 13, 0.12);
  transform: translateY(var(--hero-role-shift));
}

.hero-name {
  margin: 0;
  font-size: clamp(4.4rem, 10.8vw, 9.8rem);
  line-height: 0.88;
  letter-spacing: -0.095em;
  transform: translateY(var(--hero-name-shift));
}

.hero-bubble-stage {
  position: fixed;
  z-index: 24;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--story-bubble-opacity);
  transform:
    translate(
      calc(-50% + var(--bubble-shift-x, 0px) + var(--story-bubble-x)),
      calc(-50% + var(--bubble-shift-y, 0px) + var(--story-bubble-y))
    );
  perspective: 1400px;
  pointer-events: none;
}

.hero-bubble {
  position: relative;
  width: clamp(300px, 30vw, 520px);
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(13, 13, 13, 0.045);
  border-radius: 58% 42% 55% 45% / 44% 56% 40% 60%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.01) 0 34%, rgba(255, 255, 255, 0.05) 58%, rgba(233, 233, 229, 0.04) 100%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.84), transparent 14%),
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.26), transparent 16%),
    radial-gradient(circle at 68% 76%, rgba(13, 13, 13, 0.035), transparent 24%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    inset -64px -58px 130px rgba(13, 13, 13, 0.06),
    inset 34px 24px 66px rgba(255, 255, 255, 0.62),
    inset 0 16px 34px rgba(255, 255, 255, 0.24),
    inset 18px -18px 32px rgba(13, 13, 13, 0.025),
    0 28px 48px rgba(13, 13, 13, calc(0.028 * var(--story-bubble-shadow))),
    0 6px 16px rgba(13, 13, 13, calc(0.02 * var(--story-bubble-shadow)));
  filter: url(#bubble-distort) drop-shadow(0 16px 20px rgba(13, 13, 13, 0.05));
  backdrop-filter: contrast(1.04) saturate(1.02);
  -webkit-backdrop-filter: contrast(1.04) saturate(1.02);
  transform: scale(var(--story-bubble-scale)) rotate(calc(var(--story-bubble-rotate) + var(--bubble-pointer-rotate, 0deg)));
  will-change: transform, border-radius, filter;
  animation:
    morphBubble 2.4s ease-in-out infinite,
    bubbleTilt 2.8s ease-in-out infinite;
}

.hero-bubble::before,
.hero-bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hero-bubble::before {
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.98), transparent 9%),
    radial-gradient(circle at 63% 12%, rgba(255, 255, 255, 0.44), transparent 14%),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.18), transparent 12%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.018) 0 42%, rgba(255, 255, 255, 0.06) 56%, rgba(13, 13, 13, 0.016) 82%, transparent 100%);
  opacity: 0.94;
  mix-blend-mode: screen;
  animation: innerShift 1.6s ease-in-out infinite alternate, skinMorphA 2.3s ease-in-out infinite;
}

.hero-bubble::after {
  inset: 2.4%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 16px 12px 30px rgba(255, 255, 255, 0.38),
    inset -22px -18px 28px rgba(13, 13, 13, 0.038);
  opacity: 0.7;
  animation: skinMorphB 1.95s ease-in-out infinite;
}

.bubble-crease {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.bubble-crease-a {
  background:
    radial-gradient(ellipse at 16% 40%, rgba(0, 0, 0, 0.11), transparent 20%),
    radial-gradient(ellipse at 74% 26%, rgba(255, 255, 255, 0.44), transparent 18%),
    radial-gradient(ellipse at 72% 76%, rgba(0, 0, 0, 0.06), transparent 18%);
  mix-blend-mode: multiply;
  opacity: 0.86;
  filter: blur(11px);
  transform: translate3d(var(--bubble-light-x, 0px), var(--bubble-light-y, 0px), 0) scale(1.04);
  animation: creaseShiftA 1.55s ease-in-out infinite alternate, skinMorphA 2.5s ease-in-out infinite;
}

.bubble-crease-b {
  inset: 6%;
  background:
    radial-gradient(ellipse at 24% 18%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(ellipse at 62% 22%, rgba(255, 255, 255, 0.38), transparent 12%),
    radial-gradient(ellipse at 34% 78%, rgba(0, 0, 0, 0.08), transparent 14%);
  mix-blend-mode: screen;
  opacity: 0.92;
  filter: blur(8px);
  transform: translate3d(calc(var(--bubble-light-x, 0px) * -0.45), calc(var(--bubble-light-y, 0px) * -0.38), 0);
  animation: creaseShiftB 1.3s ease-in-out infinite alternate, skinMorphB 2.1s ease-in-out infinite;
}

.hero-aside {
  position: absolute;
  right: 24px;
  bottom: 48px;
  z-index: 6;
  width: min(100%, 290px);
  opacity: calc(1 - var(--hero-fade));
  transform: translateY(var(--hero-aside-shift));
}

.hero-aside p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(13, 13, 13, 0.78);
}

.hero-aside-link {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
  opacity: calc(1 - var(--hero-fade));
}

.hero-scroll-arrow {
  position: relative;
  width: 14px;
  height: 22px;
  animation: arrowFloat 1.6s ease-in-out infinite;
}

.hero-scroll-arrow::before,
.hero-scroll-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  background: rgba(13, 13, 13, 0.8);
}

.hero-scroll-arrow::before {
  top: 0;
  width: 1px;
  height: 16px;
  transform: translateX(-50%);
}

.hero-scroll-arrow::after {
  bottom: 1px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(13, 13, 13, 0.8);
  border-bottom: 1px solid rgba(13, 13, 13, 0.8);
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
}

.thesis-entry {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 32;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(13, 13, 13, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(13, 13, 13, 0.86);
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(13, 13, 13, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.thesis-entry:hover,
.thesis-entry:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 42px rgba(13, 13, 13, 0.12);
  outline: none;
}

.thesis-entry-label {
  display: block;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.18em;
  text-transform: none;
}

.thesis-entry-arrow {
  position: relative;
  width: 18px;
  height: 11px;
  animation: thesisArrowDrift 1.8s ease-in-out infinite;
}

.thesis-entry-arrow::before,
.thesis-entry-arrow::after {
  content: "";
  position: absolute;
}

.thesis-entry-arrow::before {
  top: 50%;
  left: 0;
  width: 17px;
  height: 1px;
  background: rgba(13, 13, 13, 0.8);
  transform: translateY(-50%);
}

.thesis-entry-arrow::after {
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-left: 1px solid rgba(13, 13, 13, 0.8);
  border-bottom: 1px solid rgba(13, 13, 13, 0.8);
  transform: translateY(-50%) rotate(45deg);
}

.projects-section {
  position: relative;
  background: white;
  z-index: 2;
  margin-top: -62vh;
  padding: 20vh 0 16vh;
}

.projects-grid-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 5vw;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  column-gap: 30px;
  row-gap: 62px;
}

.project-tile {
  position: relative;
  display: block;
  width: clamp(92px, 8vw, 128px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 110px, 0);
  transition: transform 850ms cubic-bezier(0.2, 0.85, 0.2, 1), opacity 650ms ease;
}

.project-tile.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-tile:hover {
  transform: translate3d(0, -4px, 0);
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 0.88;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f2f2ef;
  box-shadow: 0 12px 22px rgba(13, 13, 13, 0.025);
}

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

.project-thumb--placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(240, 240, 236, 0.86)),
    var(--placeholder-bg, linear-gradient(135deg, #ecece8, #d9d9d2));
}

.project-thumb--placeholder::before,
.project-thumb--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-thumb--placeholder::before {
  background: var(--placeholder-shape-a, linear-gradient(135deg, rgba(13, 13, 13, 0.88), rgba(13, 13, 13, 0.18)));
  clip-path: var(--placeholder-clip-a, inset(14% 18% 50% 16%));
  opacity: 0.82;
}

.project-thumb--placeholder::after {
  background: var(--placeholder-shape-b, linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(13, 13, 13, 0.12)));
  clip-path: var(--placeholder-clip-b, inset(56% 10% 12% 36%));
  opacity: 0.76;
}

.projects-gap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(132px, 11vw, 176px);
  grid-column: 2 / span 2;
  grid-row: 3;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
}

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

.project-window,
.side-window {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  background: #fffefd;
  box-shadow: 0 24px 70px rgba(13, 13, 13, 0.07);
}

.side-window {
  width: min(920px, calc(100% - 30px));
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.56);
}

.window-close {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.project-window-content,
.side-window-content {
  padding: 18px;
}

.project-window-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.project-lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-masthead {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-masthead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.project-masthead-grid p,
.project-image-caption p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-lead h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-transform: none;
}

.project-lead p,
.project-section p,
.project-note p,
.side-copy p,
.side-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-image {
  border: 1px solid var(--line);
  background: #f2f2f0;
}

.project-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.project-placeholder {
  position: relative;
  height: 340px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(240, 240, 236, 0.88)),
    var(--placeholder-bg, linear-gradient(135deg, #ecece8, #d9d9d2));
}

.project-placeholder::before,
.project-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-placeholder::before {
  background: var(--placeholder-shape-a);
  clip-path: var(--placeholder-clip-a);
  opacity: 0.82;
}

.project-placeholder::after {
  background: var(--placeholder-shape-b);
  clip-path: var(--placeholder-clip-b);
  opacity: 0.76;
}

.project-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-image-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-image-caption {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.project-section,
.project-meta,
.project-note,
.side-meta,
.contact-item {
  border: 1px solid var(--line);
  padding: 14px;
}

.project-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-highlight {
  background: transparent;
  color: var(--text);
}

.project-highlight .meta-line {
  color: rgba(13, 13, 13, 0.48);
}

.project-highlight strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  font-family: inherit;
  font-style: normal;
  color: var(--muted);
}

.project-meta-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.project-meta-row:last-child {
  border-bottom: 0;
}

.side-window-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.side-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-transform: uppercase;
}

.side-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fcfcfb;
}

.side-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-window-content {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 34px;
  align-items: start;
}

.contact-window-content .side-copy {
  gap: 12px;
}

.contact-window-content .side-copy h2 {
  max-width: 15ch;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.02;
}

.cv-window {
  width: min(980px, calc(100% - 30px));
}

.cv-window-content {
  padding: 18px;
  background: #ffffff;
}

.cv-page {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 38px 42px 46px;
  border: 1px solid rgba(13, 13, 13, 0.12);
  background: #ffffff;
}

.cv-page-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.14);
}

.cv-page-header h2 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.8rem, 3.8vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.88;
}

.cv-contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(13, 13, 13, 0.62);
}

.cv-contact-strip a {
  text-transform: none;
  letter-spacing: 0;
}

.cv-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-block + .cv-block {
  padding-top: 18px;
}

.cv-section-label {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.56);
}

.cv-item,
.cv-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv-item + .cv-item,
.cv-row + .cv-row,
.cv-skill-row + .cv-skill-row,
.cv-award-row + .cv-award-row {
  padding-top: 12px;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.cv-item-head,
.cv-item-subhead,
.cv-row-head,
.cv-row-body,
.cv-skill-row,
.cv-award-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.cv-item-head strong,
.cv-row-head strong,
.cv-skill-row strong {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cv-item-head span,
.cv-item-subhead span,
.cv-row-head span,
.cv-row-body span,
.cv-skill-row span,
.cv-award-row span {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(13, 13, 13, 0.78);
}

.cv-item-subhead span,
.cv-row-body span:last-child,
.cv-item-head span:last-child,
.cv-row-head span:last-child,
.cv-award-row span:last-child {
  font-style: italic;
}

.cv-item-head span:last-child,
.cv-item-subhead span:last-child,
.cv-row-head span:last-child,
.cv-row-body span:last-child,
.cv-award-row span:last-child {
  white-space: nowrap;
}

.cv-bullets {
  margin: 4px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cv-bullets li {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.56;
  color: rgba(13, 13, 13, 0.82);
}

.cv-skill-row,
.cv-award-row {
  padding-bottom: 2px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  transition: background 160ms ease, transform 160ms ease;
}

.contact-item strong {
  color: var(--muted);
  font-weight: 500;
}

.contact-item span:last-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.contact-item:hover {
  background: rgba(13, 13, 13, 0.04);
  transform: translateY(-1px);
}

.project-window {
  width: min(1080px, calc(100% - 30px));
  background: #ffffff;
}

.project-window .window-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.project-window-content {
  display: block;
  max-width: none;
  margin: 0;
  padding: 28px 24px 56px;
}

.project-article {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.project-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 10px;
}

.project-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

.project-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.56);
}

.project-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: end;
}

.project-hero-body h2 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(3rem, 6.2vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.project-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: end;
}

.project-hero-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.5);
}

.project-hero-summary {
  margin: 0;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(13, 13, 13, 0.72);
}

.project-hero-visual,
.project-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.project-hero-image,
.project-story-image,
.project-gallery-image {
  border: 1px solid rgba(13, 13, 13, 0.1);
  background: #f1f0ea;
}

.project-gallery-group {
  display: grid;
  gap: 14px;
}

.project-gallery-group-image {
  border: 1px solid rgba(13, 13, 13, 0.1);
  background: #f1f0ea;
}

.project-gallery-group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery-group--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery-group--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-gallery-group--multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-hero-image {
  min-height: min(74vh, 920px);
}

.project-hero-image img,
.project-story-image img,
.project-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-image img {
  min-height: min(74vh, 920px);
}

.project-hero-visual figcaption,
.project-gallery-item figcaption {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.48);
}

.project-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 6px 0 0;
}

.project-overview-grid,
.project-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 32px;
}

.project-overview-copy,
.project-story-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-chapter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-chapter--statement {
  padding-top: 4px;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.project-chapter p {
  max-width: 58ch;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(13, 13, 13, 0.76);
}

.project-chapter--statement p {
  max-width: 46ch;
}

.project-facts {
  display: flex;
  flex-direction: column;
  align-self: start;
  border-top: 1px solid rgba(13, 13, 13, 0.1);
}

.project-fact-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  font-size: 12px;
  line-height: 1.55;
}

.project-fact-row span:first-child {
  color: rgba(13, 13, 13, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-story-image,
.project-story-image img {
  min-height: 460px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.project-gallery-item--wide {
  grid-column: 1 / -1;
}

.project-gallery-item--wide .project-gallery-image,
.project-gallery-item--wide .project-gallery-image img {
  min-height: 520px;
}

.project-gallery .project-gallery-image {
  border: 0;
  background: transparent;
}

.project-gallery .project-gallery-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

@keyframes morphBubble {
  0% { border-radius: 58% 42% 55% 45% / 44% 56% 40% 60%; }
  16% { border-radius: 42% 58% 30% 70% / 64% 28% 72% 36%; }
  33% { border-radius: 74% 26% 36% 64% / 24% 70% 30% 76%; }
  50% { border-radius: 28% 72% 70% 30% / 60% 18% 82% 40%; }
  66% { border-radius: 80% 20% 60% 40% / 34% 78% 22% 66%; }
  82% { border-radius: 32% 68% 78% 22% / 70% 20% 80% 30%; }
  100% { border-radius: 58% 42% 55% 45% / 44% 56% 40% 60%; }
}

@keyframes innerShift {
  0% {
    transform: translate3d(-3%, -2%, 12px) scale(1.02) rotate(-2deg);
    opacity: 0.74;
  }
  100% {
    transform: translate3d(4%, 3%, 24px) scale(1.09) rotate(2deg);
    opacity: 0.48;
  }
}

@keyframes bubbleTilt {
  0%, 100% { rotate: 0deg; }
  20% { rotate: 8deg; }
  50% { rotate: -11deg; }
  80% { rotate: 7deg; }
}

@keyframes skinMorphA {
  0%, 100% { border-radius: 61% 39% 46% 54% / 39% 58% 42% 61%; }
  50% { border-radius: 42% 58% 61% 39% / 67% 31% 69% 33%; }
}

@keyframes skinMorphB {
  0%, 100% { border-radius: 51% 49% 58% 42% / 47% 62% 38% 53%; }
  50% { border-radius: 67% 33% 39% 61% / 36% 52% 48% 64%; }
}

@keyframes creaseShiftA {
  0% { opacity: 0.68; filter: blur(8px); }
  100% { opacity: 0.92; filter: blur(13px); }
}

@keyframes creaseShiftB {
  0% { opacity: 0.76; filter: blur(7px); }
  100% { opacity: 0.98; filter: blur(10px); }
}

@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50% { transform: translateY(4px); opacity: 0.66; }
}

@keyframes thesisArrowDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

@media (max-width: 1100px) {
  .project-window-content,
  .side-window-content {
    grid-template-columns: 1fr;
  }

  .project-hero-body,
  .project-overview-grid,
  .project-story-grid {
    grid-template-columns: 1fr;
  }

  .project-hero-tags {
    justify-content: flex-start;
  }

  .project-meta-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-tile {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 58px;
  }

}

@media (max-width: 820px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    justify-content: flex-start;
  }

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

  .story-sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding-bottom: 28px;
  }

  .hero-stack {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 148px 20px 0;
    transform: none;
    opacity: 1;
  }

  .hero-name {
    font-size: clamp(3.1rem, 17vw, 5.6rem);
  }

  .hero-bubble-stage {
    position: absolute;
    top: 188px;
    left: 50%;
    z-index: 5;
    transform: translate(calc(-50% + var(--bubble-shift-x, 0px)), calc(var(--bubble-shift-y, 0px) + var(--story-bubble-y)));
  }

  .hero-bubble {
    width: min(68vw, 320px);
  }

  .hero-aside {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100% - 40px, 280px);
    margin: 420px 20px 0;
    opacity: 1;
  }

  .thesis-entry {
    left: 14px;
    bottom: 16px;
    padding: 9px 12px;
  }

  .thesis-entry-label {
    letter-spacing: 0.14em;
  }

  .projects-section {
    margin-top: -26vh;
    padding: 18vh 0 72px;
  }

  .projects-grid-shell {
    padding: 0 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 16px;
  }

  .project-tile,
  .project-tile.is-visible {
    width: min(100%, 102px);
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .project-tile:hover {
    transform: translate3d(0, -3px, 0);
  }

  .project-thumb {
    width: 100%;
  }

  .projects-gap-cell {
    min-height: 110px;
    grid-column: auto;
    grid-row: auto;
  }

  .project-window .window-bar {
    padding: 16px;
  }

  .project-window-content {
    padding: 18px 16px 56px;
  }

  .project-article {
    gap: 22px;
  }

  .project-hero-top {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
  }

  .project-hero-body h2 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .project-hero-summary,
  .project-chapter p {
    font-size: 15px;
  }

  .project-hero-image,
  .project-hero-image img {
    min-height: 42vh;
  }

  .project-story-image,
  .project-story-image img {
    min-height: 280px;
  }

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

  .project-gallery-item--wide .project-gallery-image,
  .project-gallery-item--wide .project-gallery-image img,
  .project-gallery-item:not(.project-gallery-item--wide) .project-gallery-image,
  .project-gallery-item:not(.project-gallery-item--wide) .project-gallery-image img {
    min-height: 0;
  }

  .project-fact-row {
    grid-template-columns: 84px 1fr;
  }

  .project-masthead-grid,
  .project-image-caption {
    grid-template-columns: 1fr;
  }

  .project-sections,
  .contact-window-content {
    grid-template-columns: 1fr;
  }

  .cv-window-content {
    padding: 12px;
  }

  .cv-page {
    padding: 22px 20px 24px;
    gap: 22px;
  }

  .cv-contact-strip {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cv-item-head,
  .cv-item-subhead,
  .cv-row-head,
  .cv-row-body,
  .cv-skill-row,
  .cv-award-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 560px) {
  .top-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .top-nav {
    gap: 10px 14px;
  }

  .top-link {
    font-size: 11px;
  }

  .hero-stack {
    padding: 126px 16px 0;
  }

  .hero-role {
    font-size: clamp(1.1rem, 6vw, 1.6rem);
  }

  .hero-name {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
    line-height: 0.92;
  }

  .hero-bubble-stage {
    top: 170px;
  }

  .hero-bubble {
    width: min(78vw, 280px);
  }

  .hero-aside {
    width: min(100% - 32px, 320px);
    margin: 332px 16px 0;
  }

  .hero-aside p {
    font-size: 13px;
  }

  .thesis-entry {
    left: 10px;
    bottom: 12px;
    gap: 8px;
    padding: 8px 10px;
  }

  .thesis-entry-label {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.06em;
  }

  .projects-section {
    margin-top: -14vh;
    padding: 14vh 0 56px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-tile,
  .project-tile.is-visible {
    width: min(100%, 138px);
  }

  .project-window,
  .side-window,
  .cv-window {
    width: calc(100% - 14px);
    max-height: calc(100vh - 14px);
  }

  .window-bar {
    padding: 14px 12px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .project-window-content,
  .side-window-content,
  .cv-window-content {
    padding: 14px 12px 28px;
  }

  .project-hero-body h2,
  .side-copy h2 {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  .project-hero-summary,
  .project-chapter p,
  .side-copy p,
  .side-meta p {
    font-size: 14px;
    line-height: 1.65;
  }

  .project-gallery-group--duo,
  .project-gallery-group--trio,
  .project-gallery-group--multi,
  .contact-item {
    grid-template-columns: 1fr;
  }

  .cv-page {
    gap: 24px;
    padding: 24px 18px 28px;
  }

  .cv-item-head span:last-child,
  .cv-item-subhead span:last-child,
  .cv-row-head span:last-child,
  .cv-row-body span:last-child,
  .cv-award-row span:last-child {
    white-space: normal;
  }
}
