/* ============================================================
   Gabriel Alcantara — Portfolio
   Dark mode tech, monospace, terminal-inspired
   ============================================================ */

:root {
  --bg: oklch(0.16 0.008 250);
  --bg-elev: oklch(0.20 0.010 250);
  --bg-card: oklch(0.22 0.012 250);
  --line: oklch(0.30 0.012 250);
  --line-soft: oklch(0.26 0.010 250);
  --fg: oklch(0.96 0.005 250);
  --fg-dim: oklch(0.72 0.012 250);
  --fg-mute: oklch(0.52 0.012 250);
  --accent: oklch(0.65 0.22 245);
  --accent-dim: oklch(0.42 0.18 245);
  --warn: oklch(0.82 0.16 75);
  --danger: oklch(0.72 0.18 25);

  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-display: 'Space Grotesk', 'Geist', system-ui, sans-serif;

  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  font-feature-settings: "ss01", "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 720px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }

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

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 9998;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Ambient background — soft radial glow + horizontal scanlines */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(60% 50% at 80% 10%, oklch(0.65 0.22 245 / 0.07), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, oklch(0.72 0.10 240 / 0.06), transparent 60%);
  filter: blur(20px);
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    oklch(0.96 0.005 250 / 0.012) 3px,
    oklch(0.96 0.005 250 / 0.012) 4px
  );
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transition: width .2s, height .2s, background .2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--fg-dim);
  border-radius: 50%;
  transition: width .25s var(--ease), height .25s var(--ease), background .2s, border-color .2s;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--accent); }
.cursor-ring.text { width: 4px; height: 22px; border-radius: 1px; background: var(--accent); border-color: transparent; }
@media (max-width: 720px) { .cursor-dot, .cursor-ring { display: none; } }

/* Get in touch button */
.get-in-touch {
  position: relative;
}
.git-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--accent-dim);
  background: oklch(0.65 0.22 245 / 0.05);
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease), border-color .3s, color .3s, padding .3s var(--ease);
}
.git-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, oklch(0.65 0.22 245 / 0.25) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
}
.get-in-touch:hover .git-trigger,
.get-in-touch.open .git-trigger {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.get-in-touch:hover .git-trigger { padding-right: 18px; }
.get-in-touch.open .git-trigger { padding-right: 26px; }
.get-in-touch:hover .git-trigger::before { transform: translateX(110%); }
.git-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s var(--ease) infinite;
  position: relative; z-index: 2;
}
.get-in-touch:hover .git-pulse,
.get-in-touch.open .git-pulse { background: var(--bg); box-shadow: none; }
.git-label, .git-arrow { position: relative; z-index: 2; }
.git-arrow { transition: transform .3s var(--ease); }
.get-in-touch.open .git-arrow { transform: rotate(90deg); }

.git-options {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 110;
}
.get-in-touch.open .git-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.git-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: padding .3s var(--ease), background .3s;
}
.git-opt:last-child { border-bottom: none; }
.git-opt::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.git-opt:hover { background: var(--bg-elev); padding-left: 22px; }
.git-opt:hover::before { transform: scaleY(1); }
.git-opt-k { font-size: 10px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.git-opt-v { font-size: 13px; color: var(--fg); }

@media (max-width: 720px) {
  .git-trigger { padding: 8px 12px; font-size: 11px; }
  .git-options { width: 280px; }
}
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--bg) 50%, transparent);
  backdrop-filter: blur(8px);
}
.topbar .get-in-touch { justify-self: start; }
.topbar nav { justify-self: center; }
.topbar .controls { justify-self: end; }
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg);
  font-weight: 500;
}
.topbar .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.65 0.22 245 / 0.5); }
  50% { box-shadow: 0 0 0 8px oklch(0.65 0.22 245 / 0); }
}
.topbar nav {
  display: flex; gap: 28px;
  color: var(--fg-dim);
}
.topbar nav a {
  position: relative;
  transition: color .2s;
}
.topbar nav a::before {
  content: attr(data-num);
  margin-right: 6px;
  color: var(--fg-mute);
  font-size: 10px;
}
.topbar nav a:hover { color: var(--accent); }
.topbar .controls { display: flex; gap: 16px; align-items: center; color: var(--fg-dim); }
.topbar .lang {
  display: flex; gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
}
.topbar .lang button {
  padding: 2px 6px;
  color: var(--fg-mute);
  border-radius: 1px;
  transition: color .2s, background .2s;
}
.topbar .lang button.active { color: var(--bg); background: var(--accent); }
.topbar .clock { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .topbar nav { display: none; }
}

