/* ============================================================
   AETHELION — Global Stylesheet
   Premium AI Engineering Agency · v2
   ============================================================ */

/* ---------------- Custom Properties ---------------- */
:root {
  /* Brand */
  --gold: #c5a059;
  --gold-light: #d8b878;
  --gold-dim: #8a6d3b;
  --gold-soft: rgba(197, 160, 89, 0.08);
  --gold-line: rgba(197, 160, 89, 0.28);

  /* Surfaces */
  --bg: #07070a;
  --bg-raised: #0b0b12;
  --surface: #0e0e16;
  --surface-raised: #14141d;
  --surface-hover: #181822;
  --border: #1b1b26;
  --border-soft: #14141d;
  --line: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #ececea;
  --text-bright: #f6f5f2;
  --text-secondary: #a2a2ab;
  --text-muted: #71717b;
  --text-faint: #56565f;

  /* Focus / selection */
  --focus: #d8b878;
  --danger: #e07a7a;

  /* Typography */
  --ff-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --fs-xs: 0.72rem;
  --fs-sm: 0.82rem;
  --fs-base: 0.95rem;
  --fs-md: 1.06rem;
  --fs-lg: 1.22rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.85rem, 3.4vw, 2.6rem);
  --fs-page-title: clamp(2rem, 4.5vw, 3.1rem);
  --fs-hero: clamp(2.35rem, 5.4vw, 3.9rem);

  --ls-tight: -0.022em;
  --ls-caps: 0.16em;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;

  /* Geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.16s;
  --dur-med: 0.3s;
  --dur-slow: 0.55s;

  /* Theme-aware helpers */
  --gold-text: #d8b878;
  --btn-text: #07070a;
  --btn-shadow: rgba(197, 160, 89, 0.22);
  --glow-a: rgba(197, 160, 89, 0.055);
  --glow-b: rgba(150, 155, 210, 0.045);
  --header-blur-bg: rgba(7, 7, 10, 0.82);
  --overlay-bg: rgba(7, 7, 10, 0.96);
  --chip-bg: rgba(255, 255, 255, 0.02);
  --card-top: rgba(255, 255, 255, 0.015);
  --card-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 22px 50px -18px rgba(0, 0, 0, 0.62);
  --alt-bg: rgba(255, 255, 255, 0.025);

  --max-w: 1140px;
  --header-h: 72px;
  color-scheme: dark;
}

/* ---------------- Light Theme ---------------- */
:root[data-theme="light"] {
  color-scheme: light;

  /* Brand */
  --gold: #c1933a;
  --gold-light: #d2a852;
  --gold-dim: #7a5a20;
  --gold-soft: rgba(180, 141, 63, 0.12);
  --gold-line: rgba(150, 116, 48, 0.38);
  --gold-text: #6f5318;

  /* Surfaces */
  --bg: #ffffff;
  --bg-raised: #f6f5f0;
  --surface: #ffffff;
  --surface-raised: #fbfaf6;
  --surface-hover: #f3f1eb;
  --border: #e4e1d8;
  --border-soft: #ece9e1;
  --line: rgba(20, 20, 25, 0.1);

  /* Text */
  --text: #1d1d22;
  --text-bright: #121216;
  --text-secondary: #3f3f48;
  --text-muted: #5c5c66;
  --text-faint: #8f8f99;

  /* Focus / selection */
  --focus: #8a6a25;
  --danger: #b5453d;

  /* Theme-aware helpers */
  --btn-text: #241a08;
  --btn-shadow: rgba(176, 138, 62, 0.3);
  --glow-a: rgba(190, 150, 70, 0.08);
  --glow-b: rgba(110, 120, 190, 0.05);
  --header-blur-bg: rgba(255, 255, 255, 0.85);
  --overlay-bg: rgba(255, 255, 255, 0.985);
  --chip-bg: rgba(20, 20, 25, 0.04);
  --card-top: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 10px 30px -18px rgba(28, 28, 32, 0.12);
  --card-shadow-hover: 0 20px 44px -18px rgba(28, 28, 32, 0.16);
  --alt-bg: rgba(28, 28, 34, 0.035);
}

