@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-500.woff2.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-600.woff2.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-700.woff2.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nyght Serif";
  src: url("../fonts/NyghtSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f0e6;
  --bg-soft: #fffaf3;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --ink: #17181d;
  --ink-soft: #4f5560;
  --line: rgba(23, 24, 29, 0.12);
  --accent: #c86433;
  --accent-strong: #a34d24;
  --accent-cool: #0f766e;
  --dark: #101521;
  --dark-soft: #1a2233;
  --shadow: 0 24px 80px rgba(27, 31, 41, 0.12);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.012em;
  background:
    radial-gradient(
      circle at top left,
      rgba(200, 100, 51, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at top right,
      rgba(15, 118, 110, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #fff9f1 0%, var(--bg) 58%, #f2eadf 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

code {
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

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

/* ── Header ── */

.site-header {
  position: sticky;
  top: 15px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 251, 244, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(26, 34, 51, 0.08);
  z-index: -1;
  transition:
    opacity 0.4s ease,
    background 0.4s ease;
}

.site-header.nav-is-open::before {
  opacity: 0;
}

.site-header.nav-is-open .brand-copy strong {
  color: white;
  transition: color 0.3s ease;
}

.site-header.nav-is-open .nav-toggle span {
  background: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 60;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: white;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ── Navigation ── */

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-glass {
  position: absolute;
  top: 50%;
  height: calc(100% + 10px);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.52),
    rgba(255, 255, 255, 0.22)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
}

.nav-glass.is-active {
  background: linear-gradient(
    180deg,
    rgba(200, 100, 51, 0.22),
    rgba(200, 100, 51, 0.1)
  );
  border-color: rgba(200, 100, 51, 0.35);
  box-shadow:
    0 4px 18px rgba(200, 100, 51, 0.15),
    0 0 0 0.5px rgba(200, 100, 51, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(200, 100, 51, 0.06);
}

.site-nav a {
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.1rem;
  color: var(--ink-soft);
  transition: color 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 24, 29, 0.06);
  position: relative;
  z-index: 60;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-toggle span {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    background 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

/* ── Layout ── */

.section,
.hero {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  scroll-margin-top: 6.5rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 2rem;
  padding: 7rem 0 5.5rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(36px);
  opacity: 0.55;
}

.hero::before {
  inset: 5rem auto auto -2rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(200, 100, 51, 0.22);
}

.hero::after {
  right: 1rem;
  bottom: 3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.15);
}

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

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section-title {
  margin: 0;
  font-family: "Nyght Serif", serif;
  font-weight: 400;
  line-height: 1.03;
}

.hero h1 {
  max-width: 10ch;
  padding-bottom: 0.08em;
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  letter-spacing: -0.035em;
}

.hero-role {
  margin: 1.35rem 0 0;
  max-width: 28ch;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--ink);
  font-weight: 600;
}

.hero-summary {
  max-width: 36rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.58;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), #e38b56);
  box-shadow: 0 16px 36px rgba(200, 100, 51, 0.28);
}

.button-secondary {
  border-color: rgba(23, 24, 29, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.35rem;
  padding: 0;
  margin: 1.8rem 0 0;
  list-style: none;
  color: var(--ink-soft);
}

.contact-strip a {
  position: relative;
}

.contact-strip a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

/* ── Hero panel ── */

.hero-panel {
  display: grid;
  gap: 1rem;
  align-self: start;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--radius-xl) + 0.5rem);
  background:
    linear-gradient(145deg, rgba(16, 21, 33, 0.96), rgba(26, 34, 51, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  color: white;
  box-shadow: 0 32px 80px rgba(16, 21, 33, 0.28);
}

.hero-photo {
  position: relative;
  border-radius: calc(var(--radius-xl) + 0.25rem);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 2rem;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.32;
}

/* ── Panels ── */

.panel {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel-dark {
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.panel-label {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.focus-list,
.plain-list,
.timeline-list,
.contact-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.focus-list li,
.plain-list li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.focus-list li + li,
.plain-list li + li,
.timeline-list li + li {
  margin-top: 0.75rem;
}

.focus-list li::before,
.plain-list li::before,
.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.panel-dark .focus-list li::before {
  background: #f4ab7a;
}

/* ── Sections ── */

.section {
  padding: 5.5rem 0;
}

.surface-light {
  position: relative;
  padding-inline: 60px;
}

.surface-light::before {
  content: "";
  position: absolute;
  inset: 1rem 0;
  z-index: -1;
  border-radius: 2.5rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.68),
      rgba(255, 255, 255, 0.24)
    ),
    rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.surface-dark {
  position: relative;
  margin-top: 1.5rem;
  padding: 5.8rem 60px;
  border-radius: 2.5rem;
  background:
    radial-gradient(
      circle at top right,
      rgba(15, 118, 110, 0.22),
      transparent 26%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(200, 100, 51, 0.22),
      transparent 28%
    ),
    linear-gradient(160deg, rgba(16, 21, 33, 0.98), rgba(26, 34, 51, 0.94));
  color: white;
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.4rem;
}

.section-title {
  padding-bottom: 0.08em;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  letter-spacing: -0.028em;
}

.section-note {
  max-width: 48rem;
  color: inherit;
  opacity: 0.82;
  font-size: 1.05rem;
  line-height: 1.58;
}

.inverted .eyebrow {
  color: #f0b08c;
}

.title-word-wrap {
  display: inline-block;
  overflow: hidden;
  padding: 0.08em 0.06em 0.18em;
  margin-right: 0.06em;
}

.title-word {
  display: inline-block;
  transform-origin: 50% 100%;
}

/* ── About ── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
}

.statement-panel,
.contact-panel,
.contact-card,
.side-panel {
  padding: 1.5rem;
}

.statement-panel {
  display: grid;
  gap: 1rem;
}

.statement-panel p,
.contact-panel p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

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

.service-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: 0 16px 40px rgba(26, 34, 51, 0.08);
}

.service-label {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.service-card h3,
.timeline-card h3,
.contact-card h3,
.skill-category h3 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.service-card p:last-child {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.48;
}

/* ── Timeline ── */

.timeline-shell {
  position: relative;
}

.timeline-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 173px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(200, 100, 51, 0.08),
    rgba(15, 118, 110, 0.12)
  );
  overflow: hidden;
}

.timeline-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24),
    transparent 20%,
    transparent 82%,
    rgba(255, 255, 255, 0.2)
  );
  opacity: 0.7;
}

.timeline-rail-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4bb93 0%, #c86433 46%, #0f766e 100%);
  box-shadow: 0 0 18px rgba(200, 100, 51, 0.35);
}

.timeline {
  display: grid;
  gap: 3.5rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  left: 173px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(246, 240, 230, 0.9);
  border-radius: 50%;
  background: linear-gradient(135deg, #f0b08c, #0f766e);
  box-shadow: 0 0 20px rgba(200, 100, 51, 0.26);
  transform: translateX(-50%);
}

.timeline-meta {
  position: sticky;
  top: 6rem;
  padding: 1rem 1rem 0 0;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-card {
  position: relative;
  padding: 1.45rem 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: 0 18px 40px rgba(26, 34, 51, 0.08);
}

.timeline-role {
  margin: 0 0 0.25rem;
  color: var(--accent-strong);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin-bottom: 1rem;
}

.timeline-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ── Skills ── */

.skills-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
}

.skill-category {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 1rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: 0 16px 36px rgba(26, 34, 51, 0.06);
}

.skill-category-head {
  display: grid;
  gap: 0.25rem;
}

.skill-category-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.skill-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-content: start;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(23, 24, 29, 0.08);
  border-radius: 0.85rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.72)
  );
  font-size: 20px;
  font-weight: 600;
}

