:root {
  --bg: #f2efe6;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #17262d;
  --muted: #637078;
  --line: rgba(23, 38, 45, 0.13);
  --navy: #234766;
  --navy-dark: #18374c;
  --navy-soft: #dce8ed;
  --terracotta: #c86f52;
  --terracotta-dark: #99513b;
  --terracotta-soft: #f2ddd2;
  --sage: #6f927f;
  --sage-dark: #4d6e5d;
  --sage-soft: #dce8df;
  --gold: #d8a645;
  --gold-dark: #936b20;
  --gold-soft: #f4e7bd;
  --shadow-sm: 0 12px 32px rgba(23, 38, 45, 0.055);
  --shadow-md: 0 26px 70px rgba(23, 38, 45, 0.095);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(111, 146, 127, 0.045), transparent 22%),
    var(--bg);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.sylva-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: #66705e;
  transition: opacity 900ms ease;
}

.sylva-frame {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  border: 0;
  opacity: 0.7;
  pointer-events: none;
  transform: scale(1.015);
  transform-origin: center;
}

.sylva-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 241, 232, 0.54) 0%, rgba(242, 239, 230, 0.64) 42%, rgba(242, 239, 230, 0.72) 100%),
    radial-gradient(circle at 16% 18%, rgba(255, 253, 248, 0.28), transparent 42%);
}

body.sylva-ready .sylva-background {
  opacity: 1;
}

