:root {
  --bg:     #0a0a0b;
  --bg-2:   #111113;
  --panel:  #18181c;
  --panel-2:#1e1e24;
  --ink:    #f4ede0;
  --muted:  #a89e88;
  --dim:    #635d50;
  --gold:   #f0a800;
  --gold-2: #ffd166;
  --amber:  #b05e10;
  --line:   rgba(255, 209, 102, 0.14);
  --line-2: rgba(255, 209, 102, 0.26);
  --shadow: rgba(0, 0, 0, 0.55);
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --t:      220ms;
}

/* ─── Light theme variables ──────────────── */

[data-theme="light"] {
  --bg:     #faf7f2;
  --bg-2:   #f0ebe0;
  --panel:  #ffffff;
  --panel-2:#f7f2e8;
  --ink:    #1c1710;
  --muted:  #56504a;
  --dim:    #8a8476;
  --gold:   #c87a00;
  --gold-2: #a06200;
  --amber:  #8a4200;
  --line:   rgba(120, 80, 20, 0.16);
  --line-2: rgba(120, 80, 20, 0.30);
  --shadow: rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* subtle grain + grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
  opacity: 0.35;
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.028) 1px, transparent 1px);
  opacity: 0.45;
}

/* ambient gold light */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 42% at 80% 0%, rgba(240, 168, 0, 0.07), transparent),
    radial-gradient(ellipse 55% 35% at 10% 100%, rgba(176, 94, 16, 0.07), transparent);
}

[data-theme="light"] body::after {
  background:
    radial-gradient(ellipse 70% 42% at 80% 0%, rgba(180, 100, 0, 0.06), transparent),
    radial-gradient(ellipse 55% 35% at 10% 100%, rgba(130, 70, 10, 0.04), transparent);
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }

img { max-width: 100%; height: auto; }

/* ─── Header ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(240, 168, 0, 0.22), 0 0 0 1px var(--line);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  flex-shrink: 0;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 10px 28px rgba(240, 168, 0, 0.34), 0 0 0 1px var(--line-2);
}

nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

nav a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t) ease, background var(--t) ease;
}

nav a:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.06);
}

/* ─── Header right + hamburger ──────────── */

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition: background var(--t) ease;
}

.nav-toggle:hover { background: rgba(255,255,255,0.06); }

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 220ms var(--ease), opacity 220ms ease;
}

/* ─── Hero ───────────────────────────────── */

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: 48px;
  padding: 96px clamp(20px, 7vw, 112px) 80px;
  overflow: hidden;
}

.hero-copy { max-width: 860px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--gold-2) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.app-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 0.90;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.hero h1 { max-width: 980px; }

.hero p,
.section p,
.app-hero p {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.66;
  max-width: 580px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 54%, var(--amber));
  color: #150e00;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(240, 168, 0, 0.2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(240, 168, 0, 0.32);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(240, 168, 0, 0.18);
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t) ease;
}

.text-link:hover { color: var(--gold-2); }

/* ─── Sigil ──────────────────────────────── */

.sigil-stage {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sigil-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255,209,102,0.08), transparent 45%);
  border-radius: 4px;
}

.sigil-stage::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 120%;
  background: linear-gradient(transparent, rgba(255,209,102,0.2), transparent);
  transform: rotate(38deg);
}

.sigil-stage p {
  position: absolute;
  bottom: 28px;
  max-width: 240px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}

.sigil-logo {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter:
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 60px rgba(240, 168, 0, 0.22));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ─── Sections ───────────────────────────── */

.section {
  padding: 96px clamp(20px, 7vw, 112px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section h2 {
  font-size: clamp(36px, 5vw, 68px);
}

.work-section {
  border-top: 1px solid var(--line);
}

.apps-list {
  display: grid;
  gap: 56px;
  max-width: 960px;
}

/* ─── Product panel ──────────────────────── */

.product-panel {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 960px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.07) 0%, transparent 36%),
    var(--panel);
  box-shadow: 0 24px 64px var(--shadow);
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}

.product-panel:hover {
  border-color: var(--line-2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.65);
}

