:root {
  --bg: #f6f6ed;
  --bg-soft: #eef2e3;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(106, 134, 92, 0.2);
  --text: #23311f;
  --muted: #5c6c58;
  --matcha: #8ba96f;
  --matcha-deep: #5d7750;
  --matcha-fresh: #bfd4a9;
  --accent: #e9cdb1;
  --shadow: 0 20px 60px rgba(89, 109, 74, 0.15);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 212, 169, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(233, 205, 177, 0.35), transparent 22%),
    linear-gradient(180deg, #fbfcf7 0%, var(--bg) 52%, #edf2e6 100%);
  overflow-x: hidden;
}

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

button,
a {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  inset: 0 auto auto 0;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 212, 169, 0.3), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  z-index: 0;
  opacity: 0.9;
  transition: transform 180ms ease-out;
}

.ambient,
.leaf {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
}

.ambient-one {
  top: 8%;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(191, 212, 169, 0.35);
  animation: floatBlob 15s ease-in-out infinite;
}

.ambient-two {
  top: 48%;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(233, 205, 177, 0.26);
  animation: floatBlob 18s ease-in-out infinite reverse;
}

.ambient-three {
  bottom: -4rem;
  left: 35%;
  width: 20rem;
  height: 20rem;
  background: rgba(139, 169, 111, 0.16);
  animation: pulseBlob 14s ease-in-out infinite;
}

.avocado {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 56% 44% 48% 52% / 34% 34% 66% 66%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.45) 0 8%, transparent 8.5%),
    linear-gradient(145deg, #87c545, #5f9b2d);
  border: 4px solid #35551e;
  box-shadow:
    inset -10px -16px 0 rgba(67, 110, 33, 0.3),
    0 14px 26px rgba(67, 92, 54, 0.1);
  opacity: 0.32;
  transform: rotate(-18deg);
}

.avocado::before,
.avocado::after {
  content: "";
  position: absolute;
}

