/* ===== Design tokens — dark, GitHub/Raycast flavour ===== */
:root {
  --bg: #161618;             /* Raycast-like dark grey, not pure black */
  --bg-tinted: #1a1a1c;
  --surface: #1c1c1f;        /* cards stand UP slightly from the bg */
  --surface-2: #232327;      /* hovered/active surfaces */
  --line: #2a2a2e;
  --line-strong: #3a3a3e;
  --text: #ededed;
  --text-2: #c8c8c8;       /* WCAG AA — 4.5:1 on --bg */
  --text-dim: #9090a0;     /* WCAG AA — 4.5:1 for small text */
  --accent: #ff6363;         /* Raycast red — the single bright color */
  --accent-soft: rgba(255, 99, 99, 0.12);
  --radius: 8px;             /* tighter corners — IDE-style */
  --radius-sm: 6px;
  --maxw: 1100px;
  --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --display: 'Urbanist', 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Cursor coordinates updated from JS — fallback to top-left if no JS */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* ========== Ambient background layers (fixed, all pages) ==========
   Stack, from bottom to top:
     body::before — soft red blobs + dim base grid (always visible)
     body::after  — bright red grid, masked under the cursor (spotlight)
*/

/* Layer 1 — static blurry red blobs + faint grid baseline */
body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    /* Top-left big blob */
    radial-gradient(ellipse 38% 42% at 20% 25%,
      rgba(255, 99, 99, 0.22),
      transparent 65%),
    /* Center-right secondary blob */
    radial-gradient(ellipse 32% 40% at 80% 55%,
      rgba(255, 130, 130, 0.18),
      transparent 65%),
    /* Bottom soft wash */
    radial-gradient(ellipse 50% 35% at 50% 95%,
      rgba(255, 99, 99, 0.14),
      transparent 70%),
    /* Subtle top-right warm glow */
    radial-gradient(ellipse 28% 32% at 92% 12%,
      rgba(255, 140, 100, 0.12),
      transparent 70%);
  filter: blur(70px) saturate(120%);
  pointer-events: none;
}

/* Layer 1.5 — dim base grid, sits between blobs and content */
.grid-base {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Layer 2 — bright red grid revealed only under the cursor (spotlight) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 99, 99, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 99, 99, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  /* Show this bright grid only inside a soft circle around the cursor */
  mask-image: radial-gradient(circle 260px at var(--mouse-x) var(--mouse-y),
    #000 0%,
    rgba(0,0,0,0.5) 50%,
    transparent 85%);
  -webkit-mask-image: radial-gradient(circle 260px at var(--mouse-x) var(--mouse-y),
    #000 0%,
    rgba(0,0,0,0.5) 50%,
    transparent 85%);
  pointer-events: none;
}

@media (hover: none) {
  /* Touch devices — no cursor */
  body::after { display: none; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-weight: 500; font-size: 14px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.2s, transform 0.15s;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #ff7878;
  border-color: #ff7878;
  box-shadow: 0 0 22px rgba(255, 99, 99, 0.4), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-dim); transform: translateY(-1px); }

.btn-dark { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-dark:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 22, 24, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 20px; height: 20px; border-radius: 5px; }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--text); font-family: var(--mono); }
.brand-tld { color: var(--accent); font-weight: 500; }

.nav-links { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav-links a {
  color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  transition: color 0.15s;
  padding: 4px 0;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::before {
  content: '#';
  color: var(--text-dim);
  margin-right: 4px;
  font-family: var(--mono);
}

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; }

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }

/* Work rows stagger */
.work-row:nth-child(1) { transition-delay: 0s; }
.work-row:nth-child(2) { transition-delay: 0.07s; }
.work-row:nth-child(3) { transition-delay: 0.14s; }
.work-row:nth-child(4) { transition-delay: 0.21s; }
.work-row:nth-child(5) { transition-delay: 0.28s; }
.work-row:nth-child(6) { transition-delay: 0.35s; }
.work-row:nth-child(7) { transition-delay: 0.42s; }
.work-row:nth-child(8) { transition-delay: 0.49s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* ===== Hero — tighter, IDE-like, with animated Raycast-style backdrop ===== */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
  isolation: isolate;       /* keep ::before/::after from leaking out */
}

