@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap");

:root {
  --ink: #15221c;
  --muted: #68736d;
  --paper: #fbfcf9;
  --surface: #ffffff;
  --tint: #f1f5ef;
  --line: #dfe6df;
  --accent: #3d735b;
  --accent-dark: #27543f;
  --accent-soft: #dcebe3;
  --shadow: 0 22px 60px rgba(26, 48, 37, 0.1);
  --shadow-soft: 0 12px 34px rgba(26, 48, 37, 0.07);
  --radius: 24px;
  --radius-small: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(251, 252, 249, 0.72);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  border-color: rgba(223, 230, 223, 0.8);
  background: rgba(251, 252, 249, 0.9);
  box-shadow: 0 6px 30px rgba(20, 36, 28, 0.04);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  position: relative;
  z-index: 2;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #46514b;
  font-size: 0.91rem;
  font-weight: 500;
}

.nav-menu a:not(.nav-cta) {
  position: relative;
}

.nav-menu a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  line-height: 1;
  color: white;
  border-radius: 100px;
  background: var(--ink);
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.language-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  padding: 0 13px;
  cursor: pointer;
  pointer-events: auto;
  color: var(--accent-dark);
  border: 1px solid rgba(61, 115, 91, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 115, 91, 0.42);
  background: white;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  min-height: 900px;
  padding-top: 182px;
  padding-bottom: 130px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: 72px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #67a983;
  box-shadow: 0 0 0 5px rgba(103, 169, 131, 0.13);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(1.95rem, 3vw, 3.35rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.038em;
}

h1 span {
  display: block;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(110deg, var(--accent-dark), #6e9f83 62%, #adc9b8);
  background-clip: text;
  -webkit-background-clip: text;
}

.contact-card h2 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(61, 115, 91, 0.2);
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(61, 115, 91, 0.26);
}

.button-secondary {
  border-color: #cfd9d1;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover {
  background: white;
}

.hero-proof {
  display: flex;
  gap: 40px;
  margin-top: 68px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-proof div {
  display: flex;
  flex-direction: column;
}

.hero-proof strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
}

.hero-proof span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-visual {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-visual::before {
  position: absolute;
  z-index: 0;
  right: -74px;
  bottom: -76px;
  width: 390px;
  height: 230px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(61, 115, 91, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 115, 91, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse, black 20%, transparent 72%);
  transform: rotateX(67deg) rotateZ(-12deg) translateZ(-55px);
  animation: depth-grid-drift 9s ease-in-out infinite alternate;
}

.portrait-card {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --glare-x: 50%;
  --glare-y: 50%;
  position: relative;
  z-index: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: rotate(1.5deg) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  transition: transform 120ms linear, box-shadow 220ms ease;
  will-change: transform;
}

.portrait-card::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.52), transparent 34%);
  transition: opacity 180ms ease;
}

.portrait-card.is-tilting {
  box-shadow: 0 32px 75px rgba(26, 48, 37, 0.18);
}

.portrait-card.is-tilting::after {
  opacity: 1;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  height: 470px;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4), transparent 25%),
    linear-gradient(150deg, #b8d1c3 0%, #5f8f77 45%, #284d3b 100%);
  font-family: "Manrope", sans-serif;
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  transform: translateZ(24px);
}

.portrait-photo {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4), transparent 25%),
    linear-gradient(150deg, #eef4ef 0%, #c9dacd 45%, #7b9f88 100%);
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.96) contrast(1.02);
}

.portrait-placeholder::before,
.portrait-placeholder::after {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.portrait-photo::before,
.portrait-photo::after {
  pointer-events: none;
}

.portrait-placeholder::before {
  top: -110px;
  right: -120px;
}

.portrait-placeholder::after {
  bottom: -160px;
  left: -90px;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 8px;
  transform: translateZ(34px);
}

.portrait-caption div {
  display: flex;
  flex-direction: column;
}

.portrait-caption strong {
  font-size: 0.95rem;
}

.portrait-caption span {
  color: var(--muted);
  font-size: 0.78rem;
}

.location-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  font-size: 1.1rem !important;
}