.product-icon-wrap {
  display: grid;
  place-items: center;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #0e0e10;
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.product-icon-wrap img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 22px;
}

.product-kicker {
  margin: 0 0 8px !important;
  color: var(--gold-2) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 440px;
}

/* ─── Manifesto ──────────────────────────── */

.manifesto {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 64px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto-grid {
  display: grid;
  gap: 28px;
}

.manifesto-grid p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.72;
}

/* ─── Contact ────────────────────────────── */

.contact {
  min-height: 50vh;
  display: grid;
  place-items: center;
}

.contact-card {
  width: min(100%, 920px);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 168, 0, 0.1) 0%, transparent 36%),
    var(--panel);
}

.contact-card h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 40px);
}
.contact-card p  { margin: 0 0 24px; }

.mail {
  display: inline-block;
  color: var(--gold-2);
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color var(--t) ease;
}

.mail:hover { color: var(--ink); }

/* ─── Fort app page ──────────────────────── */

.app-hero {
  min-height: 74vh;
  padding: 96px clamp(20px, 7vw, 112px) 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 1080px;
}

.app-logo-frame {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.app-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 18px;
}

.app-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
}

.app-hero > p {
  max-width: 560px;
}

/* ─── Feature cards ──────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 0;
}

.mini-card {
  min-height: 200px;
  padding: 24px 22px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color var(--t) ease, transform var(--t) var(--ease), box-shadow var(--t) ease;
}

.mini-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.44);
}

.mini-card h2 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.64;
}

/* ─── Legal pages ────────────────────────── */

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 22px 120px;
}

.legal h1 {
  color: var(--ink);
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin-bottom: 8px;
}

.legal .eyebrow { margin-bottom: 16px; }

.legal h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.82;
  font-size: 16px;
  margin-bottom: 8px;
}

.legal ul { padding-left: 20px; }

.legal h3 {
  margin-top: 28px;
  margin-bottom: 6px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ─── Footer ─────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--dim);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

footer a {
  text-decoration: none;
  transition: color var(--t) ease;
}

footer a:hover { color: var(--muted); }

footer .footer-spacer { flex: 1; }

/* ─── Language bar ───────────────────────── */

.lang-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lb-opt {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--dim);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.lb-opt:hover {
  color: var(--muted);
}

.lb-opt.active {
  color: #150e00;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--amber));
  box-shadow: 0 2px 10px rgba(240, 168, 0, 0.28);
}

.lb-opt:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
  border-radius: 999px;
}

/* ─── Theme bar ──────────────────────────── */

.theme-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

[data-theme="light"] .theme-bar {
  background: rgba(0, 0, 0, 0.04);
}

.tb-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  color: var(--dim);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.tb-opt:hover { color: var(--muted); }

.tb-opt.active {
  color: #150e00;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--amber));
  box-shadow: 0 2px 10px rgba(240, 168, 0, 0.28);
}

.tb-opt:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
  border-radius: 999px;
}

.theme-bar-inline { display: none; }

/* ─── Reveal animation ───────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ─── Responsive ─────────────────────────── */

