/* ─────────────────────────────────────────────────────────────────
     RESET & CSS VARIABLES
  ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface2: #f2f2f0;
  --border: #e5e5e5;
  --text: #111111;
  --muted: #666666;
  --muted2: #999999;
  --blue: #1a56db;
  --blue-h: #2563eb;
  --hi: #1a56db;
  --r-btn: 999px;
  --r-card: 16px;
  --nav-h: 80px;
  --max-w: 1200px;
  --sp: 120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}

/* ─────────────────────────────────────────────────────────────────
     SHARED UTILITIES
  ───────────────────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
.section-eyebrow {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--blue);
  opacity: 0.4;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.08s;
}
.d2 {
  transition-delay: 0.16s;
}
.d3 {
  transition-delay: 0.24s;
}
.d4 {
  transition-delay: 0.32s;
}
.d5 {
  transition-delay: 0.4s;
}
.d6 {
  transition-delay: 0.48s;
}
.d7 {
  transition-delay: 0.56s;
}
.d8 {
  transition-delay: 0.64s;
}
.d9 {
  transition-delay: 0.72s;
}

/* ─────────────────────────────────────────────────────────────────
     BUTTONS
  ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  border: none;
  padding: 13px 28px;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.2s,
    box-shadow 0.25s;
}
.btn-primary:hover {
  background: var(--blue-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 86, 219, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 12px 28px;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.2s;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────
     NAVBAR
  ───────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    left 1.5s cubic-bezier(0.4, 0, 0.2, 1),
    right 1.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 1.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 3.35s ease,
    border-color 3.35s ease,
    box-shadow 3.35s ease,
    padding 3.35s ease;
}

#navbar.scrolled {
  top: 1px;
  left: 260px;
  right: 260px;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  transition:
    height 0.35s ease,
    padding 0.35s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo .logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  transition: height 0.35s ease;
}
#navbar.scrolled .nav-logo .logo-img {
  height: 100px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 14px;
  border-radius: 8px;
  position: relative;
  transition:
    color 0.2s,
    font-size 0.35s ease;
}
#navbar.scrolled .nav-links a {
  font-size: 13px;
  padding: 5px 11px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--hi);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 22px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hire {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  padding: 8px 20px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    padding 0.35s ease,
    font-size 0.35s ease;
  display: inline-block;
}
#navbar.scrolled .btn-hire {
  font-size: 13px;
  padding: 6px 16px;
}
.btn-hire:hover {
  background: var(--blue-h);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.4);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 24px max(24px, env(safe-area-inset-bottom, 0px));
  gap: 2px;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
  overflow-y: auto;
}
.mobile-menu.open {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.mobile-link {
  font-size: 26px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 24px;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-link:hover {
  color: #fff;
}
.mobile-hire {
  margin-top: 14px;
  font-size: 16px !important;
  padding: 14px 40px !important;
}

/* ─────────────────────────────────────────────────────────────────
     HERO
  ───────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #f8f8f6;
  overflow-x: hidden;
  overflow-y: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg--dots {
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
}

.hero-bg--glow-left {
  background: radial-gradient(
    ellipse 50% 40% at 20% 50%,
    rgba(26, 86, 219, 0.06) 0%,
    transparent 70%
  );
}

.hero-bg--glow-right {
  background: radial-gradient(
    ellipse 80% 60% at 75% 50%,
    rgba(26, 86, 219, 0.08) 0%,
    transparent 70%
  );
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.14;
  z-index: 1;
}

.hero-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: calc(var(--nav-h) + 8px) 48px 8px;
  min-height: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
}

.hero-editor-col {
  position: relative;
  min-width: 0;
  overflow: visible;
  opacity: 0;
  animation: heroVscodeFade 0.8s ease forwards 0.3s;
}

@keyframes heroVscodeFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.vscode-perspective {
  position: relative;
  z-index: 1;
  perspective: 1000px;
  transform-style: preserve-3d;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#hero .vscode-perspective,
#hero .vscode-window {
  max-width: 500px;
}

.vscode-window {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  transition:
    transform 0.4s ease,
    opacity 0.5s ease;
  opacity: 1;
}

#hero .vscode-window {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.vscode-window--out {
  opacity: 0;
  pointer-events: none;
}

.vscode-perspective:hover .vscode-window {
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.vscode-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  background: #323233;
}

.vscode-traffic {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vscode-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.vscode-dot--red {
  background: #ff5f57;
}
.vscode-dot--yellow {
  background: #ffbd2e;
}
.vscode-dot--green {
  background: #28ca41;
}

.vscode-titlebar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #d0cfcf;
  white-space: nowrap;
  max-width: calc(100% - 100px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.vscode-tabbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  background: #1e1e1e;
  border-bottom: 1px solid #2d2d2d;
  min-height: 36px;
  overflow-x: auto;
}

.vscode-tab {
  flex-shrink: 0;
  padding: 8px 12px 6px;
  font-size: 12px;
  color: #ffffff;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: #1e1e1e;
}

.vscode-tab--active {
  color: #ffffff;
  border-bottom-color: #1a56db;
  background: #1e1e1e;
}

.vscode-tab--inactive {
  font-size: 11px;
  color: #969696;
  font-weight: 400;
}

.vscode-workspace {
  display: flex;
  min-height: 300px;
  background: #1e1e1e;
}

#hero .vscode-workspace {
  min-height: 220px;
}

.vscode-sidebar {
  width: 150px;
  flex-shrink: 0;
  background: #252526;
  padding: 8px 6px 12px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #cccccc;
  border-right: 1px solid #2b2b2b;
  overflow-y: auto;
}

.vscode-tree-head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #bbbbbb;
  margin-bottom: 8px;
  padding-left: 2px;
}

.vscode-tree-root {
  margin-bottom: 4px;
  color: #cccccc;
}

.vscode-tree-line {
  padding: 2px 0;
  color: #cccccc;
  white-space: nowrap;
}

.vscode-tree-line--in {
  padding-left: 4px;
}

.vscode-tree-file--active {
  background: #094771;
  color: #ffffff;
  border-radius: 3px;
  padding: 2px 4px;
  margin: 1px -2px;
}

.vscode-editor-pane {
  flex: 1;
  min-width: 0;
  background: #1e1e1e;
  padding: 10px 10px 14px 0;
  overflow: auto;
}

.vscode-code-rows {
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
}

.vscode-crow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(13px * 1.8);
}

.vscode-crow .vscode-ln {
  flex: 0 0 28px;
  width: 28px;
  text-align: right;
  padding-right: 12px;
  user-select: none;
  color: #858585;
  font-variant-numeric: tabular-nums;
}

.vscode-crow-code {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d4d4d4;
}

.vscode-kw {
  color: #569cd6;
}
.vscode-builtin {
  color: #4ec9b0;
}
.vscode-method {
  color: #dcdcaa;
}
.vscode-str {
  color: #ce9178;
}
.vscode-prop {
  color: #9cdcfe;
}
.vscode-punct {
  color: #d4d4d4;
}
.vscode-plain {
  color: #d4d4d4;
}
.vscode-comment {
  color: #6a9955;
}
.vscode-num {
  color: #b5cea8;
}

.vscode-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #1a56db;
  animation: vscodeCursorBlink 1s step-end infinite;
}

.vscode-cursor--solid {
  animation: none !important;
  opacity: 1 !important;
}

@keyframes vscodeCursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes vscodeBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.vscode-badge {
  position: absolute;
  z-index: 5;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  pointer-events: none;
  animation: vscodeBadgeFloat 3s ease-in-out infinite;
}

.vscode-badge--hire {
  /* vertical `top` synced to .hero-pills in main.js */
  top: 96px;
  right: -16px;
  background: #1a56db;
  color: #fff;
  z-index: 10;
}