/* ---------------- Reset & Base ---------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 22% -8%, var(--glow-a), transparent 62%),
    radial-gradient(900px 640px at 95% 112%, var(--glow-b), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(197, 160, 89, 0.28); color: var(--text-bright); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: var(--ls-tight);
}

/* ---------------- Ambient Background Layers ---------------- */
.bg-network {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------------- Skip Link (a11y) ---------------- */
.skip-link {
  position: fixed;
  top: 0;
  left: var(--sp-4);
  z-index: 9999;
  transform: translateY(-200%);
  background: var(--gold);
  color: var(--btn-text);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform var(--dur-fast) var(--ease-fast);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus);
  outline-offset: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Layout ---------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section { padding: var(--sp-12) 0; position: relative; z-index: 2; }
.section--tight { padding: var(--sp-10) 0; }

/* Content above ambient layers */
body > header,
body > footer,
body > main,
body > nav {
  position: relative;
  z-index: 2;
}

/* ---------------- Typography helpers ---------------- */
.eyebrow-mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.mt-3 { margin-top: var(--sp-9); }
.text-center { text-align: center; }

/* ---------------- Section Header ---------------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-11);
}
.section-header__eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--sp-4);
}
.section-header__title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-bright);
  margin-bottom: var(--sp-4);
}
.section-header__desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------------- Header / Navigation ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-med) var(--ease-fast),
    border-color var(--dur-med) var(--ease-fast),
    backdrop-filter var(--dur-med) var(--ease-fast);
}
.site-header.scrolled {
  background: var(--header-blur-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.brand__name {
  font-family: var(--ff-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.nav-desktop { display: flex; align-items: center; gap: var(--sp-1); }
.nav-desktop a {
  position: relative;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-fast), background var(--dur-fast) var(--ease-fast);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-desktop a:hover { color: var(--text-bright); }
.nav-desktop a:hover::after,
.nav-desktop a.active::after { transform: scaleX(1); }
.nav-desktop a.active { color: var(--gold-text); }

.nav-cta {
  margin-left: var(--sp-3);
  font-family: var(--ff-display);
  font-size: var(--fs-sm) !important;
  font-weight: 500 !important;
  color: var(--text-bright) !important;
  border: 1px solid var(--gold-line) !important;
  padding: 0.44rem 1.1rem !important;
  border-radius: var(--r-pill) !important;
  transition: all var(--dur-fast) var(--ease-fast) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--btn-text) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) var(--ease-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--overlay-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-fast), visibility var(--dur-med) var(--ease-fast);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.nav-mobile a {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--text-secondary);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-fast), transform var(--dur-fast) var(--ease-out);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--gold-text); }
.nav-mobile a:hover { transform: translateX(4px); }
.nav-mobile .nav-mobile-cta {
  margin-top: var(--sp-7);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-bright);
  border: 1px solid var(--gold-line);
  padding: 0.7rem 2rem;
  border-radius: var(--r-pill);
  transition: background var(--dur-fast) var(--ease-fast), color var(--dur-fast) var(--ease-fast);
}
.nav-mobile .nav-mobile-cta:hover {
  background: var(--gold);
  color: var(--btn-text);
  transform: none;
}

/* ---------------- Buttons ---------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.9rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(0) scale(0.985); }

.btn--primary {
  background: var(--gold);
  color: var(--btn-text);
}
.btn--primary::after {
  content: '→';
  font-family: var(--ff-mono);
  font-size: 0.9em;
  line-height: 1;
  margin-left: 0.35rem;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--btn-shadow);
}
.btn--primary:hover::after { transform: translateX(3px); }

.btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  color: var(--text-bright);
  border-color: var(--text-faint);
  background: var(--chip-bg);
  transform: translateY(-1px);
}

.btn--block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + var(--sp-12)) clamp(1.25rem, 4vw, 2rem) var(--sp-11);
  text-align: center;
  background: radial-gradient(
    620px 400px at var(--mx, 50%) var(--my, 25%),
    rgba(197, 160, 89, 0.075),
    transparent 70%
  );
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  margin-bottom: var(--sp-6);
}
.hero__eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--text-bright);
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-text);
}
.hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 590px;
  margin: 0 auto var(--sp-8);
  line-height: 1.75;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}

/* Hero trust strip */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border-soft);
}
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
}

.hero-separator {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* ---------------- Page Hero (inner pages) ---------------- */
.page-hero {
  padding: calc(var(--header-h) + var(--sp-11)) clamp(1.25rem, 4vw, 2rem) var(--sp-9);
  text-align: center;
  position: relative;
  z-index: 2;
}
.page-hero__eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--sp-4);
}
.page-hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-page-title);
  font-weight: 300;
  color: var(--text-bright);
  max-width: 620px;
  margin: 0 auto var(--sp-4);
}
.page-hero__desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}
.page-hero__desc strong { color: var(--text-bright); font-weight: 500; }

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-7);
  transition: all var(--dur-med) var(--ease-out);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-fast);
}
.service-card:hover {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface-raised);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  margin-bottom: var(--sp-6);
  transition: all var(--dur-med) var(--ease-out);
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card:hover .service-card__icon {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  transform: scale(1.05) translateY(-2px);
}
.service-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: var(--sp-3);
}
.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 44ch;
}