.avocado::before {
  inset: 12% 14% 10% 12%;
  border-radius: 56% 44% 48% 52% / 34% 34% 66% 66%;
  background:
    radial-gradient(circle at 62% 60%, #8e541c 0 13%, transparent 13.4%),
    radial-gradient(circle at 62% 60%, #b96f29 0 18%, transparent 18.4%),
    radial-gradient(circle at 62% 60%, #93d13f 0 28%, transparent 28.5%),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.32) 0 9%, transparent 9.4%),
    linear-gradient(145deg, #fff6a4, #d9ef75);
  border: 3px solid #35551e;
  box-shadow: inset -8px -10px 0 rgba(160, 199, 68, 0.18);
}

.avocado::after {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 44% 46%, #1c1c1c 0 2.2%, transparent 2.35%),
    radial-gradient(circle at 54% 46%, #1c1c1c 0 2.2%, transparent 2.35%),
    radial-gradient(circle at 39% 54%, rgba(255, 142, 170, 0.9) 0 3.2%, transparent 3.35%),
    radial-gradient(circle at 59% 54%, rgba(255, 142, 170, 0.9) 0 3.2%, transparent 3.35%),
    radial-gradient(ellipse at 49% 50.5%, #ff8e8e 0 1.3%, transparent 1.5%),
    radial-gradient(ellipse at 49% 57%, #8a3c24 0 2.2%, transparent 2.35%),
    radial-gradient(ellipse at 49% 55.5%, #fff 0 0.55%, transparent 0.7%);
  opacity: 0.92;
}

.orb-one {
  top: 22%;
  right: 8%;
  width: 5.2rem;
  height: 6.5rem;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-two {
  top: 58%;
  left: 6%;
  width: 4.4rem;
  height: 5.5rem;
  transform: rotate(12deg);
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.orb-three {
  bottom: 14%;
  right: 16%;
  width: 6rem;
  height: 7.4rem;
  transform: rotate(16deg);
  animation: orbFloat 13s ease-in-out infinite;
}

.orb-four {
  top: 42%;
  left: 48%;
  width: 3.7rem;
  height: 4.8rem;
  transform: rotate(-8deg);
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.leaf {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 80% 20% 80% 20%;
  background: linear-gradient(140deg, rgba(139, 169, 111, 0.22), rgba(191, 212, 169, 0.08));
  box-shadow: inset 0 0 0 1px rgba(139, 169, 111, 0.12);
}

.leaf-one {
  top: 18%;
  right: 10%;
  animation: leafDance 10s ease-in-out infinite;
}

.leaf-two {
  bottom: 12%;
  left: 8%;
  animation: leafDance 12s ease-in-out infinite reverse;
}

.leaf-three {
  top: 64%;
  right: 28%;
  animation: leafDance 14s ease-in-out infinite;
}

.sparkle {
  position: fixed;
  z-index: 0;
  width: 1.2rem;
  height: 1.2rem;
  pointer-events: none;
  opacity: 0.55;
  animation: sparkleTwinkle 5.5s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(191, 212, 169, 0.75));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(191, 212, 169, 0.42);
}

.sparkle::before {
  width: 100%;
  height: 0.16rem;
}

.sparkle::after {
  width: 0.16rem;
  height: 100%;
}

.sparkle-one {
  top: 14%;
  left: 28%;
}

.sparkle-two {
  top: 24%;
  right: 18%;
  animation-delay: 1.2s;
}

.sparkle-three {
  bottom: 22%;
  left: 16%;
  animation-delay: 2.1s;
}

.sparkle-four {
  bottom: 16%;
  right: 24%;
  animation-delay: 3.1s;
}

.topbar {
  position: sticky;
  top: 1.25rem;
  z-index: 10;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.25rem auto 0;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 999px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  overflow: hidden;
  padding: 0.14rem;
  background: linear-gradient(135deg, rgba(111, 143, 87, 0.95), rgba(191, 212, 169, 0.92));
  box-shadow:
    0 14px 28px rgba(107, 138, 84, 0.24),
    0 0 0 6px rgba(191, 212, 169, 0.16);
  animation: avatarGlow 6s ease-in-out infinite;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong,
.eyebrow,
.nav-link,
.button,
.feature-index,
.project-number,
.project-type,
.mini-label,
.profile-kicker {
  font-family: "Quicksand", sans-serif;
}

.brand-copy small {
  color: var(--muted);
  margin-top: 0.2rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  background: rgba(248, 250, 243, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(139, 169, 111, 0.15);
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(191, 212, 169, 0.22);
  color: var(--text);
  outline: none;
}

.nav-link.is-active {
  background: linear-gradient(135deg, rgba(191, 212, 169, 0.7), rgba(255, 255, 255, 0.96));
  color: var(--text);
  box-shadow: 0 8px 18px rgba(139, 169, 111, 0.16);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.75rem auto 3rem;
}

.view {
  display: none;
  gap: 1.4rem;
}

.view.is-active {
  display: grid;
}

.glass-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(139, 169, 111, 0.06);
  pointer-events: none;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -30%;
  width: 42%;
  height: 300%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: rotate(16deg);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.glass-panel:hover::before {
  opacity: 1;
  animation: shimmerSweep 1.25s ease;
}

.hero-grid,
.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
}

.hero-copy,
.profile-panel,
.section-heading,
.summary-copy,
.cta-banner {
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--matcha-deep);
}

.eyebrow::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--matcha), var(--matcha-fresh));
  box-shadow: 0 0 0 6px rgba(191, 212, 169, 0.14);
}

.hero-copy h1,
.section-heading h2,
.summary-copy h2 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 0.2em;
  color: var(--matcha-deep);
}

.lead,
.section-heading p,
.summary-copy p,
.feature-card p,
.project-card p,
.mini-card p,
.cta-banner p {
  color: var(--muted);
  line-height: 1.72;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.action-stack {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.4rem;
}

.action-stack .action-row {
  margin-top: 0;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #fefef9;
  background: linear-gradient(135deg, var(--matcha-deep), var(--matcha));
  box-shadow: 0 14px 28px rgba(93, 119, 80, 0.22);
}

.button-avocado {
  position: relative;
  min-width: 9rem;
  padding-right: 2.8rem;
  overflow: visible;
}

.button-avocado::after {
  content: "";
  position: absolute;
  right: -0.25rem;
  bottom: -0.55rem;
  width: 2.9rem;
  height: 2.9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cellipse cx='48' cy='84' rx='18' ry='6' fill='%23f4c9d5' fill-opacity='.8'/%3E%3Cpath d='M48 12c-14 0-28 16-28 34 0 23 15 38 28 38s28-15 28-38C76 28 62 12 48 12Z' fill='%2382b24b' stroke='%234e7a2f' stroke-width='4'/%3E%3Cpath d='M48 20c-10 0-20 12-20 27 0 17 11 29 20 29s20-12 20-29c0-15-10-27-20-27Z' fill='%23fff8c0'/%3E%3Ccircle cx='48' cy='56' r='12' fill='%23b77b4b' stroke='%238e5a35' stroke-width='3'/%3E%3Ccircle cx='41' cy='54' r='1.8' fill='%235b412a'/%3E%3Ccircle cx='49' cy='54' r='1.8' fill='%235b412a'/%3E%3Cpath d='M42 60c2.8 2.2 5.2 2.2 8 0' fill='none' stroke='%235b412a' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='37' cy='37' r='2.2' fill='%23f7aac3'/%3E%3Ccircle cx='59' cy='37' r='2.2' fill='%23f7aac3'/%3E%3Ccircle cx='43' cy='34' r='1.6' fill='%23496931'/%3E%3Ccircle cx='53' cy='34' r='1.6' fill='%23496931'/%3E%3Cpath d='M45 40c2.2 1.6 3.8 1.6 6 0' fill='none' stroke='%23496931' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M44 16c1.5-5 5.8-8 10.8-8' fill='none' stroke='%23629433' stroke-width='3' stroke-linecap='round'/%3E%3Cellipse cx='36' cy='77' rx='5' ry='7' fill='%23729f41'/%3E%3Cellipse cx='60' cy='77' rx='5' ry='7' fill='%23729f41'/%3E%3Cg transform='translate(27 8)'%3E%3Ccircle cx='0' cy='0' r='4.2' fill='%23ffd3de'/%3E%3Cpath d='M0-5.5v11M-5.5 0h11M-3.8-3.8l7.6 7.6M3.8-3.8-3.8 3.8' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 5px 10px rgba(86, 112, 67, 0.25));
  pointer-events: none;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 22px rgba(93, 119, 80, 0.1);
}

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

.stat-card,
.feature-card,
.project-card,
.mini-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.stat-card span {
  color: var(--muted);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}

.stat-card .feature-index {
  display: block;
  min-height: 2.9rem;
  margin-bottom: 0.18rem;
  line-height: 1.35;
}

.stat-card strong {
  min-height: 3.6rem;
  line-height: 1.3;
  margin-bottom: 0.08rem;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.profile-panel {
  display: grid;
  gap: 1.35rem;
}

.portrait-wrap {
  position: relative;
  padding: 1rem;
  border-radius: calc(var(--radius-lg) - 0.25rem);
  background:
    radial-gradient(circle at top, rgba(191, 212, 169, 0.5), transparent 42%),
    linear-gradient(180deg, rgba(247, 250, 241, 0.98), rgba(228, 236, 214, 0.9));
  overflow: hidden;
}

.tilt-card {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.tilt-card .portrait {
  transform: translateZ(24px);
}

.tilt-card .portrait-badge {
  transform: translateZ(34px);
}

.tilt-card:hover {
  filter: saturate(1.05);
  box-shadow: 0 28px 54px rgba(89, 109, 74, 0.2);
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: auto -1.5rem -2.5rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 169, 111, 0.2), transparent 68%);
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.75rem;
  box-shadow: 0 18px 44px rgba(81, 102, 68, 0.18);
}

.portrait-badge {
  position: absolute;
  z-index: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(139, 169, 111, 0.15);
  box-shadow: 0 14px 30px rgba(81, 102, 68, 0.12);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: var(--matcha-deep);
}

.badge-top {
  top: 1.25rem;
  right: 1.15rem;
}

.badge-bottom {
  bottom: 1.25rem;
  left: 1.15rem;
}

.profile-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--matcha-deep);
}

.profile-copy h2 {
  margin: 0.5rem 0 1rem;
  font-size: 1.6rem;
  line-height: 1.25;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(250, 252, 246, 0.9);
  border: 1px solid rgba(139, 169, 111, 0.1);
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  max-width: 12rem;
  text-align: right;
}

.feature-grid,
.projects-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

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

.feature-card h3,
.project-card h3,
.mini-card h3,
.cta-banner h3 {
  margin: 0.65rem 0 0.75rem;
  font-size: 1.3rem;
}

.feature-index {
  color: var(--matcha-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.section-heading {
  max-width: 48rem;
}

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

.project-card {
  padding: 0;
  overflow: hidden;
  border-radius: 1.9rem;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(89, 109, 74, 0.18);
  border-color: rgba(139, 169, 111, 0.28);
}

.chapter-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.35rem;
  color: #fffdf7;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.24);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.chapter-label,
.modal-badge,
.modal-label,
.mini-label {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
}

.chapter-label {
  font-size: 1.08rem;
}

.chapter-content {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.35rem 1.45rem 1.55rem;
  background:
    radial-gradient(circle at 90% 82%, rgba(244, 195, 226, 0.18), transparent 14%),
    radial-gradient(circle at 78% 76%, rgba(244, 195, 226, 0.12), transparent 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
}

.chapter-content h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.42;
}

.chapter-content p {
  margin: 0.95rem 0 0;
  font-size: 1rem;
}

.project-link {
  margin-top: auto;
  padding-top: 1.6rem;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: var(--matcha-deep);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.project-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.project-link:hover::after,
.project-link:focus-visible::after {
  transform: translateX(4px);
}

.chapter-one .chapter-bar {
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
}

.chapter-two .chapter-bar {
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
}

.chapter-three .chapter-bar {
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
}

.chapter-four .chapter-bar {
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
}

.chapter-five .chapter-bar {
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
}

.chapter-six .chapter-bar {
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
}

.chapter-one .project-link {
  color: var(--matcha-deep);
}

.chapter-two .project-link {
  color: var(--matcha-deep);
}

.chapter-three .project-link {
  color: var(--matcha-deep);
}

.chapter-four .project-link {
  color: var(--matcha-deep);
}

.chapter-five .project-link {
  color: var(--matcha-deep);
}

.chapter-six .project-link {
  color: var(--matcha-deep);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(42, 48, 41, 0.34);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(100%, 40rem);
  border-radius: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(191, 212, 169, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.93));
  box-shadow: 0 30px 80px rgba(45, 54, 39, 0.26);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
  color: #fffdf8;
}

.modal-heading-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.22);
}

.modal-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 1.85rem 2rem 1.3rem;
}

.modal-body h3 {
  margin: 0 0 1.45rem;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.18;
}

.modal-highlight {
  padding: 1.1rem 1.15rem;
  border-radius: 1.5rem;
  background: rgba(248, 244, 255, 0.92);
  border: 1px solid rgba(163, 112, 210, 0.16);
}

.modal-section {
  margin-top: 1.5rem;
}

.modal-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: var(--matcha-deep);
}

.modal-section-label::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f8f57, #9fbc7e);
}

.modal-section-plain {
  color: var(--text);
}

.modal-section-plain::before {
  background: linear-gradient(135deg, var(--matcha-deep), var(--matcha));
}

.modal-highlight p,
.modal-section p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem 2rem;
}

.summary-hero,
.summary-card,
.summary-wide {
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
}

.summary-hero {
  position: relative;
  overflow: hidden;
}

.summary-hero h2 {
  margin: 0.8rem 0 0.85rem;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.summary-hero p {
  max-width: 48rem;
  color: var(--muted);
}

.summary-arc {
  position: absolute;
  inset: auto -10% -1.6rem -10%;
  height: 9rem;
  border-top: 10px solid rgba(165, 228, 154, 0.32);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
}

.summary-grid-top,
.summary-grid-mid {
  margin-top: 1.35rem;
}

.summary-card,
.summary-wide {
  position: relative;
  overflow: hidden;
}

.summary-card-head {
  margin-bottom: 1rem;
}

.summary-card-head h3 {
  margin: 0.45rem 0 0;
  font-size: 1.9rem;
  line-height: 1.22;
}

.summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Quicksand", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9b63cb;
}

.summary-tag::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.3rem;
  background: linear-gradient(135deg, rgba(111, 143, 87, 0.95), rgba(159, 188, 126, 0.9));
}