.floating-note {
  position: absolute;
  z-index: 2;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(33, 57, 45, 0.1);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  transform: translateZ(70px) rotate(-3deg);
  animation: note-float-one 5.2s ease-in-out infinite;
}

.floating-note span {
  margin-right: 5px;
  color: var(--accent);
}

.note-top {
  top: 50px;
  left: -58px;
}

.note-bottom {
  right: -24px;
  bottom: 92px;
  transform: translateZ(60px) rotate(3deg);
  animation-name: note-float-two;
  animation-delay: -2.1s;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  top: -76px;
  right: -96px;
  width: 250px;
  height: 250px;
  pointer-events: none;
  transform: rotateX(66deg) rotateZ(-18deg);
  transform-style: preserve-3d;
  animation: orbit-drift 12s ease-in-out infinite alternate;
}

.orbit-ring,
.orbit-core {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring {
  inset: 0;
  border: 1px solid rgba(61, 115, 91, 0.24);
  box-shadow: inset 0 0 28px rgba(61, 115, 91, 0.08);
  animation: orbit-spin 14s linear infinite;
}

.orbit-ring-one::after,
.orbit-ring-two::after {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 20px rgba(61, 115, 91, 0.45);
  animation: orbit-pulse 3s ease-in-out infinite;
}

.orbit-ring-two {
  inset: 35px;
  transform: translateZ(35px);
  border-color: rgba(61, 115, 91, 0.16);
  animation-direction: reverse;
  animation-duration: 10s;
}

.orbit-ring-two::after {
  top: auto;
  right: -5px;
  bottom: 28%;
  left: auto;
  width: 9px;
  height: 9px;
  animation-delay: -1.2s;
}

.orbit-core {
  inset: 88px;
  background: radial-gradient(circle at 35% 30%, #dcebe3, #5c9276 70%);
  box-shadow: 0 16px 34px rgba(39, 84, 63, 0.3);
  transform: translateZ(72px);
}

@keyframes orbit-pulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes orbit-spin {
  to {
    rotate: 1turn;
  }
}

@keyframes orbit-drift {
  from {
    translate: 0 -4px;
  }
  to {
    translate: -12px 14px;
  }
}

@keyframes note-float-one {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes note-float-two {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 7px -8px;
  }
}

@keyframes depth-grid-drift {
  from {
    translate: -6px 0;
    opacity: 0.28;
  }
  to {
    translate: 12px -8px;
    opacity: 0.5;
  }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.hero-glow-one {
  top: 80px;
  right: -180px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(193, 221, 206, 0.48), rgba(193, 221, 206, 0));
}

.hero-glow-two {
  bottom: -260px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 234, 218, 0.54), rgba(224, 234, 218, 0));
}

.section-heading {
  margin-bottom: 60px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 4.65rem);
  font-weight: 600;
}

.split-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr 0.6fr;
  gap: 80px;
}

