* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fdfaf5;
  --panel: rgba(255,255,255,0.58);
  --panel-strong: rgba(255,255,255,0.78);
  --brown: #3a2c1a;
  --gold: #c9a55c;
  --gold-2: #d4a745;
  --text: #4a3f33;
  --border: rgba(58,44,26,0.12);
  --heading: "Cinzel", serif;
  --body: "Inter", sans-serif;
  --curve: "Ballet", cursive;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(ellipse at top left, rgba(197,160,90,0.08), transparent 32%),
    radial-gradient(ellipse at bottom right, rgba(158,124,84,0.05), transparent 30%),
    linear-gradient(180deg, #fdfaf5 0%, #f7f0e4 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(58,44,26,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,44,26,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 5vw;
  background: rgba(253,250,245,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58,44,26,0.06);
}

.brand {
  font-family: var(--heading);
  color: var(--brown);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-links a {
  font-family: var(--heading);
  letter-spacing: 1px;
  font-size: 0.86rem;
  color: var(--brown);
}

.nav-links a:hover { color: var(--gold); }

section, .hero { padding: 86px 5vw; }

.section-shell {
  max-width: 1500px;
  margin: 0 auto;
}

.side-layout {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
}

.side-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}

.vtext {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 12px;
  color: rgba(58,44,26,0.28);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
}

.vline {
  width: 2px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(197,160,90,0.55), transparent);
}

.section-curve {
  font-family: var(--curve);
  color: var(--gold);
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--heading);
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.05;
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 12px;
}

body.has-side-nav {
  padding-left: 64px;
  transition: padding-left .42s cubic-bezier(.23,1,.32,1);
}

body.has-side-nav.nav-open {
  padding-left: 248px;
}

.site-sidebar {
  width: 64px;
  background: linear-gradient(180deg, #1a130a 0%, #2a1f12 60%, #1a130a 100%);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(197,160,90,0.2);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  transition: width .42s cubic-bezier(.23,1,.32,1);
  flex-shrink: 0;
  z-index: 80;
}

.site-sidebar.open {
  width: 248px;
}

.site-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a55c, transparent);
  z-index: 3;
}

.site-sidebar-toggle {
  display: flex;
  align-items: center;
  padding: 16px 14px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(197,160,90,0.12);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  gap: 12px;
}

.site-sidebar-toggle-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(197,160,90,0.1);
  border: 1px solid rgba(197,160,90,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s ease;
  flex-shrink: 0;
}

.site-sidebar-toggle-btn:hover {
  background: rgba(197,160,90,0.22);
  border-color: #c9a55c;
}

.site-sidebar-toggle-btn svg {
  width: 15px;
  height: 15px;
  stroke: #c9a55c;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .42s ease;
}

.site-sidebar.open .site-sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

.site-sidebar-brand {
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  transition: opacity .3s ease, width .42s cubic-bezier(.23,1,.32,1);
}

.site-sidebar.open .site-sidebar-brand {
  opacity: 1;
  width: 160px;
}

.site-sidebar-brand-script {
  font-family: var(--curve, var(--curve-font, cursive));
  color: #c9a55c;
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}

.site-sidebar-brand-name {
  font-family: var(--heading, var(--heading-font, serif));
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: 3.5px;
  color: rgba(253,250,245,0.85);
  text-transform: uppercase;
}

.site-sidebar-label {
  font-family: var(--heading, var(--heading-font, serif));
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: rgba(197,160,90,0.38);
  text-transform: uppercase;
  padding: 16px 0 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  max-height: 32px;
  transition: opacity .3s ease, max-height .42s ease, padding .42s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.site-sidebar:not(.open) .site-sidebar-label {
  opacity: 0;
  max-height: 0;
  padding: 0;
}

.site-sidebar.open .site-sidebar-label {
  text-align: left;
  padding: 16px 18px 5px;
}

.site-sidebar-nav {
  flex: 1;
  padding: 4px 7px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
  position: relative;
}

.site-sidebar-nav::-webkit-scrollbar {
  width: 2px;
}

.site-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(197,160,90,0.18);
  border-radius: 2px;
}

.site-sidebar-item {
  display: flex;
  align-items: center;
  padding: 9px 7px;
  border-radius: 11px;
  cursor: pointer;
  margin-bottom: 2px;
  transition: all .38s cubic-bezier(.23,1,.32,1);
  position: relative;
  overflow: visible;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.site-sidebar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2.5px;
  border-radius: 0 3px 3px 0;
  background: #c9a55c;
  transform: scaleY(0);
  transition: transform .38s cubic-bezier(.23,1,.32,1);
}

