:root {
  --bg: #070b12;
  --bg-1: #0a0e16;
  --bg-2: #0e131d;

  --surface: rgba(255, 255, 255, 0.022);
  --surface-2: rgba(255, 255, 255, 0.045);

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #e6edf3;
  --text-muted: #98a2b3;
  --text-faint: #7c8797;
  --danger: #fda4af;

  --accent: #10b981;
  --accent-2: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-line: rgba(16, 185, 129, 0.32);
  --accent-ink: #04130c;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: 24px;
  --nav-h: 64px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 28px 56px -36px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-2);
  border-radius: var(--r-md);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0;
}

.muted {
  color: var(--text-muted);
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 2px 7px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 85%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.1s linear;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: 120px 0;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent-2);
}

.section h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.section .lede {
  max-width: 58ch;
  font-size: 17px;
  color: var(--text-muted);
}

.window {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.window-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #22c55e; }

.window-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-2);
}

.window-foot {
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--line);
}

.window-foot .muted {
  margin-left: auto;
}

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

.ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}

.nav.scrolled {
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.brand-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-cursor {
  margin-left: -2px;
  color: var(--accent-2);
  animation: blink 1.2s steps(2) infinite;
}

.nav-links {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: var(--surface-2);
}

.nav-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

.nav-cta {
  padding: 8px 16px;
  font-size: 13.5px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
}

.nav-burger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}

.nav.open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  flex-direction: column;
  gap: 2px;
  padding: 14px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-mobile a {
  padding: 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--r-md);
}

.nav-mobile a:hover {
  color: #fff;
  background: var(--surface-2);
}

.nav-mobile .btn {
  margin-top: 8px;
  font-family: var(--font);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  color: var(--accent-ink);
  font-weight: 600;
  background: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-2);
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line-2);
}

.btn.ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
}

.kbd {
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 88px) 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: radial-gradient(720px 340px at 22% 0%, rgba(16, 185, 129, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
}

.accent {
  color: var(--accent-2);
}

.tw-line {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.78em;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: top;
}

.tw-measure,
.tw-live {
  white-space: nowrap;
}

.tw-measure {
  display: inline-block;
  visibility: hidden;
}

.tw-live {
  position: absolute;
  inset: 0 auto auto 0;
}

.typewriter {
  color: var(--text-faint);
}

.cursor {
  display: inline-block;
  color: var(--accent-2);
  animation: blink 1.2s steps(2) infinite;
}

.hero p {
  max-width: 56ch;
  margin-bottom: 32px;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--text-muted);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.stat-label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.hero-code {
  position: relative;
}

.code-body {
  min-height: 300px;
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--bg-1);
  overflow: hidden;
}

.code-body pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
}

.tk-key { color: #c084fc; }
.tk-fn { color: #60a5fa; }
.tk-str { color: var(--accent-2); }
.tk-num { color: #f59e0b; }
.tk-cmt { color: var(--text-faint); font-style: italic; }
.tk-op { color: #f472b6; }
.tk-pun { color: var(--text-muted); }
.tk-typ { color: #67e8f9; }

.code-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--accent-2);
  vertical-align: -3px;
  animation: blink 1.2s steps(2) infinite;
}

.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 72px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-faint) 50%, transparent 50%);
  background-size: 1px 8px;
  animation: tick 1.8s linear infinite;
}

@keyframes tick {
  to { background-position: 0 16px; }
}

.marquee-section {
  position: relative;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 160px;
  pointer-events: none;
}

.marquee-fade-l {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-fade-r {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee-track {
  display: flex;
}

.marquee-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}

.marquee-section:hover .marquee-row,
.marquee-section:focus-within .marquee-row {
  animation-play-state: paused;
}

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

.tech {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-faint);
}