/* ---------------- Projects ---------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  max-width: 880px;
  margin: 0 auto;
}
.project-card {
  position: relative;
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-7);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: start;
  transition: all var(--dur-med) var(--ease-out);
}
.project-card:hover {
  border-color: var(--gold-line);
  background: var(--surface-raised);
  transform: translateY(-2px);
}
.project-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.project-card__category {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.project-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-bright);
}
.project-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52ch;
}
.project-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.34rem 0.85rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.project-card__status--built {
  color: var(--gold-text);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
}
.project-card__status--built::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}
.project-card__status--planned {
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface-raised);
}
.project-card__status--planned::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}

/* Project screenshot gallery */
.project-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.project-screenshots img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  transition: border-color var(--dur-fast) var(--ease-fast), transform var(--dur-fast) var(--ease-out);
}
.project-screenshots img:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}
.project-screenshots__caption {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------------- About ---------------- */
.about-narrative {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}
.about-narrative p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.85;
}
.about-narrative p:first-child {
  font-size: var(--fs-lg);
  color: var(--text);
}
.about-narrative strong { color: var(--text-bright); font-weight: 500; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.principle-card {
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all var(--dur-med) var(--ease-out);
}
.principle-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}
.principle-card__number {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold-dim);
}
.principle-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-bright);
}
.principle-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------------- Contact ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-11);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}
.contact-info__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text-bright);
  margin-bottom: var(--sp-3);
}
.contact-info__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 44ch;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.contact-detail__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.contact-detail__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail__text { display: flex; flex-direction: column; gap: var(--sp-1); }
.contact-detail__label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-detail__value {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 36ch;
}

/* Form */
.contact-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.form-group label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-fast);
}
.form-group:focus-within label { color: var(--gold-text); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  font-size: var(--fs-sm);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-fast), box-shadow var(--dur-fast) var(--ease-fast);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
  opacity: 0.7;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-group textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2371717b' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.form-group select option { background: var(--surface); color: var(--text); }

.form-error {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  color: var(--danger);
  display: none;
}
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--danger);
}
.form-group.error label { color: var(--danger); }
.form-group.error .form-error { display: block; }

.form-note {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-align: center;
}

.form-success { display: none; text-align: center; padding: var(--sp-7) var(--sp-4); }
.form-success.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.form-success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
}
.form-success__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-bright);
}
.form-success__desc { font-size: var(--fs-sm); color: var(--text-secondary); max-width: 40ch; line-height: 1.7; }

/* ---------------- CTA Banner ---------------- */
.cta-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-12) clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid var(--border-soft);
  background: radial-gradient(560px 340px at 50% 120%, rgba(197, 160, 89, 0.06), transparent 70%);
}
.cta-banner__title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-bright);
  margin-bottom: var(--sp-4);
}
.cta-banner__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--sp-7);
  line-height: 1.7;
}

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-soft);
  padding: var(--sp-9) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}
.footer-brand__name {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.footer-links { display: flex; gap: var(--sp-6); }
.footer-links a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-fast);
}
.footer-links a:hover { color: var(--gold-text); }

