.profile-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(36px, 5vw, 68px);
  row-gap: 26px;
  padding-block: 46px 52px;
}
.profile-hero h1 {
  max-width: 650px;
  margin-block: 18px 20px;
  font-size: clamp(46px, 4.2vw, 54px);
  letter-spacing: -1.5px;
  line-height: 1.05;
}
.profile-hero .intro {
  max-width: 570px;
  font-size: 14px;
  line-height: 1.75;
}
.profile-hero .quiet-link { margin-top: 14px; }

.gallery-feature {
  position: relative;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 5px 42px 5px 5px;
  background:
    radial-gradient(circle at 94% 6%, #eed2df 0 7%, transparent 29%),
    linear-gradient(145deg, #f2e5e8, #ece4f1);
  box-shadow: 7px 8px 0 #e4d8dd44;
}
.gallery-feature::after {
  content: "✧";
  position: absolute;
  top: 17px;
  right: 22px;
  color: var(--rose);
  font-size: 22px;
  line-height: 1;
}
.gallery-feature h2 {
  margin: 10px 0 5px;
  font-size: 31px;
  line-height: 1.05;
}
.gallery-feature-intro {
  max-width: 500px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  text-wrap: balance;
}
.gallery-feature-intro em { color: inherit; }
.gallery-feature-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.gallery-feature-links a {
  min-width: 0;
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 10px;
  border: 1px solid #d8c9d2;
  border-radius: 4px;
  background: #fdf9f5a8;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  transition: border-color 160ms ease, transform 160ms ease;
}
.gallery-feature-links a > span:first-child { min-width: 0; }
.gallery-feature-links a:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
}
.gallery-feature-links strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.05;
}
.gallery-feature-links a > span:last-child {
  flex-shrink: 0;
  color: var(--rose);
  font-size: 13px;
  line-height: 1;
}
.gallery-feature-links .gallery-feature-main {
  grid-column: 1 / -1;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
  font-size: 11px;
}
.gallery-feature-links .gallery-feature-main:hover { background: #854960; }
.gallery-feature-links .gallery-feature-main > span:last-child { color: inherit; }

.profile-card {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 420px);
  max-width: 420px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 150px 150px 6px 6px;
  overflow: hidden;
  background: #fdf9f5;
  box-shadow: 9px 12px 0 #e4d8dd44;
}
.profile-cover {
  position: relative;
  height: 174px;
  overflow: hidden;
  background: var(--purple);
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
}
.profile-cover > span {
  position: absolute;
  top: 27px;
  right: 50px;
  color: #fff4df;
  font-size: 42px;
}
.profile-body { padding: 0 25px 24px; text-align: center; }
.profile-monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px auto 14px;
  border: 5px solid #fdf9f5;
  border-radius: 50%;
  background: var(--pink);
  color: var(--rose);
  font: italic 36px var(--serif);
}
.profile-body .eyebrow {
  justify-content: center;
  font-size: 8px;
  letter-spacing: 2px;
}
.profile-body h2 {
  margin: 9px 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.profile-tagline { color: var(--muted); font-size: 11px; }
.profile-interests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 17px auto;
  padding: 0;
  list-style: none;
}
.profile-interests li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 9px;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--rose);
  font-size: 10px;
}
.profile-links a {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.profile-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

.about-section {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
  padding-block: 62px 50px;
}
.projects-section {
  padding: 65px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin-top: 18px;
}
.section-heading > p {
  font-size: 12px;
  color: var(--muted);
  max-width: 290px;
  padding-bottom: 4px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 32px 25px 24px;
  background: #f1e8e7;
}
.project-card:nth-child(2) {
  background: #ede7f0;
}
.project-card:nth-child(3) {
  background: #eeede5;
}
.project-symbol {
  color: var(--rose);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 26px;
}
.project-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  min-height: 28px;
}
.project-card h3 {
  font-size: 34px;
  margin: 16px 0 10px;
  line-height: 1.1;
}
.project-role {
  font-size: 11px;
  color: var(--rose);
}
.project-description {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 18px 0 26px;
}
.project-card .text-link {
  margin-top: auto;
  align-self: start;
}
.project-source {
  font-size: 9px;
  color: var(--muted);
  margin-top: 14px;
}
.about-page footer { padding-bottom: 80px; }

