:root {
  --background: #f9f8f4;
  --foreground: #2d3a31;
  --sage: #8c9a84;
  --clay: #dccfc2;
  --soft-clay: #f2f0eb;
  --stone: #e6e2da;
  --terracotta: #c27b66;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgba(45, 58, 49, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(45, 58, 49, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(45, 58, 49, 0.08);
  --shadow-xl: 0 25px 50px -12px rgba(45, 58, 49, 0.15);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(220, 207, 194, 0.45), transparent 36rem),
    var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(140, 154, 132, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(140, 154, 132, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 24%, rgba(140, 154, 132, 0.14), transparent 28%),
    radial-gradient(ellipse at 82% 18%, rgba(194, 123, 102, 0.11), transparent 30%),
    radial-gradient(ellipse at 56% 82%, rgba(220, 207, 194, 0.22), transparent 34%);
  filter: blur(18px);
  animation: ambientWash 30s ease-in-out infinite alternate;
}

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

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
video:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
}

svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.ambient-background {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.72;
}

.ambient-background::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(118deg, transparent 0 28%, rgba(140, 154, 132, 0.09) 29%, transparent 42%),
    linear-gradient(64deg, transparent 0 42%, rgba(194, 123, 102, 0.08) 43%, transparent 57%),
    linear-gradient(172deg, transparent 0 58%, rgba(220, 207, 194, 0.22) 59%, transparent 72%);
  animation: backgroundDrift 24s ease-in-out infinite alternate;
  transform-origin: center;
}

.ambient-background::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 22% 18%, rgba(140, 154, 132, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 38%, rgba(194, 123, 102, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 78%, rgba(140, 154, 132, 0.1) 0 1px, transparent 2px);
  background-size: 220px 220px, 260px 260px, 180px 180px;
  animation: pollenDrift 36s linear infinite;
}

.vine {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border: 1px solid rgba(140, 154, 132, 0.18);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 48% 52% 45% 55%;
  transform: rotate(20deg);
  animation: vineFloat 18s ease-in-out infinite;
}

.vine::before,
.vine::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 10%;
  border: 1px solid rgba(140, 154, 132, 0.18);
  border-radius: 100% 0 100% 0;
  transform: rotate(-28deg);
}

.vine::before {
  top: 26%;
  right: 10%;
}

.vine::after {
  right: 30%;
  bottom: 12%;
  transform: rotate(38deg);
}

.vine-one {
  top: 12%;
  right: -14vw;
}

.vine-two {
  left: -18vw;
  bottom: 10%;
  animation-delay: -6s;
  transform: rotate(210deg);
}

.vine-three {
  top: 48%;
  right: 22vw;
  width: 28vw;
  height: 28vw;
  min-width: 260px;
  min-height: 260px;
  animation-delay: -11s;
  opacity: 0.64;
}

@keyframes backgroundDrift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-1deg) scale(1);
  }
  to {
    transform: translate3d(2%, 1%, 0) rotate(1deg) scale(1.04);
  }
}

@keyframes ambientWash {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.08);
  }
}

@keyframes pollenDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(4rem, -3rem, 0);
  }
}

@keyframes vineFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(20deg);
  }
  50% {
    transform: translate3d(-1.4rem, 1rem, 0) rotate(25deg);
  }
  100% {
    transform: translate3d(1.1rem, -0.6rem, 0) rotate(18deg);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 1180px);
  min-height: 76px;
  margin: 0 auto;
  padding: 0.9rem 0;
  background: rgba(249, 248, 244, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--stone);
  border-radius: 50%;
  color: var(--sage);
  background: rgba(255, 255, 255, 0.55);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand small {
  color: rgba(45, 58, 49, 0.66);
  font-size: 0.76rem;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.2vw, 0.95rem);
}

.nav a,
.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(45, 58, 49, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.nav-button {
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
}

.nav a:hover,
.nav-button:hover {
  color: var(--terracotta);
}

.language-toggle {
  display: flex;
  align-items: center;
  padding: 0.22rem;
  border: 1px solid var(--stone);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.language-toggle button {
  min-height: 34px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(45, 58, 49, 0.66);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
}

.language-toggle .active {
  background: var(--foreground);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--foreground);
}

.section {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: 6.5rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 9vw, 8.6rem);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

.lead {
  max-width: 58ch;
  color: rgba(45, 58, 49, 0.72);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  text-decoration: none;
  transition:
    transform 300ms ease,
    background 300ms ease,
    color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.button {
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button.primary {
  background: var(--foreground);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  border-color: rgba(140, 154, 132, 0.55);
  color: var(--sage);
  background: rgba(255, 255, 255, 0.38);
}

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

.button.primary:hover {
  background: var(--terracotta);
}

.button.secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.text-link {
  color: var(--terracotta);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 4rem;
}

.hero-actions,
.footer-actions,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
}

.portrait-arch {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 226, 218, 0.9);
  border-radius: 220px 220px 40px 40px;
  box-shadow: var(--shadow-xl);
  background: var(--clay);
}

.portrait-arch::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 210px 210px 32px 32px;
}