/* (hero background removed — flat dark hero, focus on type + code card) */

/* (grain ::after removed — the hero-bg.png already has its own grain) */


.hero-inner {
  position: relative;       /* sit above the ::before */
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-meta-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
  font-family: var(--mono);
}
.dot-online {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(63, 185, 80, 0); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero code card — IDE styling */
.hero-art { display: flex; justify-content: center; perspective: 1000px; }
.code-card {
  width: 100%; max-width: 420px;
  background: rgba(28, 28, 31, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.code-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--line);
}
.code-card-dots { display: flex; gap: 6px; }
.code-card-dots span { width: 11px; height: 11px; border-radius: 50%; }
.code-card-dots span:nth-child(1) { background: #ff5f57; }
.code-card-dots span:nth-child(2) { background: #febc2e; }
.code-card-dots span:nth-child(3) { background: #28c840; }
.code-card-title { font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.code-card-body {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
  color: var(--text);
}
/* VS Code Dark+ palette */
.c-key  { color: #c586c0; }   /* const, let — magenta */
.c-var  { color: #9cdcfe; }   /* identifiers — light blue */
.c-prop { color: #9cdcfe; }   /* property — light blue */
.c-str  { color: #ce9178; }   /* strings — orange */
.code-card-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-dim);
  font-family: var(--mono);
}
.status-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3fb950;
}

/* Hero strip — proof points under the fold */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 52px;
  padding: 0;
  background: none;
  border: none;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: rgba(28, 28, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.strip-item:hover {
  border-color: rgba(255, 99, 99, 0.3);
  transform: translateY(-2px);
}
.strip-item b {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.strip-item span {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.strip-divider {
  display: none;
}

/* ===== Section base — tighter rhythm ===== */
.section { padding: 80px 0; }
.section-tinted { background: var(--bg-tinted); }
.section-head {
  max-width: 720px;
  margin: 0 0 56px;       /* LEFT-aligned, not centered — Raycast style */
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.eyebrow::before { content: '# '; color: var(--text-dim); }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  color: var(--text);
}
.section-head p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.6;
}

/* ===== Work — IDE-like listing ===== */
.work-list {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  cursor: pointer;
  background: var(--surface);
}
.work-row:last-child { border-bottom: none; }
.work-row:hover { background: var(--surface-2); }

.work-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-tinted);
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.work-icon svg { width: 22px; height: 22px; }
.work-row:hover .work-icon {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.work-body { min-width: 0; }
.work-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.work-body h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text);
}
.work-body p {
  font-size: 13.5px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.55;
}

.work-cta {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-family: var(--mono);
}
.work-cta .arrow { display: inline-block; transition: transform 0.2s; }
.work-row:hover .work-cta { color: var(--accent); }
.work-row:hover .work-cta .arrow { transform: translateX(3px); }

/* ----- Floating screenshot preview ----- */
.preview-floater {
  position: fixed;
  top: 0; left: 0;
  width: 360px;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--accent);
  transition: opacity 0.2s ease;
  will-change: left, top;
}
.preview-floater img { width: 100%; height: auto; display: block; }
.preview-tilt { /* no-op */ }
.preview-floater.show { opacity: 1; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service {
  background: rgba(28, 28, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.service:hover {
  border-color: rgba(255, 99, 99, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 99, 99, 0.08), 0 8px 32px rgba(255, 99, 99, 0.06);
}
.service-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 12px;
}
.service-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  line-height: 1;
}
.service h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.service-pitch {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.service-list {
  list-style: none;
  margin-bottom: 22px;
  flex: 1;
}
.service-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 13.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}
.service-foot {
  display: flex; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.service-price {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.service-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ===== About / Stack ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--text);
}
.about-copy p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-copy p:last-child { margin-bottom: 0; }

.about-stack {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.stack-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.stack-title::before { content: '// '; color: var(--text-dim); opacity: 0.7; }

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
  cursor: default;
}
.stack-chip:hover { border-color: var(--line-strong); color: var(--text); }
.stack-chip img { width: 16px; height: 16px; flex-shrink: 0; }
.stack-chip b { font-weight: 500; }
.chip-ico {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--c, #666);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

/* ===== Process ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-item {
  position: relative;
  background: rgba(28, 28, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}
.process-item:hover { border-color: var(--accent); }
.process-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.process-item h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text);
}
.process-item p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ===== Contact ===== */
.section-contact { padding: 100px 0; }
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(28, 28, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: left;
}
.contact-inner .eyebrow { display: inline-block; }
.contact-inner h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--text);
}
.contact-inner p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.6;
}
.contact-actions {
  display: flex; gap: 10px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  background: var(--bg-tinted);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
}
.footer-brand p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13px;
  max-width: 300px;
  line-height: 1.6;
}
.footer-links h3 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-links a {
  display: block;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ===== Hire mode sticky bar ===== */
.hire-sticky {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 11px 14px 11px 18px;
  background: rgba(22, 22, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255,255,255,0.05) inset;
  white-space: nowrap;
  animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.hire-mode .hire-sticky { display: flex; }
.hire-sticky-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
@keyframes slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero { padding: 40px 0 0; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 36px; }
  .strip-item { padding: 14px 16px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  .work-row {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
  .work-icon { width: 40px; height: 40px; }
  .work-icon svg { width: 20px; height: 20px; }
  .work-cta {
    grid-column: 2;
    margin-top: 2px;
    color: var(--accent);
  }

  .preview-floater { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-stack { position: static; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .contact-inner { padding: 36px 28px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-tinted);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open a { padding: 10px 0; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
}

/* ===== Pagination dots ===== */
.page-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.page-dot {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.page-dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(237, 237, 237, 0.25);
  transition: background 0.2s, transform 0.2s;
  display: block;
}

.page-dot.active::before {
  background: var(--accent);
  transform: scale(1.5);
}

.page-dot:hover::before {
  background: rgba(237, 237, 237, 0.6);
}

.page-dot-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.page-dot:hover .page-dot-label { opacity: 1; }

@media (max-width: 900px) {
  .page-dots { display: none; }
}

/* ===== Contact card (hire mode) ===== */
.contact-card {
  margin-top: 32px;
  background: rgba(28, 28, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 400px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.contact-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-avatar {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  font-family: var(--mono);
}
.contact-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.contact-title {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}
.contact-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  margin-top: 5px;
}
.contact-open::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green { 0%,100%{opacity:1} 50%{opacity:0.35} }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 16px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 13px;
  padding: 7px 0;
  border-radius: 6px;
  transition: color 0.15s;
}
.contact-link:hover { color: var(--accent); }
.contact-link-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}
.contact-link:hover .contact-link-icon {
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ===== Two-mode switcher ===== */
[data-h] { display: none; }
body.hire-mode [data-f] { display: none; }
body.hire-mode [data-h] { display: revert; }


/* ===== Code card typing animation ===== */
.cl {
  display: block;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.cl.typed { opacity: 1; transform: translateX(0); }
.code-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== Terminal easter egg ===== */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.terminal-overlay.open { opacity: 1; pointer-events: all; }

.terminal-window {
  width: min(640px, 92vw);
  max-height: 68vh;
  background: #0d0d0f;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: translateY(12px);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.terminal-overlay.open .terminal-window { transform: translateY(0); }

.terminal-head {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #161618;
  border-bottom: 1px solid #2a2a2e;
  flex-shrink: 0;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 11px; color: #6b6b7b;
}
.terminal-close {
  background: none; border: none; color: #6b6b7b;
  font-size: 18px; cursor: pointer; padding: 0; line-height: 1;
  transition: color 0.15s;
}
.terminal-close:hover { color: #ededed; }

.terminal-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.term-line { margin-bottom: 1px; }
.term-cmd::before { content: 'avricktikill@dev:~$ '; color: var(--accent); }
.term-cmd { color: #ededed; }
.term-out { color: #9090a0; white-space: pre; display: block; }
.term-out.hi { color: #ededed; }
.term-out.err { color: var(--accent); }

.term-input-row {
  display: flex; align-items: center;
  gap: 8px; margin-top: 6px;
}
.term-prompt { color: var(--accent); font-family: var(--mono); font-size: 13px; flex-shrink: 0; }
.term-input {
  background: none; border: none; outline: none;
  color: #ededed; font-family: var(--mono); font-size: 13px;
  flex: 1; caret-color: var(--accent);
  user-select: text;
}
.term-hint {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(144,144,160,0.4);
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 100;
}