/* ---------------- Dividers ---------------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-soft);
}

/* ---------------- Focus states ---------------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.btn:focus-visible,
.nav-cta:focus-visible,
.nav-mobile-cta:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 2px;
}

/* ---------------- Reveal animations ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.09s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.18s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.27s; }
.stagger > .fade-in:nth-child(5) { transition-delay: 0.36s; }
.stagger > .fade-in:nth-child(6) { transition-delay: 0.45s; }

/* ---------------- Theme Toggle ---------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-left: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-fast), border-color var(--dur-fast) var(--ease-fast), background var(--dur-fast) var(--ease-fast);
}
.theme-toggle:hover {
  border-color: var(--gold-line);
  color: var(--gold-text);
  background: var(--chip-bg);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme="light"] .theme-toggle__sun { display: block; }
html[data-theme="light"] .theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: block; }

/* ---------------- Problem Section ---------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.problem-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  transition: all var(--dur-med) var(--ease-out);
}
.problem-item:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}
.problem-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-raised);
}
.problem-item__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.problem-item__text {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}

/* ---------------- Steps (How it works) ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
  position: relative;
}
.step {
  position: relative;
  padding: var(--sp-7) var(--sp-6);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--dur-med) var(--ease-out);
}
.step:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-text);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  border-radius: var(--r-pill);
  padding: 0.28rem 0.85rem;
  margin-bottom: var(--sp-5);
}
.step__title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: var(--sp-2);
}
.step__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------------- Price Model (3-line) ---------------- */
.price-model {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  overflow: hidden;
}
.price-line {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--border-soft);
}
.price-line:last-child { border-bottom: none; }
.price-line__label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-line__value {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--gold-text);
}
.price-line__note {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------------- Pricing / Offer Cards ---------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  align-items: stretch;
}
.price-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: all var(--dur-med) var(--ease-out);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.price-card--standard { border-color: var(--gold-line); }
.price-card--standard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.price-card--premium { border-color: var(--gold-line); background: linear-gradient(180deg, var(--gold-soft), transparent 60%), var(--surface); }
.price-card--recurring { border-style: dashed; }
.price-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
}
.price-card__badge--plain {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--surface-raised);
}
.price-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-bright);
}
.price-card__headline {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: -0.5rem;
}
.price-card__price {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1.1;
}
.price-card__price span {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-muted);
}
.price-card__sub {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.price-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Check feature lists */
.list-check {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.list-check li::before {
  content: '✓';
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gold);
  font-weight: 600;
}
.list-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.list-cell::before {
  content: '✓';
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

/* Comparison */
.compare-card__bestfor {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
  line-height: 1.65;
}

/* ---------------- Infra Grid ---------------- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.infra-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.infra-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------------- FAQ ---------------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-fast);
}
.faq-item:hover { border-color: var(--gold-line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  cursor: pointer;
  list-style: none;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-bright);
  transition: color var(--dur-fast) var(--ease-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--ff-mono);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--gold-text);
  transition: transform var(--dur-med) var(--ease-out);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--gold-line); }
.faq-item[open] summary { color: var(--gold-text); }
.faq-answer {
  padding: 0 var(--sp-6) var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-answer p + p { margin-top: var(--sp-3); }

/* ---------------- Case Study ---------------- */
.case-study {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  overflow: hidden;
}
.case-study__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--sp-4) var(--sp-8);
  background: var(--gold-soft);
  border-bottom: 1px solid var(--gold-line);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.case-study__label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.case-study__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-7);
  padding: var(--sp-8);
}
.case-study__intro p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}
.case-study__intro p + p { margin-top: var(--sp-4); }
.case-study__rows {
  display: flex;
  flex-direction: column;
}
.case-row {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-soft);
}
.case-row:first-child { padding-top: 0; }
.case-row:last-child { border-bottom: none; padding-bottom: 0; }
.case-row__label {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--sp-2);
}
.case-row__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.case-study__note {
  padding: var(--sp-4) var(--sp-8);
  border-top: 1px solid var(--border-soft);
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------------- Founder / Trust ---------------- */
.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-8);
  align-items: start;
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin: 0 auto;
  max-width: 720px;
}
.founder-card__avatar {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-text);
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
}
.founder-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-bright);
}
.founder-card__portfolio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: var(--sp-3) 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.45rem 1.1rem;
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-fast), color var(--dur-fast) var(--ease-fast), background var(--dur-fast) var(--ease-fast);
}
.founder-card__portfolio svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.founder-card__portfolio:hover {
  border-color: var(--gold-line);
  color: var(--gold-text);
  background: var(--gold-soft);
}
.founder-card__role {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}
.founder-card__bio {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}
.founder-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.founder-card__email {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--gold-text);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.1rem;
  transition: background var(--dur-fast) var(--ease-fast);
}
.founder-card__email:hover { background: var(--gold-soft); }

/* Social icon (LinkedIn only) */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-fast);
}
.social-icon:hover {
  border-color: var(--gold-line);
  color: var(--gold-text);
  background: var(--gold-soft);
}
.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-icon--footer {
  width: 32px;
  height: 32px;
}

/* Trust center */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 880px;
  margin: 0 auto;
}
.trust-item {
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  transition: border-color var(--dur-fast) var(--ease-fast);
}
.trust-item:hover { border-color: var(--gold-line); }
.trust-item__title {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--sp-2);
}
.trust-item__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Note / transparency card */
.note-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-7);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: center;
}
.note-card strong { color: var(--text-bright); font-weight: 500; }

