:root {
  --green-1: #96D9C0;
  --green-2: #06402B;
  --beige: #DED1B4;
  --beige-soft: #f6f1e7;
  --orange: #cc5500;
  --orange-soft: #f5d4bf;
  --sage: #d9efe7;
  --cream: #fffdf9;
  --charcoal: #1d2b22;
  --shadow: rgba(6, 64, 43, 0.18);
  --line: rgba(6, 64, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f7f2ea 0%, #f1efe9 36%, #f8f3ec 100%);
  color: var(--charcoal);
}

img {
  display: block;
  width: 100%;
}

button,
a {
  transition: all 0.25s ease;
}

.background-ornaments {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.leaf {
  position: absolute;
  border-radius: 58% 42% 52% 48% / 45% 55% 45% 55%;
  background: rgba(150, 217, 192, 0.16);
  filter: blur(4px);
}

.leaf-one {
  width: 280px;
  height: 180px;
  top: 120px;
  left: -30px;
  transform: rotate(-24deg);
}

.leaf-two {
  width: 360px;
  height: 220px;
  right: -50px;
  top: 420px;
  transform: rotate(18deg);
  background: rgba(204, 85, 0, 0.08);
}

.leaf-three {
  width: 340px;
  height: 200px;
  bottom: 50px;
  left: 15%;
  transform: rotate(-10deg);
  background: rgba(150, 217, 192, 0.14);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid rgba(6, 64, 43, 0.1);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(16, 31, 26, 0.06);
  backdrop-filter: blur(10px);
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--green-2);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-1), #c4eadf);
  color: var(--green-2);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill {
  text-decoration: none;
  color: var(--green-2);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
}

.nav-pill:hover,
.nav-pill.active {
  background: var(--green-2);
  color: white;
  box-shadow: 0 10px 20px rgba(6, 64, 43, 0.18);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
}

.panel {
  position: relative;
  border-radius: 36px;
  padding: 44px 34px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(19, 28, 26, 0.06);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(150, 217, 192, 0.28), rgba(222, 209, 180, 0.48), rgba(255, 253, 249, 0.9));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  min-height: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green-2);
  font-family: "Cormorant Garamond", serif;
  line-height: 0.9;
}

h1 {
  font-size: clamp(4rem, 7vw, 6.2rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.6rem, 2vw, 2.3rem);
}

.lead {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(29, 43, 34, 0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--green-2);
  color: white;
  box-shadow: 0 14px 28px rgba(6, 64, 43, 0.18);
}

.button.primary:hover {
  transform: translateY(-1px);
  background: #0a4d36;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(6, 64, 43, 0.2);
  color: var(--green-2);
}

.mini-button {
  padding: 10px 16px;
  font-size: 0.7rem;
}