.hero-eyebrow {
  font-family: "Courier New", monospace;
  font-size: 15px;
  color: #1a56db;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  display: block;
}
.hero-eyebrow::before {
  display: none;
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #111111;
  margin-bottom: 24px;
}

.hero-word-wrap {
  position: relative;
  display: inline-block;
}
.word-placeholder {
  visibility: hidden;
  font-weight: 600;
  color: #1a56db;
  -webkit-text-fill-color: #1a56db;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.hero-word {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #1a56db;
  -webkit-text-fill-color: #1a56db;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  white-space: nowrap;
}
.hero-word.active {
  opacity: 1;
  transform: none;
}
.hero-word.exit {
  opacity: 0;
  transform: translateY(-22px);
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: #555555;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.tech-pill {
  font-size: 13px;
  font-weight: 500;
  color: #1a56db;
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.tech-pill:hover {
  background: rgba(26, 86, 219, 0.14);
  border-color: rgba(26, 86, 219, 0.45);
  color: #1a56db;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
}

.hero-cta__start {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 55%, #3b82f6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow:
    0 4px 6px rgba(26, 86, 219, 0.15),
    0 12px 32px rgba(26, 86, 219, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-cta__start::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cta__start:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(26, 86, 219, 0.2),
    0 16px 40px rgba(26, 86, 219, 0.42);
}

.hero-cta__start:hover::before {
  opacity: 1;
}

.hero-cta__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-left: 2px;
}

.hero-cta__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  line-height: 1.4;
}

