/* ============================================================
   Yoopy Christian Portfolio — Premium Dark Theme
   ============================================================ */

:root {
  /* Light palette */
  --bg: #ffffff;
  --bg-2: #f8f8fb;
  --bg-3: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f5f5fa;
  --surface-3: #ebebf4;

  /* Text */
  --ink: #0f0f1a;
  --ink-2: #2e2e45;
  --muted: #6b6b85;
  --soft: #9898b0;

  /* Borders */
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);

  /* Accent colors */
  --blue: #6b8cff;
  --blue-dim: rgba(107, 140, 255, 0.15);
  --green: #4ecf8a;
  --green-dim: rgba(78, 207, 138, 0.15);
  --amber: #f59e3c;
  --amber-dim: rgba(245, 158, 60, 0.15);
  --red: #f26c6c;
  --red-dim: rgba(242, 108, 108, 0.15);
  --purple: #b48aff;
  --purple-dim: rgba(180, 138, 255, 0.15);
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.15);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 0 32px rgba(107, 140, 255, 0.18);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --max-w: 1200px;
  --pad: 24px;
  --nav-h: 64px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* Subtle dot grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

body.nav-open { overflow: hidden !important; position: fixed; width: 100%; }

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

::selection { color: var(--bg); background: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ── Skip link ── */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 16px; }

/* ── Container ── */
.container {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.nav__inner {
  width: min(100%, var(--max-w));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(107, 140, 255, 0.3), var(--glow-blue);
}

.nav__logo-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 150ms, color 150ms;
}
.nav__link:hover, .nav__link:focus-visible {
  background: var(--surface);
  color: var(--ink);
}

.nav__link--button {
  margin-left: 8px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(107, 140, 255, 0.4);
}
.nav__link--button:hover, .nav__link--button:focus-visible {
  background: #7da0ff;
  color: #fff;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms var(--ease), opacity 200ms;
}
.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 100px;
  overflow: hidden;
}

/* Background gradient blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(107, 140, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(180, 138, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 480px);
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.6; box-shadow: 0 0 3px var(--green); }
}

.hero__title {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

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

.hero__bio {
  max-width: 560px;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms var(--ease), background 160ms, box-shadow 160ms, border-color 160ms;
}
.button:hover { transform: translateY(-2px); }

.button--primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(107, 140, 255, 0.3);
}
.button--primary:hover { box-shadow: 0 8px 30px rgba(107, 140, 255, 0.45); }

.button--secondary {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
}
.button--secondary:hover { border-color: var(--muted); background: var(--surface-2); }

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.hero__links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms;
}
.hero__links a::before {
  content: '↗';
  font-size: 11px;
  opacity: 0.5;
}
.hero__links a:hover { color: var(--blue); }

/* ── Hero Panel / Card ── */
.hero-panel {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-panel__top strong { color: var(--ink); font-size: 13px; }

.hero-panel__screen { padding: 20px; }

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #e8e8ee;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.screen-bar span:nth-child(1) { background: #ff5f57; }
.screen-bar span:nth-child(2) { background: #febc2e; }
.screen-bar span:nth-child(3) { background: #28c840; }

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  gap: 1px;
  background: var(--line);
}

.screen-card {
  background: var(--bg-3);
  padding: 18px;
  min-height: 110px;
}
.screen-card--wide {
  grid-column: span 2;
  min-height: 130px;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.08), var(--bg-3));
}

.screen-card small {
  display: block;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.screen-card strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}

.hero-panel__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}