.site-sidebar-item:hover::before,
.site-sidebar-item.active::before {
  transform: scaleY(1);
}

.site-sidebar-item:hover {
  background: rgba(197,160,90,0.09);
  border-color: rgba(197,160,90,0.16);
}

.site-sidebar-item.active {
  background: rgba(197,160,90,0.13);
  border-color: rgba(197,160,90,0.22);
}

.site-sidebar-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1px solid rgba(197,160,90,0.18);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .38s ease;
  position: relative;
  flex-shrink: 0;
}

.site-sidebar-item:hover .site-sidebar-icon,
.site-sidebar-item.active .site-sidebar-icon {
  background: rgba(197,160,90,0.16);
  border-color: rgba(197,160,90,0.45);
  box-shadow: 0 0 14px rgba(197,160,90,0.15);
}

.site-sidebar-icon svg {
  width: 17px;
  height: 17px;
  stroke: #c9a55c;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all .38s ease;
  flex-shrink: 0;
}

.site-sidebar-item.active .site-sidebar-icon svg,
.site-sidebar-item:hover .site-sidebar-icon svg {
  stroke: #e8c97a;
  transform: scale(1.1);
}

.site-sidebar-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #c9a55c;
  box-shadow: 0 0 7px rgba(197,160,90,0.7);
  transition: opacity .3s;
}

.site-sidebar.open .site-sidebar-dot {
  opacity: 0;
  pointer-events: none;
}

.site-sidebar-tip {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a130a;
  border: 1px solid rgba(197,160,90,0.32);
  color: #fdfaf5;
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--display, var(--display-font, sans-serif));
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity .18s ease;
}

.site-sidebar-tip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #1a130a;
  border-left: 1px solid rgba(197,160,90,0.32);
  border-bottom: 1px solid rgba(197,160,90,0.32);
  transform: translateY(-50%) rotate(45deg);
}

.site-sidebar:not(.open) .site-sidebar-item:hover .site-sidebar-tip {
  opacity: 1;
}

.site-sidebar-text {
  overflow: hidden;
  width: 0;
  opacity: 0;
  padding-left: 0;
  transition: width .42s cubic-bezier(.23,1,.32,1), opacity .25s ease;
}

.site-sidebar.open .site-sidebar-text {
  width: 148px;
  opacity: 1;
  padding-left: 11px;
}

.site-sidebar-name {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(253,250,245,0.65);
  transition: color .3s;
  letter-spacing: .2px;
  font-family: var(--display, var(--display-font, sans-serif));
}

.site-sidebar-item:hover .site-sidebar-name,
.site-sidebar-item.active .site-sidebar-name {
  color: #fdfaf5;
}

.site-sidebar-sub {
  font-size: .56rem;
  color: rgba(197,160,90,0.38);
  font-family: var(--heading, var(--heading-font, serif));
  letter-spacing: 1.5px;
  margin-top: 1px;
  transition: color .3s;
}

.site-sidebar-item:hover .site-sidebar-sub,
.site-sidebar-item.active .site-sidebar-sub {
  color: rgba(197,160,90,0.65);
}

.site-sidebar-badge {
  font-size: .48rem;
  font-family: var(--heading, var(--heading-font, serif));
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-left: auto;
  background: rgba(197,160,90,0.14);
  color: #c9a55c;
  border: 1px solid rgba(197,160,90,0.26);
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .42s cubic-bezier(.23,1,.32,1), opacity .25s ease;
}

.site-sidebar-badge.new-b {
  background: rgba(197,160,90,0.22);
  color: #e8c97a;
  border-color: rgba(232,201,122,0.35);
}

.site-sidebar.open .site-sidebar-badge {
  max-width: 60px;
  opacity: 1;
}

.site-sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,90,0.14), transparent);
  margin: 7px 4px;
  flex-shrink: 0;
}

.site-sidebar-bottom {
  padding: 10px 7px 18px;
  border-top: 1px solid rgba(197,160,90,0.1);
  z-index: 1;
  position: relative;
  flex-shrink: 0;
}

.site-sidebar-user {
  display: flex;
  align-items: center;
  padding: 8px 7px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(197,160,90,0.12);
  background: rgba(255,255,255,0.03);
  transition: all .32s ease;
  overflow: hidden;
  text-decoration: none;
}

.site-sidebar-user:hover {
  background: rgba(197,160,90,0.08);
  border-color: rgba(197,160,90,0.28);
}