.hero-cta__meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: hero-cta-meta-pulse 2s ease-in-out infinite;
}

@keyframes hero-cta-meta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
}

.hero-cta__sub-sep {
  width: 1px;
  height: 14px;
  background: #d4d4d4;
  flex-shrink: 0;
}

.hero-cta__secondary {
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.hero-cta__secondary:hover {
  color: #1a56db;
  border-bottom-color: rgba(26, 86, 219, 0.35);
}

.hero-scroll-hint {
  flex-shrink: 0;
  align-self: center;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.25);
  font-size: 20px;
  line-height: 1;
  padding: 6px 24px 14px;
  cursor: pointer;
  animation: heroScrollBounce 2s ease-in-out infinite;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.hero-scroll-hint--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes heroScrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (max-width: 767px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: calc(var(--nav-h) + 8px) 20px 6px;
    text-align: center;
  }

  .hero-editor-col {
    display: none !important;
  }

  .hero-content {
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-pills,
  .hero-cta {
    align-items: center;
  }

  .hero-cta__sub {
    justify-content: center;
    padding-left: 0;
  }

  .hero-pills {
    gap: 6px;
    margin-bottom: 28px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .tech-pill {
    font-size: 11px;
    padding: 4px 10px;
    letter-spacing: 0;
  }
}

/* Hero Ticker */
.hero-ticker-wrap {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ececea;
  overflow: hidden;
  padding: 16px 0;
}
.hero-ticker {
  display: flex;
  width: max-content;
  animation: hticker 20s linear infinite;
}
.hero-ticker:hover {
  animation-play-state: paused;
}
@keyframes hticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.hticker-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 40px;
  white-space: nowrap;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: #3a3a3a;
  letter-spacing: 0.03em;
}
.hticker-item strong {
  color: #1a56db;
  font-weight: 700;
  margin-right: 8px;
}
.hticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 4px;
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────────────
     ABOUT
  ───────────────────────────────────────────────────────────────── */
#about {
  padding: calc(var(--sp) / 2) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.about-bio {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-card);
  padding: 32px 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.about-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #333333;
}
.about-info-row:last-child {
  margin-bottom: 0;
}
.about-info-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  width: 20px;
  text-align: center;
}
.about-info-row a {
  color: var(--blue);
  transition: color 0.2s;
  word-break: break-all;
}
.about-info-row a:hover {
  color: var(--blue-h);
}
.about-info-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* ─────────────────────────────────────────────────────────────────
     SKILLS
  ───────────────────────────────────────────────────────────────── */
#skills {
  padding: calc(var(--sp) / 2) 0;
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px 18px 22px;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}
.skill-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.08);
}