body.sylva-fallback .sylva-background {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

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

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

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid rgba(216, 166, 69, 0.75);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

code {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  padding: 2px 6px;
  font-size: 0.86em;
}

.ambient-shape {
  display: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 60px;
  margin-top: 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(23, 38, 45, 0.13);
  border-radius: 12px;
  background: rgba(250, 248, 242, 0.96);
  box-shadow: 0 10px 30px rgba(23, 38, 45, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--surface);
  font-family: Georgia, serif;
  font-size: 17px;
  box-shadow: none;
}

.issue-mark {
  margin-right: auto;
  padding-left: 18px;
  border-left: 1px solid rgba(23, 37, 53, 0.24);
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 9px 14px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(35, 71, 102, 0.065);
  color: var(--navy-dark);
  box-shadow: inset 0 -2px 0 rgba(200, 111, 82, 0.9);
  transform: none;
}

.hero {
  position: relative;
  min-height: min(900px, calc(100svh - 92px));
  padding: clamp(74px, 9vh, 112px) 34px clamp(78px, 9vh, 108px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(23, 37, 53, 0.2);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(48vw, 620px);
  aspect-ratio: 0.92;
  right: -5%;
  top: 50%;
  border: 1px solid rgba(79, 113, 96, 0.2);
  border-radius: 48% 52% 43% 57% / 57% 43% 57% 43%;
  background: rgba(111, 146, 127, 0.09);
  transform: translateY(-50%) rotate(-7deg);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: 24px;
  width: 118px;
  height: 1px;
  background: rgba(23, 38, 45, 0.28);
  pointer-events: none;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: center;
  gap: clamp(52px, 7vw, 104px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.editorial-kicker {
  margin-bottom: 28px;
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.editorial-kicker span + span {
  padding-left: 22px;
  border-left: 1px solid rgba(23, 37, 53, 0.22);
}

.eyebrow {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border: 1px solid rgba(23, 37, 53, 0.26);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 24px;
  color: var(--navy-dark);
  font-size: clamp(78px, 10.2vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-name-row {
  display: block;
}

.mobile-profile-card {
  display: none;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.2;
}

.meta {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.meta span {
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent !important;
  padding: 6px 2px 4px;
}

.meta span:nth-child(1) {
  background: var(--navy-soft);
  color: var(--navy-dark);
}

.meta span:nth-child(2) {
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.meta span:nth-child(3) {
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.hero-line {
  max-width: 610px;
  margin-bottom: 30px;
  color: #334353;
  font-size: clamp(20px, 2.35vw, 29px);
  line-height: 1.48;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.primary-action,
.secondary-action,
.copy-btn,
.image-upload {
  min-height: 46px;
  border-radius: 6px;
  padding: 12px 19px;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.primary-action {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--surface);
  box-shadow: 0 12px 28px rgba(35, 71, 102, 0.2);
}

.secondary-action,
.copy-btn,
.image-upload {
  background: transparent;
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.copy-btn:hover,
.image-upload:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.secondary-action:hover,
.image-upload:hover {
  border-color: rgba(200, 111, 82, 0.42);
  color: var(--terracotta-dark);
}

.copy-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-notes {
  max-width: 610px;
  margin-top: 38px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(23, 37, 53, 0.24);
}

.hero-notes span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero-notes b {
  display: block;
  margin-bottom: 2px;
  color: var(--terracotta);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.photo-panel {
  position: relative;
  justify-self: end;
  width: min(100%, 410px);
  padding-bottom: 34px;
  transform: rotate(0.6deg);
}

.photo-panel::before {
  content: "";
  position: absolute;
  inset: 18px -18px 50px 18px;
  z-index: -1;
  border-radius: 2px;
  background: var(--terracotta);
  opacity: 0.76;
  transform: rotate(2.2deg);
}

.photo-panel::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 58px;
  z-index: -2;
  width: 88%;
  height: 88%;
  border-radius: 2px;
  background: var(--sage);
  opacity: 0.5;
  transform: translate(-18px, 18px) rotate(-2.1deg);
}

.photo-sticker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(23, 37, 53, 0.32);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 14px;
  box-shadow: 4px 4px 0 rgba(23, 37, 53, 0.09);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-1.2deg);
}

.sticker-year {
  top: 26px;
  left: -44px;
  color: var(--navy);
}

.sticker-status {
  right: -28px;
  bottom: 30px;
}

.image-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  user-select: none;
}

.image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.view-mode .edit-control {
  display: none !important;
}

.image-upload span::before {
  content: "＋";
  margin-right: 6px;
  color: var(--terracotta);
  font-weight: 950;
}

.inline-upload {
  min-height: 38px;
  margin-top: 18px;
  padding: 9px 13px;
  font-size: 13px;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 9px solid var(--surface);
  border-bottom-width: 34px;
  border-radius: 2px;
  background: var(--navy-soft);
  box-shadow: 0 28px 70px rgba(23, 38, 45, 0.16);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 0;
  pointer-events: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  color: var(--ink);
}

.avatar-initial {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 2px;
  background: var(--surface);
  color: var(--navy);
  font-size: 58px;
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--terracotta-soft);
}

.avatar-note {
  color: var(--muted);
  font-size: 14px;
}

.photo-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -2px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.photo-caption span {
  flex: 0 0 auto;
  color: var(--navy);
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

.section-panel {
  margin: 0;
  padding: 76px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(23, 37, 53, 0.22);
  border-radius: 0;
  background: rgba(242, 239, 230, 0.6);
  box-shadow:
    50vw 0 0 rgba(242, 239, 230, 0.6),
    -50vw 0 0 rgba(242, 239, 230, 0.6);
}

.section-panel::after {
  content: attr(data-section);
  position: absolute;
  z-index: 0;
  width: auto;
  height: auto;
  right: 0;
  top: 20px;
  border: 0;
  border-radius: 0;
  color: rgba(23, 37, 53, 0.2);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  pointer-events: none;
}

.section-panel > * {
  position: relative;
  z-index: 1;
}

.about-section,
.interest-section,
.doing-section,
.gallery-section,
.reading-section,
.achievement-section {
  background: rgba(242, 239, 230, 0.6);
}

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

.inline-heading,
.wide-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 0.92fr);
  align-items: end;
  justify-content: space-between;
  gap: 56px;
}

.compact-heading {
  max-width: 520px;
}

.section-subtitle {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.75;
}

.about-grid,
.doing-grid,
.achievement-grid,
.goal-grid {
  display: grid;
  gap: 16px;
}

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

.info-card,
.doing-card,
.social-card,
.book-card,
.achievement-card,
.goal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 38, 45, 0.11);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 24px rgba(23, 38, 45, 0.035);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.info-card:hover,
.doing-card:hover,
.social-card:hover,
.book-card:hover,
.achievement-card:hover,
.goal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(35, 71, 102, 0.22);
  box-shadow: 0 16px 34px rgba(23, 38, 45, 0.075);
}

.info-card::before,
.doing-card::before,
.achievement-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--card-accent, var(--navy));
}

.info-card {
  --card-accent: var(--navy);
  min-height: 164px;
  padding: 24px 22px 22px 27px;
}

.info-card:nth-child(2) {
  --card-accent: var(--terracotta);
}

.info-card:nth-child(3) {
  --card-accent: var(--sage);
}

.info-card:nth-child(4) {
  --card-accent: var(--gold);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(23, 37, 53, 0.28);
  border-radius: 3px;
  background: transparent;
  font-size: 20px;
  box-shadow: 3px 3px 0 var(--icon-bg, var(--navy-soft));
}

.info-card:nth-child(2) .card-icon {
  --icon-bg: var(--terracotta-soft);
}

.info-card:nth-child(3) .card-icon {
  --icon-bg: var(--sage-soft);
}

.info-card:nth-child(4) .card-icon {
  --icon-bg: var(--gold-soft);
}

.info-label {
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-value {
  font-size: 23px;
  font-weight: 950;
  line-height: 1.2;
}

.interest-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.interest-card {
  min-width: 0;
}

.interest-pill {
  --pill-color: var(--navy-soft);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  border: 1px solid rgba(23, 37, 53, 0.1);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.91);
  padding: 10px 18px 10px 10px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 var(--pill-color);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.interest-card:nth-child(2) .interest-pill {
  --pill-color: var(--terracotta-soft);
}

.interest-card:nth-child(3) .interest-pill {
  --pill-color: var(--sage-soft);
}

.interest-card:nth-child(4) .interest-pill {
  --pill-color: var(--gold-soft);
}

.interest-card:nth-child(5) .interest-pill {
  --pill-color: #e7e0ef;
}

.interest-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.interest-card.is-open .interest-pill {
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: inset 0 -4px 0 var(--pill-color), var(--shadow-sm);
  transform: translateY(-1px);
}

.interest-toggle-mark {
  margin-left: auto;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transition: transform 220ms ease, color 180ms ease;
}

.interest-card.is-open .interest-toggle-mark {
  color: var(--terracotta);
  transform: rotate(90deg);
}

.interest-expand {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms ease, opacity 220ms ease;
}

.interest-expand.is-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
}

.interest-detail {
  min-height: 0;
  overflow: hidden;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(23, 37, 53, 0.16);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.94);
  animation: interest-detail-in 320ms ease both;
}

.interest-detail-copy {
  display: grid;
  gap: 5px;
}

.interest-detail-label {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interest-detail-copy strong {
  font-size: 15px;
  line-height: 1.4;
}

.interest-work-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  border-bottom: 1px solid currentColor;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.interest-work-link:hover {
  color: var(--terracotta);
}

.interest-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.interest-photo-item {
  position: relative;
  min-width: 0;
}

.interest-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 37, 53, 0.12);
  border-radius: 4px;
  background: var(--surface);
  cursor: zoom-in;
}

.interest-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 280ms ease;
}

.interest-photo:hover img {
  transform: scale(1.035);
}

.interest-photo-carousel {
  margin-top: 14px;
}

.interest-photo-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.interest-photo-stage .interest-photo {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: inherit;
}

