:root {
  --bg: #08111f;
  --bg-soft: #0e1a2d;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #a7b4ca;
  --accent: #85d6ff;
  --accent-strong: #dca6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(133, 214, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(220, 166, 255, 0.18), transparent 22%),
    linear-gradient(145deg, #07101c 0%, #0d1727 40%, #0b1020 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -10rem;
  right: -8rem;
  background: rgba(133, 214, 255, 0.2);
}

body::after {
  bottom: -12rem;
  left: -8rem;
  background: rgba(220, 166, 255, 0.14);
}

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

.site-shell {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, calc(100% - 48px));
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.62), rgba(9, 15, 28, 0.44));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a,
.mobile-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta,
.primary-btn,
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(133, 214, 255, 0.24), rgba(220, 166, 255, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.nav-cta:hover,
.primary-btn:hover,
.mobile-cta:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:first-child {
  top: 18px;
  transform: translateX(-50%);
}

.menu-toggle span:last-child {
  top: 26px;
  transform: translateX(-50%);
}

.menu-toggle.is-open span:first-child {
  top: 22px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  top: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, calc(100% - 48px));
  z-index: 999;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 14, 25, 0.64);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.mobile-cta {
  margin-top: 6px;
}

.section-anchor {
  height: 1px;
}

main {
  padding-top: 126px;
}

.about-section,
.skills-section,
.work-section,
.projects-section,
.testimonials-section,
.education-section {
  padding: 96px 24px 0;
}

.contact-section {
  padding: 96px 24px 72px;
}

.site-footer {
  padding: 24px 24px 72px;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.section-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  margin-top: 36px;
  align-items: start;
}

.about-intro {
  position: sticky;
  top: 110px;
}

.about-lead {
  color: #edf3ff;
  font-size: 1.2rem;
  line-height: 1.8;
}

.about-actions {
  margin-top: 24px;
}