.skill-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hi);
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.skill-tag {
  font-size: 11px;
  font-weight: 500;
  color: #444444;
  background: #f4f4f2;
  border: 1px solid #e0e0e0;
  padding: 3px 10px;
  border-radius: 5px;
  line-height: 1.35;
  cursor: default;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.skill-tag:hover {
  background: rgba(26, 86, 219, 0.08);
  border-color: rgba(26, 86, 219, 0.3);
  color: var(--blue);
  transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────────────────
     PORTFOLIO
  ───────────────────────────────────────────────────────────────── */
#portfolio {
  padding: calc(var(--sp) / 2) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Let cards 3-9 participate in the grid directly (wrapper is mobile-only logic) */
.portfolio-mobile-extra {
  display: contents;
}
.portfolio-mobile-toggle-wrap {
  display: none;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s;
  cursor: default;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
  border-color: #d0d0d0;
}

.portfolio-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #eaeae8;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
}
.portfolio-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.04);
}
.portfolio-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #e8eef8 0%, #dde6f5 100%);
  color: rgba(26, 86, 219, 0.25);
}

.portfolio-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.portfolio-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.portfolio-tag {
  font-size: 11px;
  font-weight: 500;
  color: #555555;
  background: #f2f2f0;
  border: 1px solid #e5e5e5;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.btn-project {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  background: rgba(26, 86, 219, 0.07);
  border: 1px solid rgba(26, 86, 219, 0.2);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-project:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
}

.badge-webapp {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888888;
  background: #f2f2f0;
  border: 1px solid #e5e5e5;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ─────────────────────────────────────────────────────────────────
     PRICING (premium SaaS-style)
  ───────────────────────────────────────────────────────────────── */
#pricing.pricing-v2 {
  position: relative;
  padding: calc((var(--sp) + 24px) / 2) 0 calc((var(--sp) + 48px) / 2);
  background: var(--bg);
  isolation: isolate;
}

.pricing-v2__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(26, 86, 219, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 60%,
      rgba(26, 86, 219, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 35% at 0% 70%,
      rgba(180, 150, 100, 0.05) 0%,
      transparent 45%
    );
}

.pricing-v2__inner {
  position: relative;
  z-index: 1;
}

.pricing-v2__header {
  text-align: left;
  max-width: 640px;
  margin: 0 0 56px;
}

.pricing-v2__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin: 0;
}

#pricing.pricing-v2 .section-title {
  margin-bottom: 20px;
}

.pricing-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto 64px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 36px 32px 40px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.price-card[data-package] {
  cursor: pointer;
}

/* Starter — light, refined */
.price-card--starter {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(0, 0, 0, 0.06);
}
.price-card--starter:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 64px rgba(0, 0, 0, 0.1);
  border-color: rgba(26, 86, 219, 0.12);
}

/* Pro — dominant dark */
.price-card--featured {
  z-index: 2;
  padding-top: 44px;
  background: linear-gradient(165deg, #141824 0%, #0c0e14 48%, #0a0c12 100%);
  border: 1px solid rgba(91, 140, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(26, 86, 219, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(26, 86, 219, 0.18);
  transform: translateY(-8px);
}
.price-card--featured:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(26, 86, 219, 0.2),
    0 32px 96px rgba(0, 0, 0, 0.45),
    0 0 100px rgba(26, 86, 219, 0.22);
}

.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #3b7dff 0%, #1a56db 100%);
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.45);
  white-space: nowrap;
}

/* Premium — warm luxury minimal */
.price-card--premium {
  background: linear-gradient(180deg, #fdfcfa 0%, #f7f5f1 100%);
  border: 1px solid rgba(176, 145, 95, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 56px rgba(60, 45, 20, 0.08);
}
.price-card--premium:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 28px 72px rgba(60, 45, 20, 0.12);
  border-color: rgba(176, 145, 95, 0.42);
}

.price-plan {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 16px;
}

.price-card--featured .price-plan {
  color: rgba(255, 255, 255, 0.45);
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
  line-height: 1;
}

.price-value__cur {
  font-size: 26px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.price-card--featured .price-value__cur {
  color: rgba(255, 255, 255, 0.45);
}

.price-value__range {
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--text);
}

.price-card--featured .price-value__range {
  color: #ffffff;
  font-weight: 350;
}

.price-card--premium .price-value__range {
  color: #1a1814;
}

.price-label {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 28px;
  min-height: 3em;
}

.price-card--featured .price-label {
  color: rgba(255, 255, 255, 0.55);
}

.price-card--premium .price-label {
  color: #5c5348;
}

.price-divider {
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 15%,
    var(--border) 85%,
    transparent
  );
}