.stat {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.35;
}

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.marquee-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-right: 1px solid var(--line);
}
.marquee-item i {
  font-size: 28px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 150ms;
}
.marquee-item:hover i { opacity: 1; }
.marquee-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 150ms;
}
.marquee-logo--dark {
  filter: brightness(0.4);
}
.marquee-item:hover .marquee-logo { opacity: 1; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section--work {
  background: var(--bg);
}

.section__header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section__title {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.section__intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ── Filter tabs ── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-tab {
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 150ms;
}
.filter-tab:hover { border-color: var(--muted); color: var(--ink-2); }
.filter-tab.is-active {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(107, 140, 255, 0.4);
}

/* ── Featured projects grid ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

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

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.show-more-btn:hover {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--surface-2);
}
.show-more-btn svg {
  transition: transform 250ms;
}
.show-more-btn.is-open svg {
  transform: rotate(180deg);
}

/* ── Project Card ── */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}

.project-card--featured {
  min-height: 420px;
}

/* Visual preview area */
.project-card__visual {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.project-card--featured .project-card__visual {
  min-height: 210px;
}

/* Accent color top bar */
.project-card__visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}
.project-card[data-accent="blue"] .project-card__visual::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.project-card[data-accent="green"] .project-card__visual::before { background: linear-gradient(90deg, var(--green), var(--teal)); }
.project-card[data-accent="amber"] .project-card__visual::before { background: linear-gradient(90deg, var(--amber), #f87316); }
.project-card[data-accent="red"] .project-card__visual::before { background: linear-gradient(90deg, var(--red), var(--amber)); }
.project-card[data-accent="purple"] .project-card__visual::before { background: linear-gradient(90deg, var(--purple), var(--blue)); }
.project-card[data-accent="slate"] .project-card__visual::before { background: linear-gradient(90deg, var(--soft), var(--muted)); }

/* Dark overlay gradient on visual */
.project-card__visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  z-index: 1;
}

/* Mockup window chrome */
.visual-window {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  width: fit-content;
}
.visual-window span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.visual-window span:nth-child(1) { background: rgba(255, 90, 80, 0.7); }
.visual-window span:nth-child(2) { background: rgba(255, 190, 40, 0.7); }
.visual-window span:nth-child(3) { background: rgba(40, 200, 60, 0.7); }

/* Gradient mockup lines */
.visual-lines {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}
.visual-lines i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}
.visual-lines i:nth-child(1) { width: 75%; }
.visual-lines i:nth-child(2) { width: 50%; }
.visual-lines i:nth-child(3) { width: 85%; }

.visual-logo {
  width: 120px;
  height: auto;
  margin-top: 18px;
  object-fit: contain;
}

/* Category chip in visual */
.visual-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  width: fit-content;
}