/* Sections */
section {
  position: relative;
  padding: 100px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  z-index: 2;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head .num { color: var(--accent); }
.section-head .title { color: var(--fg); }
.section-head .meta { margin-left: auto; color: var(--fg-mute); }

/* Hero */
#hero {
  min-height: 100vh;
  padding-top: 90px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 40px;
}
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg-mute);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  animation: bob 2.4s var(--ease) infinite;
}
.hero-scroll-cue .line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, var(--accent));
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-meta {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.hero-meta .row { display: flex; gap: 20px; align-items: center; }
.hero-meta .label { color: var(--fg-mute); }
.hero-meta .val { color: var(--fg-dim); }
.hero-meta .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.hero-meta .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-name {
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--fg);
  text-wrap: balance;
  cursor: default;
  position: relative;
  --mx: -300px;
  --my: -300px;
  --ma: 0;
  display: inline-block;
}
.hero-name .name-layer {
  display: block;
}
.hero-name .name-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--accent);
  filter: drop-shadow(0 0 6px oklch(0.65 0.22 245 / 0.7));
}
.hero-name .name-glow .accent {
  color: var(--accent);
}
.hero-name .shine {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    100deg,
    var(--fg) 0%,
    var(--fg) 35%,
    oklch(1 0 0) 47%,
    oklch(0.65 0.22 245) 50%,
    oklch(1 0 0) 53%,
    var(--fg) 65%,
    var(--fg) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5.5s var(--ease) infinite;
}
.hero-name .shine:nth-child(3) { animation-delay: 0.4s; }
@keyframes shine {
  0%   { background-position: 100% 50%; }
  55%  { background-position: 0% 50%; }
  100% { background-position: -60% 50%; }
}
.hero-name .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  -webkit-text-fill-color: var(--accent);
}
.hero-role {
  margin-top: 28px;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-role .hl { color: var(--fg); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.05);
  transition: filter .6s var(--ease), transform 1.4s var(--ease);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}
.hero-photo:hover img { transform: scale(1.02); }
.hero-photo .corner { display: none; }
.hero-photo .tag { display: none; }

.hero-status {
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-status .k { color: var(--fg-mute); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.hero-status .v { color: var(--fg); }

.hero-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-bottom .scroll-hint {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-dim);
}
.hero-bottom .scroll-hint .arrow {
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--fg-dim);
  position: relative;
}
.hero-bottom .scroll-hint .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--fg-dim);
  border-bottom: 1px solid var(--fg-dim);
  transform: rotate(-45deg);
}

#about { padding-top: 120px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 920px;
  gap: 0;
}

.about-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-dim);
  text-wrap: pretty;
  font-family: var(--font-display);
  font-weight: 400;
}
.about-text p + p { margin-top: 20px; }
.about-text .hl { color: var(--fg); }
.about-text .acc { color: var(--accent); }

.about-stack {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.about-stack span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--fg-dim);
  transition: color .2s, border-color .2s;
}
.about-stack span:hover { color: var(--accent); border-color: var(--accent-dim); }

/* Projects */
.proj-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.proj {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr 1fr 200px 120px;
  gap: 24px;
  align-items: center;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  cursor: none;
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.proj::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, oklch(0.65 0.22 245 / 0.04), transparent);
  opacity: 0; transition: opacity .4s;
}
.proj:hover { padding-left: 24px; }
.proj:hover::before { opacity: 1; }
.proj:hover .proj-name { color: var(--accent); }
.proj:hover .proj-arrow { transform: translateX(0); opacity: 1; }