@media (max-width: 960px) {
  .hero,
  .manifesto,
  .product-panel {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 56px; min-height: auto; gap: 36px; }

  .sigil-stage { min-height: 320px; }

  .sigil-logo { width: 180px; height: 180px; }

  .product-panel { grid-template-columns: 1fr; }
  .product-icon-wrap { width: 100%; max-width: 200px; }

  .manifesto { grid-template-columns: 1fr; gap: 0; }

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

/* ─── Mobile nav panel (≤768px) ─────────────── */

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(22px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    padding: 4px 0 8px;
    z-index: 99;
  }

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

  .main-nav a {
    padding: 14px clamp(20px, 5vw, 72px);
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .main-nav a:last-child { border-bottom: none; }

  .theme-bar-header { display: none; }

  .theme-bar-inline {
    display: flex;
    padding: 12px clamp(20px, 5vw, 72px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  [data-theme="light"] .theme-bar-inline {
    border-top-color: rgba(0, 0, 0, 0.06);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ─── Mobile content (≤600px) ───────────────── */

@media (max-width: 600px) {

  /* ── Hero: breathing + rhythm ── */

  .hero {
    padding-top: 72px;
    padding-bottom: 64px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 60px);
    line-height: 0.92;
    margin-bottom: 20px;
  }

  .hero .eyebrow { margin-bottom: 24px; }

  .hero .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
  }

  .hero .actions .button {
    width: 100%;
    justify-content: center;
  }

  /* ── Mobile logo zone (sigil-stage redesigned) ── */

  .sigil-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: unset;
    padding: 40px 0 16px;
    border-top: 1px solid var(--line);
    overflow: visible;
    background: radial-gradient(
      circle at 50% 64px,
      rgba(240, 168, 0, 0.10) 0%,
      transparent 60%
    );
  }

  .sigil-stage::before { display: none; }
  .sigil-stage::after  { display: none; }

  .sigil-logo {
    width: 80px;
    height: 80px;
    animation: float 8s ease-in-out infinite;
    filter:
      drop-shadow(0 0 40px rgba(240, 168, 0, 0.30))
      drop-shadow(0 0 10px rgba(255, 209, 102, 0.14))
      drop-shadow(0 16px 28px rgba(0, 0, 0, 0.40));
  }

  .sigil-stage p {
    position: static;
    margin-top: 16px;
    max-width: none;
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.20em;
  }

  /* ── Sections ── */

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .about-page { gap: 36px; }

  .app-hero {
    min-height: unset;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .product-panel { padding: 20px; }

  .contact-main {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .legal-header { padding-top: 48px; padding-bottom: 36px; }

  .section h2 { font-size: clamp(32px, 10vw, 52px); }

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

  .app-hero h1 { font-size: clamp(30px, 9vw, 48px); }
}

/* ─── Apps page canvas ───────────────────────── */

.work-section { position: relative; }

.apps-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.apps-canvas::before,
.apps-canvas::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  animation: orb-drift 18s ease-in-out infinite;
}

.apps-canvas::before {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(240, 168, 0, 0.09) 0%, transparent 70%);
}

.apps-canvas::after {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: 8%;
  animation-delay: -9s;
  background: radial-gradient(circle, rgba(176, 94, 16, 0.07) 0%, transparent 70%);
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-28px, 18px); }
  66%       { transform: translate(18px, -22px); }
}

/* ─── About page ─────────────────────────────── */

