/* ============================================================
   Azharuddin Arrosis — Personal Portfolio
   Dark, technical, terminal-inspired theme
   ============================================================ */

:root {
  /* monochrome — dark */
  --accent: #f5f5f5;
  --accent-rgb: 245, 245, 245;
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #262626;
  --border-bright: #3a3a3a;
  --text: #f2f2f2;
  --text-dim: #a3a3a3;
  --text-dimmer: #6b6b6b;
  --nav-bg: rgba(10, 10, 10, 0.72);
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --maxw: 1120px;
}

/* ---------- monochrome — light ---------- */
html[data-theme="light"] {
  --accent: #171717;
  --accent-rgb: 23, 23, 23;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --border: #e4e4e4;
  --border-bright: #cfcfcf;
  --text: #141414;
  --text-dim: #565656;
  --text-dimmer: #8a8a8a;
  --nav-bg: rgba(255, 255, 255, 0.82);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(var(--accent-rgb), 0.3); color: var(--text); }

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

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

/* ---------- language toggling ---------- */
html[data-lang="id"] [data-lang-content="en"] { display: none !important; }
html[data-lang="en"] [data-lang-content="id"] { display: none !important; }

/* ---------- background decoration ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.4s ease;
}

/* ---------- scroll progress ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* ---------- container ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .btn-primary { color: #ffffff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { width: 20px; height: 2px; background: var(--text); }

/* ---------- section base ---------- */
section {
  padding: 110px 0 40px;
  position: relative;
}
.section-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-tag::before { content: '//'; opacity: 0.6; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
#hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.terminal-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dimmer);
  margin-bottom: 6px;
}
.terminal-line .prompt { color: var(--accent); }
.terminal-line .out { color: var(--text-dim); }

.hero-name {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 14px 0 10px;
}
.hero-name .highlight { color: var(--accent); }

.hero-role {
  font-family: var(--mono);
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text-dim);
  min-height: 32px;
  margin-bottom: 22px;
}
.hero-role .cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid var(--border-bright);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: #05100c;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.45); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.social-row { display: flex; gap: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s;
  font-size: 16px;
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* hero photo */
.hero-photo-wrap {
  position: relative;
  justify-self: center;
  width: min(320px, 80vw);
}
.hero-photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.08), 0 30px 60px -20px rgba(0,0,0,0.6);
}
.hero-photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}
.hero-photo-frame .avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb),0.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(var(--accent-rgb),0.04) 0 2px, transparent 2px 14px);
}
.hero-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.photo-badge {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.photo-badge .ping {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: 0.35; } }

/* ---------- about / story ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 15.5px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text .accent-word { color: var(--accent); }

.progression {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
}
.progression-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-dim);
}
.progression-step .num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.progression-step.final { color: var(--text); font-weight: 600; }
.progression-arrow {
  color: var(--text-dimmer);
  padding-left: 11px;
  font-size: 12px;
}

/* ---------- experience timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--border-bright), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 46px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -32px; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-item.current .timeline-dot {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
}
.timeline-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.badge-current {
  font-size: 10px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.timeline-role { font-size: 21px; font-weight: 700; margin-bottom: 3px; }
.timeline-company { color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }
.timeline-company b { color: var(--text); font-weight: 600; }

.timeline-intro { color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }

.timeline-details summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.timeline-details summary::-webkit-details-marker { display: none; }
.timeline-details summary .chevron { transition: transform 0.2s; }
.timeline-details[open] summary .chevron { transform: rotate(90deg); }

.timeline-body { padding-top: 16px; }
.timeline-group { margin-bottom: 16px; }
.timeline-group h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dimmer);
  margin-bottom: 8px;
  font-weight: 600;
}
.timeline-body ul { list-style: none; }
.timeline-body li {
  color: var(--text-dim);
  font-size: 14.5px;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.timeline-body li::before {
  content: '▸';
  position: absolute; left: 0; color: var(--accent);
}
.timeline-body li b { color: var(--text); font-weight: 600; }

.tech-line {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dimmer);
  margin-top: 10px;
  line-height: 1.8;
}
.tech-line .tlabel { color: var(--text-dim); }

/* ---------- stats / impact ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 60px;
}
.stat-cell {
  background: var(--surface);
  padding: 26px 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--mono);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.impact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}
.impact-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.impact-icon { font-size: 26px; margin-bottom: 14px; }
.impact-card h3 { font-size: 16px; margin-bottom: 8px; }
.impact-card p { color: var(--text-dim); font-size: 14px; }

/* ---------- domains ---------- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.domain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-alt);
  transition: all 0.25s;
}
.domain-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.domain-card .icon { font-size: 20px; margin-bottom: 10px; display: block; }
.domain-card h4 { font-size: 15px; margin-bottom: 6px; }
.domain-card p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.portfolio-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12), 0 20px 40px -24px rgba(0,0,0,0.6);
}
.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
  border-bottom: 1px solid var(--border);
}
.portfolio-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
.portfolio-thumb::after {
  content: '⤢';
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text);
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  opacity: 0;
  transition: opacity 0.2s;
}
.portfolio-card:hover .portfolio-thumb::after { opacity: 1; }
.portfolio-card figcaption { padding: 18px 20px 20px; }
.portfolio-card figcaption h4 { font-size: 15px; margin-bottom: 8px; }
.portfolio-card figcaption p { color: var(--text-dim); font-size: 13.5px; margin-bottom: 12px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-tags .tag { font-size: 11.5px; padding: 4px 9px; }

/* on-card detail thumbnails */
.portfolio-shots {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.portfolio-shots .shot {
  width: 58px; height: 40px;
  padding: 0;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
  transition: border-color 0.2s, transform 0.2s;
}
.portfolio-shots .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portfolio-shots .shot:hover { border-color: var(--accent); transform: translateY(-2px); }
.portfolio-shots .shot.active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4); }
.portfolio-shots .shot-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dimmer);
  align-self: center;
  margin-left: 2px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.lightbox-caption {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  color: #f2f2f2;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border-bright);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 42px; height: 42px;
  font-size: 26px;
  line-height: 1;
  color: #f2f2f2;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 30px;
  line-height: 1;
  color: #f2f2f2;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); color: #fff; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox.single .lightbox-nav { display: none; }
@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

/* ---------- skills ---------- */
.skills-list { display: flex; flex-direction: column; gap: 22px; }
.skill-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.skill-row:last-child { border-bottom: none; }
.skill-cat {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  padding: 5px 11px;
  border-radius: 6px;
  transition: all 0.2s;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- education ---------- */
.edu-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 20px;
}
.edu-icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.edu-card h3 { font-size: 17px; margin-bottom: 4px; }
.edu-card p { color: var(--text-dim); font-size: 14px; }

/* ---------- contact ---------- */
#contact { padding-bottom: 80px; }
.contact-box {
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(var(--accent-rgb), 0.08), var(--surface));
}
.contact-box h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.contact-box p { color: var(--text-dim); max-width: 480px; margin: 0 auto 30px; }
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

footer {
  text-align: center;
  padding: 30px 24px 50px;
  color: var(--text-dimmer);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; width: min(220px, 60vw); margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .skill-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 40px 20px; }
  section { padding: 80px 0 30px; }
}