.mini-stats {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-stats li {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(6, 64, 43, 0.09);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-stats strong {
  color: var(--green-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-stats span {
  color: rgba(29, 43, 34, 0.75);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.portrait-frame {
  position: relative;
  width: min(440px, 90%);
  aspect-ratio: 0.87;
  padding: 18px;
  border-radius: 32px 32px 60px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(150, 217, 192, 0.28));
  border: 1px solid rgba(6, 64, 43, 0.16);
  box-shadow: 0 24px 48px rgba(6, 64, 43, 0.12);
  transform: rotate(2deg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -10px auto auto -10px;
  width: 120px;
  height: 120px;
  background: rgba(204, 85, 0, 0.14);
  border-radius: 50%;
  z-index: -1;
}

.portrait-frame img {
  height: 100%;
  object-fit: cover;
  border-radius: 24px 24px 52px 24px;
}

.floating-note {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(6, 64, 43, 0.1);
  box-shadow: 0 16px 30px rgba(6, 64, 43, 0.1);
  backdrop-filter: blur(8px);
}

.floating-note span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-2);
}

.floating-note strong {
  font-size: 0.98rem;
  color: var(--green-2);
}

.note-one {
  left: 8%;
  top: 14%;
  transform: rotate(-10deg);
}

.note-two {
  right: 6%;
  bottom: 8%;
  transform: rotate(9deg);
}

.spotlight-panel {
  background: linear-gradient(180deg, rgba(222, 209, 180, 0.42), rgba(255, 255, 255, 0.62));
}

.spotlight-copy {
  margin-bottom: 20px;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.role-pill {
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(6, 64, 43, 0.09);
  border-radius: 24px;
}

.role-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
}

.role-pill h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.role-pill p {
  margin: 0;
  color: rgba(29, 43, 34, 0.78);
  line-height: 1.7;
}

.currently-box {
  margin-top: 24px;
  padding: 20px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(6, 64, 43, 0.08);
}

.currently-box h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.currently-box ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(29, 43, 34, 0.8);
  line-height: 1.8;
}

.eyebrow.small {
  margin-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.info-card {
  padding: 26px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(6, 64, 43, 0.08);
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.subhead {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 700;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: rgba(29, 43, 34, 0.8);
}

.stack-list {
  list-style: none;
  padding-left: 0 !important;
}

.stack-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.about-panel,
.experience-panel,
.life-panel,
.projects-panel,
.contact-panel {
  background: rgba(255, 253, 249, 0.6);
}

.section-heading {
  margin-bottom: 26px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(150, 217, 192, 0.28), rgba(255, 255, 255, 0.64));
  border-radius: 30px;
  padding: 30px 26px;
  border: 1px solid rgba(6, 64, 43, 0.08);
}

.feature-card p {
  margin: 0 0 18px;
  color: rgba(29, 43, 34, 0.84);
  line-height: 1.9;
  font-size: 1rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.interest-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(6, 64, 43, 0.08);
  color: var(--green-2);
  font-weight: 600;
}

.gallery-panel {
  padding: 22px;
  background: rgba(222, 209, 180, 0.24);
  border: 1px solid rgba(6, 64, 43, 0.08);
  border-radius: 30px;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gallery-header h3 {
  font-size: 2.1rem;
}

.gallery-slider {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  cursor: grab;
  touch-action: pan-x;
}

.gallery-slider:active {
  cursor: grabbing;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 27vw, 320px);
  gap: 16px;
  align-items: stretch;
  width: max-content;
  padding: 4px 2px 6px;
  scroll-snap-type: x proximity;
}

.gallery-slide {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;

.gallery-slider {
  cursor: grab;
}
.gallery-slider.is-dragging {
  cursor: grabbing;
}
  border: 1px solid rgba(6, 64, 43, 0.08);
  background: #d7d7d7;
  height: 340px;
  scroll-snap-align: start;
  box-shadow: 0 12px 22px rgba(6, 64, 43, 0.08);
}

.gallery-slide.tall {
  height: 420px;
}

.gallery-slide.wide {
  grid-column: span 2;
  height: 260px;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.timeline-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(6, 64, 43, 0.18);
  background: rgba(255, 255, 255, 0.6);
  color: var(--green-2);
  font-size: 1.1rem;
  cursor: pointer;
}

.timeline-button:hover {
  background: var(--green-2);
  color: white;
}

.horizontal-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 18px 8px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.horizontal-timeline::-webkit-scrollbar {
  height: 8px;
}

.horizontal-timeline::-webkit-scrollbar-thumb {
  background: rgba(6, 64, 43, 0.25);
  border-radius: 50px;
}

.experience-item {
  position: relative;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(6, 64, 43, 0.08);
  border-radius: 28px;
  padding: 22px 20px 20px;
  min-height: 250px;
  box-shadow: inset 0 -1px 0 rgba(6, 64, 43, 0.04);
}

.experience-item.active {
  background: linear-gradient(180deg, rgba(150, 217, 192, 0.24), rgba(255, 255, 255, 0.7));
  transform: translateY(-4px);
}

.item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.item-date {
  display: inline-flex;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--green-2);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(150, 217, 192, 0.3);
}

.experience-item h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.experience-item p {
  margin: 0 0 14px;
  color: var(--orange);
  font-weight: 700;
}

.experience-item ul {
  padding-left: 18px;
  margin: 0;
  color: rgba(29, 43, 34, 0.8);
  line-height: 1.8;
}

.life-timeline-wrap {
  position: relative;
  padding: 20px 0 0;
}

.life-rail {
  position: absolute;
  left: 12%;
  top: 24px;
  bottom: 30px;
  width: 3px;
  background: linear-gradient(180deg, rgba(6, 64, 43, 0.25), rgba(150, 217, 192, 0.9), rgba(6, 64, 43, 0.25));
  border-radius: 50px;
}

.life-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding: 18px 8px 8px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.life-track::-webkit-scrollbar {
  height: 8px;
}

.life-track::-webkit-scrollbar-thumb {
  background: rgba(6, 64, 43, 0.25);
  border-radius: 50px;
}

.life-event {
  scroll-snap-align: start;
  position: relative;
  padding-top: 30px;
  min-height: 210px;
  padding-bottom: 14px;
}

.event-dot {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(204, 85, 0, 0.12);
  cursor: pointer;
  padding: 0;
}

.event-dot:hover,
.event-dot:focus-visible {
  transform: scale(1.35);
  box-shadow: 0 0 0 10px rgba(204, 85, 0, 0.16);
  outline: none;
}

.life-event h3 {
  margin-left: 52px;
  font-size: 1.8rem;
  margin-bottom: 0;
}

.event-details {
  display: none;
  margin-left: 52px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(6, 64, 43, 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 28px rgba(6, 64, 43, 0.05);
}

.life-event.is-open .event-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-detail-media {
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(6, 64, 43, 0.08);
  background: linear-gradient(135deg, rgba(150, 217, 192, 0.2), rgba(222, 209, 180, 0.26));
}

.event-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details p {
  margin: 0;
  color: rgba(29, 43, 34, 0.78);
  line-height: 1.7;
  max-width: 100%;
  order: 1;
}

.event-detail-media {
  order: 2;
}

.event-year {
  position: relative;
  left: 52px;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-2);
}

.event-card {
  margin-left: 52px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(6, 64, 43, 0.08);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 18px 28px rgba(6, 64, 43, 0.05);
}

.event-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.event-card p {
  margin: 0;
  color: rgba(29, 43, 34, 0.78);
  line-height: 1.7;
}

.life-event .event-year,
.life-event h3 {
  transition: transform 0.25s ease;
}

.life-event.is-open .event-year,
.life-event.is-open h3 {
  transform: translateY(-1px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(6, 64, 43, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 34px rgba(7, 28, 22, 0.05);
  cursor: pointer;
  text-align: left;
  color: inherit;
  padding: 0;
  font: inherit;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.project-card:nth-child(even) {
  transform: rotate(0.8deg);
}

.project-image {
  min-height: 210px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 26px 20px;
}

.project-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(150, 217, 192, 0.28);
  color: var(--green-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.project-content h3 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.project-content p {
  margin: 0;
  color: rgba(29, 43, 34, 0.8);
  line-height: 1.8;
}

.event-card {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 17, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.project-modal.is-open {
  display: flex;
}

.project-modal-card {
  width: min(960px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fffdf9;
  border-radius: 32px;
  border: 1px solid rgba(6, 64, 43, 0.08);
  box-shadow: 0 24px 48px rgba(6, 64, 43, 0.16);
  padding: 24px 26px 30px;
  position: relative;
}

.close-project {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 64, 43, 0.15);
  background: rgba(150, 217, 192, 0.18);
  color: var(--green-2);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

#project-detail-content h2 {
  margin-bottom: 14px;
}

#project-detail-content p,
#project-detail-content li {
  color: rgba(29, 43, 34, 0.82);
  line-height: 1.8;
}

#project-detail-content ul {
  padding-left: 20px;
}

#project-detail-content h3 {
  margin: 18px 0 10px;
  font-size: 1.9rem;
}

#project-detail-content .detail-image {
  margin: 20px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(6, 64, 43, 0.08);
}

#project-detail-content .detail-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

#project-detail-content .detail-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#project-detail-content .detail-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(6, 64, 43, 0.08);
  min-height: 220px;
}

#project-detail-content .detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#project-detail-content .skills-block {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#project-detail-content .skills-block span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(150, 217, 192, 0.18);
  color: var(--green-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-1 { background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(150,217,192,0.18)); }
.project-2 { background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(222,209,180,0.24)); }
.project-3 { background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(251, 227, 199, 0.28)); }
.project-4 { background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(181, 221, 208, 0.18)); }
.project-5 { background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255, 233, 215, 0.28)); }