.skill-chip i {
  width: 1.25rem;
  flex-shrink: 0;
  color: var(--accent-strong);
  font-size: 1.15rem;
  text-align: center;
}

.skill-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent-strong);
}

.skill-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 800;
  color: white;
  background: var(--accent-strong);
  border-radius: 3px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.credentials-grid .panel {
  padding: 1.35rem 1.5rem;
}

.credentials-grid .plain-list li {
  font-size: 20px;
}

.degree {
  margin: 0 0 0.8rem;
  font-size: 1.22rem;
  font-weight: 700;
}

/* ── Projects ── */

.projects-showcase {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.projects-showcase.is-dragging {
  cursor: grabbing;
}

.projects-showcase img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.projects-track {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  will-change: transform;
}

.project-card {
  position: relative;
  flex: 0 0 min(480px, 85vw);
  height: 500px;
  display: grid;
  grid-template-rows: 200px 1fr;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) + 0.2rem);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: box-shadow 0.5s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--project-accent, white) 12%, transparent),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card .project-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-card:hover .project-glow {
  opacity: 1;
}

.project-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--project-accent, white) 20%, transparent);
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 0.6;
}

.project-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(16, 21, 33, 0.5) 100%
  );
  pointer-events: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-media img {
  transform: scale(1.08);
}