html[data-theme="celestial"] .profile-card {
  border-color: #74576f;
  background: #2c2039;
  box-shadow: 0 18px 60px #150c283d, 8px 10px 0 #a174a018;
}
html[data-theme="celestial"] .gallery-feature {
  border-color: #76566f;
  background:
    radial-gradient(circle at 94% 6%, #7a45645e 0 7%, transparent 29%),
    linear-gradient(145deg, #32213e, #29223b);
  box-shadow: 0 18px 60px #150c283d, 7px 8px 0 #a174a018;
}
html[data-theme="celestial"] .gallery-feature-links a {
  border-color: #765b76;
  background: #21172f8f;
}
html[data-theme="celestial"] .gallery-feature-links a:hover { border-color: #d3aacb; }
html[data-theme="celestial"] .gallery-feature-links .gallery-feature-main {
  border-color: #f3d5e3;
  background: #e2aec6;
  color: #301d35;
}
html[data-theme="celestial"] .gallery-feature-links .gallery-feature-main:hover { background: #f0c4d8; }
html[data-theme="celestial"] .profile-cover img { filter: brightness(0.8) saturate(0.75); }
html[data-theme="celestial"] .profile-monogram { border-color: #2c2039; }
html[data-theme="celestial"] .project-card {
  background: radial-gradient(ellipse at top right, #66405766, transparent 80%), #2d2037;
}
html[data-theme="celestial"] .project-card:nth-child(2) {
  background: radial-gradient(ellipse at top right, #63507d66, transparent 80%), #292237;
}
html[data-theme="celestial"] .project-card:nth-child(3) { background: #2c293e; }

@media (max-width: 1100px) {
  .gallery-feature-links { grid-template-columns: 1fr; }
}

@media (max-width: 950px) {
  .profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    column-gap: 30px;
  }
  .profile-hero h1 { font-size: 46px; }
  .gallery-feature-links { grid-template-columns: 1fr; }
  .gallery-feature-links a { min-height: 48px; }
  .project-grid { gap: 14px; }
  .project-card { padding: 26px 18px 20px; }
  .project-card h3 { font-size: 29px; }
}

@media (max-width: 800px) {
  .profile-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 24px;
    padding-block: 36px 44px;
  }
  .profile-card {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 420px);
    margin: 4px auto 0;
    justify-self: center;
  }
  .gallery-feature { width: 100%; max-width: 600px; }
  .gallery-feature-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-feature-links a { min-height: 64px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
}

@media (max-width: 640px) {
  .profile-hero { padding-block: 30px 38px; row-gap: 20px; }
  .profile-hero h1 {
    margin-block: 15px 17px;
    font-size: clamp(44px, 12vw, 50px);
    letter-spacing: -1.3px;
  }
  .profile-hero .intro { line-height: 1.65; }
  .gallery-feature {
    padding: 18px 17px;
    border-radius: 5px 36px 5px 5px;
  }
  .gallery-feature::after { top: 15px; right: 17px; font-size: 20px; }
  .gallery-feature h2 { max-width: 245px; font-size: 29px; }
  .gallery-feature-links { grid-template-columns: 1fr; gap: 7px; }
  .gallery-feature-links a { min-height: 46px; }
  .gallery-feature-links .gallery-feature-main { grid-column: auto; min-height: 42px; }
  .profile-cover { height: 156px; }
  .about-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 48px 35px;
  }
  .project-grid { grid-template-columns: 1fr; gap: 17px; }
  .project-card { padding: 26px; }
  .project-card .eyebrow { min-height: 0; max-width: 82%; }
  .project-symbol {
    position: absolute;
    top: 24px;
    right: 25px;
    font-size: 28px;
  }
  .project-card h3 { max-width: 95%; font-size: 36px; }
  .project-description { margin-block: 14px 20px; }
  .projects-section { padding-block: 42px; }
}
