:root {
  --bg: #0d0d0d;
  --panel: #111111;
  --text: #f0f0ed;
  --muted: #939393;
  --muted-2: #676767;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #b7c8ff;
  --accent-soft: rgba(183, 200, 255, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-shell { min-height: 100vh; }

.landscape {
  /* position: absolute; */
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 72% 57%,
      #303030 0%,
      #202020 38%,
      #101010 78%
    );
  pointer-events: none;
  z-index: -999;
}

.ridge {
  position: absolute;
  left: -10%;
  width: 120%;
  bottom: -1px;
  transform: translate3d(0, 0, 0);
  animation: drift 30s ease-in-out infinite alternate;
}

.ridge-back {
  height: 48%;
  background: #151515;
  clip-path: polygon(
    0 62%, 12% 48%, 25% 54%, 39% 40%,
    52% 58%, 68% 31%, 79% 40%, 91% 24%,
    100% 43%, 100% 100%, 0 100%
  );
  animation-duration: 42s;
}

.ridge-middle {
  height: 38%;
  background: #101010;
  clip-path: polygon(
    0 36%, 16% 48%, 29% 35%, 43% 57%,
    58% 39%, 72% 51%, 86% 30%, 100% 42%,
    100% 100%, 0 100%
  );
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}

.ridge-front {
  height: 26%;
  background: #090909;
  clip-path: polygon(
    0 30%, 14% 43%, 28% 35%, 44% 61%,
    57% 46%, 72% 64%, 88% 40%, 100% 50%,
    100% 100%, 0 100%
  );
  animation-duration: 22s;
}

@keyframes drift {
  from { transform: translate3d(-1.5%, 0, 0); }
  to   { transform: translate3d(1.5%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ridge {
    animation: none;
  }
}

.profile-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: 40%;
  border-right: 1px solid var(--line);
}
.profile-inner {
  height: 100%;
  padding: clamp(34px, 5vw, 76px) clamp(28px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.section-kicker {
  margin: 0;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--text);
}
.profile-name {
  margin: 20px 0 6px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 650;
}
.profile-role { margin: 0; color: #cfcfca; font-size: 22px; }
.profile-meta a, .profile-meta span { color: #c8c8c4; font-size: 16px; }
.profile-meta i { width: 17px; color: var(--muted-2); }

.social-links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: #d0d0ca;
  font-size: 14px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.social-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
}
.social-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section-nav { margin-top: 52px; display: grid; gap: 8px; width: max-content; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}
.section-link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .2s ease;
}
.section-link:hover, .section-link.active { color: var(--text); }
.section-link:hover { transform: translateX(4px); }

.profile-footer { display: grid; gap: 10px; }
.resume-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 650;
}
.profile-footer small { color: var(--muted-2); font-size: 11px; }

.content-panel {
  margin-left: 40%;
  width: 60%;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.content-section {
  padding: clamp(72px, 7vw, 108px) clamp(28px, 3vw, 104px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.about-section {  display: flex; flex-direction: column; justify-content: center; }
.about-copy { max-width: 920px; }
.about-copy p { margin: 0; color: #bdbdb8; }

.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.section-count { color: var(--muted-2); }
.experience-list { display: grid; gap: 0; }
.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 52px;
}
.experience-item:last-child { padding-bottom: 0; }
.experience-marker {
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.72);
  margin: 4px 0;
}
.experience-content { padding-left: 1px; }
.experience-content h2, .education-item h2, .project-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.company { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.date-range { color: var(--muted-2); font-size: 14px; white-space: nowrap; padding-top: 2px; }
.experience-content ul, .education-points { margin: 22px 0 0; padding-left: 18px; color: #b5b5b1; }
.experience-content li + li, .education-points li + li { margin-top: 9px; }
.pill-row, .stack-items { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.pill-row span, .stack-items span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b7b7b3;
  font-size: 16px;
  line-height: 1;
  background: rgba(255,255,255,0.015);
}

.compact-section { padding-bottom: 82px; }
.education-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 30px; padding: 0 0 52px; }
.education-item:last-child { padding-bottom: 0; }
.education-points { grid-column: 1 / -1; margin-top: 18px; }

.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.stack-group { padding: 26px 24px 28px; min-height: 150px; }
.stack-group h3 { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .12em; color: #deded9; }
.stack-items { margin-top: 18px; }

.stack-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.stack-icon, .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #d0d0ca;
  font-size: 19px;
  border: 1px solid var(--line);
}


.project-list { display: grid; gap: 12px; }
.project-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.project-card:hover { border-color: var(--line-strong); transform: translateY(-2px); background: rgba(255,255,255,0.028); }
.project-details { display:flex; flex-direction:row; justify-content: space-between; }
.project-summary { color: var(--muted); }
.project-links { display: flex; gap: 10px; }
.project-links a { color: var(--muted); font-size: 22px; }
.project-pills { margin-top: 20px; }

.content-footer {
  padding: 25px clamp(28px, 7vw, 104px) 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .03em;
}

@media (max-width: 991.98px) {
  .profile-panel {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .profile-inner { min-height: auto; padding: 38px 26px 30px; }
  .profile-name { font-size: clamp(48px, 12vw, 72px); }
  .section-nav { grid-template-columns: repeat(2, minmax(0, max-content)); margin-top: 34px; }
  .profile-footer { margin-top: 36px; }
  .content-panel { margin-left: 0; width: 100%; height: auto; overflow: visible; }
  .content-section { padding-left: 26px; padding-right: 26px; }
  .about-section { min-height: auto; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  body { font-size: 18px; }
  .lead-copy { font-size: clamp(27px, 8vw, 42px); }
  .section-heading-row { margin-bottom: 34px; }
  .experience-item { grid-template-columns: 10px minmax(0, 1fr); gap: 15px; padding-bottom: 40px; }
  .experience-content h2, .education-item h2, .project-card h2 { font-size: 18px; }
  .education-item { grid-template-columns: 1fr; }
  .date-range { margin-top: 2px; }
  .education-points { grid-column: 1; }
  .stack-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .content-footer { padding-left: 26px; padding-right: 26px; }
}