.summary-tag-green {
  color: #5d8f80;
}

.summary-tag-orange {
  color: #d48157;
}

.summary-tag-pink {
  color: #d67093;
}

.summary-list {
  display: grid;
  gap: 0.9rem;
}

.summary-item,
.summary-bullet,
.path-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(139, 169, 111, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.summary-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem 1rem 1rem 0.95rem;
}

.summary-item strong,
.summary-bullet strong,
.path-card strong {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: #9b63cb;
}

.summary-item p,
.summary-bullet p,
.path-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.summary-bullet {
  position: relative;
  padding: 1rem 1rem 1rem 2rem;
}

.summary-bullet::before {
  content: "";
  position: absolute;
  top: 1.18rem;
  left: 0.95rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #63af9b, #9fbc7e);
}

.summary-bullet-warm::before {
  background: linear-gradient(135deg, #d48157, #f0b382);
}

.summary-wide {
  margin-top: 1.35rem;
}

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

.path-card {
  padding: 1rem 1rem 1.05rem;
}

.summary-copy {
  min-height: 100%;
}

.summary-points {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.5rem;
}

.summary-points article {
  padding: 1rem 1rem 1.05rem;
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 243, 0.9);
  border: 1px solid rgba(139, 169, 111, 0.12);
}

.summary-points strong,
.mini-card h3 {
  display: block;
}