/* Background gradient per accent */
.project-card[data-accent="blue"] .project-card__visual { background: linear-gradient(135deg, #0d1a3f 0%, #0a1229 100%); }
.project-card[data-accent="green"] .project-card__visual { background: linear-gradient(135deg, #0a2618 0%, #061a10 100%); }
.project-card[data-accent="amber"] .project-card__visual { background: linear-gradient(135deg, #2a1800 0%, #1a1000 100%); }
.project-card[data-accent="red"] .project-card__visual { background: linear-gradient(135deg, #2a0c0c 0%, #1c0606 100%); }
.project-card[data-accent="purple"] .project-card__visual { background: linear-gradient(135deg, #1a0f2e 0%, #110920 100%); }
.project-card[data-accent="slate"] .project-card__visual { background: linear-gradient(135deg, #141420 0%, #0e0e18 100%); }
.project-card[data-accent="teal"] .project-card__visual { background: linear-gradient(135deg, #071e1c 0%, #041310 100%); }
.project-card[data-accent="teal"] .project-card__visual::before { background: linear-gradient(90deg, var(--teal), var(--green)); }

/* Card body */
.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}
.project-card__meta span + span::before {
  content: '·';
  margin-right: 6px;
}

.project-card__title {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}
.project-card__title a::after,
.project-card__title-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.project-card__desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  flex: 1;
}

.project-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card__tags span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 4px 9px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.project-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.project-card__arrow::after {
  content: '→';
  font-size: 14px;
}

/* ============================================================
   SPLIT LAYOUT (Experience / Skills)
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.section__header--sticky {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* ── Experience ── */
.experience-list {
  display: grid;
  gap: 0;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.experience-item:first-child { border-top: 1px solid var(--line); }

.experience-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.experience-item__period {
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 3px;
}

.experience-item h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

.experience-item__company {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

.experience-item__desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.experience-item__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.experience-item__highlights span,
.skill-row span,
.skill-tag {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 5px 10px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 150ms, background 150ms;
}
.skill-tag--logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
}
.skill-tag--logo i {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.skill-tag--logo .skill-tag__label {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.skill-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.skill-logo-img[src*="krakend"] {
  filter: brightness(0.4);
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  gap: 12px;
}

.skill-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  transition: border-color 150ms, background 150ms;
}
.skill-row:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.skill-row h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.skill-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(107, 140, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact h2 {
  max-width: 480px;
  margin-top: 16px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.contact__links {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.contact__link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  transition: all 150ms;
}
.contact__link-item:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--blue);
  transform: translateX(4px);
}

.contact__link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact__link-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.contact__link-label small {
  font-size: 10px;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.contact__link-label span {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--soft);
  font-size: 13px;
}

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

.footer a {
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  transition: color 150ms;
}
.footer a:hover { color: var(--ink); }

/* ============================================================
   WORK PAGE WRAPPER
   ============================================================ */
.work-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

.work-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  height: 52px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.work-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: color 150ms;
}
.work-topbar__back:hover { color: var(--ink); }
.work-topbar__back::before { content: '←'; font-size: 16px; }

.work-topbar__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.work-topbar__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.work-topbar__subtitle {
  font-size: 10px;
  color: var(--soft);
  font-family: var(--font-mono);
}

.work-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-topbar__tag {
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-iframe-container {
  flex: 1;
  position: relative;
  min-height: calc(100vh - 52px);
}

.work-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
  min-height: calc(100vh - 52px);
}

/* Work page meta strip */
.work-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.work-meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.work-meta__item strong { color: var(--ink-2); font-weight: 600; }

.work-meta__sep {
  width: 1px;
  height: 14px;
  background: var(--line-2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { max-width: 560px; }
  .split-section { grid-template-columns: 1fr; }
  .section__header--sticky { position: static; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root {
    --pad: 18px;
    --nav-h: 58px;
  }

  .nav__logo-text { display: none; }
  .nav__toggle {
    display: flex;
  }
  .nav__links {
    display: none;
    position: fixed !important;
    top: 58px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    z-index: 9999 !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: #ffffff !important;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 24px 20px;
    overflow-y: auto;
  }
  .nav__links.is-open { display: flex !important; }
  .nav__link {
    display: block !important;
    padding: 18px 20px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    color: #0f0f1a !important;
    background: transparent !important;
    border: none !important;
  }
  .nav__link:hover, .nav__link:active { background: rgba(0,0,0,0.05) !important; }
  .nav__link--button {
    margin-left: 0 !important;
    margin-top: 8px !important;
    text-align: center !important;
    background: #6b8cff !important;
    color: #fff !important;
    border-radius: 12px !important;
  }

  .hero { padding: calc(var(--nav-h) + 52px) 0 64px; }
  .hero__title { font-size: 34px; }
  .hero__bio { font-size: 15px; }
  .hero__actions .button { flex: 1; }

  .featured-grid,
  .projects-grid { grid-template-columns: 1fr; }

  .hero-panel { margin-top: 0; }
  .hero-panel__bottom { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }

  .screen-grid { grid-template-columns: 1fr; }
  .screen-card--wide { grid-column: auto; }

  .section { padding: 64px 0; }
  .section__title { font-size: 26px; }
  .contact { padding: 64px 0; }
  .contact h2 { font-size: 26px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media print {
  .nav, .hero__actions, .hero__links, .footer { display: none; }
  body { background: #fff; color: #000; }
}

/* ── Utility ── */
.noscript-msg { color: var(--muted); padding: 24px 0; }