.proj-num { color: var(--fg-mute); font-size: 12px; }
.proj-name { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; transition: color .3s; }
.proj-desc { color: var(--fg-dim); font-size: 13px; line-height: 1.6; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
  font-size: 10px; padding: 3px 7px;
  border: 1px solid var(--line); color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.proj-meta { color: var(--fg-mute); font-size: 11px; text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.proj-arrow {
  display: inline-block;
  opacity: 0.3;
  transform: translateX(-8px);
  transition: transform .3s var(--ease), opacity .3s;
  color: var(--accent);
}

@media (max-width: 1100px) {
  .proj { grid-template-columns: 40px 1fr; gap: 12px 20px; }
  .proj-desc, .proj-tags, .proj-meta { grid-column: 2; }
  .proj-num { grid-row: 1 / span 4; align-self: start; padding-top: 8px; }
  .proj-meta { text-align: left; justify-content: flex-start; }
}

/* Achievements / Wins */
.wins-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.win {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .35s var(--ease);
}
.win::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease);
}
.win:hover::before { transform: scaleY(1); }
.win:hover { background: linear-gradient(90deg, oklch(0.65 0.22 245 / 0.03), transparent 40%); }

.win-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 0 12px;
}
.win-num { color: var(--accent); font-family: var(--font-mono); }

.win-body {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 64px;
  align-items: start;
  padding: 0 12px;
}
@media (max-width: 900px) {
  .win-body { grid-template-columns: 1fr; gap: 24px; }
}

.win-kpi {
  position: sticky;
  top: 90px;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--fg);
  background: linear-gradient(180deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  transition: transform .5s var(--ease);
}
.win:hover .kpi-value { transform: translateX(4px); }
.kpi-label {
  margin-top: 14px;
  color: var(--fg-mute);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 28ch;
}

.win-story { padding-top: 8px; }
.win-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--fg);
}
.win-desc {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
  font-family: var(--font-display);
  margin-bottom: 20px;
  max-width: 60ch;
}
.win-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Project preview overlay — disabled */
.proj-preview { display: none; }

/* Experience — timeline cards */
.exp-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 8px;
}
.exp {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 0 0 56px 0;
  position: relative;
}
.exp:last-child { padding-bottom: 0; }

.exp-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
}
.exp-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px oklch(0.65 0.22 245 / 0.08);
  position: relative;
  z-index: 2;
}
.exp:first-child .exp-dot {
  background: var(--accent);
  box-shadow: 0 0 16px oklch(0.65 0.22 245 / 0.5), 0 0 0 4px oklch(0.65 0.22 245 / 0.12);
}
.exp-line {
  position: absolute;
  left: 5px;
  top: 33px;
  bottom: -56px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-dim), var(--line));
  opacity: 0.5;
}
.exp:last-child .exp-line { display: none; }
.exp-period {
  margin-top: 10px;
  margin-left: 22px;
  color: var(--fg-mute);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.exp-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-elev), transparent);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 0% 0%, oklch(0.65 0.22 245 / 0.06), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.exp:hover .exp-card { border-color: var(--accent-dim); transform: translateX(4px); }