.interest-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.34);
  border-radius: 50%;
  background: rgba(19, 27, 20, 0.78);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.interest-photo-nav:hover {
  background: rgba(104, 132, 84, 0.94);
  transform: translateY(-50%) scale(1.05);
}

.interest-photo-prev {
  left: 12px;
}

.interest-photo-next {
  right: 12px;
}

.interest-photo-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 22, 16, 0.76);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.interest-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.interest-photo-thumbs button {
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  opacity: 0.56;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.interest-photo-thumbs button:hover,
.interest-photo-thumbs button.active {
  border-color: rgba(216, 235, 177, 0.8);
  opacity: 1;
  transform: translateY(-1px);
}

.interest-photo-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.interest-photo-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(23, 37, 53, 0.18);
  border-radius: 5px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 3px 12px rgba(23, 37, 53, 0.12);
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.interest-photo-delete:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-1px);
}

.interest-photo-empty {
  grid-column: 1 / -1;
  padding: 16px 4px 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@keyframes interest-detail-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.pill-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 37, 53, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.46);
  font-size: 19px;
}

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

.doing-card {
  --card-accent: var(--navy);
  --tag-bg: var(--navy-soft);
  --tag-color: var(--navy-dark);
  grid-column: span 2;
  min-height: 310px;
  padding: 27px 26px 25px 31px;
  display: flex;
  flex-direction: column;
}

.doing-card.featured {
  grid-column: span 3;
  min-height: 330px;
  background: rgba(255, 253, 248, 0.95);
}

.doing-card.tone-terracotta {
  --card-accent: var(--terracotta);
  --tag-bg: var(--terracotta-soft);
  --tag-color: var(--terracotta-dark);
}

.doing-card.tone-sage {
  --card-accent: var(--sage);
  --tag-bg: var(--sage-soft);
  --tag-color: var(--sage-dark);
}

.doing-card.tone-gold {
  --card-accent: var(--gold);
  --tag-bg: var(--gold-soft);
  --tag-color: var(--gold-dark);
}

.doing-card.tone-navy {
  --card-accent: var(--navy);
  --tag-bg: var(--navy-soft);
  --tag-color: var(--navy-dark);
}

.doing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.doing-card .card-icon {
  background: var(--tag-bg);
}

.doing-index {
  color: var(--card-accent);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.doing-title {
  margin-top: 22px;
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -0.03em;
}

.doing-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tag-list span,
.book-tag {
  border-radius: 999px;
  background: var(--tag-bg, var(--sage-soft));
  color: var(--tag-color, var(--sage-dark));
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 850;
}

.social-section {
  margin: 0;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.67fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: visible;
  border-top: 1px solid rgba(23, 37, 53, 0.22);
  border-radius: 0;
  background: #17384a;
  box-shadow:
    50vw 0 0 #17384a,
    -50vw 0 0 #17384a;
}

.social-section::before {
  content: attr(data-section);
  position: absolute;
  width: auto;
  height: auto;
  left: auto;
  right: 0;
  top: 20px;
  bottom: auto;
  border: 0;
  border-radius: 0;
  color: rgba(255, 252, 247, 0.38);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  pointer-events: none;
}

.social-intro {
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--surface);
  padding: 38px 42px 38px 0;
}

.social-intro .eyebrow,
.social-intro p {
  color: rgba(255, 252, 247, 0.8);
}

.social-intro .eyebrow > span {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.social-intro h2 {
  margin-bottom: 22px;
  color: var(--surface);
}

.social-intro p {
  font-size: 17px;
  line-height: 1.86;
}

.social-note {
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 252, 247, 0.72);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
}

.social-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.social-card {
  min-height: 164px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

.social-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 4px;
  border-radius: 0;
  background: var(--social-color, var(--navy-soft));
  opacity: 1;
}

.social-card:nth-child(2) {
  --social-color: var(--terracotta-soft);
}

.social-card:nth-child(3) {
  --social-color: var(--sage-soft);
}

.social-card:nth-child(4) {
  --social-color: var(--gold-soft);
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.platform span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 37, 53, 0.22);
  border-radius: 2px;
  background: transparent;
  box-shadow: 2px 2px 0 var(--social-color, var(--navy-soft));
}

.account {
  position: relative;
  z-index: 1;
  margin: 12px 0 16px;
  font-size: clamp(23px, 2.8vw, 34px);
  font-weight: 950;
  letter-spacing: -0.025em;
  word-break: break-word;
}

.social-card .copy-btn {
  min-height: 40px;
  border-color: rgba(23, 37, 53, 0.2);
  background: transparent;
  padding: 9px 16px;
  font-size: 13px;
}

.social-card .copy-btn.copied {
  background: var(--sage);
  color: #fff;
}

.reading-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 44px;
  align-items: center;
}

.reading-block .section-heading {
  margin-bottom: 0;
}

.book-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: rgba(255, 253, 248, 0.94);
}

.book-cover {
  position: relative;
  width: 180px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: end;
  border: 7px solid var(--surface);
  border-radius: 2px;
  background: var(--sage-soft);
  box-shadow: 0 14px 30px rgba(23, 37, 53, 0.13);
  padding: 16px;
  color: inherit;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  cursor: zoom-in;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: rgba(23, 37, 53, 0.16);
  pointer-events: none;
}

.book-cover.has-image {
  padding: 0;
  background: var(--surface);
  align-items: stretch;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-title {
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.book-status {
  display: inline-block;
  margin: 15px 0 5px;
  border-bottom: 2px solid var(--terracotta);
  border-radius: 0;
  background: transparent;
  color: var(--terracotta-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.gallery-actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.gallery-viewer {
  border: 1px solid rgba(23, 37, 53, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.93);
  padding: 12px;
  box-shadow: 0 18px 42px rgba(23, 38, 45, 0.07);
}

.gallery-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
}

.gallery-empty-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--navy-soft);
  font-size: 34px;
}

.gallery-empty h3 {
  margin: 8px 0 0;
  color: var(--ink);
}

.gallery-empty p {
  margin: 0;
  line-height: 1.7;
}

.gallery-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 9px;
  background: #17384a;
}

