/* ══════════════════════════════════
   vitnekolny.cz — dark · coding aesthetic
══════════════════════════════════ */

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

:root {
  /* surfaces */
  --bg:           #0a0e1a;
  --bg-2:         #0f1623;
  --bg-3:         #161e2e;
  --bg-4:         #1c2638;
  --border:       #1f2a3d;
  --border-2:     #2a3a52;

  /* text */
  --text:         #e2e8f0;
  --text-2:       #cbd5e1;
  --muted:        #64748b;
  --muted-2:      #94a3b8;

  /* accent: terminal green */
  --accent:       #4ade80;
  --accent-2:     #22c55e;
  --accent-soft:  rgba(74, 222, 128, .12);
  --accent-glow:  rgba(74, 222, 128, .35);

  /* secondary accents (for amber CTA on hover etc) */
  --amber:        #fbbf24;
  --amber-soft:   rgba(251, 191, 36, .12);

  /* code syntax */
  --c-key:    #c084fc;  /* purple — keywords */
  --c-fn:     #60a5fa;  /* blue — functions/types */
  --c-str:    #fbbf24;  /* yellow — strings */
  --c-prop:   #7dd3fc;  /* light blue — props */
  --c-com:    #64748b;  /* gray — comments */
  --c-bool:   #f472b6;  /* pink — bool */
  --c-var:    #e2e8f0;  /* white — variable */

  --sans:  'Inter', -apple-system, system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74,222,128,.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(96,165,250,.04), transparent 60%);
  background-attachment: fixed;
}

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

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

/* ══════════════════════════════════
   UTILITIES
══════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
  font-family: var(--mono);
  font-weight: 500;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-sm   { padding: 9px 16px; font-size: .82rem; }
.btn-full { width: 100%; }
.btn svg  { width: 16px; height: 16px; stroke-width: 2.2; }

/* status dot */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .35;
  animation: pulse 2.4s infinite ease-out;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .5; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(.6); opacity: 0; }
}

/* eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted-2);
}
.eyebrow .comment { color: var(--c-com); }

/* sections */
.section {
  padding: 120px 0;
  position: relative;
}
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--accent {
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(74,222,128,.08), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 80px;
  max-width: 720px;
}
.section-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-num::before { content: '/'; opacity: .5; margin-right: 4px; }
.section-label {
  display: block;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 18px;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted-2);
  line-height: 1.65;
  max-width: 580px;
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 14, 26, .92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.logo-bracket { color: var(--accent); }
.logo-dot { color: var(--accent); }
.logo-text { font-weight: 600; }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted-2);
  transition: color .2s;
  position: relative;
}
.nav-num {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent);
  font-weight: 500;
  opacity: .8;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: .4;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-text { max-width: 580px; }
.hero-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 3px;
  z-index: -1;
}
.hero-desc {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted-2);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: .86rem;
  color: var(--muted-2);
  font-family: var(--mono);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg {
  width: 14px; height: 14px;
  color: var(--accent);
  stroke-width: 2.6;
}

/* ══════════════════════════════════
   CODE WINDOW
══════════════════════════════════ */
.code-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    0 0 0 1px var(--border-2),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-code {
  position: relative;
  transform: translateY(0);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.window-dots {
  display: flex;
  gap: 7px;
}
.window-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
}
.window-dots span:nth-child(1) { background: #f87171; border-color: #b91c1c; }
.window-dots span:nth-child(2) { background: #fbbf24; border-color: #b45309; }
.window-dots span:nth-child(3) { background: var(--accent); border-color: #15803d; }

.code-filename {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted-2);
  margin-left: auto;
}
.code-filename svg { width: 14px; height: 14px; color: var(--c-fn); }

.code-body {
  padding: 22px 24px 24px;
  overflow-x: auto;
}
.code-body code {
  font-family: var(--mono);
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre;
}
.code-body--lg code {
  font-size: .92rem;
  line-height: 1.85;
}

/* syntax */
.c-key   { color: var(--c-key); font-weight: 500; }
.c-fn    { color: var(--c-fn); }
.c-str   { color: var(--c-str); }
.c-prop  { color: var(--c-prop); }
.c-com   { color: var(--c-com); font-style: italic; }
.c-bool  { color: var(--c-bool); }
.c-var   { color: var(--c-var); }

.c-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  margin-left: 2px;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .25s;
}
.info-card:hover {
  border-color: var(--border-2);
  transform: translateX(2px);
}
.info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: lowercase;
}
.info-label svg { width: 13px; height: 13px; color: var(--accent); }
.info-value {
  font-size: .98rem;
  font-weight: 500;
  color: var(--text);
}
.info-card--accent {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
}