.project-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.2rem 1.3rem 1.4rem;
  overflow: hidden;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.project-index {
  color: rgba(255, 255, 255, 0.35);
  font-family: "Nyght Serif", serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.project-type {
  color: var(--project-accent, rgba(255, 255, 255, 0.78));
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.project-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--project-accent, white) 18%, transparent);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(
    in srgb,
    var(--project-accent, white) 50%,
    rgba(255, 255, 255, 0.12)
  );
  background: color-mix(
    in srgb,
    var(--project-accent, white) 16%,
    rgba(255, 255, 255, 0.06)
  );
}

.projects-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.projects-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.projects-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.projects-counter {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: "Nyght Serif", serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
}

.projects-current {
  color: white;
  font-size: 1.8rem;
}

.projects-divider {
  opacity: 0.3;
}

/* ── Contact & Footer ── */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.contact-card .contact-list li {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 0;
}

.contact-card .contact-list li + li {
  border-top: 1px solid var(--line);
}

.contact-card .contact-list span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-card .contact-list a {
  font-size: 1.12rem;
  font-weight: 700;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  color: var(--ink-soft);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* ── Animations ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

/* ── Media Queries ── */

@media (max-width: 1080px) {
  .hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
  }

  .timeline-meta {
    position: static;
    padding: 0;
  }

  .timeline-rail {
    left: 0.5rem;
  }

  .timeline-item::before {
    left: 0.5rem;
  }

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

@media (max-width: 1080px) and (min-width: 621px) {
  .hero h1 {
    max-width: none;
    text-align: center;
  }

  .hero-role {
    max-width: none;
    text-align: center;
  }

  .hero-summary {
    max-width: none;
    text-align: center;
  }

  .brand-copy small {
    font-size: 0.76rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .contact-strip {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .surface-light {
    padding-inline: 25px;
  }

  .site-header {
    border-radius: 1.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Fullscreen mobile menu */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem;
    background: rgba(16, 21, 33, 0.88);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    opacity: 0;
    visibility: hidden;
    font-size: 1rem;
  }

  .site-nav .nav-glass {
    display: none;
  }

  .site-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.55rem 1.2rem;
    border-radius: 1rem;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav a.is-active {
    color: #f0b08c;
  }

  .brand-copy small {
    display: none;
  }

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

  .skill-chip-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .service-grid,
  .credentials-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .section,
  .hero,
  .site-footer {
    width: min(var(--max-width), calc(100% - 3rem));
  }

  /* Projects full width on mobile */
  #projects {
    width: 100%;
    border-radius: 0;
    padding: 3.5rem 0;
    margin-top: 0;
  }

  #projects .section-heading {
    padding: 0 1.5rem;
  }

  #projects .projects-nav {
    padding: 0 1rem;
  }

  .projects-showcase {
    border-radius: 0;
  }

  .projects-track {
    gap: 1rem;
    padding-left: 0;
  }

  .project-card {
    flex: 0 0 calc(100vw - 2rem);
    height: 480px;
  }

  .skills-categories {
    grid-auto-rows: auto;
  }

  .surface-dark {
    padding: 4.7rem 0.9rem;
    border-radius: 2rem;
  }

  .section-title {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
    letter-spacing: 0.01em;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
    letter-spacing: -0.01em;
  }

  .contact-strip {
    flex-direction: column;
    gap: 0.7rem;
  }

  .surface-light#about,
  .surface-light#skills {
    padding: 60px 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