.gallery-stage::before,
.gallery-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--surface) 4px, transparent 4.5px);
  background-size: 34px 28px;
  opacity: 0.86;
}

.gallery-stage::before {
  top: 0;
}

.gallery-stage::after {
  bottom: 0;
}

.gallery-main {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  padding: 34px 28px;
  background: transparent;
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 452px;
  object-fit: contain;
  display: block;
  border-radius: 1px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.9);
  color: var(--navy-dark);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-counter {
  position: absolute;
  right: 18px;
  bottom: 38px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--navy-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.gallery-delete {
  position: absolute;
  left: 18px;
  bottom: 38px;
  z-index: 3;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(200, 111, 82, 0.92);
  color: #fff;
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding: 13px 2px 2px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 3px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(23, 37, 53, 0.08);
  border-radius: 1px;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}

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

.achievement-card {
  --card-accent: var(--navy);
  grid-column: span 2;
  min-height: 260px;
  padding: 25px 24px 24px 29px;
  display: flex;
  flex-direction: column;
}

.achievement-card:nth-child(1),
.achievement-card:nth-child(2),
.achievement-card:nth-child(3),
.achievement-card:nth-child(4) {
  grid-column: span 3;
}

.achievement-card:nth-child(2) {
  --card-accent: var(--terracotta);
}

.achievement-card:nth-child(3) {
  --card-accent: var(--sage);
}

.achievement-card:nth-child(4) {
  --card-accent: var(--gold);
}

.achievement-card:nth-child(5) {
  --card-accent: var(--terracotta);
}

.achievement-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.achievement-top > span:first-child {
  color: var(--card-accent);
  font-family: Georgia, serif;
  font-size: 15px;
}

.achievement-title {
  margin-top: 22px;
  font-size: clamp(23px, 2.35vw, 30px);
  line-height: 1.3;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.achievement-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: 16px;
  border-bottom: 1px solid currentColor;
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
}

.achievement-link:hover {
  color: var(--terracotta);
}

.achievement-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.proof-stage {
  position: relative;
  margin-top: 20px;
}

.proof-button {
  width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.proof-frame {
  height: clamp(210px, 21vw, 320px);
  min-height: 126px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(23, 37, 53, 0.22);
  border-radius: 3px;
  background: rgba(255, 252, 247, 0.7);
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.proof-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  display: block;
  background: rgba(255, 252, 247, 0.9);
}

.proof-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(23, 37, 53, 0.66);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.proof-nav:hover {
  background: rgba(23, 37, 53, 0.84);
  transform: translateY(-50%) scale(1.05);
}

.proof-prev {
  left: 8px;
}

.proof-next {
  right: 8px;
}

.proof-counter {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border-radius: 999px;
  background: rgba(23, 37, 53, 0.72);
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 850;
}

.proof-reset {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(200, 111, 82, 0.84);
  color: #fff;
  padding: 5px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.goals-section {
  margin: 0;
  padding: 80px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: #17384a;
  color: var(--surface);
  box-shadow:
    50vw 0 0 #17384a,
    -50vw 0 0 #17384a;
}

.goals-section::after {
  content: attr(data-section);
  width: auto;
  height: auto;
  right: 0;
  top: 20px;
  border: 0;
  color: rgba(255, 252, 247, 0.38);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.goals-section .eyebrow {
  color: var(--gold-soft);
}

.goals-section .eyebrow > span {
  background: rgba(255, 255, 255, 0.1);
}

.goals-section h2 {
  color: var(--surface);
}

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

.goal-card {
  min-height: 250px;
  padding: 30px;
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: var(--navy);
  color: var(--surface);
  box-shadow: none;
}

.goal-card:nth-child(2) {
  background: var(--terracotta);
}

.goal-card:nth-child(3) {
  background: var(--sage-dark);
}

.goal-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 5px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
}

.goal-number {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 96px;
  color: #fffaf2;
  font-size: clamp(58px, 7.5vw, 92px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.goal-label {
  position: relative;
  z-index: 1;
  margin: 24px 0 9px;
  color: rgba(255, 252, 247, 0.96);
  font-size: 20px;
  font-weight: 900;
}

.goal-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 252, 247, 0.73);
  line-height: 1.7;
}

.footer {
  padding: 82px 0 54px;
}

.footer-copy {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #334353;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.82;
  font-weight: 750;
}

.footer-copy p:first-child::before {
  content: "👋";
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  border-radius: 17px;
  background: var(--terracotta-soft);
  font-size: 24px;
  line-height: 52px;
  box-shadow: var(--shadow-sm);
}

.footer-divider {
  width: min(540px, 82%);
  height: 1px;
  margin: 58px auto 32px;
  background: linear-gradient(90deg, transparent, rgba(35, 71, 102, 0.38), transparent);
}

.closing-line {
  margin: 0;
  text-align: center;
  color: var(--navy-dark);
  font-family: var(--font-serif);
  font-size: clamp(25px, 4vw, 42px);
  letter-spacing: 0.09em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translate(-50%, 18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(23, 54, 78, 0.96);
  color: var(--surface);
  padding: 12px 17px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 16px 40px rgba(23, 37, 53, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 28, 40, 0.86);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(980px, 92vw);
  max-height: 84vh;
  border: 8px solid rgba(255, 252, 247, 0.92);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.lightbox-nav,
.lightbox-counter {
  display: none;
}

.lightbox.has-navigation .lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 252, 247, 0.42);
  border-radius: 50%;
  background: rgba(23, 37, 53, 0.72);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.lightbox.has-navigation .lightbox-nav:hover {
  background: var(--terracotta);
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox.has-navigation .lightbox-counter {
  position: absolute;
  bottom: 24px;
  display: block;
  padding: 6px 10px;
  border: 1px solid rgba(255, 252, 247, 0.32);
  border-radius: 999px;
  background: rgba(23, 37, 53, 0.72);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.section-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@keyframes count-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.goal-number.animate {
  animation: count-pop 520ms ease both;
}

@media (max-width: 1050px) {
  .page-shell {
    width: min(100% - 32px, 1200px);
  }

  .hero {
    padding-inline: 24px;
  }

  .hero-grid {
    gap: 50px;
  }

  .section-panel {
    padding-inline: 0;
  }

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

  .doing-card,
  .doing-card.featured {
    grid-column: span 1;
  }

  .doing-card:last-child {
    grid-column: span 2;
    min-height: 280px;
  }

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

  .achievement-card,
  .achievement-card:nth-child(1),
  .achievement-card:nth-child(2),
  .achievement-card:nth-child(3),
  .achievement-card:nth-child(4) {
    grid-column: span 1;
  }

  .achievement-card:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 880px) {
  .nav {
    top: 8px;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 80px 24px 76px;
  }

  .hero-grid,
  .inline-heading,
  .wide-heading,
  .social-section,
  .reading-block {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 62px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .photo-panel {
    justify-self: center;
    width: min(64vw, 410px);
  }

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

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

  .social-section {
    padding: 68px 0;
  }

  .social-intro {
    padding: 14px 0 34px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .reading-block {
    gap: 30px;
  }

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

  .goal-card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .sylva-frame {
    inset: -1%;
    width: 102%;
    height: 102%;
    opacity: 0.56;
    transform: scale(1.01);
  }

  .sylva-veil {
    background:
      linear-gradient(180deg, rgba(244, 241, 232, 0.68) 0%, rgba(242, 239, 230, 0.75) 48%, rgba(242, 239, 230, 0.82) 100%),
      radial-gradient(circle at 22% 14%, rgba(255, 253, 248, 0.34), transparent 46%);
  }

  html {
    scroll-padding-top: 82px;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    top: 0;
    min-height: 56px;
    margin-top: 0;
    padding: 6px 7px;
    overflow: hidden;
    border-top: 0;
    border-radius: 0 0 10px 10px;
  }

  .brand {
    gap: 7px;
    padding-right: 2px;
    font-size: 13px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .issue-mark {
    display: none;
  }

  .nav-links {
    gap: 0;
    font-size: 12px;
  }

  .nav-links a {
    min-height: 38px;
    padding: 7px 8px;
  }

  .hero {
    padding: 66px 10px 68px;
    overflow: hidden;
  }

  .hero::before {
    width: 430px;
    right: -210px;
    top: 72%;
    opacity: 0.75;
  }

  .hero::after {
    left: 10px;
    bottom: 18px;
  }

  h1 {
    min-width: 0;
    margin: 0;
    font-size: clamp(56px, 17.5vw, 74px);
    line-height: 0.92;
  }

  .hero-name-row {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    align-items: center;
    gap: 10px;
  }

  .mobile-profile-card {
    position: relative;
    width: 94px;
    aspect-ratio: 0.88;
    display: block;
    overflow: hidden;
    border: 5px solid rgba(250, 248, 238, 0.96);
    border-bottom-width: 12px;
    border-radius: 20px 20px 28px 20px;
    background: #e9eadf;
    box-shadow:
      8px 9px 0 rgba(116, 143, 92, 0.34),
      0 18px 38px rgba(4, 8, 5, 0.3);
  }

  .mobile-profile-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .mobile-profile-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #30402f;
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 800;
  }

  h2 {
    font-size: 37px;
  }

  .hero-line {
    max-width: 340px;
    font-size: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    text-align: center;
  }

  .hero-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
  }

  .hero-notes span:last-child {
    grid-column: span 2;
  }

  .photo-panel {
    display: none;
  }

  .photo-panel::before {
    inset: 8px -7px -7px 8px;
  }

  .photo-frame {
    aspect-ratio: 1 / 1.14;
    border-width: 5px;
    border-bottom-width: 13px;
    border-radius: 20px 20px 28px 20px;
  }

  .photo-frame::before,
  .photo-sticker,
  .photo-caption,
  .photo-panel > .image-upload {
    display: none;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-line,
  .hero-actions,
  .hero-notes {
    width: calc(100vw - 40px);
  }

  .section {
    padding: 46px 0;
  }

  .section-panel {
    margin: 0;
    padding: 56px 0;
    border-radius: 0;
  }

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

  .inline-heading,
  .wide-heading {
    gap: 18px;
  }

  .about-grid,
  .doing-grid,
  .achievement-grid,
  .goal-grid,
  .social-list {
    grid-template-columns: 1fr;
  }

  .doing-card,
  .doing-card.featured,
  .doing-card:last-child,
  .achievement-card,
  .achievement-card:nth-child(1),
  .achievement-card:nth-child(2),
  .achievement-card:nth-child(3),
  .achievement-card:nth-child(4),
  .achievement-card:last-child {
    grid-column: auto;
  }

  .doing-card,
  .doing-card.featured,
  .doing-card:last-child,
  .achievement-card {
    min-height: auto;
  }

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

  .interest-pill {
    min-width: 0;
    padding-right: 12px;
  }

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

  .interest-photo-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .social-section {
    margin: 0;
    padding: 56px 0;
    border-radius: 0;
  }

  .social-intro {
    padding: 20px 0 34px;
    border-radius: 0;
  }

  .social-intro h2,
  .goals-section h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .social-intro p {
    font-size: 16px;
  }

  .social-card {
    min-height: 154px;
    padding-inline: 23px;
  }

  .copy-btn,
  .image-upload {
    width: 100%;
  }

  .book-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .book-cover {
    width: min(180px, 58vw);
  }

  .gallery-viewer {
    padding: 8px;
    border-radius: 7px;
  }

  .gallery-stage,
  .gallery-main {
    min-height: 330px;
  }

  .gallery-main {
    padding: 32px 12px;
  }

  .gallery-main img {
    height: 266px;
  }

  .gallery-nav {
    width: 42px;
    height: 42px;
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .gallery-thumbs {
    grid-auto-columns: 72px;
  }

  .gallery-counter {
    right: 10px;
    bottom: 34px;
  }

  .gallery-delete {
    left: 10px;
    bottom: 34px;
  }

  .proof-frame {
    height: clamp(210px, 74vw, 290px);
  }

  .footer {
    padding-top: 64px;
  }
}

@media (max-width: 390px) {
  .nav-links a {
    padding-inline: 6px;
  }

  .brand > span:last-child {
    display: none;
  }

  .nav-links {
    margin-left: auto;
  }

  .interest-row {
    grid-template-columns: 1fr;
  }

  .interest-photo-grid {
    grid-template-columns: 1fr;
  }

  .achievement-grid,
  .doing-grid,
  .about-grid,
  .goal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .achievement-card,
  .achievement-card:nth-child(1),
  .achievement-card:nth-child(2),
  .achievement-card:nth-child(3),
  .achievement-card:nth-child(4) {
    grid-column: 1;
  }

  .lightbox.has-navigation .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sylva-background {
    transition: none;
  }

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

/* ──────────────────────────────────────────────────────────────────────
   Sylva immersive layer
   ─────────────────────────────────────────────────────────────────── */

:root {
  --forest-bg: #343a31;
  --forest-deep: #20271f;
  --forest-panel: rgba(31, 39, 31, 0.72);
  --forest-panel-strong: rgba(25, 33, 26, 0.88);
  --forest-line: rgba(235, 239, 222, 0.18);
  --forest-ink: #f5f3ea;
  --forest-muted: rgba(235, 239, 222, 0.68);
  --portal: #f4f1e8;
  --portal-ink: #293128;
  --moss: #a8c27d;
  --moss-bright: #dcebb6;
  --scene-drift: 0px;
}

html {
  background: var(--forest-bg);
  overflow-x: clip;
}

body {
  color: var(--forest-ink);
  background: var(--forest-bg);
}

body::before {
  opacity: 0.055;
  mix-blend-mode: soft-light;
}

.sylva-background {
  background: #42483e;
}

.sylva-frame {
  inset: -3%;
  width: 106%;
  height: 106%;
  opacity: 0.96;
  transform: translate3d(0, var(--scene-drift), 0) scale(1.025);
  transition: transform 500ms ease-out;
}

.sylva-veil {
  background:
    radial-gradient(circle at 70% 20%, rgba(187, 208, 154, 0.07), transparent 36%),
    linear-gradient(180deg, rgba(18, 23, 18, 0.16), rgba(22, 28, 22, 0.32) 48%, rgba(15, 20, 16, 0.5));
}

.page-shell {
  color: var(--forest-ink);
}

body.sylva-ready .section-reveal,
body.sylva-fallback .section-reveal {
  opacity: 1;
  transform: none;
}

.nav {
  border-color: rgba(238, 241, 225, 0.14);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(24, 31, 25, 0.88);
  color: var(--forest-ink);
  box-shadow:
    0 18px 48px rgba(6, 10, 7, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark {
  background: var(--portal);
  color: var(--forest-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.issue-mark,
.nav-links {
  color: var(--forest-muted);
}

.issue-mark {
  border-color: var(--forest-line);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(245, 243, 234, 0.1);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--moss-bright);
}

.hero {
  border-color: var(--forest-line);
}

.hero::before {
  border-color: rgba(206, 225, 175, 0.18);
  background: rgba(126, 151, 105, 0.06);
}

.hero::after {
  background: rgba(235, 239, 222, 0.22);
}

.editorial-kicker,
.photo-caption,
.hero-notes span {
  color: var(--forest-muted);
}

.eyebrow {
  color: var(--moss-bright);
}

.eyebrow > span {
  border-color: rgba(229, 236, 211, 0.3);
  background: rgba(28, 36, 28, 0.38);
}

h1,
h2,
h3,
.hero-line {
  color: var(--forest-ink);
}

h1 {
  text-shadow: 0 18px 48px rgba(8, 12, 8, 0.18);
}

.hero-line {
  color: rgba(245, 243, 234, 0.88);
}

.meta span {
  color: var(--moss-bright) !important;
  border-color: rgba(220, 235, 182, 0.7);
}

.hero-notes {
  border-color: var(--forest-line);
}

.hero-notes b {
  color: var(--moss-bright);
}

.primary-action,
.secondary-action,
.copy-btn,
.image-upload,
[data-liquid-control] {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  overflow: hidden;
  border-color: rgba(232, 238, 216, 0.22);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.25), transparent 34%),
    linear-gradient(145deg, rgba(241, 244, 228, 0.16), rgba(118, 142, 99, 0.1)),
    rgba(24, 32, 25, 0.74);
  color: var(--forest-ink);
  box-shadow:
    0 12px 32px rgba(5, 9, 6, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.13);
}

.primary-action {
  border-color: rgba(235, 241, 218, 0.48);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.36), transparent 33%),
    linear-gradient(135deg, #e9edda, #a9bd8b);
  color: #273126;
}

.primary-action:hover,
.secondary-action:hover,
.copy-btn:hover,
.image-upload:hover,
[data-liquid-control]:hover {
  border-color: rgba(226, 236, 202, 0.56);
  color: inherit;
  box-shadow:
    0 16px 42px rgba(5, 9, 6, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.photo-panel {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-panel::before {
  border-radius: 34px 28px 42px 30px;
  background: rgba(176, 202, 137, 0.3);
}

.photo-panel::after {
  border-radius: 40% 52% 44% 56%;
  background: rgba(79, 105, 70, 0.62);
}

.photo-frame {
  border-width: 9px;
  border-bottom-width: 34px;
  border-radius: 34px 34px 48px 34px;
  background: var(--portal);
  box-shadow:
    0 34px 78px rgba(7, 12, 8, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.photo-frame::before {
  border-radius: 25px 25px 38px 25px;
}

.photo-sticker {
  border-color: rgba(39, 49, 39, 0.22);
  border-radius: 999px;
  background: var(--portal);
  color: var(--portal-ink);
  box-shadow: 0 12px 34px rgba(5, 9, 6, 0.25);
}

.photo-caption span {
  color: var(--moss-bright);
}

.section,
.section-panel {
  color: var(--forest-ink);
}

.section-panel,
.about-section,
.interest-section,
.doing-section,
.gallery-section,
.reading-section,
.achievement-section {
  border-color: var(--forest-line);
  background: transparent;
  box-shadow: none;
}

.section-panel::after {
  color: rgba(229, 236, 211, 0.24);
}

.section-subtitle,
.doing-desc,
.goal-note {
  color: var(--forest-muted);
}

[data-sylva-card] {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

[data-sylva-card]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(223, 237, 192, 0.13), transparent 36%);
  opacity: 0.72;
  pointer-events: none;
}

[data-sylva-card] > * {
  position: relative;
  z-index: 1;
}

[data-sylva-card]:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px);
}

.info-card,
.doing-card,
.social-card,
.goal-card,
.interest-detail {
  border: 1px solid var(--forest-line);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(216, 232, 183, 0.1), transparent 35%),
    linear-gradient(145deg, rgba(54, 66, 53, 0.78), rgba(23, 31, 24, 0.72));
  color: var(--forest-ink);
  box-shadow:
    0 24px 60px rgba(4, 8, 5, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.08);
}

.info-card::before,
.doing-card::before,
.achievement-card::before,
.social-card::after,
.goal-card::after {
  display: none;
}

.about-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--forest-line);
  border-radius: 22px;
  background: rgba(226, 235, 207, 0.12);
}

.info-card {
  min-height: 152px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.info-card:nth-child(2),
.info-card:nth-child(4) {
  transform-origin: top;
}

.card-icon,
.pill-icon,
.platform span {
  border-color: rgba(225, 235, 207, 0.24);
  border-radius: 50%;
  background: rgba(220, 234, 192, 0.08);
  box-shadow: none;
}

.info-label,
.platform,
.achievement-top,
.achievement-type {
  color: var(--forest-muted);
}

.info-value,
.account {
  color: var(--forest-ink);
}

.interest-row {
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--forest-line);
  border-radius: 20px;
  background: rgba(22, 29, 23, 0.78);
  box-shadow: 0 20px 50px rgba(4, 8, 5, 0.24);
}

.interest-pill {
  min-height: 58px;
  border-color: transparent;
  border-radius: 14px;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.16), transparent 34%),
    rgba(239, 242, 225, 0.045);
  color: var(--forest-muted);
  box-shadow: none;
}

.interest-pill:hover,
.interest-card.is-open .interest-pill {
  border-color: rgba(234, 239, 218, 0.22);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.22), transparent 34%),
    var(--portal);
  color: var(--portal-ink);
  box-shadow: 0 10px 30px rgba(5, 9, 6, 0.2);
}

.interest-detail {
  border-radius: 18px;
}

.interest-work-link {
  color: var(--moss-bright);
}

.interest-photo {
  border-color: rgba(238, 242, 225, 0.2);
  border-radius: 14px;
  background: rgba(19, 26, 20, 0.8);
}

.doing-grid {
  gap: 18px;
}

.doing-card {
  border-radius: 32px 20px 32px 20px;
}

.doing-card.featured {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(216, 232, 183, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(58, 72, 57, 0.82), rgba(23, 31, 24, 0.78));
}

.doing-card:nth-child(2n) {
  border-radius: 20px 36px 22px 34px;
}

.doing-card:nth-child(3) {
  margin-top: 26px;
}

.doing-card:nth-child(5) {
  margin-top: -18px;
}

.doing-index {
  color: var(--moss-bright);
}

.tag-list span,
.book-tag {
  border: 1px solid rgba(226, 235, 205, 0.16);
  background: rgba(212, 229, 180, 0.08);
  color: rgba(238, 242, 224, 0.82);
}

.social-section,
.goals-section {
  border-color: var(--forest-line);
  background: rgba(18, 25, 19, 0.54);
  box-shadow:
    50vw 0 0 rgba(18, 25, 19, 0.54),
    -50vw 0 0 rgba(18, 25, 19, 0.54);
}

.social-intro {
  border-color: var(--forest-line);
}

.social-list {
  gap: 0;
  border: 1px solid var(--forest-line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(220, 233, 196, 0.09);
}

.social-card {
  min-height: 180px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(223, 237, 192, 0.12), transparent 36%),
    rgba(24, 32, 25, 0.72);
  box-shadow: inset 0 0 0 1px rgba(231, 238, 215, 0.1);
}

.social-card .copy-btn {
  border-color: rgba(232, 238, 216, 0.22);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.25), transparent 35%),
    rgba(220, 232, 199, 0.08);
  color: var(--forest-ink);
}

.book-card,
.achievement-card,
.gallery-viewer {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 34px 34px 48px 34px;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.9), transparent 34%),
    var(--portal);
  color: var(--portal-ink);
  box-shadow:
    0 36px 82px rgba(5, 9, 6, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.82);
}

.book-card::before,
.achievement-card::after,
.gallery-viewer::after {
  content: "";
  position: absolute;
  inset: auto -8% -22% auto;
  z-index: 0;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 48% 52% 42% 58%;
  background:
    radial-gradient(circle at 40% 38%, rgba(178, 205, 132, 0.36), transparent 42%),
    rgba(84, 111, 72, 0.18);
  filter: blur(1px);
  pointer-events: none;
}

.book-title,
.book-card .section-subtitle,
.achievement-title,
.achievement-link {
  color: var(--portal-ink);
}

.book-status {
  color: #526b45;
  border-color: #789261;
}

.book-cover {
  border-color: #fffdf7;
  border-radius: 25px 25px 35px 25px;
  box-shadow: 0 20px 50px rgba(18, 28, 18, 0.2);
}

.gallery-stage {
  border-radius: 27px 27px 38px 27px;
  background: #202820;
}

.gallery-stage::before,
.gallery-stage::after {
  display: none;
}

.gallery-main {
  padding: 22px;
}

.gallery-main img {
  border-radius: 20px 20px 30px 20px;
}

.gallery-nav,
.proof-nav {
  border-color: rgba(244, 241, 232, 0.34);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.38), transparent 34%),
    rgba(28, 37, 29, 0.78);
  color: var(--portal);
}