.site-sidebar-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a55c, #a07838);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading, var(--heading-font, serif));
  font-size: .62rem;
  font-weight: 900;
  color: #1a130a;
  border: 1.5px solid rgba(197,160,90,0.5);
  flex-shrink: 0;
}

.site-sidebar-user-text {
  overflow: hidden;
  width: 0;
  opacity: 0;
  padding-left: 0;
  white-space: nowrap;
  transition: width .42s cubic-bezier(.23,1,.32,1), opacity .25s ease;
}

.site-sidebar.open .site-sidebar-user-text {
  width: 130px;
  opacity: 1;
  padding-left: 10px;
}

.site-sidebar-user-name {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(253,250,245,0.82);
  font-family: var(--display, var(--display-font, sans-serif));
}

.site-sidebar-user-role {
  font-size: .54rem;
  color: rgba(197,160,90,0.48);
  font-family: var(--heading, var(--heading-font, serif));
  letter-spacing: 1px;
}

.site-sidebar-user-arr {
  margin-left: auto;
  color: rgba(197,160,90,0.4);
  font-size: .75rem;
  flex-shrink: 0;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width .42s cubic-bezier(.23,1,.32,1), opacity .25s ease;
}

.site-sidebar.open .site-sidebar-user-arr {
  width: 18px;
  opacity: 1;
}

@media (max-width: 700px) {
  body.has-side-nav,
  body.has-side-nav.nav-open {
    padding-left: 0;
  }

  .site-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .site-sidebar.open {
    width: 100%;
  }

  .site-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-sidebar-item {
    margin-bottom: 0;
  }

  .site-sidebar-tip {
    display: none;
  }

  .site-sidebar:not(.open) .site-sidebar-label,
  .site-sidebar.open .site-sidebar-label {
    opacity: 1;
    max-height: none;
    padding: 14px 18px 8px;
    text-align: left;
  }

  .site-sidebar .site-sidebar-brand,
  .site-sidebar .site-sidebar-text,
  .site-sidebar .site-sidebar-badge,
  .site-sidebar .site-sidebar-user-text,
  .site-sidebar .site-sidebar-user-arr,
  .site-sidebar .site-sidebar-dot {
    opacity: 1;
    width: auto;
    max-width: none;
  }

  .site-sidebar-content {
    width: 100%;
  }
}

.section-lead {
  max-width: 980px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.card, .panel, .hero-panel, .project-card, .cert-card, .contrib-card, .skill-card, .info-card, .feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(58,44,26,0.06);
}

.panel, .card, .project-card, .cert-card, .contrib-card, .skill-card, .info-card, .feature-card { padding: 24px; }

.panel h3, .card h3, .project-card h3, .cert-card h3, .contrib-card h3, .skill-card h3, .info-card h3, .feature-card h3 {
  font-family: var(--heading);
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.panel p, .card p, .project-card p, .cert-card p, .contrib-card p, .skill-card p, .info-card p, .feature-card p {
  line-height: 1.8;
}

.chip-list, .tag-list, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(197,160,90,0.12);
  color: var(--brown);
  font-family: var(--heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(58,44,26,0.14);
  background: rgba(255,255,255,0.45);
  color: var(--brown);
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
}

.btn.primary { background: var(--brown); color: #fff; border-color: var(--brown); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 28px; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--heading);
  text-transform: uppercase;
  color: var(--brown);
  letter-spacing: 2px;
  line-height: 0.98;
  font-size: clamp(3rem, 8vw, 6.8rem);
  margin-bottom: 10px;
}

.hero-copy h2 {
  font-family: var(--heading);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.curve {
  font-family: var(--curve);
  color: var(--gold);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.9;
  margin-bottom: 8px;
}

.lead {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 26px;
}

.hero-panel {
  padding: 26px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(248,241,233,0.92)),
    radial-gradient(circle at top right, rgba(197,160,90,0.18), transparent 34%);
  border: 1px solid rgba(197,160,90,0.22);
  border-radius: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.hero-badge::before { content: ""; width: 36px; height: 1px; background: var(--gold); }

.hero-panel h3 {
  font-family: var(--heading);
  text-transform: uppercase;
  color: var(--brown);
  letter-spacing: 2px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-panel p { line-height: 1.82; }

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.img-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(58,44,26,0.1);
  background: rgba(255,255,255,0.46);
  position: relative;
}
.img-card.small { min-height: 150px; }
.img-card.medium { min-height: 180px; }
.img-card.tall { min-height: 260px; }

.caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(248,241,233,0.88);
  border: 1px solid rgba(58,44,26,0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--heading);
  color: var(--brown);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.67rem;
}

.hero-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(197,160,90,0.18);
  background: rgba(255,255,255,0.55);
  margin-top: 8px;
}