.about-cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef4ff;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.about-cv-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.about-facts {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.about-facts article {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.about-facts strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.about-facts span,
.about-copy p {
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: 20px;
}

.about-copy p {
  font-size: 1rem;
  line-height: 1.95;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.skill-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.skill-card span {
  align-self: flex-start;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8eefc;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

.work-summary {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 28px;
}

.work-lead {
  color: #edf3ff;
  font-size: 1.14rem;
  line-height: 1.8;
}

.experience-list {
  display: grid;
  gap: 20px;
}

.experience-card {
  position: relative;
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(133, 214, 255, 0.04), rgba(220, 166, 255, 0.03));
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.experience-period,
.experience-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.experience-period::before,
.experience-location::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.experience-card h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}

.experience-company {
  margin-top: 8px;
  color: #cdd9ef;
  font-weight: 700;
}

.experience-card p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.projects-showcase {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.project-featured {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(133, 214, 255, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(220, 166, 255, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.project-featured-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.project-kicker {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-featured h3,
.project-card h3 {
  margin-top: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-subtitle {
  margin-top: 10px;
  color: #d9e3f4;
  font-size: 1rem;
  font-weight: 700;
}

.project-description {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.project-impact {
  margin-top: 14px;
  color: #edf3ff;
  font-size: 0.96rem;
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8eefc;
  font-size: 0.84rem;
}

.project-link,
.project-link-inline {
  color: #f5f7fb;
  font-weight: 700;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.project-link::after {
  content: "\2197";
}

.project-link-inline {
  color: #bddfff;
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.project-card-wide {
  grid-column: span 2;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.project-card h3 {
  font-size: 1.6rem;
}

.project-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.8;
}

.project-orb-one {
  right: 80px;
  top: 36px;
  width: 88px;
  height: 88px;
  background: rgba(133, 214, 255, 0.2);
}

.project-orb-two {
  right: 26px;
  bottom: 30px;
  width: 120px;
  height: 120px;
  background: rgba(220, 166, 255, 0.14);
}

.testimonials-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.testimonial-controls {
  display: flex;
  gap: 10px;
}

.testimonial-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.testimonial-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 18px;
  margin-top: 36px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  scroll-snap-align: start;
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(133, 214, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.testimonial-stars {
  color: #ffd978;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.testimonial-quote {
  margin-top: 18px;
  color: #edf3ff;
  font-size: 1.08rem;
  line-height: 1.85;
}

.testimonial-author {
  margin-top: 28px;
  display: grid;
  gap: 6px;
}

.testimonial-author strong {
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.92rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.testimonial-dot.is-active {
  background: #dbe6ff;
  transform: scale(1.15);
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 36px;
  margin-top: 36px;
  align-items: start;
}

.education-visual {
  position: sticky;
  top: 110px;
}

.education-photo-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(133, 214, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.education-photo-card img {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}
.credential-meta,
.credential-text {
  color: var(--muted);
}

.education-content {
  display: grid;
  gap: 18px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.credential-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.featured-credential {
  background:
    radial-gradient(circle at top right, rgba(220, 166, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.learning-note {
  padding-top: 20px;
  padding-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.credential-kicker {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.credential-card h3 {
  margin-top: 12px;
  font-size: 1.42rem;
  line-height: 1.18;
}

.credential-meta {
  margin-top: 10px;
  font-size: 0.92rem;
}

.credential-text {
  margin-top: 16px;
  font-size: 0.98rem;
  line-height: 1.8;
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(133, 214, 255, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(220, 166, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.contact-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  pointer-events: none;
}

.contact-copy,
.contact-panel {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.contact-intro {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.contact-line {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-line a,
.contact-line span:last-child {
  color: #edf3ff;
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-line a {
  transition: color 180ms ease;
}

.contact-line a:hover {
  color: #bddfff;
}

.contact-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(7, 13, 25, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-panel-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel h3 {
  margin-top: 12px;
  font-size: 1.9rem;
  line-height: 1.08;
}

.contact-panel-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-social-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.contact-social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
}

.contact-social-card i {
  font-size: 1.2rem;
  color: #eef4ff;
}

.contact-social-card strong {
  font-size: 1rem;
}

.contact-social-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
  gap: 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.footer-brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.footer-brand-role {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-text {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.footer-column h3 {
  margin-bottom: 18px;
  font-size: 1rem;
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 12px;
}

.footer-links a,
.footer-meta a,
.footer-meta span {
  color: #dce6f7;
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: #bddfff;
  transform: translateX(2px);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #eef4ff;
  transition: transform 180ms ease, border-color 180ms ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
}

.footer-copy,
.footer-credit {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 0.9fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 24px;
  min-height: auto;
  padding: 36px 24px 24px;
}

.hero-copy {
  padding: 8px 0 0;
  max-width: 500px;
  grid-column: 1;
  grid-row: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9e3f4;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 20px rgba(133, 214, 255, 0.8);
}

.hero h1 {
  margin-top: 18px;
  max-width: 8.5ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #f5f7fb 10%, #9fdfff 50%, #e2baff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  max-width: 42ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  grid-column: 2 / 4;
  grid-row: 2;
  margin-top: -96px;
  align-self: start;
}

.hero-metrics article {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 10px;
  grid-column: 2;
  grid-row: 1;
}

.hero-visual img {
  width: min(100%, 340px);
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(24px);
  animation: portraitFadeIn 1s ease forwards;
  animation-delay: 0.2s;
}

@keyframes portraitFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-side {
  padding: 18px 0 0;
  max-width: 340px;
  grid-column: 3;
  grid-row: 1;
}

.side-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-text {
  margin-top: 14px;
  color: #dbe4f3;
  font-size: 0.92rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.05rem;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .topbar {
    top: 10px;
    width: min(100% - 20px, 1400px);
    grid-template-columns: 1fr auto;
  }

  .mobile-menu {
    top: 84px;
    width: min(100% - 20px, 1400px);
  }

  main {
    padding-top: 106px;
  }

  .nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 24px 18px;
  }

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

  .hero-copy {
    order: 1;
    max-width: none;
    grid-column: auto;
    grid-row: auto;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    order: 4;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .hero-visual {
    order: 2;
    grid-column: auto;
    grid-row: auto;
  }

  .hero-side {
    order: 3;
    grid-column: auto;
    grid-row: auto;
  }

  .hero-visual img {
    width: min(100%, 520px);
    max-height: none;
  }

  .hero-side {
    max-width: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-intro,
  .work-summary {
    position: static;
  }

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

  .work-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .project-card-wide {
    grid-column: span 1;
  }

  .testimonials-heading {
    flex-direction: column;
    align-items: start;
  }

  .testimonial-track {
    grid-auto-columns: minmax(85%, 1fr);
  }

  .education-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .education-visual {
    position: static;
  }

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

  .contact-shell {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1400px);
    padding: 10px 0 28px;
  }

  .topbar {
    padding: 12px;
  }

  .brand-copy span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 22px 4px 18px;
  }

  .hero-copy {
    order: 1;
    padding: 8px 4px 12px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-metrics {
    max-width: none;
    order: 4;
    grid-template-columns: 1fr;
    margin-top: 4px;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual img {
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 24px;
  }

  .hero-side {
    order: 3;
    padding: 8px 4px 0;
  }

  .side-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .about-section,
  .skills-section,
  .work-section,
  .projects-section,
  .testimonials-section,
  .education-section {
    padding: 72px 4px 0;
  }

  .contact-section {
    padding: 72px 4px 40px;
  }

  .site-footer {
    padding: 18px 4px 40px;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .section-note {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .about-lead {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .about-copy p {
    font-size: 0.98rem;
    line-height: 1.85;
  }

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

  .skill-card {
    min-height: auto;
  }

  .work-lead {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .experience-card {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .experience-card h3 {
    font-size: 1.18rem;
  }

  .experience-card p:last-child {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .project-featured,
  .project-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .project-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-featured h3,
  .project-card h3 {
    font-size: 1.5rem;
  }

  .project-description,
  .project-impact {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .testimonial-controls {
    display: none;
  }

  .testimonial-track {
    grid-auto-columns: 100%;
    margin-top: 28px;
  }

  .testimonial-card {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .testimonial-quote {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .education-photo-card,
  .credential-card {
    padding: 18px;
    border-radius: 22px;
  }

  .credential-card h3 {
    font-size: 1.2rem;
  }

  .credential-text {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .contact-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .contact-copy h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .contact-panel,
  .contact-social-card {
    padding: 16px;
    border-radius: 18px;
  }

  .contact-social-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