.gallery-counter,
.proof-counter {
  background: rgba(25, 33, 26, 0.82);
  color: var(--portal);
}

.achievement-card {
  border-radius: 30px 30px 44px 30px;
}

.achievement-card:nth-child(even) {
  border-radius: 30px 42px 30px 42px;
}

.achievement-top,
.achievement-type {
  color: rgba(41, 49, 40, 0.58);
}

.achievement-top > span:first-child {
  color: #617b50;
}

.proof-frame {
  border: 0;
  border-radius: 24px 24px 34px 24px;
  background: #e7e8dd;
}

.proof-frame img {
  border-radius: inherit;
  background: #e7e8dd;
}

.goal-grid {
  gap: 12px;
}

.goal-card,
.goal-card:nth-child(2),
.goal-card:nth-child(3) {
  min-height: 280px;
  border: 1px solid var(--forest-line);
  border-radius: 44px 22px 44px 22px;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(220, 238, 188, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(58, 72, 57, 0.7), rgba(22, 30, 23, 0.78));
  color: var(--forest-ink);
  box-shadow:
    0 28px 70px rgba(3, 7, 4, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.09);
}

.goal-card:nth-child(2) {
  border-radius: 22px 48px 24px 46px;
}

.goal-card:nth-child(3) {
  border-radius: 46px 24px 46px 26px;
}