.about-page {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about-header h2 {
  margin: 0;
  font-size: clamp(32px, 7vw, 96px);
  line-height: 0.90;
  letter-spacing: -0.065em;
  font-weight: 900;
  max-width: 800px;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-lead {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.72;
  color: var(--muted);
  padding-left: 22px;
  border-left: 2px solid var(--line-2);
}

.about-statement {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.72;
  color: var(--muted);
}

.about-pillars {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.pillar {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-right: 24px;
}

.pillar + .pillar {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.pillar-num {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pillar-label {
  color: var(--ink);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ─── Contact page redesign ──────────────────── */

.contact-main {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 96px clamp(20px, 7vw, 112px);
}

.contact-gfx {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.contact-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.contact-ring-1 { width: 440px; height: 440px; animation: ring-pulse 8s ease-in-out infinite; }
.contact-ring-2 { width: 700px; height: 700px; animation: ring-pulse 8s ease-in-out infinite; animation-delay: -2.66s; }
.contact-ring-3 { width: 960px; height: 960px; animation: ring-pulse 8s ease-in-out infinite; animation-delay: -5.33s; }

@keyframes ring-pulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50%       { opacity: 0.62; transform: scale(1.025); }
}

.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.contact-headline {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.contact-sub {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.68;
}

.contact-email {
  display: inline-block;
  color: var(--gold-2);
  font-size: clamp(17px, 4.5vw, 40px);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
  border-bottom: 2px solid transparent;
  transition: color var(--t) ease, border-color var(--t) ease;
  overflow-wrap: break-word;
  max-width: 100%;
}

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

/* ─── Responsive additions ───────────────────── */

@media (max-width: 960px) {
  .about-body { grid-template-columns: 1fr; gap: 28px; }
  .about-pillars { flex-direction: column; gap: 20px; }
  .pillar + .pillar { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 20px; }
  .contact-ring-1 { width: 280px; height: 280px; }
  .contact-ring-2 { width: 460px; height: 460px; }
  .contact-ring-3 { width: 640px; height: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  .apps-canvas::before,
  .apps-canvas::after,
  .contact-ring { animation: none; }
  .nav-toggle span { transition: none; }
  .sigil-logo { animation: none; }
}

/* ─── Legal pages redesigned ─────────────────── */

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) 120px;
}

.legal-header {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 7.5vw, 104px);
  line-height: 0.90;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.legal-updated {
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-blocks {
  padding-top: 8px;
}

.legal-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.legal-block-num {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.legal-block-content h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-block-content p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.legal-block-content p:last-child { margin-bottom: 0; }

.legal-block-content a {
  color: var(--gold-2);
  text-decoration: none;
  transition: color var(--t) ease;
}

.legal-block-content a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .legal-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-block-num { padding-top: 0; }
}

/* ─── Extra-small screens (≤480px) ──────────── */

@media (max-width: 480px) {
  .contact-ring-1 { width: 220px; height: 220px; }
  .contact-ring-2 { width: 340px; height: 340px; }
  .contact-ring-3 { width: 460px; height: 460px; }

  .product-icon-wrap { max-width: 160px; }

  .legal-header h1 { font-size: clamp(32px, 9vw, 52px); }
}

/* ─── Boot intro ─────────────────────────────── */

#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

#intro.intro-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

#intro-canvas {
  position: absolute;
  inset: 0;
}

#intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 20%, rgba(10,10,11,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.intro-data {
  position: absolute;
  z-index: 3;
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: intro-fade-in 400ms ease 0.3s both;
}

.intro-data-tl { top: 28px; left: clamp(20px, 5vw, 56px); }
.intro-data-tr { top: 28px; right: clamp(20px, 5vw, 56px); text-align: right; }
.intro-data-bl { bottom: 52px; left: clamp(20px, 5vw, 56px); }
.intro-data-br { bottom: 52px; right: clamp(20px, 5vw, 56px); text-align: right; }

@keyframes intro-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.intro-scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240,168,0,0.25) 20%,
    rgba(255,209,102,0.65) 50%,
    rgba(240,168,0,0.25) 80%,
    transparent 100%
  );
  z-index: 2;
  animation: intro-scan 1.6s linear infinite;
}

@keyframes intro-scan {
  0%   { top: 0; }
  100% { top: 100%; }
}

.intro-inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.intro-logo-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px var(--line), 0 0 48px rgba(240,168,0,0.1);
}

.intro-logo-wrap::before,
.intro-logo-wrap::after {
  content: '';
  position: absolute;
  border-radius: 32px;
  border: 1px solid rgba(255,209,102,0.18);
  animation: intro-ring 3s ease-out infinite;
}

.intro-logo-wrap::before { inset: -16px; animation-delay: 0s; }
.intro-logo-wrap::after  { inset: -32px; border-color: rgba(255,209,102,0.08); animation-delay: 1s; }

@keyframes intro-ring {
  0%   { opacity: 0; transform: scale(0.88); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.12); }
}

.intro-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  animation: intro-logo-appear 1.4s var(--ease) both;
}

@keyframes intro-logo-appear {
  0%   { opacity: 0; filter: brightness(0) blur(16px); transform: scale(0.82); }
  28%  { opacity: 0.7; filter: brightness(2.2) blur(4px); transform: scale(1.06); }
  55%  { opacity: 1; filter: brightness(1.4) blur(0); transform: scale(0.99); }
  72%  { filter: brightness(1.8) blur(0); transform: scale(1.015); }
  100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 22px rgba(240,168,0,0.38)); transform: scale(1); }
}

.intro-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.intro-boot-line {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: intro-line-in 280ms ease both;
}