.portrait-arch img {
  width: 100%;
  aspect-ratio: 3 / 4.3;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform 900ms ease;
}

.portrait-arch:hover img {
  transform: scale(1.04);
}

.name-card {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  max-width: min(82%, 310px);
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(230, 226, 218, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.name-card span,
.name-card strong {
  display: block;
}

.name-card span {
  color: var(--sage);
  font-weight: 800;
}

.name-card strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.resume-section {
  display: grid;
  gap: 1.5rem;
  padding-top: 3rem;
}

.resume-copy {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(230, 226, 218, 0.9);
  border-radius: 42px;
  background: rgba(242, 240, 235, 0.86);
  box-shadow: var(--shadow-sm);
}

.resume-copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.8rem);
  line-height: 1.08;
}

.resume-two-rows {
  display: grid;
  gap: 1.5rem;
}

.resume-row {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.resume-row-primary {
  grid-template-columns: minmax(0, 1fr) auto;
}

.resume-row-about {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(140, 154, 132, 0.28);
}

.resume-target {
  display: inline-flex;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(140, 154, 132, 0.38);
  border-radius: 999px;
  color: var(--sage);
  font-weight: 800;
}

.about-note {
  margin-top: 0;
}

.about-note p:last-child {
  margin-bottom: 0;
  color: rgba(45, 58, 49, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.resume-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.resume-text article {
  min-height: 230px;
  padding: 1.4rem;
  border: 1px solid rgba(230, 226, 218, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-sm);
}

.resume-text article:nth-child(2),
.resume-text article:nth-child(3) {
  background: rgba(242, 240, 235, 0.86);
}

.resume-text h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.resume-text ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-text li {
  display: flex;
  gap: 0.55rem;
  color: rgba(45, 58, 49, 0.72);
}

.resume-text li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.65rem;
  border-radius: 50%;
  background: var(--sage);
  flex: 0 0 auto;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-cloud span {
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--stone);
  border-radius: 999px;
  background: rgba(249, 248, 244, 0.82);
  color: rgba(45, 58, 49, 0.74);
  font-weight: 800;
}

.feature-media {
  overflow: hidden;
  border-radius: 48px 180px 48px 48px;
  box-shadow: var(--shadow-lg);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 900ms ease;
}

.feature-media:hover img {
  transform: scale(1.045);
}

.feature-copy p:not(.eyebrow),
.section-heading p,
.card p,
.practice p,
.footer p,
.process-row p,
.overview-copy li,
.tools-card span {
  color: rgba(45, 58, 49, 0.72);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.card {
  min-height: 360px;
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  border: 1px solid rgba(230, 226, 218, 0.78);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-sm);
  transition:
    transform 500ms ease,
    box-shadow 500ms ease,
    background 500ms ease;
}

.card:nth-child(2) {
  background: rgba(242, 240, 235, 0.92);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.card > span {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-style: italic;
}

.card-label {
  margin: 2rem 0 0.5rem;
  color: var(--sage) !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-columns .card {
  display: flex;
  flex-direction: column;
}

.work-columns ul {
  display: grid;
  gap: 0.45rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.work-columns li {
  display: flex;
  gap: 0.55rem;
  color: rgba(45, 58, 49, 0.74);
  font-weight: 700;
}

.work-columns li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.65rem;
  border-radius: 50%;
  background: var(--terracotta);
  flex: 0 0 auto;
}

.work-columns .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.project-library {
  display: grid;
  gap: 5rem;
  padding-top: 0;
}

.project-group {
  scroll-margin-top: 110px;
}

.project-group-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.project-group-heading h2 {
  margin-bottom: 1rem;
}

.project-group-heading p:not(.eyebrow) {
  color: rgba(45, 58, 49, 0.72);
}

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

.project-subgroup {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(230, 226, 218, 0.88);
  border-radius: 34px;
  background: rgba(249, 248, 244, 0.62);
}

.project-subgroup + .project-subgroup {
  margin-top: 1rem;
}

.project-subgroup-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.35rem 0.8rem;
  border-bottom: 1px solid rgba(140, 154, 132, 0.24);
}

.project-subgroup-heading span {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.project-subgroup-heading small {
  color: var(--sage);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid rgba(230, 226, 218, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-sm);
  transition:
    transform 500ms ease,
    box-shadow 500ms ease,
    background 500ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.project-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  text-decoration: none;
  background: var(--soft-clay);
  color: var(--foreground);
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
}

.project-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 800ms ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.045);
}

.project-cover-fallback {
  display: grid;
  min-height: 260px;
  align-content: end;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(140, 154, 132, 0.2), rgba(194, 123, 102, 0.18)),
    var(--soft-clay);
}

.project-cover-fallback span {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 4rem;
  font-style: italic;
  line-height: 1;
}

.project-cover-fallback strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1;
}

