/* ---------- Avoryx Design — base styles ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #08080a;
  --bg-2:      #0f0f12;
  --bg-3:      #16161b;
  --fg:        #f5f5f7;
  --fg-2:      #c8c8d0;
  --fg-dim:    #7a7a85;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --blue:      #4f7bff;
  --purple:    #a855f7;
  --grad:      linear-gradient(135deg, #4f7bff 0%, #8a5cf6 55%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(79,123,255,0.18) 0%, rgba(168,85,247,0.18) 100%);

  --display:   "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:      "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x:     clamp(20px, 4vw, 56px);
  --maxw:      1280px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection { background: rgba(168,85,247,0.45); color: white; }

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}

section { position: relative; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,10,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-brand .dot { color: var(--fg-dim); }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-cta {
  font-size: 14px;
  padding: 9px 16px 10px;
  border-radius: 999px;
  background: var(--fg);
  color: #0a0a0b;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,255,255,0.08); }

.nav-menu-btn { display: none; }

/* Mobile menu — fixed overlay, hidden by default at every breakpoint.
   The @media query below shows it on small screens; on desktop it stays
   off-screen and out of layout flow. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8,8,10,0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 18px var(--pad-x);
  opacity: 0; pointer-events: none;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 200ms ease; }
.mobile-menu .row {
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 48px;
}
.mobile-menu nav a {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  padding: 8px 0;
}
.mobile-menu .foot {
  margin-top: auto;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 12px;
  display: flex; justify-content: space-between;
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn {
    display: inline-flex;
    align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-size: 13px;
    font-family: var(--mono);
  }
}

/* ---------- Reusable ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(168,85,247,0.6);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 12px 0 0;
  max-width: 18ch;
}
.section-head .right {
  font-size: 14px;
  color: var(--fg-2);
  max-width: 38ch;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero .glow {
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(138,92,246,0.25), rgba(79,123,255,0.08) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-mark {
  width: 72px; height: 72px;
  border-radius: 16px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 8.4vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-ctas {
  margin-top: 40px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--fg); color: #0a0a0b;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255,255,255,0.12); }
.btn-primary svg { transition: transform 200ms ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-size: 15px;
  transition: background 160ms ease, border-color 160ms ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.22); }

.hero-meta {
  position: absolute;
  bottom: 36px; left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 1;
}
.hero-meta .availability {
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-meta .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 38s linear infinite;
  gap: 56px;
  padding-left: 56px;
}
.marquee span {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.025em;
  color: var(--fg-2);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee span::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Capabilities ---------- */