.future-panel {
  margin-top: 24px;
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(150, 217, 192, 0.2), rgba(222, 209, 180, 0.34), rgba(204, 85, 0, 0.08));
  border: 1px solid rgba(6, 64, 43, 0.1);
  border-radius: 30px;
}

.future-copy {
  max-width: 760px;
}

.future-copy h3 {
  margin-bottom: 12px;
}

.future-copy p {
  margin: 0;
  color: rgba(29, 43, 34, 0.8);
  line-height: 1.8;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 20px;
  min-height: 200px;
}

.contact-card h2 {
  margin-bottom: 10px;
}

.contact-card a {
  font-size: clamp(1.2rem, 2vw, 2.1rem);
  color: var(--green-2);
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 36px;
  text-align: center;
  color: rgba(29, 43, 34, 0.74);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-panel,
  .about-layout,
  .project-grid,
  .role-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    justify-content: center;
  }

  .hero-panel {
    padding-top: 28px;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 18px, 1200px);
  }

  .panel {
    padding: 32px 18px;
    border-radius: 22px;
  }

  .main-nav {
    gap: 8px;
  }

  .nav-pill {
    padding: 9px 12px;
    font-size: 0.7rem;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-track {
    grid-auto-columns: minmax(220px, 72vw);
  }
}