.split-heading > p {
  max-width: 440px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.about-copy {
  color: var(--muted);
}

.about-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.about-copy p {
  margin-bottom: 22px;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.principle-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.principle-card:first-child {
  grid-column: span 2;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-number {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.principle-card:first-child .card-number {
  margin-bottom: 34px;
}

.principle-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-tinted {
  background: var(--tint);
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 203px;
  width: 1px;
  content: "";
  background: #cad5cc;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 32px 1fr;
  margin-bottom: 18px;
}

.timeline-date {
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline-marker {
  position: relative;
}

.timeline-marker::before {
  position: absolute;
  z-index: 1;
  top: 33px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 5px solid var(--tint);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  background: var(--accent);
  box-sizing: content-box;
}

.timeline-card {
  padding: 28px 30px;
  border: 1px solid rgba(218, 226, 219, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.timeline-card:hover {
  transform: translateX(5px);
  background: white;
  box-shadow: var(--shadow);
}

.role-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.timeline-card h3 {
  margin-bottom: 4px;
  font-size: 1.22rem;
}

.company {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.job-type {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.timeline-card > p {
  max-width: 760px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 5px 10px;
  border-radius: 100px;
  color: #5d6962;
  background: #edf2ed;
  font-size: 0.68rem;
  font-weight: 600;
}

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

.project-card {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --lift: 0px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transform-style: preserve-3d;
  transition: transform 220ms ease-out, box-shadow 220ms ease;
  will-change: transform;
}

.project-card.is-visible {
  transform: perspective(1100px) translateY(var(--lift)) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
}

.project-card.is-visible:hover {
  --lift: -7px;
  box-shadow: var(--shadow);
}

.project-featured {
  display: block;
  grid-column: auto;
}

.project-image {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
  transform: translateZ(12px);
  transform-style: preserve-3d;
}

.project-featured .project-image {
  min-height: 310px;
}

.project-image-violet {
  background: linear-gradient(145deg, #c6c1e5, #7770af);
}

.project-image-coral {
  background: linear-gradient(145deg, #f5c9ba, #d77c68);
}

.project-image-blue {
  background: linear-gradient(145deg, #bcd8df, #568aa0);
}

.project-content {
  padding: 28px;
  transform: translateZ(22px);
}

.project-featured .project-content {
  display: block;
  padding: 28px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  transition: color 180ms ease, background 180ms ease;
}

.project-card:hover .project-arrow {
  color: white;
  background: var(--accent);
}

.project-content h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.project-content > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mock-window {
  width: 84%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: white;
  box-shadow: 0 30px 55px rgba(42, 35, 91, 0.28);
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  animation: mockup-hover 6s ease-in-out infinite;
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  background: #f2f1f7;
}

.mock-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa6c3;
}

.mock-dashboard {
  display: grid;
  height: 190px;
  grid-template-columns: 25% 75%;
}

.mock-sidebar {
  background: #26223c;
}

.mock-main {
  display: grid;
  align-content: center;
  padding: 25px;
  gap: 14px;
  background: #f8f8fb;
}

.mock-main span {
  display: block;
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e3e0f2 60%, #f0eff6 60%);
}

.phone-mockup {
  width: 150px;
  height: 280px;
  padding: 18px;
  border: 7px solid #272220;
  border-radius: 28px;
  background: #fff5f1;
  box-shadow: 0 28px 45px rgba(100, 49, 37, 0.28);
  transform: rotate(6deg);
  animation: phone-hover 5.4s ease-in-out infinite -1.4s;
}

.phone-notch {
  width: 50px;
  height: 8px;
  margin: -12px auto 34px;
  border-radius: 0 0 6px 6px;
  background: #272220;
}

.phone-circle {
  width: 90px;
  height: 90px;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(#d86d57 70%, #f6dfd7 0);
}

.phone-lines {
  width: 100%;
  height: 70px;
  margin-top: 28px;
  border-radius: 10px;
  background: repeating-linear-gradient(#ebc8bc 0 7px, transparent 7px 17px);
}

.brand-poster {
  display: flex;
  width: 220px;
  height: 270px;
  padding: 28px 24px;
  flex-direction: column;
  justify-content: center;
  color: #f4faf6;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #244a53;
  box-shadow: 0 28px 45px rgba(28, 66, 77, 0.3);
  transform: rotate(-4deg);
  animation: poster-hover 6.4s ease-in-out infinite -2.6s;
}

@keyframes mockup-hover {
  0%,
  100% {
    transform: perspective(900px) rotateY(-6deg) rotateX(3deg) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateY(-3deg) rotateX(1deg) translateY(-8px);
  }
}

@keyframes phone-hover {
  0%,
  100% {
    transform: rotate(6deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-9px);
  }
}

@keyframes poster-hover {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-8px);
  }
}

.brand-poster span,
.brand-poster strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand-poster strong {
  color: #9fd2c4;
}

.brand-poster i {
  margin-top: 65px;
  font-family: Georgia, serif;
  font-size: 0.7rem;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.skills-grid .section-heading {
  margin: 0;
}

.skills-grid .section-heading > p:last-child {
  max-width: 450px;
  margin-top: 28px;
  color: var(--muted);
}

.skills-list {
  border-top: 1px solid var(--line);
}

.skill-group {
  display: grid;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 54px 1fr;
  gap: 14px;
}

.skill-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1.05rem;
}

.skill-group h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-section {
  padding-top: 30px;
}

.contact-card {
  display: grid;
  padding: 70px;
  color: white;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(111, 163, 137, 0.4), transparent 32%),
    var(--ink);
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.contact-card .eyebrow {
  color: #9fceb6;
}

.contact-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.contact-card h2 span {
  color: #93c5ab;
}

.contact-card p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: #b8c2bd;
}

.contact-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}

.button-light {
  color: var(--ink);
  background: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.social-links {
  display: flex;
  gap: 20px;
  color: #aebbb4;
  font-size: 0.8rem;
}

.social-links a:hover {
  color: white;
}

.footer {
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-logo {
  color: var(--ink);
}

.back-to-top {
  color: var(--ink);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.project-card.reveal.is-visible {
  transform: perspective(1100px) translateY(var(--lift)) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
}

@media (max-width: 980px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding-top: 145px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 42px;
  }

  .hero-proof {
    gap: 24px;
  }

  .about-grid,
  .skills-grid {
    gap: 55px;
  }

  .split-heading {
    gap: 40px;
  }

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

  .project-featured {
    grid-column: span 2;
  }

  .project-featured .project-image {
    min-height: 390px;
  }

  .contact-card {
    padding: 54px;
  }
}

@media (max-width: 760px) {
  .site-header.menu-active,
  .site-header.scrolled.menu-active {
    border-color: transparent;
    background: var(--paper);
    box-shadow: none;
    backdrop-filter: none;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
    cursor: pointer;
  }

  .nav-toggle.is-active span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 96px 24px 40px;
    overflow-y: auto;
    background:
      radial-gradient(circle at 80% 20%, rgba(190, 218, 202, 0.48), transparent 34%),
      var(--paper);
    font-size: 1.25rem;
    transition: none;
  }

  .site-header .nav-menu.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .nav-cta {
    margin-top: 8px;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .language-toggle {
    min-width: 72px;
    min-height: 40px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
    padding-top: 142px;
    padding-bottom: 90px;
  }

  .hero-grid,
  .about-grid,
  .split-heading,
  .skills-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 70px;
  }

  h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: -0.032em;
  }

  .hero-proof {
    justify-content: space-between;
    gap: 10px;
  }

  .portrait-card {
    max-width: 460px;
    margin: auto;
    transform: rotate(1deg);
  }

  .hero-orbit {
    top: -50px;
    right: -54px;
    width: 190px;
    height: 190px;
    opacity: 0.7;
    animation-duration: 16s;
  }

  .orbit-ring-two {
    inset: 28px;
  }

  .orbit-core {
    inset: 68px;
  }

  .portrait-placeholder {
    height: 380px;
  }

  .note-top {
    left: -5px;
  }

  .note-bottom {
    right: -5px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .split-heading {
    align-items: start;
    gap: 24px;
  }

  .about-grid,
  .skills-grid {
    gap: 52px;
  }

  .timeline::before {
    left: 7px;
  }

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

  .timeline-date {
    grid-column: 2;
    padding: 0 0 10px;
  }

  .timeline-marker {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .timeline-marker::before {
    top: 4px;
  }

  .timeline-card {
    grid-column: 2;
    padding: 24px;
  }

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

  .project-featured {
    grid-column: auto;
  }

  .project-featured .project-content {
    padding: 30px;
  }

  .project-featured .project-image {
    min-height: 340px;
  }

  .contact-card {
    padding: 42px 28px;
    gap: 44px;
  }

  .contact-actions {
    align-items: flex-start;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-inner p {
    order: 3;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-proof span {
    max-width: 72px;
  }

  .portrait-placeholder {
    height: 320px;
  }

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

  .principle-card:first-child {
    grid-column: auto;
  }

  .principle-card,
  .principle-card:first-child {
    min-height: auto;
  }

  .card-number,
  .principle-card:first-child .card-number {
    margin-bottom: 38px;
  }

  .role-row {
    flex-direction: column;
    gap: 12px;
  }

  .project-image,
  .project-featured .project-image {
    min-height: 300px;
  }

  .mock-dashboard {
    height: 200px;
  }

  .contact-card .button {
    width: 100%;
    padding-inline: 16px;
  }
}

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

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

  .orbit-ring,
  .orbit-ring::after,
  .hero-orbit,
  .floating-note,
  .hero-visual::before,
  .mock-window,
  .phone-mockup,
  .brand-poster {
    animation: none;
  }
}