.exp:hover .exp-card::before { opacity: 1; }
.exp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
  position: relative;
}
.exp .role {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.exp .role-at {
  color: var(--fg-mute);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.exp .company {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.exp .desc {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.7;
  max-width: 64ch;
  text-wrap: pretty;
  font-family: var(--font-display);
  position: relative;
}
.exp .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex-direction: row;
  align-items: flex-start;
}
.exp .badges .b {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
@media (max-width: 900px) {
  .exp { grid-template-columns: 1fr; gap: 14px; padding-bottom: 40px; }
  .exp-marker { flex-direction: row; align-items: center; padding-top: 0; }
  .exp-line { display: none; }
  .exp-period { margin-top: 0; margin-left: 12px; }
  .exp-card-head { flex-direction: column; }
  .exp .badges { justify-content: flex-start; }
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-group .skill-title {
  font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.skill-group .skill-title .count { color: var(--fg-mute); }
.skill-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.skill-group li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--fg-dim);
  padding: 4px 0;
  transition: color .2s;
}
.skill-group li:hover { color: var(--fg); }
.skill-group li .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.4;
}
.skill-group li .lvl { color: var(--fg-mute); font-size: 10px; letter-spacing: 0.08em; }

/* Contact */
#contact {
  padding-top: 120px;
  padding-bottom: 80px;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}
.contact-headline .acc { color: var(--accent); font-style: italic; font-weight: 400; }
.contact-headline .blink::after {
  content: "_";
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.contact-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  position: relative;
  overflow: hidden;
  transition: padding .3s var(--ease);
}
.contact-row .k { color: var(--fg-mute); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-row .v { color: var(--fg); display: flex; align-items: center; gap: 12px; }
.contact-row .v .arrow {
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s, transform .3s;
  color: var(--accent);
}
.contact-row:hover { padding-left: 12px; }
.contact-row:hover .v { color: var(--accent); }
.contact-row:hover .v .arrow { opacity: 1; transform: translateX(0); }

footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--pad) 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .54s; }

/* Utility */
.kbd {
  font-size: 10px; padding: 2px 6px;
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--fg-dim); background: var(--bg-elev);
}

/* Page transition overlay — horizontal wipe switch */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
}
.page-overlay.in {
  pointer-events: auto;
  animation: pageSwitch 1.4s var(--ease) forwards;
}
.page-overlay::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 8px var(--accent);
}
@keyframes pageSwitch {
  0%   { clip-path: inset(0 100% 0 0); }
  35%  { clip-path: inset(0 0% 0 0); }
  65%  { clip-path: inset(0 0% 0 0); }
  100% { clip-path: inset(0 0% 0 100%); }
}
.page-overlay .label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: 0.15em;
  display: flex; align-items: center; gap: 24px;
  opacity: 0;
}
.page-overlay.in .label {
  animation: labelFade 1.4s var(--ease) forwards;
}
@keyframes labelFade {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}
.page-overlay .label .bar {
  width: 60px; height: 1px;
  background: var(--accent);
  animation: barFill 1.4s var(--ease);
  transform-origin: left;
}
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Certifications */
#certs { padding-top: 120px; }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .certs-grid { grid-template-columns: 1fr; }
}
.cert {
  background: var(--bg);
  padding: 24px 26px;
  position: relative;
  transition: background .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert:hover { background: var(--bg-elev); }
.cert-featured {
  background: linear-gradient(180deg, oklch(0.65 0.22 245 / 0.04), transparent 70%);
}
.cert-featured:hover {
  background: linear-gradient(180deg, oklch(0.65 0.22 245 / 0.07), var(--bg-elev) 70%);
}
.cert-mark {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cert-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cert-pin {
  color: var(--accent);
  font-size: 10px;
}
.cert-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.3;
  text-wrap: balance;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.cert-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.cert-sep { color: var(--accent-dim); }

/* Experience details */
.exp-details-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s, color .3s, background .3s;
}
.exp-card:hover .exp-details-btn {
  opacity: 1;
  transform: translateY(0);
}
.exp-details-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: oklch(0.65 0.22 245 / 0.06);
}
.exp-details-arrow {
  color: var(--accent);
  display: inline-block;
  transition: transform .35s var(--ease);
}
.exp-details-btn.open .exp-details-arrow { transform: rotate(90deg); }

.exp-bullets {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .65s var(--ease), opacity .45s var(--ease), margin-top .4s var(--ease);
  margin-top: 0;
}
.exp-bullets.open {
  max-height: 700px;
  opacity: 1;
  margin-top: 16px;
}
.exp-bullets ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent-dim);
  background: var(--bg-elev);
}
.exp-bullets li {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-dim);
  padding-left: 20px;
  position: relative;
  text-wrap: pretty;
}
.exp-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 3px;
}

/* Name trail canvas — must be absolute so it doesn't push layout */
.name-trail-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