/* Footer contact */
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
}
.footer-contact .email-link {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-fast);
}
.footer-contact .email-link:hover { color: var(--gold-text); }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
  .bg-network { opacity: 0.45; }
  .nav-desktop a::after { transform: scaleX(1); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: var(--sp-9); }
  .section { padding: var(--sp-11) 0; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

  .hero { padding-top: calc(var(--header-h) + var(--sp-10)); }
  .page-hero { padding-top: calc(var(--header-h) + var(--sp-9)); }
  .section { padding: var(--sp-10) 0; }
  .section--tight { padding: var(--sp-9) 0; }

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

  .project-card { grid-template-columns: 1fr; gap: var(--sp-4); }
  .project-card__meta { flex-direction: row; align-items: center; }
  .project-screenshots { grid-template-columns: repeat(3, 1fr); }
  .project-screenshots img { aspect-ratio: 4 / 3; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; gap: var(--sp-3); }
  .footer-links { justify-content: center; flex-wrap: wrap; row-gap: var(--sp-2); }
  .hero__trust { gap: var(--sp-2) var(--sp-5); }
  .re-deck { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: var(--sp-9);
    background: radial-gradient(
      460px 320px at var(--mx, 50%) var(--my, 22%),
      rgba(197, 160, 89, 0.07),
      transparent 70%
    );
  }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .service-card { padding: var(--sp-7) var(--sp-6); }
  .project-card { padding: var(--sp-7) var(--sp-6); }
  .contact-form { padding: var(--sp-6); }
  .project-screenshots { grid-template-columns: 1fr; }
  .project-screenshots img { aspect-ratio: 16 / 10; }
  .btn { padding: 0.8rem 1.5rem; }
  .nav-toggle { width: 44px; height: 44px; }
}

/* ---------------- New component responsive ---------------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-grid--two { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .case-study__grid { grid-template-columns: 1fr; }
  .price-line { grid-template-columns: 1fr; gap: var(--sp-2); }
  .founder-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .founder-card__actions { justify-content: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps .step { text-align: center; }
}

@media (max-width: 480px) {
  .price-card { padding: var(--sp-7); }
  .case-study__grid { padding: var(--sp-6); }
  .case-study__label { padding: var(--sp-3) var(--sp-6); }
  .case-study__note { padding: var(--sp-3) var(--sp-6); }
  .price-line { padding: var(--sp-5) var(--sp-6); }
}

/* ----------------------------------------------------------
     Page-hero actions, alt sections, trust strip, links
     ---------------------------------------------------------- */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.section--alt {
  background: var(--alt-bg);
}

.trust-strip {
  padding: var(--sp-4) 0;
  z-index: 2;
  position: relative;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-7);
}

.trust-strip__item {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.service-card__link {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gold-text);
  text-decoration: none;
}

.service-card__link:hover {
  text-decoration: underline;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gold-text);
  text-decoration: none;
}

.project-card__link:hover {
  text-decoration: underline;
}

.project-card__link--muted {
  color: var(--text-secondary);
  cursor: default;
  text-decoration: none;
}

.contact-form__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
}

.contact-form__intro {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: 0 0 var(--sp-6);
  line-height: 1.7;
}

/* ============================================================
   Real Estate AI Landing Page (.re-*)
   ============================================================ */

/* Hero (scoped so main.js mouse-spotlight style is not assumed) */
.re-hero {
  text-align: center;
  padding: calc(var(--header-h) + var(--sp-12)) clamp(1.25rem, 4vw, 2rem) var(--sp-11);
  position: relative;
  z-index: 2;
}
.re-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  margin-bottom: var(--sp-6);
}
.re-hero__eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}
.re-hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--text-bright);
  max-width: 780px;
  margin: 0 auto var(--sp-4);
}
.re-hero__title strong { color: var(--gold-text); font-weight: 400; }
.re-hero__desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}
.re-hero__desc strong { color: var(--text-bright); font-weight: 500; }
.re-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