.hero-note strong {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brown);
  font-size: 0.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(248,241,233,0.9);
  border: 1px solid rgba(58,44,26,0.08);
  text-align: center;
}
.stat strong { display: block; font-family: var(--heading); color: var(--brown); font-size: 1.45rem; margin-bottom: 4px; }

.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.results-grid .project-card .thumb { min-height: 170px; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.results-grid .project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.results-grid .project-card .img-card {
  min-height: 210px;
}

.results-grid .project-card .hero-actions {
  margin-top: auto;
  gap: 10px;
}

.results-grid .project-card .btn {
  padding: 11px 16px;
  font-size: 0.72rem;
  letter-spacing: 1.4px;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 28px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
  margin-top: 28px;
}

.skill-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58,44,26,0.08);
  font-size: 0.95rem;
}
.skill-card li:last-child { border-bottom: none; padding-bottom: 0; }

.archive-rail, .contrib-rail, .cert-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.contrib-card, .cert-card {
  flex: 0 0 auto;
  min-width: 290px;
  scroll-snap-align: start;
}
.contrib-card { min-width: 320px; }

.contrib-card .meta, .cert-card .meta {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--heading);
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.contrib-card .thumb {
  min-height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(58,44,26,0.1);
}

.project-list, .line-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
}

.project-list li, .line-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(58,44,26,0.08);
  line-height: 1.6;
}
.project-list li:last-child, .line-list li:last-child { border-bottom: none; padding-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; margin-top: 28px; }
.contact-row { padding: 12px 0; border-bottom: 1px solid rgba(58,44,26,0.08); }
.contact-row:last-child { border-bottom: none; }

.footer {
  padding: 26px 5vw 42px;
  text-align: center;
  color: rgba(90,74,58,0.8);
  font-size: 0.95rem;
}
.footer strong { color: var(--brown); }

@media (max-width: 1100px) {
  .hero, .side-layout, .grid-2, .grid-3, .grid-4, .results-grid, .feature-grid, .skill-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel { min-height: auto; }
}

