/* ============================================================
   PRIYANSHU SINGH — PORTFOLIO
   Design tokens
   ============================================================ */

:root {
  /* Dark theme (default) */
  --bg: #0B1420;
  --bg-elevated: #101C2E;
  --surface: #16233A;
  --border: #223047;
  --text-primary: #F4F6F8;
  --text-secondary: #93A1B4;
  --text-tertiary: #5D6C80;
  --accent: #4C82FF;
  --accent-dim: #274B99;
  --accent-contrast: #0B1420;

  --font-display: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-data: 'IBM Plex Sans', 'Inter', sans-serif;

  --nav-height: 72px;
  --container-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-elevated: #F4F6F8;
  --surface: #FFFFFF;
  --border: #E1E6ED;
  --text-primary: #0B1420;
  --text-secondary: #4B5768;
  --text-tertiary: #8792A2;
  --accent: #2F62E0;
  --accent-dim: #DCE6FF;
  --accent-contrast: #FFFFFF;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   LOADER
   ============================================================ */

#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  opacity: 0;
  animation: loader-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.loader-mark .tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.loader-mark .tick-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.loader-mark .tick-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.loader-mark .tick-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.loader-mark .tick-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* theme toggle */
.theme-toggle-track {
  display: flex;
  align-items: center;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px;
  transition: background 0.2s ease;
}

.theme-toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.25s ease;
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(18px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.nav-burger span {
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 12px 32px 20px;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 99;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--font-data);
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 32px 80px;
  position: relative;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.eyebrow-tick {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-role {
  font-family: var(--font-data);
  font-size: clamp(17px, 2vw, 20px);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-data);
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white 12%); }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  color: var(--text-secondary);
  padding-left: 12px;
  padding-right: 12px;
}
.btn-ghost:hover { color: var(--text-primary); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-tertiary);
}
.hero-meta .dot { color: var(--border); }

/* hero photo */
.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-self: center;
}

.hero-photo-frame {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 4 / 5;
  padding: 14px;
}

.hero-photo-frame .tick {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.hero-photo-frame .tick-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hero-photo-frame .tick-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hero-photo-frame .tick-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hero-photo-frame .tick-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.hero-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-photo-caption {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.scroll-cue-line {
  width: 1px;
  height: 28px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-cue-drip 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-drip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */

.section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.projects {
  padding: 120px 0 100px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 56px;
}

.btn-small {
  padding: 9px 16px;
  font-size: 13.5px;
}

/* ============================================================
   ROSSMANN CASE STUDY
   ============================================================ */

.case-study {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 40px;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.case-tag {
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.case-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.case-oneliner {
  color: var(--text-secondary);
  font-size: 15.5px;
  max-width: 58ch;
  margin-bottom: 18px;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-stack span {
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.case-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.case-header-actions .btn svg { margin-right: 8px; }

/* KPI strip */
.case-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 36px;
}
.case-kpi {
  background: var(--bg-elevated);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-kpi-value {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--accent);
}
.case-kpi-label {
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* dashboard viewer */
.case-dashboard { margin-bottom: 40px; }

.case-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.case-tab {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.case-tab:hover { color: var(--text-primary); }
.case-tab.active {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
}

.case-dashboard-frame {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.case-dashboard-frame .tick {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  z-index: 1;
}
.case-dashboard-frame .tick-tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.case-dashboard-frame .tick-tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.case-dashboard-frame .tick-bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.case-dashboard-frame .tick-br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.case-dashboard-frame img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 6px);
  display: block;
}

/* case fields grid */
.case-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-bottom: 40px;
}
.case-fields-secondary { margin-bottom: 0; }

.case-field h4 {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.case-field p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.case-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}
.case-list-compact li { font-size: 14px; }

/* corrections */
.case-corrections { margin-bottom: 40px; }
.case-corrections-label {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.correction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.correction-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.correction-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}
.correction-body {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

/* code block */
.case-code {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.case-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.code-copy-btn {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.code-copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.code-copy-btn.copied { color: var(--accent); }

.case-code-body {
  background: #0A0F18;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #C4D0E0;
}
html[data-theme="light"] .case-code-body { background: #0F1420; }

/* ============================================================
   PROJECT CARDS (secondary + grid)
   ============================================================ */

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card-wide { margin-bottom: 24px; }

.project-card-tag {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
}

.project-card-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card-body .case-list { margin-bottom: 24px; }
.project-card > .case-list-compact { margin-bottom: 20px; }

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about { padding: 90px 0; }

.about-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.about-photo-frame {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 4 / 5;
  padding: 12px;
  margin-bottom: 28px;
}
.about-photo-frame .tick {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.about-photo-frame .tick-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.about-photo-frame .tick-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.about-photo-frame .tick-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.about-photo-frame .tick-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-tertiary);
}
.about-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-data);
  font-size: 13.5px;
}
.fact-list li span { color: var(--text-tertiary); }
.fact-list li strong { color: var(--text-primary); font-weight: 500; text-align: right; }

.about-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 62ch;
}
.about-copy p:last-child { margin-bottom: 0; }

/* ============================================================
   EXPERIENCE — TIMELINE
   ============================================================ */

.experience { padding: 90px 0; background: var(--bg-elevated); }

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item { position: relative; }

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}
.timeline-item-edu .timeline-marker {
  background: transparent;
  border: 1.5px solid var(--text-tertiary);
}

.timeline-date {
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
}
.timeline-title span {
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-tertiary);
}

.timeline-org {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
}
.timeline-item-edu .timeline-org { margin-bottom: 0; color: var(--text-secondary); }

/* ============================================================
   SKILLS
   ============================================================ */

.skills { padding: 90px 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 26px 22px;
  transition: border-color 0.2s ease;
}
.skill-card:hover { border-color: var(--accent); }

.skill-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-tags li {
  font-family: var(--font-data);
  font-size: 13.5px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 14px;
}
.skill-tags li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { padding: 90px 0 110px; }

.contact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-card .tick {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.contact-card .tick-tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.contact-card .tick-tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.contact-card .tick-bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.contact-card .tick-br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }

.contact-card .section-eyebrow,
.contact-card .section-heading { justify-content: center; }
.contact-card .section-eyebrow { display: inline-flex; }
.contact-card .section-heading { margin-bottom: 14px; }

.contact-sub {
  margin: 0 auto 32px;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact-socials {
  font-family: var(--font-data);
  font-size: 13.5px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-socials a { color: var(--text-secondary); }
.contact-socials a:hover { color: var(--accent); }
.contact-socials .dot { color: var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-top { color: var(--text-tertiary); transition: color 0.2s ease; }
.footer-top:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }
  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { width: 200px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .case-study { padding: 28px 20px; }
  .case-header-actions { width: 100%; }
  .case-header-actions .btn { flex: 1; }
  .case-kpis { grid-template-columns: repeat(2, 1fr); }
  .case-fields { grid-template-columns: 1fr; }
  .correction-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-footer { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .case-kpis { grid-template-columns: 1fr 1fr; }
  .case-dashboard-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .contact-card { padding: 36px 24px; }
}

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo-frame { width: 180px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr; }
}