.tech-sep {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  opacity: 0.6;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-tag {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.service h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.service p {
  margin-bottom: 18px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.stack li {
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.service-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 62ch;
  margin-bottom: 48px;
}

.about-copy p {
  margin-bottom: 14px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.founder {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 28px;
}

.founder-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.role-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
}

.founder-detail h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
}

.founder-detail p {
  max-width: 54ch;
  margin-bottom: 18px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.founder-focus {
  display: grid;
  gap: 4px;
  max-width: 520px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.founder-focus span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

.founder-focus strong {
  font-size: 14px;
  font-weight: 600;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-media {
  display: grid;
  place-items: center;
  padding: 16px 0 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  background: #050810;
  border: 6px solid #14181f;
  border-radius: 34px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-tag {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.project-info p {
  margin-bottom: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.project-info .stack {
  margin-bottom: 16px;
}

.project-info .stack li {
  color: var(--accent-2);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.case-highlights {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.case-highlights li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.case-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--accent);
}

.terminal-section {
  padding: 24px 0 120px;
}

.terminal {
  max-width: 880px;
  margin-inline: auto;
}

.terminal-body {
  min-height: 300px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  background: var(--bg-1);
}

.term-line {
  white-space: pre-wrap;
}

.term-prompt {
  font-weight: 600;
  color: var(--accent-2);
}

.term-cmd { color: var(--text); }
.term-flag { color: #67e8f9; }
.term-out { color: var(--text-muted); }
.term-ok { color: var(--accent-2); }
.term-arrow { color: #67e8f9; }

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--accent-2);
  vertical-align: -3px;
  animation: blink 1.2s steps(2) infinite;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.25s;
}

.contact-form:focus-within {
  border-color: var(--line-2);
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  pointer-events: none;
  transition: transform 0.16s ease, color 0.16s ease, font-size 0.16s ease;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 22px 14px 9px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: transparent;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0d121c inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}

.field:focus-within .field-label,
.field.is-filled .field-label,
.field input:not(:placeholder-shown) + .field-label,
.field textarea:not(:placeholder-shown) + .field-label,
.select-field .field-label {
  transform: translateY(-7px);
  font-size: 10px;
  color: var(--accent-2);
}

.contact-form textarea {
  min-height: 130px;
  max-height: 320px;
  resize: none;
  overflow: hidden;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}

.contact-form option {
  background: var(--bg-2);
}

.select-field {
  isolation: isolate;
}

.select-icon {
  position: absolute;
  top: 25px;
  right: 14px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.field-error {
  min-height: 15px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  color: var(--danger);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s, transform 0.18s;
}

.field.is-invalid .field-error {
  opacity: 1;
  transform: translateY(0);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: rgba(251, 113, 133, 0.85);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.form-status.ok { color: var(--accent-2); }
.form-status.error { color: var(--danger); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.form-actions .btn {
  min-height: 44px;
}

.form-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

.form-trust .dot {
  width: 6px;
  height: 6px;
}

.contact-form button:disabled {
  cursor: progress;
  opacity: 0.85;
}

.form-success {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  background: rgba(7, 11, 18, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.99);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.contact-form.is-sent .form-success {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.form-success:focus-visible {
  outline-offset: -4px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--accent-ink);
  background: var(--accent-2);
  border-radius: 50%;
}

.success-mark svg {
  width: 26px;
  height: 26px;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: successCheck 0.45s 0.1s ease forwards;
}

.form-success strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.form-success span:last-child {
  font-size: 14px;
  color: var(--text-muted);
}

@keyframes successCheck {
  to { stroke-dashoffset: 0; }
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.json-panel {
  border-radius: var(--r-md);
  box-shadow: none;
}

.json-preview {
  min-height: 210px;
  max-height: 300px;
  margin: 0;
  padding: 18px 20px 22px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-1);
}

.json-key { color: #67e8f9; }
.json-string { color: var(--accent-2); }
.json-null { color: var(--text-faint); }
.json-bool { color: #f59e0b; }

.contact-direct {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.contact-block {
  min-width: 0;
  padding: 16px;
}

.contact-block:nth-child(1),
.contact-block:nth-child(2),
.contact-block:nth-child(4) {
  border-right: 1px solid var(--line);
}

.contact-block:nth-child(1),
.contact-block:nth-child(2),
.contact-block:nth-child(3) {
  border-bottom: 1px solid var(--line);
}

.contact-block:nth-child(3) {
  grid-column: 1 / -1;
}

.contact-block .kicker {
  margin-bottom: 8px;
  font-size: 11.5px;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 6px;
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: 14px;
  color: #fff;
  overflow-wrap: anywhere;
  border-bottom: 1px dashed var(--line-2);
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.contact-booking {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 6px;
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-2);
  overflow-wrap: anywhere;
  border-bottom: 1px dashed var(--accent-line);
  transition: color 0.2s, border-color 0.2s;
}

.contact-booking:hover {
  color: #fff;
  border-color: #fff;
}

.contact-upwork {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: rgba(20, 168, 0, 0.08);
  border: 1px solid rgba(20, 168, 0, 0.25);
  border-radius: var(--r-md);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.contact-upwork:hover {
  background: rgba(20, 168, 0, 0.13);
  border-color: rgba(20, 168, 0, 0.5);
  transform: translateY(-1px);
}

.upwork-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.upwork-logo svg {
  width: 100%;
  height: 100%;
}

.upwork-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.upwork-copy strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.upwork-copy small {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.upwork-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #4ade80;
  transition: transform 0.2s ease;
}

.contact-upwork:hover .upwork-arrow {
  transform: translate(2px, -2px);
}

.contact-direct p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.contact-direct .muted {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.loc-flag {
  font-size: 16px;
}

.contact-status p {
  font-family: var(--mono);
  font-size: 12.5px;
}

.footer {
  padding: 28px 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 18px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 3px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-code {
    max-width: 560px;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

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

  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero {
    padding: calc(var(--nav-h) + 56px) 0 56px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 52px);
    margin: 20px 0 16px;
  }

  .tw-line {
    font-size: 0.68em;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .ctas {
    margin-bottom: 40px;
  }

  .hero-stats {
    gap: 28px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .founder-portrait {
    max-width: 220px;
  }

  .contact-form .row {
    grid-template-columns: 1fr;
  }

  .contact-direct {
    grid-template-columns: 1fr;
  }

  .contact-block:nth-child(1),
  .contact-block:nth-child(2),
  .contact-block:nth-child(3),
  .contact-block:nth-child(4) {
    grid-column: auto;
    border-right: 0;
  }

  .contact-block:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }

  .terminal-section {
    padding: 0 0 88px;
  }

  .terminal-body {
    padding: 18px 16px;
    font-size: 12.5px;
  }

  .code-body {
    min-height: 260px;
    padding: 14px;
    font-size: 12.5px;
  }

  .window-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .window-title {
    font-size: 11.5px;
  }

  .window-foot {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
    font-size: 10.5px;
  }

  .window-foot .muted {
    width: 100%;
    margin-left: 0;
  }

  .marquee-fade {
    width: 80px;
  }

  .marquee-row {
    gap: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 14px;
    --nav-h: 60px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .eyebrow {
    padding: 5px 11px;
    font-size: 11px;
  }

  .hero {
    padding: calc(var(--nav-h) + 36px) 0 40px;
  }

  .hero h1 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .tw-line {
    font-size: 0.6em;
  }

  .ctas .btn {
    flex: 1 1 auto;
    padding: 11px 14px;
    font-size: 13.5px;
  }

  .hero-stats {
    gap: 22px;
    padding-top: 20px;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-label {
    font-size: 11.5px;
  }

  .hero-scroll-cue {
    margin-top: 44px;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: clamp(26px, 8vw, 38px);
  }

  .section .lede {
    font-size: 15px;
  }

  .service {
    padding: 22px;
  }

  .project-card {
    padding: 20px;
  }

  .project-info h3 {
    font-size: 21px;
  }

  .founder-detail h3 {
    font-size: 26px;
  }

  .contact-form {
    padding: 18px;
    gap: 12px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 21px 12px 9px;
    font-size: 14px;
  }

  .form-actions .btn {
    width: 100%;
  }

  .json-preview {
    min-height: 170px;
    padding: 16px;
    font-size: 11.5px;
  }

  .contact-block {
    padding: 14px;
  }

  .contact-email {
    font-size: 13px;
    word-break: break-all;
  }

  .contact-booking {
    font-size: 12px;
    word-break: break-all;
  }

  .terminal-body {
    min-height: 240px;
    font-size: 11.5px;
  }

  .code-body {
    min-height: 220px;
    font-size: 11.5px;
  }

  .phone-frame {
    max-width: 160px;
  }

  .tech {
    font-size: clamp(17px, 5.5vw, 22px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    order: 3;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-row {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