@media (max-width: 700px) {
  .nav { align-items: flex-start; flex-direction: column; }
  section, .hero { padding: 64px 4vw; }
  .side-rail { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .panel, .card, .project-card, .cert-card, .contrib-card, .skill-card, .info-card, .feature-card, .hero-panel {
    padding: 20px;
    border-radius: 20px;
  }
  .contrib-card { min-width: 260px; }
}

.site-footer {
  background: var(--light-bg, #fdfaf5);
  border-top: 1px solid rgba(197, 160, 90, 0.15);
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #c9a55c), transparent);
}

.site-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 35px 5% 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer-copy-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer-copy-line {
  width: 30px;
  height: 1px;
  background: var(--gold, #c9a55c);
  opacity: 0.4;
}

.site-footer-copy {
  font-family: var(--heading, serif);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--brown, #3a2c1a);
  font-weight: 700;
  opacity: 0.6;
}

.site-footer-copy span {
  color: var(--gold, #c9a55c);
  opacity: 1;
}

.site-footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer-social-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--card-bg, #ffffff);
  border: 1px solid rgba(197, 160, 90, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.site-footer-social-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown, #3a2c1a);
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
  z-index: 0;
}

.site-footer-social-pill:hover::before {
  transform: scaleX(1);
}

.site-footer-social-pill:hover {
  border-color: var(--brown, #3a2c1a);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(58, 44, 26, 0.15);
  padding: 8px 20px;
}

.site-footer-social-pill svg {
  width: 14px;
  height: 14px;
  fill: var(--brown, #3a2c1a);
  position: relative;
  z-index: 1;
  transition: fill 0.3s ease;
  flex-shrink: 0;
}

.site-footer-social-pill:hover svg {
  fill: var(--gold, #c9a55c);
}

.site-footer-social-pill .pill-label {
  font-family: var(--heading, serif);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--brown, #3a2c1a);
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s ease;
}

.site-footer-social-pill:hover .pill-label {
  opacity: 1;
  max-width: 100px;
  color: #fff;
}

.site-footer-top-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg, #ffffff);
  border: 1.5px solid rgba(197, 160, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.site-footer-top-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown, #3a2c1a);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.site-footer-top-btn:hover::before {
  transform: scale(1);
}

.site-footer-top-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--brown, #3a2c1a);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.site-footer-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(58, 44, 26, 0.2);
  border-color: var(--brown, #3a2c1a);
}

.site-footer-top-btn:hover svg {
  fill: #fff;
}

.site-footer-glow-bar {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(197, 160, 90, 0.3) 20%,
    var(--gold, #c9a55c) 50%,
    rgba(197, 160, 90, 0.3) 80%,
    transparent 100%
  );
  animation: siteFooterShimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes siteFooterShimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

@media (max-width: 768px) {
  .site-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 28px 5% 24px;
  }

  .site-footer-copy-group {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer-copy-line {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .site-footer-social-pill {
    padding: 7px 12px;
  }

  .site-footer-copy {
    font-size: 9px;
    letter-spacing: 1px;
  }
}

.footer-premium {
  background: var(--light-bg, #fdfaf5);
  padding: 0;
  position: relative;
  border-top: 1px solid rgba(197, 160, 90, 0.15);
  margin-top: auto;
  overflow: hidden;
}

.footer-curve-top {
  text-align: center;
  padding: 26px 4vw 18px;
  position: relative;
}

.footer-brand-block {
  max-width: 760px;
  margin: 0 auto 14px;
}

.footer-curve-text {
  font-family: var(--curve, var(--curve-font, cursive));
  color: var(--gold, #c9a55c);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 0.9;
  margin-bottom: 6px;
}

.footer-heading {
  font-family: var(--heading, var(--heading-font, serif));
  text-transform: uppercase;
  color: var(--brown, #3a2c1a);
  letter-spacing: 2px;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 6px;
}

.footer-subheading {
  color: var(--gold, #c9a55c);
  letter-spacing: 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0;
}

.footer-social-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg, #ffffff);
  border: 1.5px solid rgba(197, 160, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.footer-social-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown, #3a2c1a);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.footer-social-circle:hover::before {
  transform: scale(1);
}

.footer-social-circle svg {
  width: 15px;
  height: 15px;
  fill: var(--brown, #3a2c1a);
  position: relative;
  z-index: 1;
  transition: fill 0.3s ease;
}

.footer-social-circle:hover svg {
  fill: #fff;
}

.footer-social-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(58, 44, 26, 0.12);
  border-color: var(--brown, #3a2c1a);
}

.footer-divider {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4vw 0;
}

.footer-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 90, 0.4), transparent);
}

.footer-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #c9a55c);
  flex-shrink: 0;
}

.footer-links-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 4vw 14px;
  max-width: 760px;
  margin: 0 auto;
}

.footer-link-item {
  text-decoration: none;
  font-family: var(--heading, var(--heading-font, serif));
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--brown, #3a2c1a);
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.footer-link-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold, #c9a55c);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.footer-link-item:hover {
  color: var(--gold, #c9a55c);
}

.footer-link-item:hover::after {
  transform: scaleX(1);
}

.footer-bottom-strip {
  background: var(--light-bg, #fdfaf5);
  border-top: 1px solid rgba(197, 160, 90, 0.12);
  padding: 14px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-family: var(--heading, var(--heading-font, serif));
  font-size: 8px;
  letter-spacing: 1.5px;
  color: rgba(58, 44, 26, 0.72);
  font-weight: 600;
}

.footer-copyright span {
  color: var(--gold, #c9a55c);
}

.footer-email-link {
  font-family: var(--display, var(--display-font, sans-serif));
  font-size: 10px;
  font-weight: 600;
  color: rgba(58, 44, 26, 0.72);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.footer-email-link:hover {
  color: var(--gold, #c9a55c);
}

.footer-back-top {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(197, 160, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-back-top svg {
  width: 12px;
  height: 12px;
  fill: rgba(58, 44, 26, 0.55);
  transition: fill 0.3s ease;
}

.footer-back-top:hover {
  background: var(--gold, #c9a55c);
  border-color: var(--gold, #c9a55c);
  transform: translateY(-3px);
}

.footer-back-top:hover svg {
  fill: var(--brown, #3a2c1a);
}

@media (max-width: 768px) {
  .footer-curve-top {
    padding: 24px 4vw 16px;
  }

  .footer-links-grid {
    gap: 14px;
    padding: 14px 4vw 14px;
  }

  .footer-bottom-strip {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-social-circle {
    width: 38px;
    height: 38px;
  }

  .footer-social-circle svg {
    width: 13px;
    height: 13px;
  }

  .footer-link-item {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
}