/* ══════════════════════════════════
   SERVICES
══════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .25s ease;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
}
.service-card--featured {
  border-color: var(--border-2);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.service-card--featured:hover {
  border-color: var(--accent);
}
.service-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: var(--bg);
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service-num {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}
.service-icon {
  width: 28px; height: 28px;
  color: var(--accent);
  stroke-width: 1.8;
}
.service-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.service-card > p {
  font-size: .94rem;
  color: var(--muted-2);
  line-height: 1.6;
  margin-bottom: 22px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-2);
}
.service-list svg {
  width: 14px; height: 14px;
  color: var(--accent);
  stroke-width: 2.6;
  flex-shrink: 0;
}
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.service-price {
  font-family: var(--mono);
  font-size: .88rem;
  color: var(--muted-2);
}
.service-price strong {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s;
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 14px; height: 14px; }

/* ══════════════════════════════════
   WORK
══════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s ease;
}
.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.work-preview {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.window-url {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}
.work-content {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.work-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.work-headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}

/* work color variants */
.work-preview--plumber {
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  color: #fff;
}
.work-preview--plumber .work-eyebrow { color: #f59e0b; }
.work-preview--trading {
  background: linear-gradient(135deg, #0a0e1a 0%, #1f2937 100%);
  color: #fff;
}
.work-preview--trading .work-eyebrow { color: var(--amber); }
.work-preview--birth {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
  color: #fff;
}
.work-preview--birth .work-eyebrow { color: var(--amber); }

.work-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 20px 22px;
  background: var(--bg-2);
}
.work-info { grid-column: 1; grid-row: 1; }
.work-info h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -.01em;
}
.work-info span {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
}
.work-arrow {
  width: 18px; height: 18px;
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  transition: all .25s;
}
.work-card:hover .work-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.work-tags {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--mono);
  font-size: .7rem;
  padding: 3px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted-2);
  letter-spacing: .02em;
}

/* ══════════════════════════════════
   STACK
══════════════════════════════════ */
.stack-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stack-card {
  padding: 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .25s;
}
.stack-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.stack-icon {
  width: 22px; height: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}
.stack-card h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.005em;
}
.stack-card span {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted-2);
  line-height: 1.5;
}

/* ══════════════════════════════════
   PROCESS
══════════════════════════════════ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.process-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.process-item:hover {
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 80%);
}
.process-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -.02em;
}
.process-content h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.015em;
}
.process-content p {
  font-size: 1rem;
  color: var(--muted-2);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 660px;
}
.terminal-line {
  display: inline-block;
  font-family: var(--mono);
  font-size: .85rem;
  padding: 8px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.terminal-line .prompt {
  color: var(--accent);
  font-weight: 600;
  margin-right: 8px;
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.contact-intro .section-title {
  margin-bottom: 22px;
}
.contact-intro > p {
  font-size: 1.05rem;
  color: var(--muted-2);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--text);
  width: fit-content;
  transition: all .2s;
}
.contact-direct a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateX(2px);
}
.contact-direct svg {
  width: 16px; height: 16px;
  color: var(--accent);
  transition: color .2s;
}

/* form as code window */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.form-filename {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted-2);
  margin-left: auto;
}
.form-filename svg { width: 14px; height: 14px; color: var(--c-fn); }

.form-body { padding: 28px; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted-2);
}
.form-group label .prompt {
  color: var(--accent);
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: .94rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .2s;
  outline: none;
}
.form-group input::placeholder,
.form-group select option,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}