.price-card--featured .price-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent
  );
}

.price-card--premium .price-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 145, 95, 0.25) 15%,
    rgba(176, 145, 95, 0.25) 85%,
    transparent
  );
}

.price-features-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-bottom: 20px;
}

.price-features-box .price-features {
  flex: 0 1 auto;
  margin-bottom: 0;
}

.price-features__collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.price-features-box.is-expanded .price-features__collapse {
  grid-template-rows: 1fr;
}

.price-features__collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.price-features--extras {
  margin-top: 12px;
  margin-bottom: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.price-card--featured .price-features--extras {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.price-card--premium .price-features--extras {
  border-top-color: rgba(176, 145, 95, 0.22);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #3d3d3d;
}

.price-card--featured .price-features li {
  color: rgba(255, 255, 255, 0.82);
}

.price-card--premium .price-features li {
  color: #3a342c;
}

.price-features li .chk {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

.price-card--starter .price-features li .chk {
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.2);
  color: var(--blue);
}

.price-card--featured .price-features li .chk {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #9ec5ff;
}

.price-card--premium .price-features li .chk {
  background: rgba(176, 145, 95, 0.12);
  border: 1px solid rgba(176, 145, 95, 0.28);
  color: #8a6f3d;
}

.price-features-toggle {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  text-underline-offset: 4px;
  transition:
    color 0.25s ease,
    text-decoration-color 0.25s ease;
}

.price-features-toggle__label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s ease;
}

.price-features-toggle:hover .price-features-toggle__label {
  text-decoration-color: currentColor;
}

.price-features-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.price-features-toggle__icon svg {
  display: block;
}

.price-features-box.is-expanded .price-features-toggle__icon {
  transform: rotate(180deg);
}

.price-features-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.price-card--starter .price-features-toggle {
  color: var(--blue);
}

.price-card--starter .price-features-toggle:hover {
  color: var(--blue-h);
}

.price-card--featured .price-features-toggle {
  color: rgba(190, 215, 255, 0.95);
}

.price-card--featured .price-features-toggle:hover {
  color: #fff;
}

.price-card--featured .price-features-toggle:focus-visible {
  outline-color: rgba(158, 197, 255, 0.9);
}

.price-card--premium .price-features-toggle {
  color: #6b5a45;
}

.price-card--premium .price-features-toggle:hover {
  color: #3a342c;
}

.price-card--premium .price-features-toggle:focus-visible {
  outline-color: rgba(176, 145, 95, 0.75);
}

/* CTAs */
.price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  border: 1px solid transparent;
}

.price-cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.price-cta--starter {
  background: #111111;
  color: #fff;
  border-color: #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.price-cta--starter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  background: #222222;
}

.price-cta--pro {
  background: linear-gradient(135deg, #3d84ff 0%, #1a56db 55%, #1746b8 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 20px rgba(26, 86, 219, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.price-cta--pro:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px rgba(26, 86, 219, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.price-cta--premium {
  background: transparent;
  color: #2a241c;
  border: 1.5px solid rgba(176, 145, 95, 0.45);
}
.price-cta--premium:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(176, 145, 95, 0.65);
  box-shadow: 0 8px 28px rgba(60, 45, 20, 0.1);
}

/* Included block */
.pricing-included {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 40px 40px 44px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.pricing-included__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

.pricing-included__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
}