.intro-boot-line:nth-child(1) { animation-delay: 0.55s; color: var(--gold-2); }
.intro-boot-line:nth-child(2) { animation-delay: 0.9s; }
.intro-boot-line:nth-child(3) { animation-delay: 1.25s; }
.intro-boot-line:nth-child(4) { animation-delay: 1.6s;  color: var(--gold-2); }

@keyframes intro-line-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intro-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,209,102,0.06);
  z-index: 3;
}

.intro-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--gold), var(--gold-2));
  animation: intro-progress 2.7s ease-in-out both;
}

@keyframes intro-progress {
  0%   { width: 0%; }
  15%  { width: 8%; }
  40%  { width: 38%; }
  70%  { width: 72%; }
  100% { width: 100%; }
}

.intro-skip-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 3;
  opacity: 0;
  animation: intro-fade-in 400ms ease 2s both;
}

@media (prefers-reduced-motion: reduce) {
  .intro-logo          { animation: none; opacity: 1; filter: drop-shadow(0 0 22px rgba(240,168,0,0.38)); }
  .intro-logo-wrap::before,
  .intro-logo-wrap::after { animation: none; opacity: 0; }
  .intro-boot-line     { animation: none; opacity: 1; }
  .intro-scan-line     { animation: none; opacity: 0; }
  .intro-bar           { animation: none; width: 100%; }
  .intro-skip-hint     { animation: none; opacity: 1; }
  .intro-data          { animation: none; opacity: 1; }
}

/* ─── Light mode component overrides ────────── */

[data-theme="light"] .site-header {
  background: rgba(250, 247, 242, 0.88);
}

[data-theme="light"] nav a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

[data-theme="light"] .nav-toggle:hover { background: rgba(0, 0, 0, 0.05); }

[data-theme="light"] .main-nav {
  background: rgba(250, 247, 242, 0.97);
}

[data-theme="light"] .main-nav a {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .brand-logo {
  box-shadow: 0 6px 18px rgba(160, 98, 0, 0.22), 0 0 0 1px var(--line);
  background: var(--panel);
}

[data-theme="light"] .brand:hover .brand-logo {
  box-shadow: 0 10px 28px rgba(160, 98, 0, 0.34), 0 0 0 1px var(--line-2);
}

[data-theme="light"] .product-icon-wrap {
  background: #efe9dc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .product-panel:hover {
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mini-card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .sigil-logo {
  filter:
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.14))
    drop-shadow(0 0 60px rgba(160, 98, 0, 0.22));
}

[data-theme="light"] .sigil-stage {
  background: none;
}

[data-theme="light"] .sigil-stage::before {
  background: linear-gradient(135deg, rgba(160,98,0,0.08), transparent 45%);
  border-color: var(--line);
}

[data-theme="light"] .sigil-stage::after {
  background: linear-gradient(transparent, rgba(160,98,0,0.15), transparent);
}

[data-theme="light"] .button {
  box-shadow: 0 12px 32px rgba(160, 98, 0, 0.20);
}

[data-theme="light"] .button:hover {
  box-shadow: 0 20px 48px rgba(160, 98, 0, 0.32);
}

[data-theme="light"] .button:active {
  box-shadow: 0 8px 20px rgba(160, 98, 0, 0.18);
}

[data-theme="light"] .lb-opt.active,
[data-theme="light"] .tb-opt.active {
  box-shadow: 0 2px 10px rgba(160, 98, 0, 0.28);
}

/* Intro always dark regardless of theme */
[data-theme="light"] #intro {
  --bg:     #0a0a0b;
  --bg-2:   #111113;
  --panel:  #18181c;
  --ink:    #f4ede0;
  --muted:  #a89e88;
  --dim:    #635d50;
  --gold:   #f0a800;
  --gold-2: #ffd166;
  --amber:  #b05e10;
  --line:   rgba(255, 209, 102, 0.14);
}

/* ─── Theme transition (only while switching) ── */

[data-theme-transitioning],
[data-theme-transitioning] *,
[data-theme-transitioning] *::before,
[data-theme-transitioning] *::after {
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease !important;
}