/* ══════════════════════════════════
   FOOTER · status bar
══════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  font-size: .82rem;
  color: var(--muted);
}
.footer-left, .footer-mid, .footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-weight: 600;
  color: var(--text);
}
.footer-logo .logo-bracket,
.footer-logo .logo-dot { color: var(--accent); }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.footer-sep { opacity: .4; }
.footer-right { gap: 14px; }
.footer-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: var(--muted-2);
  transition: all .2s;
}
.footer-right a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.footer-right svg { width: 16px; height: 16px; }

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-code     { max-width: 580px; }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .work-grid     { grid-template-columns: repeat(2, 1fr); }
  .work-grid > :last-child { grid-column: 1 / -1; max-width: 540px; margin: 0 auto; width: 100%; }
  .stack-wrap    { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero    { padding: 130px 0 80px; }
  .section-header { margin-bottom: 56px; }

  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; padding: 16px 24px; background: var(--bg-2); border-bottom: 1px solid var(--border); gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-meta    { gap: 12px; flex-direction: column; align-items: flex-start; }

  .code-body code { font-size: .76rem; }
  .code-body--lg code { font-size: .8rem; }

  .work-grid     { grid-template-columns: 1fr; }
  .work-grid > :last-child { grid-column: auto; max-width: none; }
  .stack-grid    { grid-template-columns: 1fr; }

  .process-item  { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }

  .footer-inner  { flex-direction: column; gap: 14px; padding: 24px; text-align: center; }
}

@media (max-width: 420px) {
  .hero-title    { font-size: clamp(2rem, 11vw, 2.6rem); }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .form-body     { padding: 20px; }
}

/* ══ Reveal animations & UI states ══ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.no-scroll { overflow: hidden; }

.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.burger span { transition: transform .25s ease, opacity .2s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════
   View toggle — code ↔ plain mode
══════════════════════════════════ */
.view-switcher {
  display: flex;
  justify-content: flex-end;
  margin: -32px 0 28px;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s ease;
}
.view-toggle:hover {
  color: var(--accent);
  border-color: rgba(74, 222, 128, .35);
  background: rgba(74, 222, 128, .06);
}
.view-toggle:active { transform: translateY(1px); }
.view-toggle i { width: 14px; height: 14px; stroke-width: 2; }

/* Default: code view shown, plain hidden */
.view-plain { display: none; }
[data-view="plain"] .view-code { display: none; }
/* `revert` keeps natural display for each element (block for div, inline for span) */
[data-view="plain"] .view-plain { display: revert; }
/* Element-specific overrides where revert wouldn't give the layout we want */
[data-view="plain"] .process-duration { display: inline-flex; }

/* Toggle label swap */
.vt-on-plain { display: none; }
[data-view="plain"] .vt-on-code { display: none; }
[data-view="plain"] .vt-on-plain { display: inline; }

/* ══ Hero — visual wrapper & profile card ══ */
.hero-visual { position: relative; }
.hero-visual .view-toggle {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 2;
}

.profile-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.profile-row:last-child { border-bottom: none; }
.profile-row > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: .92rem;
  font-family: var(--mono);
  text-transform: lowercase;
  letter-spacing: .02em;
}
.profile-row > span i { width: 16px; height: 16px; color: var(--accent); }
.profile-row > strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  font-size: 1rem;
}
.profile-row--accent strong { color: var(--accent); }

/* ══ Process — plain duration pill ══ */
.process-duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 14px;
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .25);
  border-radius: 999px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
}
.process-duration i { width: 14px; height: 14px; stroke-width: 2; }

/* ══ Contact — plain form refinements ══ */
.contact-toggle { margin-top: 28px; align-self: flex-start; }

[data-view="plain"] .form-body { padding-top: 28px; }
[data-view="plain"] #contactForm { border-radius: 16px; }
[data-view="plain"] #contactForm label {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
}

/* Mobile — toggle becomes inline */
@media (max-width: 768px) {
  .hero-visual .view-toggle {
    position: static;
    margin-bottom: 14px;
  }
  .view-switcher { margin: -16px 0 24px; }
  .profile-card  { padding: 4px 20px; }
  .profile-row > strong { font-size: .92rem; }
}