.pricing-included__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.35;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(248, 248, 246, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.pricing-included__item:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 86, 219, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.pricing-included__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b9cff, #1a56db);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.pricing-v2__note {
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.pricing-v2__note a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-v2__note a:hover {
  color: var(--blue-h);
}

@media (prefers-reduced-motion: reduce) {
  .price-card,
  .price-card--starter:hover,
  .price-card--featured:hover,
  .price-card--premium:hover,
  .price-cta,
  .pricing-included__item,
  .pricing-included__item:hover {
    transition: none;
    transform: none !important;
  }
  .price-card--featured {
    transform: none;
  }
  .price-features-toggle,
  .price-features-toggle:hover {
    transition: none;
  }

  .price-features-toggle__icon {
    transition: none;
  }

  .price-features-box.is-expanded .price-features-toggle__icon {
    transform: rotate(180deg);
  }

  .price-features__collapse {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .pricing-v2__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 28px;
  }
  .price-card--featured {
    transform: none;
    order: -1;
  }
  .price-card--featured:hover {
    transform: translateY(-4px) scale(1);
  }
  .pricing-included__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-v2__header {
    margin-bottom: 40px;
  }
  .pricing-v2__sub {
    font-size: 15px;
  }
  .price-card {
    padding: 32px 24px 36px;
  }
  .pricing-included {
    padding: 28px 20px 32px;
  }
  .pricing-included__grid {
    grid-template-columns: 1fr;
  }
  .pricing-included__item {
    padding: 12px 14px;
  }
}

/* ─────────────────────────────────────────────────────────────────
     CONTACT
  ───────────────────────────────────────────────────────────────── */
#contact {
  padding: calc(var(--sp) / 2) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.contact-card:hover {
  border-color: rgba(26, 86, 219, 0.35);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26, 86, 219, 0.12);
  border: 1px solid rgba(26, 86, 219, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-card-val {
  font-size: 14px;
  color: #333333;
}
.contact-card-val a {
  color: var(--blue);
  transition: color 0.2s;
}
.contact-card-val a:hover {
  color: var(--blue-h);
}

/* ── Contact Form Wrap ── */
.contact-form-wrap {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@keyframes contact-form-wrap-highlight-pulse {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }
  50% {
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.06),
      0 0 0 3px rgba(26, 86, 219, 0.3);
  }
}

.contact-form-wrap.contact-form-wrap--highlight {
  animation: contact-form-wrap-highlight-pulse 1.5s ease-in-out;
}

.contact-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.2);
  color: #1a56db;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 20px;
  width: fit-content;
}

/* ── Step Progress ── */
.ms-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.ms-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ms-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #aaaaaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.ms-step--active .ms-step-circle,
.ms-step--done .ms-step-circle {
  background: #1a56db;
  color: #ffffff;
}
.ms-step-label {
  font-size: 11px;
  color: #888888;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.ms-step--active .ms-step-label {
  color: #1a56db;
  font-weight: 600;
}
.ms-line {
  flex: 1;
  height: 2px;
  background: #e5e5e5;
  margin: 0 4px 22px;
  transition: background 0.3s ease;
}
.ms-line--active {
  background: #1a56db;
}

/* ── Panels ── */
.ms-panel {
  display: none;
}
.ms-panel--active {
  display: block;
}

/* ── Panel headings ── */
.ms-heading {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 8px;
}
.ms-subtext {
  font-size: 13px;
  color: #888888;
  margin: 0 0 28px;
}

/* ── Option cards ── */
.ms-options {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}
.ms-options--3col {
  grid-template-columns: repeat(3, 1fr);
}
.ms-options--2col {
  grid-template-columns: repeat(2, 1fr);
}
.ms-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  background: transparent;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.ms-option-card:hover {
  border-color: #1a56db;
  background: rgba(26, 86, 219, 0.03);
}
.ms-option-card--selected {
  border-color: #1a56db;
  background: rgba(26, 86, 219, 0.06);
}
.ms-option-check {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #1a56db;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ms-option-card--selected .ms-option-check {
  opacity: 1;
}
.ms-option-icon {
  font-size: 22px;
  line-height: 1;
}
.ms-option-title {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
}
.ms-option-desc {
  font-size: 11px;
  color: #888888;
  line-height: 1.4;
}