.project-cover-fallback small {
  color: rgba(45, 58, 49, 0.68);
  font-weight: 700;
}

.project-card-body {
  padding: clamp(1.3rem, 2.4vw, 2rem);
}

.project-card-body h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
}

.project-card-body p:not(.card-label) {
  color: rgba(45, 58, 49, 0.72);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.tag-row span {
  padding: 0.36rem 0.68rem;
  border: 1px solid var(--stone);
  border-radius: 999px;
  background: rgba(242, 240, 235, 0.86);
  color: rgba(45, 58, 49, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-card-body .text-link {
  margin-top: 1.3rem;
}

.project-open-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
}

.project-dialog {
  width: min(94vw, 1180px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 34px;
  background: transparent;
}

.project-dialog::backdrop {
  background: rgba(45, 58, 49, 0.72);
  backdrop-filter: blur(6px);
}

.project-detail {
  max-height: 90vh;
  overflow: auto;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border: 1px solid rgba(230, 226, 218, 0.95);
  border-radius: 34px;
  background: var(--background);
  box-shadow: var(--shadow-xl);
}

.project-detail-header {
  max-width: 820px;
  margin-bottom: 1.6rem;
}

.project-detail-header h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
}

.project-detail-header p:not(.eyebrow) {
  color: rgba(45, 58, 49, 0.72);
}

.project-detail video {
  width: 100%;
  max-height: 68vh;
  border-radius: 28px;
  background: var(--foreground);
  box-shadow: var(--shadow-lg);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.zoomable-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  cursor: zoom-in;
}

.detail-gallery img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.project-note,
.project-empty-media {
  padding: 1.2rem;
  border-radius: 24px;
  background: var(--soft-clay);
  color: rgba(45, 58, 49, 0.72);
  font-weight: 700;
}

.project-download {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(140, 154, 132, 0.24);
}

.tech-studies {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(140, 154, 132, 0.24);
}

.extra-videos {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.extra-video {
  display: grid;
  gap: 0.6rem;
}

.extra-video video {
  width: 100%;
  max-height: 64vh;
  border-radius: 28px;
  background: var(--foreground);
  box-shadow: var(--shadow-lg);
}

.tech-study {
  display: grid;
  gap: 1rem;
}

.tech-study h3 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.tech-study video {
  width: 100%;
  max-height: 64vh;
  border-radius: 28px;
  background: var(--foreground);
  box-shadow: var(--shadow-lg);
}

.stagger {
  transform: translateY(2.2rem);
}

.practice {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 3rem;
  align-items: start;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.practice h2 {
  font-size: clamp(2rem, 3.5vw, 4rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stats div,
.tools-card {
  padding: 1.3rem;
  border: 1px solid rgba(230, 226, 218, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-family: var(--serif);
  font-size: 2rem;
}

.stats span {
  color: rgba(45, 58, 49, 0.66);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto 2rem;
  padding: clamp(2rem, 4vw, 3.2rem);
  border-radius: 36px;
  background: var(--foreground);
  color: var(--white);
}

.footer h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
}

.footer p {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.72);
}

.footer .button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.footer-actions,
.footer-contact {
  justify-content: flex-end;
  margin-top: 0;
}

.footer-contact {
  align-items: center;
  gap: 1.2rem;
}

.footer-contact-list {
  display: grid;
  gap: 0.5rem;
}

.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-contact-list strong {
  display: inline-grid;
  min-width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
}

.work-hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.work-hero h1 {
  max-width: 11ch;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  color: var(--sage);
  font-weight: 800;
  text-decoration: none;
}

.back-link svg {
  transform: rotate(180deg);
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 2rem;
  padding-top: 2rem;
}

.overview-copy {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 40px;
  background: var(--soft-clay);
}

.overview-copy h2 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.2vw, 4.8rem);
}

.role-list {
  margin-top: 3rem;
}

.role-list ul {
  display: grid;
  gap: 0.9rem;
  padding-left: 1.1rem;
}

.tools-card {
  align-self: start;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tool-pills span {
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--stone);
  border-radius: 999px;
  background: rgba(249, 248, 244, 0.82);
  font-weight: 700;
}

.reel {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.reel h2 {
  font-size: clamp(2rem, 3.4vw, 4rem);
}

.reel video {
  width: 100%;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  background: var(--foreground);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--clay);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition:
    transform 500ms ease,
    box-shadow 500ms ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 700ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.process {
  display: grid;
  gap: 1px;
  padding-top: 2rem;
}

.process-row {
  display: grid;
  grid-template-columns: 90px minmax(240px, 0.5fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--stone);
}

.process-row span {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
}

.process-row h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.lightbox {
  width: min(96vw, 1320px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.download-dialog {
  width: min(92vw, 620px);
  padding: 0;
  border: 0;
  border-radius: 34px;
  background: transparent;
}

.download-dialog::backdrop {
  background: rgba(45, 58, 49, 0.62);
  backdrop-filter: blur(6px);
}

.download-card {
  padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid rgba(230, 226, 218, 0.95);
  border-radius: 34px;
  background: var(--background);
  box-shadow: var(--shadow-xl);
}

.download-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.download-card p:not(.eyebrow) {
  color: rgba(45, 58, 49, 0.72);
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.resume-preview-dialog {
  width: min(94vw, 980px);
}

.resume-preview-card {
  max-height: 88vh;
  overflow: auto;
}

.resume-preview-options {
  position: sticky;
  top: -1px;
  z-index: 1;
  padding: 0.35rem 0 1rem;
  background: linear-gradient(var(--background) 78%, rgba(249, 248, 244, 0));
}

.document-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.document-toolbar .download-options {
  margin-top: 0;
}

.document-download-button {
  flex: 0 0 auto;
}

.resume-preview-pages {
  display: grid;
  gap: 1rem;
}

.resume-preview-frame {
  margin: 1rem 0 0;
  padding: clamp(0.5rem, 2vw, 1rem);
  border: 1px solid var(--stone);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
}

.resume-preview-frame img {
  width: 100%;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-dialog {
  width: min(94vw, 760px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list article,
.wechat-card {
  padding: 1.2rem;
  border: 1px solid rgba(230, 226, 218, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.contact-list span,
.wechat-card span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list a {
  color: var(--foreground);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.55rem 0;
}

.contact-line + .contact-line {
  border-top: 1px solid rgba(230, 226, 218, 0.8);
}

.contact-line svg,
.contact-line strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--stone);
  border-radius: 50%;
  color: var(--sage);
  flex: 0 0 auto;
}

.contact-line strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.wechat-card img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 18px;
  background: var(--white);
}

.wechat-card p {
  display: none;
  margin: 0;
  color: rgba(45, 58, 49, 0.68);
  font-weight: 700;
}

.wechat-card.missing-qr p {
  display: block;
}

.lightbox::backdrop {
  background: rgba(45, 58, 49, 0.78);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  cursor: zoom-in;
  transform-origin: center;
  transition: transform 160ms ease-out;
  will-change: transform;
}

.image-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(45, 58, 49, 0.72);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 300ms ease,
    background 300ms ease;
}

.image-nav:hover {
  background: var(--terracotta);
}

.image-nav-prev {
  left: max(1rem, calc((100vw - 1320px) / 2));
}

.image-nav-prev svg {
  transform: rotate(180deg);
}

.image-nav-next {
  right: max(1rem, calc((100vw - 1320px) / 2));
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(45, 58, 49, 0.72);
  color: var(--white);
  cursor: pointer;
}

.reveal {
  animation: floatIn 800ms ease both;
}

.delay-1 {
  animation-delay: 140ms;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .site-header {
    width: min(100% - 1rem, 1180px);
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    top: 76px;
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--stone);
    border-radius: 28px;
    background: rgba(249, 248, 244, 0.96);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 300ms ease,
      transform 300ms ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .nav-button {
    min-height: 44px;
    text-align: left;
  }

  .language-toggle {
    justify-self: start;
  }

  .section {
    width: min(100% - 1.25rem, 1180px);
    padding: 4.5rem 0;
  }

  h1 {
    font-size: clamp(3.7rem, 17vw, 5.4rem);
  }

  .hero,
  .featured,
  .resume-section,
  .practice,
  .project-overview,
  .reel,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 390px);
  }

  .name-card {
    right: 0.75rem;
    bottom: 1rem;
  }

  .cards,
  .gallery,
  .stats,
  .resume-text,
  .project-grid,
  .contact-grid,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .stagger {
    transform: none;
  }

  .footer-actions,
  .footer-contact {
    justify-content: flex-start;
  }

  .tools-card {
    position: static;
  }

  .resume-row,
  .resume-row-primary,
  .resume-row-about {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-note {
    padding-left: 0;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .document-toolbar {
    display: grid;
  }
}

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

  .hero-actions,
  .footer-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .portrait-arch {
    border-radius: 180px 180px 32px 32px;
  }

  .feature-media {
    border-radius: 36px 120px 36px 36px;
  }

  .footer {
    width: min(100% - 1rem, 1180px);
    border-radius: 28px;
  }

  .image-nav {
    width: 46px;
    height: 46px;
  }
}