.goal-number {
  color: var(--moss-bright);
  text-shadow: 0 16px 42px rgba(7, 12, 8, 0.32);
}

.goal-label {
  color: var(--forest-ink);
}

.footer-copy {
  color: rgba(241, 242, 231, 0.82);
}

.footer-copy p:first-child::before {
  background: rgba(215, 229, 187, 0.12);
  box-shadow: 0 18px 46px rgba(4, 8, 5, 0.24);
}

.footer-divider {
  background: linear-gradient(90deg, transparent, rgba(220, 234, 192, 0.42), transparent);
}

.closing-line {
  color: var(--forest-ink);
  text-shadow: 0 14px 36px rgba(3, 7, 4, 0.32);
}

.sylva-portal-media {
  clip-path: inset(0 100% 0 0 round 24px);
  opacity: 0.18;
  filter: saturate(0.72) contrast(0.9);
  transform: translateY(10px) scale(0.985);
  transition:
    clip-path 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 620ms ease,
    filter 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sylva-portal-media.is-revealed {
  clip-path: inset(0 0 0 0 round 24px);
  opacity: 1;
  filter: saturate(1) contrast(1);
  transform: translateY(0) scale(1);
}

@media (max-width: 880px) {
  .sylva-frame {
    opacity: 0.88;
  }

  .doing-card:nth-child(3),
  .doing-card:nth-child(5) {
    margin-top: 0;
  }

  [data-sylva-card] {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
    transform: none;
    will-change: auto;
  }

  [data-sylva-card]:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .sylva-frame {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.78;
    transform: translate3d(0, var(--scene-drift), 0);
  }

  .sylva-veil {
    background:
      linear-gradient(180deg, rgba(17, 23, 18, 0.25), rgba(16, 22, 17, 0.52)),
      radial-gradient(circle at 70% 15%, rgba(190, 213, 151, 0.08), transparent 42%);
  }

  .nav {
    background: rgba(20, 27, 21, 0.94);
  }

  .about-grid,
  .interest-row,
  .social-list {
    border-radius: 18px;
  }

  .info-card,
  .doing-card,
  .social-card,
  .goal-card,
  .goal-card:nth-child(2),
  .goal-card:nth-child(3) {
    border-radius: 24px;
  }

  .book-card,
  .achievement-card,
  .achievement-card:nth-child(even),
  .gallery-viewer {
    border-radius: 26px 26px 36px 26px;
  }

  .photo-frame {
    border-radius: 26px 26px 38px 26px;
  }

  .interest-row {
    padding: 6px;
    background: rgba(18, 25, 19, 0.84);
  }

  .interest-pill {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-sylva-card],
  [data-sylva-card]:hover,
  .sylva-portal-media,
  .sylva-portal-media.is-revealed,
  .sylva-frame {
    transform: none !important;
  }

  .sylva-portal-media {
    clip-path: none;
    opacity: 1;
    filter: none;
  }
}
