/* =========================================================
   Clark Etherington Jr. — Portfolio
   ========================================================= */

:root {
  --bg:        #0a0e1a;
  --bg-soft:   #0e1424;
  --surface:   #141a2e;
  --surface-2: #1b223a;
  --border:    rgba(255, 255, 255, 0.08);
  --border-hi: rgba(100, 255, 218, 0.20);

  --text:      #e4e8f0;
  --muted:     #8b95a7;
  --dim:       #6b7280;

  --accent:    #64ffda;
  --accent-2:  #a78bfa;
  --accent-3:  #60a5fa;

  --glow:      rgba(100, 255, 218, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max:       1180px;
  --radius:    14px;
  --radius-lg: 22px;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* =========================================================
   Background layers
   ========================================================= */

.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(100, 255, 218, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: glowShift 18s ease-in-out infinite alternate;
}

@keyframes glowShift {
  0%   { transform: translateX(-50%) translateY(0);     opacity: 0.8; }
  100% { transform: translateX(-40%) translateY(40px);  opacity: 1.0; }
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

main { position: relative; z-index: 1; }

.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 12%, var(--bg-soft) 88%, transparent 100%);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 60px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  flex: 1;
}

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: 0 0 22px var(--glow);
}

.brand-name { color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

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

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

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

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px var(--glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(100, 255, 218, 0.06);
  border: 1px solid var(--border-hi);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease) both;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
  100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

.hero-title {
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  animation: fadeUp 0.9s var(--ease) 0.1s both;
}

.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--accent);
  margin-bottom: 26px;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.hero-tagline {
  max-width: 680px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  margin-bottom: 42px;
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 32px -12px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -12px rgba(100, 255, 218, 0.45);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(100, 255, 218, 0.04);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
  animation: fadeUp 0.9s var(--ease) 0.5s both;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.meta-item svg {
  width: 18px; height: 18px;
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: fadeUp 1.2s var(--ease) 1s both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1.0); opacity: 1.0; transform-origin: top; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   About
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-text p { margin-bottom: 18px; color: var(--muted); }
.about-text p.lead {
  font-size: 19px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 24px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.about-card h3 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  font-weight: 500;
}

.fact-list > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.fact-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.fact-list dt {
  font-size: 12px;
  color: var(--dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.fact-list dd { font-size: 14.5px; color: var(--text); }

/* =========================================================
   Timeline
   ========================================================= */

.timeline {
  list-style: none;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 60%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 10px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--glow);
  transition: all 0.3s var(--ease);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  transform: scale(1.15);
}

.timeline-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: all 0.3s var(--ease);
}

.timeline-item:hover .timeline-body {
  border-color: var(--border-hi);
  transform: translateX(4px);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--muted);
  font-size: 14px;
}

.timeline-company .timeline-sep { color: var(--dim); margin: 0 5px; }

.timeline-dates {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
  padding: 4px 12px;
  background: rgba(100, 255, 218, 0.06);
  border: 1px solid var(--border-hi);
  border-radius: 99px;
  flex-shrink: 0;
}

.timeline-note {
  color: var(--dim);
  font-size: 13px;
  font-style: italic;
  margin: 6px 0 12px;
}

.timeline-points {
  list-style: none;
  margin-top: 14px;
}

.timeline-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.timeline-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1px;
  background: var(--accent);
}

/* =========================================================
   Skills
   ========================================================= */

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.skill-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
.skill-card:hover::before { opacity: 1; }

.skill-card > * { position: relative; z-index: 1; }

.skill-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}

.skill-icon svg { width: 22px; height: 22px; }

.skill-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-card li::before {
  content: '';
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* =========================================================
   Projects
   ========================================================= */

.project-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 42px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.project-feature::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}

.project-feature-content { position: relative; z-index: 1; }

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.project-feature h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 16px;
}

.project-feature p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.tech-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tech-chips li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding: 5px 11px;
  background: rgba(100, 255, 218, 0.06);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
}

/* Architecture diagram (hero of the featured project) */
.project-feature-visual {
  position: relative;
  padding: 20px;
}

.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
}