/* 16:9 video frame with zero CLS (aspect-ratio reserves the space) */
.re-video { max-width: 1000px; margin: 0 auto; }
.re-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  box-shadow: var(--card-shadow);
}
.re-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.re-video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(120% 100% at 50% 0%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.24));
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.re-video-frame.playing::after { opacity: 0.12; }
.re-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: rgba(7, 7, 10, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  transition: all var(--dur-fast) var(--ease-out);
}
.re-video-play:hover {
  background: var(--gold);
  color: var(--btn-text);
  transform: scale(1.06);
  box-shadow: 0 8px 30px var(--btn-shadow);
}
.re-video-play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.re-video-frame.playing .re-video-play {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.re-video-note {
  max-width: 720px;
  margin: var(--sp-3) auto 0;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--text-faint);
  line-height: 1.7;
}

/* Problem timeline */
.re-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.re-timeline__item {
  position: relative;
  display: flex;
  gap: var(--sp-5);
  padding-bottom: var(--sp-7);
}
.re-timeline__item:last-child { padding-bottom: 0; }
.re-timeline__node {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 0 12px rgba(197, 160, 89, 0.35);
}
.re-timeline__item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 28px;
  bottom: -6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-line), transparent);
}
.re-timeline__item:last-child::before { display: none; }
.re-timeline__body { padding-top: 1px; }
.re-timeline__title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 2px;
}
.re-timeline__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Outcome cards */
.re-outcome {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.re-outcome__card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  transition: all var(--dur-med) var(--ease-out);
}
.re-outcome__card:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.re-outcome__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
}
.re-outcome__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.re-outcome__title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-bright);
}
.re-outcome__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Trust principles */
.re-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  max-width: 880px;
  margin: 0 auto;
}
.re-principle {
  display: flex;
  gap: var(--sp-4);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  transition: all var(--dur-med) var(--ease-out);
}
.re-principle:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}
.re-principle__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-raised);
}
.re-principle__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.re-principle__title {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 2px;
}
.re-principle__desc {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Good fit / not a fit */
.re-fit__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  max-width: 960px;
  margin: 0 auto;
}
.re-fit__card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: linear-gradient(180deg, var(--card-top), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-7);
}
.re-fit__card--yes {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, var(--gold-soft), transparent 60%), var(--surface);
}
.re-fit__heading {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.re-fit__card--no .re-fit__heading { color: var(--text-muted); }
.re-fit__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-bright);
  margin: calc(var(--sp-2) * -1) 0 0;
}

/* Screenshot gallery */
.re-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.re-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-raised);
  transition: border-color var(--dur-fast) var(--ease-fast), transform var(--dur-fast) var(--ease-out);
}
.re-gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-med) var(--ease-out);
}
.re-gallery__item:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}
.re-gallery__item:hover img { transform: scale(1.03); }
.re-gallery__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-3);
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-bright);
  background: linear-gradient(180deg, transparent, rgba(7, 7, 10, 0.82));
  text-align: left;
}
.re-gallery__zoom {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(7, 7, 10, 0.6);
  color: var(--gold-light);
}
.re-gallery__zoom svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.re-gallery__note {
  margin-top: var(--sp-5);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-align: center;
}

/* Native dialog lightbox */
.re-lightbox {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--overlay-bg);
  color: var(--text);
  max-width: min(1080px, 94vw);
  width: 94vw;
  overflow: hidden;
}
.re-lightbox::backdrop {
  background: rgba(5, 5, 8, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.re-lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}
.re-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
}
.re-lightbox__caption {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.re-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--surface-raised);
  transition: all var(--dur-fast) var(--ease-fast);
}
.re-lightbox__close:hover {
  border-color: var(--gold-line);
  color: var(--gold-text);
}
.re-lightbox__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.re-lightbox[open] { animation: re-zoom-in 0.2s var(--ease-out); }
@keyframes re-zoom-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* CTA banner with multiple actions */
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

/* Real Estate page responsive */
@media (max-width: 1024px) {
  .re-outcome { grid-template-columns: repeat(2, 1fr); }
  .re-principles { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .re-hero { padding-top: calc(var(--header-h) + var(--sp-9)); }
  .re-gallery { grid-template-columns: repeat(3, 1fr); }
  .re-fit__grid { grid-template-columns: 1fr; }
  .re-outcome { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .re-hero { padding-bottom: var(--sp-9); }
  .re-hero__actions { flex-direction: column; width: 100%; }
  .re-hero__actions .btn { width: 100%; }
  .re-gallery { grid-template-columns: 1fr; }
  .re-video-play { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .re-lightbox[open] { animation: none; }
  .re-video-play { transition: none; }
}

/* Supporting image deck (video section) */
.re-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.re-figure {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-raised);
}
.re-figure picture,
.re-figure img {
  display: block;
}
.re-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.re-figure__caption {
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}