/* ── Budget note ── */
.ms-budget-note {
  font-size: 12px;
  color: #aaaaaa;
  text-align: center;
  margin: 12px 0 4px;
}

/* ── Validation hint ── */
.ms-hint {
  font-size: 12px;
  color: #ef4444;
  min-height: 18px;
  margin: 4px 0 8px;
}

/* ── Step 3 summary banner ── */
.ms-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(26, 86, 219, 0.05);
  border: 1px solid rgba(26, 86, 219, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #555555;
  margin-bottom: 24px;
}

#contact .form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Step 3 form fields ── */
#contact .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
#contact .form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
#contact .form-input,
#contact .form-textarea {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}
#contact .form-input::placeholder,
#contact .form-textarea::placeholder {
  color: var(--muted2);
}
#contact .form-input:focus,
#contact .form-textarea:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}
#contact .form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ── Navigation buttons ── */
.ms-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.ms-nav--right {
  justify-content: flex-end;
}
.ms-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1a56db;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ms-btn-next:hover {
  background: #2563eb;
  transform: translateY(-2px);
}
.ms-btn-submit {
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}
.ms-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #666666;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.ms-btn-back:hover {
  border-color: #1a56db;
  color: #1a56db;
}

/* ── Step transition animations ── */
@keyframes ms-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes ms-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.ms-panel--enter-right {
  animation: ms-slide-in-right 0.3s ease forwards;
}
.ms-panel--enter-left {
  animation: ms-slide-in-left 0.3s ease forwards;
}

/* ── Shake animation ── */
@keyframes ms-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
.ms-shake {
  animation: ms-shake 0.4s ease;
}