.arch-layer {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.arch-row { flex-wrap: wrap; }

.arch-box {
  padding: 10px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  text-align: center;
  min-width: 110px;
}

.arch-box.arch-internet {
  color: var(--muted);
  border-style: dashed;
}

.arch-box.arch-primary {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(167, 139, 250, 0.15));
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  padding: 14px 24px;
}

.arch-box.arch-small {
  min-width: 90px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
}

.arch-pipe {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 4px 0;
}

.arch-pipe.arch-split {
  width: 80%;
  max-width: 320px;
  height: 22px;
  background: none;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 4px 4px;
  position: relative;
}
.arch-pipe.arch-split::before {
  content: '';
  position: absolute;
  top: -22px; left: 50%;
  width: 1px; height: 22px;
  background: var(--accent);
}

/* Reversed layout — visual on the left, content on the right (for alternating featured blocks) */
.project-feature-reverse .project-feature-content { order: 2; }
.project-feature-reverse .project-feature-visual { order: 1; }
.project-feature-reverse::before { right: auto; left: -20%; }

@media (max-width: 900px) {
  .project-feature-reverse .project-feature-content { order: 1; }
  .project-feature-reverse .project-feature-visual { order: 2; }
}

/* Service stack visual (IT's IT MSP) */
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
}

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

.stack-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  text-align: center;
  transition: all 0.25s var(--ease);
}

.stack-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px -10px var(--glow);
}

.stack-tile .stack-key {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.stack-tile .stack-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.stack-tile.stack-tile-primary {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(167, 139, 250, 0.15));
  border-color: var(--accent);
  padding: 18px 12px;
}

.stack-tile.stack-tile-primary .stack-key { color: var(--accent); }
.stack-tile.stack-tile-primary .stack-val { color: var(--accent); font-weight: 600; font-size: 15px; }

.project-feature + .project-feature { margin-top: 32px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: all 0.3s var(--ease);
}

.project-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
}

.project-card h3 {
  font-size: 17px;
  color: var(--text);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.project-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* =========================================================
   Education & Certifications
   ========================================================= */

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.col-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  font-weight: 500;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: border-color 0.3s var(--ease);
}

.edu-card:hover { border-color: var(--border-hi); }

.edu-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.edu-card h4 { font-size: 17px; color: var(--text); }

.edu-location {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.edu-degree { color: var(--muted); font-size: 14.5px; margin-bottom: 4px; }
.edu-degree strong { color: var(--text); font-weight: 600; }

.edu-dates {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.edu-sub {
  list-style: none;
  margin-top: 12px;
  padding-left: 0;
}

.edu-sub li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

.edu-sub li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.cert-list { display: flex; flex-direction: column; gap: 14px; }

.cert-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all 0.3s var(--ease);
}

.cert-card:hover {
  border-color: var(--border-hi);
  transform: translateX(4px);
}

.cert-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid var(--border-hi);
  border-radius: 9px;
  color: var(--accent);
  flex-shrink: 0;
}

.cert-icon svg { width: 20px; height: 20px; }

.cert-card h4 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.cert-card p {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Contact
   ========================================================= */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.contact-lead p.lead {
  font-size: 22px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
}

.contact-lead p {
  color: var(--muted);
  font-size: 15px;
}

.contact-cards { display: flex; flex-direction: column; gap: 14px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.contact-card:not(.contact-card-static):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px var(--glow);
  color: var(--text);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.contact-value {
  display: block;
  font-size: 15.5px;
  color: var(--text);
  font-weight: 500;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Reveal on scroll
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .about-grid, .edu-grid, .contact-wrap, .project-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-card { position: static; }
  .project-feature { padding: 32px; }
  .section { padding: 90px 0; }
  .section-head { margin-bottom: 44px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 26, 0.96);
    backdrop-filter: blur(20px);
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    gap: 0;
    margin-left: 0;
  }
  .nav.open .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a:last-child { border-bottom: none; }

  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); }
  .hero-meta { gap: 16px; flex-direction: column; }
  .section { padding: 70px 0; }
  .timeline { padding-left: 26px; }
  .timeline-dot { left: -26px; }
  .timeline-body { padding: 20px; }
  .timeline-top { flex-direction: column; align-items: start; }
  .project-feature { padding: 24px; }
  .container { padding: 0 20px; }
}

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