.capabilities { padding: 140px 0; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cap {
  background: var(--bg);
  padding: 36px 32px 32px;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: background 220ms ease;
  position: relative;
}
.cap:hover { background: var(--bg-2); }
.cap-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.cap h3 {
  margin: 24px 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.cap p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}
.cap-tags {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 24px;
}
.cap-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work { padding: 140px 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.work-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  isolation: isolate;
}
.work-card.w-7 { grid-column: span 7; }
.work-card.w-5 { grid-column: span 5; }
.work-card.w-6 { grid-column: span 6; }
.work-card.w-12 { grid-column: span 12; }

.work-art {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.work-card.w-12 .work-art { aspect-ratio: 21/9; }
.work-art .stripes {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
}
.work-art .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-art .ph span {
  border: 1px dashed var(--line-2);
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
}
.work-art::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 380ms ease;
}
.work-card:hover .work-art::after { opacity: 1; }
.work-art .preview {
  position: absolute; inset: 0;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
  transform: scale(1.02);
}
.work-card:hover .work-art .preview { transform: scale(1.06); }

.work-meta {
  padding: 22px 24px 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
}
.work-meta .left h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.work-meta .left .cat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.work-meta .year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.work-card .arrow {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  transition: background 220ms ease, transform 280ms ease;
}
.work-card:hover .arrow {
  background: var(--fg);
  color: #0a0a0b;
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .work-card.w-7, .work-card.w-5, .work-card.w-6, .work-card.w-12 { grid-column: span 12; }
}

/* ---------- Founders ---------- */
.founders { padding: 140px 0; }
.founders-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.founder {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--bg-2);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
  display: block;
  color: inherit;
  position: relative;
}
.founder:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--bg-3); }
.founder-arrow {
  position: absolute;
  top: 38px; right: 38px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  transition: background 220ms ease, color 220ms ease, transform 280ms ease;
  z-index: 2;
}
.founder:hover .founder-arrow {
  background: var(--fg);
  color: #0a0a0b;
  transform: rotate(-45deg);
}
.founder-socials .more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg);
  margin-left: auto;
}
.founder-socials {
  align-items: center;
  width: 100%;
}
.founder-socials span:not(.more) {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
}
.founder-photo {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, rgba(79,123,255,0.12), rgba(168,85,247,0.12));
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter 320ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}
.founder:hover .founder-photo img { filter: none; transform: scale(1.025); }
.founder-photo .ph {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px dashed var(--line-2);
  padding: 6px 12px; border-radius: 6px;
  background: rgba(0,0,0,0.35);
}
.founder h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
}
.founder .role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.founder p {
  margin: 16px 0 18px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
}
.founder-socials {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.founder-socials a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  transition: background 160ms ease, color 160ms ease;
}
.founder-socials a:hover { background: var(--fg); color: #0a0a0b; }
@media (max-width: 800px) { .founders-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { padding: 140px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 36px 28px 40px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:first-child { padding-left: 0; }
.step:not(:first-child) { padding-left: 28px; }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.step h4 {
  margin: 16px 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.step p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; padding-right: 0; }
  .step:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); padding-top: 36px; margin-top: 0; }
  .step:nth-child(4) { border-right: 0; padding-right: 0; border-top: 1px solid var(--line); padding-top: 36px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step:nth-child(3), .step:nth-child(4) { padding-left: 0; padding-top: 28px; border-top: 0; }
}

/* ---------- Contact ---------- */
.contact { padding: 140px 0 100px; position: relative; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(138,92,246,0.18), transparent 60%);
  pointer-events: none;
}
.contact-inner { position: relative; }
.contact h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
  max-width: 12ch;
}
.contact h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
.contact-info p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 42ch;
}
.contact-info .row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.contact-info .row .k { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.contact-info .row .v { color: var(--fg); }
.contact-info .row .v a:hover { color: var(--purple); }
.contact-info .row:last-child { border-bottom: 1px solid var(--line); }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  padding: 10px 0;
  transition: border-color 200ms ease;
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--purple);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%237a7a85' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; }
.field select option { background: var(--bg-2); color: var(--fg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-btn {
  margin-top: 14px;
  align-self: flex-start;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--fg);
  color: #0a0a0b;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255,255,255,0.12); }
.submit-btn:disabled { opacity: 0.7; cursor: default; }
.form-success {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 28px;
  background: var(--grad-soft);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
}
.form-success strong { font-weight: 500; }
@media (max-width: 900px) { .contact-row { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.footer-fine {
  flex-basis: 100%;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-dim);
  line-height: 1.55;
  max-width: 72ch;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.footer-fine sup { color: var(--fg-2); }
.footer .brand { display: flex; align-items: center; gap: 8px; color: var(--fg-2); }
.footer .brand img { width: 18px; height: 18px; border-radius: 4px; }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .links a:hover { color: var(--fg); }
@media (max-width: 600px) { .footer { flex-direction: column; align-items: flex-start; } }

/* Process note asterisk */
.process-note .asterisk {
  color: var(--blue);
  margin-left: 2px;
  font-size: 0.9em;
}

/* ---------- Loading / fade-in ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Sub-pages (founder profiles, legal) ---------- */
.sub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,10,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.sub-nav .back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.sub-nav .back:hover { background: rgba(255,255,255,0.04); color: var(--fg); border-color: var(--line-2); }

.subpage {
  padding: 120px var(--pad-x) 80px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.subpage .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.subpage h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 18px 0 12px;
  text-wrap: balance;
}
.subpage .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 56ch;
  margin: 16px 0 0;
}

.profile-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.profile-hero .meta-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  font-size: 14px;
}
.profile-hero .meta-cols .k {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.profile-hero .meta-cols .v { color: var(--fg); }
@media (max-width: 800px) {
  .profile-hero { grid-template-columns: 1fr; gap: 28px; }
}

.bio-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.bio-section h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  align-self: start;
  position: sticky;
  top: 90px;
}
.bio-section .body { color: var(--fg-2); font-size: 16px; line-height: 1.65; max-width: 64ch; }
.bio-section .body p { margin: 0 0 14px; }
.bio-section .body p:last-child { margin-bottom: 0; }
.bio-section .body strong { color: var(--fg); font-weight: 500; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.04em; }
.timeline .what strong { color: var(--fg); font-weight: 500; font-size: 16px; display: block; margin-bottom: 4px; }
.timeline .what span { color: var(--fg-2); font-size: 14px; line-height: 1.5; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

@media (max-width: 720px) {
  .bio-section { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .bio-section h2 { position: static; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* Legal pages */
.legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  color: var(--fg);
}
.legal p, .legal li {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.65;
}
.legal ul { padding-left: 20px; }
.legal .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 8px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  color: var(--fg-dim);
  transition: transform 220ms ease;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .answer {
  padding: 0 0 24px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 64ch;
}
.faq-item .answer p { margin: 0 0 12px; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- New additions ---------- */
/* Capabilities — handle 3-column layout cleanly */
.cap-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cap-grid-3 { grid-template-columns: 1fr; } }

/* Work — live-site badge */
.work-card .work-live {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 10px;
  background: rgba(10,10,11,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: #f5f5f7;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}
.work-card .work-live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.55);
  animation: pulse 1.8s ease-out infinite;
}

/* Process — 30-day fee-free callout */
.process-note {
  margin-top: 56px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--fg-2);
}
.process-note .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(79,123,255,0.45);
  animation: pulse 2s ease-out infinite;
}
.process-note strong { color: var(--fg); font-weight: 500; }

/* Contact — Zurich/Budapest live clock */
.based-v { display: flex; justify-content: flex-end; }
.clock-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.clock-face {
  width: 18px; height: 18px;
  color: var(--fg);
  flex-shrink: 0;
}
.clock-time { color: var(--fg); font-variant-numeric: tabular-nums; }
.clock-tz { color: var(--fg-dim); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 500px) {
  .clock-pill { flex-wrap: wrap; gap: 6px; border-radius: 10px; }
}

/* ============================================================
   Mobile optimisations
   ============================================================ */

/* Section vertical padding: 140px is too tall on phones */
@media (max-width: 640px) {
  .capabilities, .work, .founders, .process { padding: 72px 0; }
  .contact { padding: 72px 0 56px; }
  .section-head { margin-bottom: 36px; }
}

/* Hero: tighten top/bottom and shrink the logo mark */
@media (max-width: 640px) {
  .hero { padding: 96px var(--pad-x) 72px; }
  .hero-mark { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px; }
}

/* Hero meta: hide the right-side label on very small screens to avoid overlap */
@media (max-width: 480px) {
  .hero-meta span:last-child { display: none; }
}

/* Contact info: stack key/value rows so long emails don't overflow */
@media (max-width: 500px) {
  .contact-info .row { flex-direction: column; gap: 3px; align-items: flex-start; }
  .contact-info .row .v { word-break: break-all; }
}

/* Form: stack name + email into a single column on phones */
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Submit button: full-width on phones for an easier tap target */
@media (max-width: 500px) {
  .submit-btn { width: 100%; justify-content: center; align-self: stretch; }
}

/* Process note: pill wraps badly on narrow screens — switch to rounded rect */
@media (max-width: 560px) {
  .process-note { border-radius: 14px; display: flex; flex-wrap: wrap; }
}

/* Sub-pages: reduce oversized top padding on mobile */
@media (max-width: 640px) {
  .subpage { padding-top: 88px; }
}

/* Mobile menu: scale down the big nav links on very small phones */
@media (max-width: 380px) {
  .mobile-menu nav a { font-size: 30px; }
}

/* ============================================================
   Scroll-pin — Apple-style sticky reveal (Capabilities)
   ============================================================ */
.scroll-pin-outer {
  height: 350vh;
  position: relative;
}
.scroll-pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.scroll-pin-inner .container {
  width: 100%;
}
.scroll-pin-inner .cap {
  will-change: opacity, transform;
  min-height: 240px;
}

@media (max-width: 768px) {
  .scroll-pin-outer { height: auto; padding: 72px 0; }
  .scroll-pin-inner { position: static; height: auto; overflow: visible; display: block; }
}

/* ============================================================
   Logout button (footer)
   ============================================================ */
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.logout-btn:hover { color: var(--fg); border-color: var(--line-2); }

/* ============================================================
   Pricing section
   ============================================================ */
.pricing { padding: 120px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 220ms ease;
}
.pricing-card:hover { border-color: var(--line-2); }

.pricing-card--highlight {
  border-color: rgba(79,123,255,0.4);
  background: rgba(79,123,255,0.05);
}
.pricing-card--highlight:hover { border-color: rgba(79,123,255,0.7); }

.pricing-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.pricing-from {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.pricing-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.5;
}
.pricing-check {
  color: var(--blue);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
  width: fit-content;
}
.pricing-cta:hover { color: var(--fg); border-color: var(--fg-dim); }
.pricing-cta--primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.pricing-cta--primary:hover { opacity: 0.88; color: #fff; border-color: transparent; }

.pricing-note {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-align: center;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
}