.summary-points span {
  margin-top: 0.35rem;
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.summary-card-stack {
  display: grid;
  gap: 1rem;
}

.mini-card {
  padding: 1.3rem;
}

.cta-banner {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(38px) scale(0.985);
  transition:
    opacity 720ms ease,
    transform 720ms ease,
    filter 720ms ease;
}

.reveal.in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0.8rem, -1.1rem, 0);
  }
}

@keyframes pulseBlob {

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

  50% {
    transform: scale(1.07);
    opacity: 0.6;
  }
}

@keyframes leafDance {

  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(12deg) translateY(-10px);
  }
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0.9rem, -1.1rem, 0) scale(1.06);
  }
}

@keyframes sparkleTwinkle {

  0%,
  100% {
    transform: scale(0.78) rotate(0deg);
    opacity: 0.25;
  }

  50% {
    transform: scale(1.16) rotate(45deg);
    opacity: 0.9;
  }
}

@keyframes avatarGlow {

  0%,
  100% {
    box-shadow:
      0 14px 28px rgba(107, 138, 84, 0.24),
      0 0 0 6px rgba(191, 212, 169, 0.16);
  }

  50% {
    box-shadow:
      0 18px 34px rgba(107, 138, 84, 0.3),
      0 0 0 8px rgba(191, 212, 169, 0.22);
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-130%) rotate(16deg);
  }

  100% {
    transform: translateX(360%) rotate(16deg);
  }
}

