/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --ink: #14141a;
  --ink-soft: #5c5c66;
  --ink-faint: #94949e;
  --line: #e6e3dd;
  --black: #0b0b0d;
  --accent: #c6ff3a;
  --accent-ink: #12210a;

  --card-pink: #d98fa0;
  --card-pink-ink: #3a1622;
  --card-cyan: #6cc7d9;
  --card-cyan-ink: #0d2f36;
  --card-blush: #f0c9cb;
  --card-blush-ink: #3f1c1f;
  --card-taupe: #a99c8e;
  --card-taupe-ink: #26201a;
  --card-violet: #b4a5e6;
  --card-violet-ink: #241a3d;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Poppins", "Consolas", monospace;

  --shadow-soft: 0 10px 30px -12px rgba(20, 20, 26, 0.15);
  --shadow-card: 0 18px 40px -16px rgba(20, 20, 26, 0.28);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 110px 32px;
}

.section-head { margin-bottom: 44px; max-width: 640px; }

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 520px;
}

.mono-tag {
  font-family: var(--font-mono);
}

/* subtle dotted background */
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* ---------- Scroll progress bar ---------- */
.scrollbar-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--line);
  z-index: 300;
  cursor: pointer;
  touch-action: none;
}

.scrollbar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.scrollbar-handle {
  position: absolute;
  top: 3px;
  left: 0%;
  width: 18px;
  height: 18px;
  background: var(--black);
  border: 3px solid var(--accent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s cubic-bezier(.3,1.5,.5,1);
}

.scrollbar-handle:hover,
.scrollbar-handle.dragging {
  transform: translate(-50%, -50%) scale(1.35);
  cursor: grabbing;
}

.scrollbar-pct {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.scrollbar-handle:hover .scrollbar-pct,
.scrollbar-handle.dragging .scrollbar-pct {
  opacity: 1;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar-inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.role-badges:hover {
  transform: translateY(-2px);
}

.role-icon {
  display: flex;
}

.role-icon svg {
  width: 16px;
  height: 16px;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.pill-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.pill-link:hover { color: var(--ink); }

.pill-link.active {
  background: var(--black);
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-soft);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--black);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
}

.mobile-nav a:hover { background: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-main {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}
.dot-live { background: #2fb872; box-shadow: 0 0 0 3px rgba(47,184,114,0.18); animation: pulse-dot 2s ease-in-out infinite; }
.dot-paused { background: #d9a441; box-shadow: 0 0 0 3px rgba(217,164,65,0.18); }
.dot-progress { background: #4f8fef; box-shadow: 0 0 0 3px rgba(79,143,239,0.18); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47,184,114,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(47,184,114,0.12); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-title span:first-child {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.hero-role-inline {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 500;
  padding: 7px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  margin-top: 6px;
}

.hero-desc {
  margin-top: 24px;
  max-width: 560px;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--black);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.hero-stats {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Work preview (homepage) ---------- */
.work-preview { padding-top: 20px; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head-row .section-head,
.section-head-row .section-kicker,
.section-head-row .section-title { margin-bottom: 0; }

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 6px;
  white-space: nowrap;
  transition: transform 0.2s ease;
  display: inline-block;
}
.link-arrow:hover { transform: translateX(4px); }

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 56px 1.4fr auto 1.2fr;
  align-items: center;
  gap: 20px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.work-row:hover {
  background: var(--surface);
  padding-left: 18px;
}

.work-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
  transition: transform 0.2s ease;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Each logo keeps its own background so nothing gets cropped */
.thumb-gallartdesign { background: #f0eee3; }
.thumb-velhoura { background: var(--card-cyan); }
.thumb-mmarcocaching { background: #f5f6f4; }
.thumb-simondesign { background: #1061a2; border-color: #1061a2; }
.thumb-roady { background: #2a1c4d; border-color: #2a1c4d; }

.work-row:hover .work-thumb { transform: scale(1.06); }

.work-title {
  font-weight: 700;
  font-size: 17px;
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.work-tags {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  text-align: right;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.about-facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.fact-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.fact-num { font-weight: 700; font-size: 16px; }
.fact-label { font-size: 13px; color: var(--ink-faint); }

/* ---------- Services ---------- */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; padding-bottom: 0; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}

.service-row h3 {
  font-size: 19px;
  font-weight: 700;
}

.service-row p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 540px;
}

/* ---------- Stack ---------- */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-item {
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.stack-item:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-card {
  border-radius: var(--radius-lg);
  padding: 32px 32px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card-a { background: var(--card-pink); color: var(--card-pink-ink); }
.card-b { background: var(--card-cyan); color: var(--card-cyan-ink); }
.card-c { background: var(--card-blush); color: var(--card-blush-ink); }
.card-d { background: var(--card-taupe); color: var(--card-taupe-ink); }
.card-e { background: var(--card-violet); color: var(--card-violet-ink); }

/* Wide card with phone screenshots (mobile app projects) */
.project-card--wide {
  grid-column: 1 / -1;
  min-height: 0;
  padding-bottom: 0;
}

.phones-preview {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  overflow: hidden;
}

.phone-shot {
  width: 22%;
  max-width: 190px;
  border-radius: 18px 18px 0 0;
  border: 6px solid #0b0b0d;
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.45);
  transform: translateY(10px);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.phone-shot img {
  width: 100%;
  display: block;
}

.project-card:hover .phone-shot { transform: translateY(0); }
.project-card:hover .phone-shot:nth-child(2) { transform: translateY(-6px); }
.project-card:hover .phone-shot:nth-child(3) { transform: translateY(-2px); }

.project-info h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-link {
  background: var(--black);
  color: #fff;
  transition: background 0.2s ease;
}

.project-card:hover .tag-link {
  background: var(--accent);
  color: var(--accent-ink);
}

.project-preview {
  margin-top: 26px;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.mockup-window {
  width: 100%;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.35);
  overflow: hidden;
  transform: translateY(6px);
  transition: transform 0.35s ease;
}

.project-card:hover .mockup-window { transform: translateY(0); }

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
.mockup-bar span {
  width: 8px; height: 8px; border-radius: 999px; background: #e2e2e2;
}

.mockup-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.mockup-line { height: 10px; border-radius: 6px; background: #eceae5; }
.w-30 { width: 30%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; }

.mockup-block {
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1efe9, #e2ded4);
  margin-top: 4px;
}

.mockup-grid { display: flex; gap: 8px; margin-top: 2px; }
.mockup-chip { flex: 1; height: 46px; border-radius: 8px; background: #eceae5; }

.mockup-scatter {
  position: relative;
  height: 90px;
}
.mockup-scatter span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--card-taupe);
  opacity: 0.7;
}
.mockup-scatter span:nth-child(1){top:10%;left:15%;}
.mockup-scatter span:nth-child(2){top:30%;left:40%;}
.mockup-scatter span:nth-child(3){top:55%;left:20%;}
.mockup-scatter span:nth-child(4){top:20%;left:70%;}
.mockup-scatter span:nth-child(5){top:60%;left:60%;}
.mockup-scatter span:nth-child(6){top:75%;left:35%;}
.mockup-scatter span:nth-child(7){top:15%;left:85%;}
.mockup-scatter span:nth-child(8){top:45%;left:80%;}
.mockup-scatter span:nth-child(9){top:80%;left:10%;}
.mockup-scatter span:nth-child(10){top:35%;left:55%;}

/* ---------- Gallery preview (real screenshots) ---------- */
.gallery-preview {
  margin-top: 26px;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.gallery-window {
  width: 100%;
  transform: translateY(6px);
  transition: transform 0.35s ease;
}

.project-card:hover .gallery-window { transform: translateY(0); }

.gallery-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 11 / 5;
  background: var(--bg);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.gallery-slide.is-active { opacity: 1; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ddd;
  transition: background 0.3s ease, width 0.3s ease;
}

.gallery-dot.is-active {
  background: var(--ink);
  width: 16px;
}

/* ---------- Gallartdesign CTA ---------- */
.studio-cta {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
}

.studio-cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.studio-cta-title {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
  max-width: 460px;
}

.studio-cta-sub {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  max-width: 480px;
}

.studio-cta-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.studio-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.studio-stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

.studio-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.studio-cta-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.studio-cta-actions .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.studio-cta-email {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.studio-cta-email:hover {
  color: #fff;
}

.studio-cta-orbs {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 300px;
  height: 220px;
  z-index: 0;
}

.orb {
  position: absolute;
  bottom: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(198, 255, 58, 0.18), rgba(255, 255, 255, 0.02));
}

.orb-1 { width: 150px; height: 150px; right: 120px; }
.orb-2 { width: 170px; height: 170px; right: 45px; }
.orb-3 { width: 150px; height: 150px; right: -35px; }

/* ---------- Experience ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }

.timeline-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.timeline-icon svg { width: 34px; height: 34px; }

.icon-bg-1 { background: #eafccb; }
.icon-bg-2 { background: #e7f4ff; }
.icon-bg-3 { background: #ece9f7; }
.icon-bg-4 { background: #fbe0df; }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-content h3 {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
}

.timeline-company {
  display: inline-block;
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

.timeline-content p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 560px;
}

/* ---------- Contact ---------- */
.section-contact { padding-bottom: 140px; }

.contact-card {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card .section-kicker {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.8);
}

.contact-card .section-sub { color: rgba(255,255,255,0.6); }

.contact-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-card .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.social-links { display: flex; gap: 10px; }

.social-link {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}
.social-link:hover { background: rgba(255,255,255,0.1); }

/* ---------- Project detail page ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  color: var(--ink);
  transform: translateX(-3px);
}

.detail-hero { padding-top: 60px; }

.detail-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.detail-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-tagline {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.detail-tags .tag {
  background: var(--surface);
  border: 1px solid var(--line);
}

.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-github {
  background: var(--black);
  color: #fff;
}

.btn-github:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-github svg {
  width: 18px;
  height: 18px;
}

.detail-about p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
}

.detail-about p + p {
  margin-top: 16px;
}

.detail-shots {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Portrait (mobile app) screenshots — shown side by side */
.detail-shots--phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
}

.detail-shots--phones .detail-shot img {
  border-radius: 20px;
  border: 6px solid #0b0b0d;
  box-shadow: var(--shadow-card);
}

.detail-shots--phones figcaption {
  font-size: 13px;
}

.detail-shot img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: block;
}

.detail-shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Driving car strip ---------- */
.road-strip {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  margin: 10px 0 30px;
}

.road-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0 26px,
    transparent 26px 48px
  );
}

.road-car {
  position: absolute;
  bottom: 20px;
  left: 0;
  --car-start: -230px;
  animation: car-drive 9s linear infinite;
}

.road-car svg {
  display: block;
  width: 190px;
  height: auto;
}

@keyframes car-drive {
  from { transform: translateX(var(--car-start)); }
  to   { transform: translateX(100vw); }
}

.car-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: car-wheel-spin 0.55s linear infinite;
}

@keyframes car-wheel-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .road-car,
  .car-wheel { animation: none; }
  .road-car { transform: translateX(6vw); }
}

@media (max-width: 520px) {
  .road-strip { height: 105px; }
  .road-car svg { width: 140px; }
  .road-car { --car-start: -170px; }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- Reveal animation ---------- */
.section,
.fact-card,
.stack-item,
.service-row,
.timeline-item,
.work-row {
  opacity: 0;
  transform: translateY(18px);
}

.section.in-view,
.fact-card.in-view,
.stack-item.in-view,
.service-row.in-view,
.timeline-item.in-view,
.work-row.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--stagger-delay, 0ms);
}

.project-card,
.detail-shot {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
}

.project-card.in-view,
.detail-shot.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .pill-nav { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .work-row {
    grid-template-columns: 44px 1fr;
    row-gap: 6px;
  }
  .work-status { grid-column: 2 / -1; }
  .work-tags { grid-column: 2 / -1; text-align: left; }

  /* Two larger phone shots instead of three tiny ones */
  .phones-preview { gap: 14px; }
  .phone-shot { width: 42%; }
  .phone-shot:nth-child(3) { display: none; }
}

@media (max-width: 520px) {
  .section { padding: 80px 20px; }
  .hero { padding-top: 40px; }
  .stat { padding: 0 16px; }
  .contact-card { padding: 44px 24px; }
  .studio-cta { padding: 40px 24px; }
}