/* ── Success state ── */
.ms-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
@keyframes ms-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.ms-success-icon {
  font-size: 48px;
  color: #1a56db;
  display: block;
  margin-bottom: 16px;
  animation: ms-pop 0.5s ease-out both;
}
.ms-success-heading {
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 8px;
}
.ms-success-sub {
  font-size: 14px;
  color: #888888;
  margin: 0 0 16px;
}
.ms-success-summary {
  display: inline-block;
  font-size: 13px;
  color: #555555;
  background: rgba(26, 86, 219, 0.05);
  border: 1px solid rgba(26, 86, 219, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
}
.ms-btn-reset {
  background: transparent;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  color: #666666;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.ms-btn-reset:hover {
  border-color: #1a56db;
  color: #1a56db;
}

/* ─────────────────────────────────────────────────────────────────
     FOOTER
  ───────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 40px 0 0;
  font-family: "Inter", sans-serif;
  background: #0a0a0a;
}

.footer-watermark {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 0;
}

.footer-watermark img {
  display: block;
  width: clamp(200px, 42vw, 480px);
  height: auto;
  opacity: 0.1;
}

.site-footer__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(26, 86, 219, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding: 48px 0 24px;
  border-bottom: 1px solid #1a1a1a;
}

.site-footer__legal {
  margin: 20px 0 0;
  max-width: 280px;
  font-size: 12px;
  line-height: 1.6;
  color: #5c5c5c;
  text-align: left;
}

.site-footer__brand-name,
.site-footer__brand-accent {
  color: var(--blue);
  font-weight: 600;
}

/* WEBABIC: WE bijelo, BABIC plavo; letter-spacing + zazor */
.site-footer__brand-mark {
  display: inline-block;
  white-space: nowrap;
}

.site-footer__brand-we {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-right: 0.1em;
}

.site-footer__brand-accent {
  letter-spacing: 0.16em;
}

.site-footer__label {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-footer__contact-lines {
  display: flex;
  flex-direction: column;
}

.site-footer__line {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: #9a9a9a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.site-footer__line:hover {
  color: #ffffff;
}

.site-footer__line--location {
  color: #9a9a9a;
}

.site-footer__line--location a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__line--location a:hover {
  color: #ffffff;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.site-footer__social-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #666666;
  background: transparent;
  transition: all 0.2s ease;
}

.site-footer__social-btn:hover {
  border-color: #1a56db;
  color: #1a56db;
  background: rgba(26, 86, 219, 0.08);
}

.site-footer__social-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
}

.site-footer__nav-link {
  display: block;
  margin-bottom: 14px;
  padding-left: 0;
  font-size: 14px;
  color: #777777;
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-footer__nav-link:last-child {
  margin-bottom: 0;
}

.site-footer__nav-link:hover {
  color: #ffffff;
  padding-left: 6px;
}

/* ─────────────────────────────────────────────────────────────────
     RESPONSIVE
  ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-footer__inner {
    padding: 0 32px;
  }

  .section-inner {
    padding: 0 32px;
  }
  .hero-main {
    padding: calc(var(--nav-h) + 8px) 32px 8px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-card {
    position: static;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav-logo .logo-img {
    height: 90px;
  }
  #navbar.scrolled {
    left: 24px;
    right: 24px;
  }
  #navbar.scrolled .nav-logo .logo-img {
    height: 70px;
  }
}

@media (max-width: 768px) {
  :root {
    --sp: 80px;
  }
  .section-inner {
    padding: 0 20px;
  }
  .hero-main {
    padding: calc(var(--nav-h) + 8px) 20px 6px;
  }

  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
  .mobile-menu.open {
    pointer-events: all;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Collapsible skill cards on mobile */
  .skill-card {
    cursor: pointer;
  }
  .skill-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    user-select: none;
  }
  .skill-cat::after {
    content: "›";
    font-size: 18px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1;
    transform: rotate(90deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .skill-card.skill-card--open .skill-cat::after {
    transform: rotate(270deg);
  }
  .skill-card .skill-tags {
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.35s ease,
      margin-top 0.25s ease;
    margin-top: 0;
  }
  .skill-card.skill-card--open .skill-tags {
    max-height: 800px;
    margin-top: 12px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio show-more on mobile */
  .portfolio-mobile-extra {
    display: contents;
  }
  .portfolio-mobile-extra.portfolio-mobile-extra--hidden > .portfolio-card {
    display: none;
  }
  .portfolio-mobile-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
  .portfolio-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition:
      border-color 0.2s,
      color 0.2s;
  }
  .portfolio-mobile-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
  }
  .portfolio-mobile-toggle__icon {
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .portfolio-mobile-toggle.is-open .portfolio-mobile-toggle__icon {
    transform: rotate(180deg);
  }
  .ms-options--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    padding: 0 20px;
  }

  .site-footer {
    padding: 20px 0 28px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 0 24px;
    text-align: center;
    border-bottom: none;
  }

  /* Mobile footer: only copyright line visible */
  .site-footer__col:not(.site-footer__col--contact) {
    display: none !important;
  }

  .site-footer__col--contact .site-footer__label,
  .site-footer__col--contact .site-footer__contact-lines {
    display: none !important;
  }

  .site-footer__col--contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__legal {
    text-align: center;
    max-width: 100%;
    margin: 0;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: #f5f5f5;
    letter-spacing: 0.01em;
  }

  .footer-watermark,
  .site-footer__glow {
    display: none;
  }

  #navbar.scrolled {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero-pills {
    gap: 5px;
    max-width: 100%;
  }

  .tech-pill {
    font-size: 13px;
    padding: 3px 8px;
  }

  .hero-cta {
    gap: 12px;
    margin-top: 28px;
  }

  .hero-cta__start {
    font-size: 15px;
    padding: 13px 26px;
  }

  .hero-cta__sub {
    gap: 8px 12px;
    justify-content: center;
  }

  .hero-cta__meta {
    font-size: 12px;
  }

  .hero-cta__secondary {
    font-size: 12px;
  }
  .contact-form-wrap {
    padding: 24px 20px;
  }
  .ms-options--3col,
  .ms-options--2col {
    grid-template-columns: 1fr;
  }
}