@keyframes portraitFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1200px) {

  .shell,
  .topbar {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

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

  .summary-card-head h3 {
    font-size: 1.65rem;
  }
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 1.7rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-pill {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid,
  .summary-grid,
  .feature-grid,
  .projects-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .path-grid,
  .gratitude-grid {
    grid-template-columns: 1fr;
  }

  .info-list li {
    flex-direction: column;
  }

  .info-list strong {
    max-width: none;
    text-align: left;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hero-copy,
  .profile-panel,
  .section-heading,
  .summary-hero,
  .summary-card,
  .summary-wide,
  .cta-banner {
    padding: 1.35rem;
  }

  .portrait-wrap {
    max-width: 30rem;
    margin-inline: auto;
  }

  .chapter-content,
  .summary-item,
  .summary-bullet,
  .path-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 720px) {
  .shell {
    margin-top: 1.2rem;
    margin-bottom: 2.2rem;
  }

  .topbar {
    position: static;
    margin-top: 1rem;
    width: min(calc(100% - 1rem), var(--max-width));
    padding: 0.8rem;
    border-radius: 1.4rem;
  }

  .nav-link {
    padding: 0.72rem 0.9rem;
    font-size: 0.92rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .summary-copy h2,
  .summary-hero h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .portrait-badge {
    font-size: 0.82rem;
  }

  .cursor-glow {
    display: none;
  }

  .sparkle {
    opacity: 0.34;
  }

  .brand {
    justify-content: center;
  }

  .brand-copy {
    align-items: center;
    text-align: center;
  }

  .nav-pill {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .action-row {
    flex-direction: column;
  }

  .action-stack {
    width: 100%;
  }

  .action-row .button,
  .modal-actions .button {
    width: 100%;
    justify-content: center;
  }

  .button-avocado {
    min-width: 0;
    padding-right: 2.6rem;
  }

  .feature-card,
  .stat-card,
  .chapter-content,
  .summary-card,
  .summary-wide {
    border-radius: 1.4rem;
  }

  .chapter-content {
    min-height: auto;
  }

  .button-avocado::after {
    width: 2.5rem;
    height: 2.5rem;
    right: -0.15rem;
  }

  .chapter-bar {
    padding: 1rem 1.05rem;
  }

  .chapter-badge {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    font-size: 0.92rem;
  }

  .chapter-label {
    font-size: 1rem;
  }

  .chapter-content h3 {
    font-size: 1.08rem;
  }

  .chapter-content p,
  .lead,
  .summary-hero p,
  .summary-item p,
  .summary-bullet p,
  .path-card p {
    font-size: 0.96rem;
  }

  .summary-arc {
    left: -30%;
    right: -30%;
    bottom: -2.1rem;
    height: 7rem;
  }

  .summary-card-head h3 {
    font-size: 1.45rem;
  }

  .summary-item {
    grid-template-columns: 1fr;
  }

  .summary-item strong {
    margin-bottom: 0.2rem;
  }

  .avocado {
    opacity: 0.18;
  }

  .modal-body {
    padding: 1.4rem 1.2rem 1rem;
  }

  .modal-actions {
    padding: 0 1.2rem 1.2rem;
  }

  .modal-body h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {

  .shell,
  .topbar {
    width: calc(100% - 0.8rem);
  }

  .hero-copy,
  .profile-panel,
  .section-heading,
  .summary-hero,
  .summary-card,
  .summary-wide,
  .cta-banner {
    padding: 1.05rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .summary-hero h2 {
    letter-spacing: -0.03em;
  }

  .stat-grid {
    gap: 0.7rem;
  }

  .stat-card strong {
    font-size: 1.15rem;
  }

  .portrait-wrap {
    padding: 0.8rem;
  }

  .portrait {
    border-radius: 1.25rem;
  }

  .portrait-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.76rem;
  }

  .chapter-content {
    padding: 1.05rem 1rem 1.2rem;
  }

  .summary-card-head h3 {
    font-size: 1.28rem;
  }

  .summary-item,
  .summary-bullet,
  .path-card {
    padding: 0.9rem;
  }

  .summary-bullet {
    padding-left: 1.8rem;
  }

  .summary-bullet::before {
    left: 0.82rem;
  }

  .modal-card {
    border-radius: 1.4rem;
  }

  .modal-header {
    padding: 0.95rem 1rem;
  }

  .modal-body {
    padding: 1.05rem 1rem 0.85rem;
  }

  .modal-actions {
    padding: 0 1rem 1rem;
  }

  .modal-body h3 {
    font-size: 1.35rem;
  }

  .sparkle {
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {

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