/* ==========================================================================
   OmniScrypt Studio — Design Tokens
   ========================================================================== */

:root {
  /* Luminous Pearl Light Theme with Studio Slate-Indigo Accents */
  --bg: #f5f7fc;
  --bg-soft: #ebedf5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(85, 100, 140, 0.12);
  --border-strong: rgba(85, 100, 140, 0.22);

  /* High-contrast slate typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Metallic slate-indigo, sampled from the logo's swirl bevel */
  --slate-deep: #23262f;
  --slate-mid: #454b5c;
  --indigo: #485282;
  --indigo-light: #6366f1;
  --silver: #475569;

  --grad-brand: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-light) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(91, 100, 144, 0.35), rgba(143, 151, 192, 0.3));
  /* Narrower-range twin of --grad-brand, kept dark enough end-to-end that
     white button text stays AA-readable across the whole gradient (checked:
     4.97:1+ at both stops) — --grad-brand itself gets too light on one end
     for that. */
  --grad-brand-btn: linear-gradient(135deg, var(--indigo) 0%, #666e95 100%);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

#apps {
  scroll-margin-top: -8px;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
#apps .section-head {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}
#contact {
  scroll-margin-top: 0px;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

::selection {
  background: rgba(91, 100, 144, 0.45);
  color: #fff;
}

/* ==========================================================================
   Ambient Background — Aurora + Noise
   ========================================================================== */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #edf1f8 100%);
}

.aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(232, 220, 192, 0.45) 0%, transparent 50%);
  opacity: 0.8;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.orb-a {
  width: 48vw;
  height: 48vw;
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle, #c7d2fe 0%, transparent 70%);
  animation: drift-a 26s ease-in-out infinite;
}

.orb-b {
  width: 40vw;
  height: 40vw;
  top: 15vh;
  right: -8vw;
  background: radial-gradient(circle, #e0e7ff 0%, transparent 70%);
  animation: drift-b 30s ease-in-out infinite;
}

.orb-c {
  width: 36vw;
  height: 36vw;
  bottom: -10vw;
  left: 20vw;
  background: radial-gradient(circle, #fde68a 0%, transparent 70%);
  animation: drift-c 34s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 6vh) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, 4vh) scale(0.95); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, -5vh) scale(1.05); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #0b0c10;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), height 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  height: 68px;
  background: rgba(245, 247, 252, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-right: auto;
  letter-spacing: -0.01em;
}

/* Crops in on just the "OS" swirl of the real logo file, which is a flat
   business-card-style image (icon + wordmark + tagline baked into one
   rectangle, no transparency). Numbers below were measured directly from
   that file: the swirl sits at roughly x 33%-70%, y 5%-55% of the image.
   Scaling/positioning math: shown-width% = 100/(fx1-fx0), same for height;
   offset% = -fx0/(fx1-fx0)*100, same for top. Reusable at any size. */
.logo-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1042 / 768;
}
.logo-crop img {
  position: absolute;
  width: 270.3%;
  height: 200%;
  left: -89.2%;
  top: -10%;
  max-width: none;
  display: block;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.1rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transition: right 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn svg { transition: transform 0.25s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--grad-brand-btn);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(91, 100, 144, 0.4), 0 2px 8px rgba(143, 151, 192, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(91, 100, 144, 0.5), 0 4px 14px rgba(143, 151, 192, 0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: var(--surface); transform: translateY(-2px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
  font-size: 0.85rem;
  padding: 0.65rem 1.3rem;
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); }

.nav-cta {
  flex-shrink: 0;
  margin-left: 1rem;
  padding: 1rem 2.2rem;       /* Substantially taller and wider */
  font-size: 1.05rem;          /* Larger, clearer text */
  font-weight: 700;
  letter-spacing: 0.02em;
  border-width: 1.5px;         /* Gives the border more substance */
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Button styles for header CTA
   ========================================================================== */

    .head-nav .nav-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      color: var(--text-primary);
      border: 1.5px solid var(--border);
      border-radius: 999px;
      padding: 1rem 2.2rem;
      font-size: 1.05rem;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    }
    .head-nav .nav-cta:hover {
      background: var(--surface-strong);
      border-color: var(--border-strong);
      color: var(--text-primary);
      transform: translateY(-2px);
    }

/* ==========================================================================
   Layout Helpers
   ========================================================================== */

.section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 1rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  box-shadow: 0 0 12px var(--indigo-light);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

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

/* Scroll reveal — progressive enhancement only.
   Content is fully visible by default; the fade/slide-in effect is layered
   on top ONLY once JS confirms it's running (html.js), so a no-JS or
   slow-JS visitor never gets stuck looking at invisible content. */
.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  max-width: 1360px;
  margin: 0 auto;
  /* Lifted up by 20% */
  padding: clamp(0.5rem, 2.5vw, 1.5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 2rem;
}

/* Shifted 25% towards the right on desktop screens */
.hero-inner { 
  max-width: 620px; 
  margin-left: clamp(0px, 6vw, 25%);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual — the real logo mark, large, instead of a generic graphic.
   (An earlier version drew an abstract compass/star glyph here, which is
   literally the Akashic Compass app's icon shape — exactly the "looks like
   Akashic Compass" problem. This replaces it with the studio's own mark.) */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  /* Lifted up by 20% */
  margin-top: 2.0rem;
}

.hero-glow {
  position: absolute;
  width: min(58vw, 420px);
  height: min(58vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 100, 144, 0.4), transparent 70%);
  filter: blur(60px);
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-mark-ring {
  position: absolute;
  width: min(46vw, 340px);
  height: min(46vw, 340px);
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  animation: spin 60s linear infinite;
}
.hero-mark-ring::before,
.hero-mark-ring::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  box-shadow: 0 0 10px var(--indigo-light);
}
.hero-mark-ring::before { top: -3px; left: calc(50% - 3px); }
.hero-mark-ring::after { bottom: 8%; right: 4%; width: 4px; height: 4px; }

.hero-mark {
  position: relative;
  z-index: 1;
  width: min(38vw, 250px);
  animation: float-logo 6s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad-brand);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pillars {
  display: grid;
  gap: 1rem;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}
.pillar-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-3px);
}

.pillar-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand-soft);
  color: var(--text-primary);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.pillar-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ==========================================================================
   Apps
   ========================================================================== */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem 2.2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, background 0.4s ease;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--card-glow, var(--grad-brand));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-6px);
  background: var(--surface-strong);
}
.app-card:hover::before { opacity: 1; }

.theme-compass,
.theme-bloodline,
.theme-pilltally { --card-glow: var(--grad-brand); }

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.placeholder-icon {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
}

.app-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.app-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.app-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  align-self: flex-start;
}
.app-link svg { transition: transform 0.25s var(--ease); }
.app-link:hover svg { transform: translateX(3px); }

.is-soon { opacity: 0.88; }
.is-soon .app-icon.placeholder-icon svg { opacity: 0.8; }

.badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--indigo-light);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.contact-info > p:not(.eyebrow) { margin-bottom: 1.75rem; max-width: 420px; }

.contact-meta { display: grid; gap: 0.9rem; }
.contact-meta li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.meta-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--indigo-light);
  flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field { position: relative; }

.name-mobile { display: none; }

@media (max-width: 860px) {
  .name-desktop { display: none; }
  .name-mobile { display: block; }
  .field-website { display: none; }
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field textarea { min-height: 120px; resize: vertical; padding-top: 1.3rem; }

.field label {
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.2s ease, color 0.2s ease, top 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-0.55rem) scale(0.78);
  color: var(--indigo-light);
}

.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label { top: 0.7rem; }

.form-submit { align-self: flex-start; margin-top: 0.3rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{border-top:1px solid var(--border);background:var(--bg-soft);
  padding:clamp(2.5rem,5vw,3.5rem) clamp(1.25rem,4vw,3rem) 2.25rem}
.footer-inner{max-width:1360px;margin:0 auto}
.footer-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;
  gap:1.75rem clamp(2rem,6vw,5rem)}
.footer-brand-col{max-width:46ch}
.footer-brand{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--font-display);
  font-weight:600;font-size:1.05rem;letter-spacing:-.01em;color:var(--text-primary);text-decoration:none}
.footer-mark{width:34px;height:34px;flex-shrink:0;border-radius:8px;padding:4px;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.footer-mark img{width:100%;height:100%;object-fit:contain;display:block}
.footer-accent{background:var(--grad-brand);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent}
.footer-blurb{margin:.9rem 0 0;font-size:.86rem;line-height:1.7;color:var(--text-muted)}
.footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem 1.6rem;
  font-size:.82rem;font-weight:500}
.footer-links a{color:var(--text-secondary);text-decoration:none;transition:color .2s ease}
.footer-links a:hover{color:var(--text-primary)}
.footer-rule{height:1px;background:var(--border);margin:clamp(1.75rem,3.5vw,2.5rem) 0 1.4rem}
.footer-legal{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:.9rem 2.5rem}
.footer-note{margin:0;font-size:.76rem;line-height:1.75;color:var(--text-muted);
  max-width:82ch;flex:1 1 32ch}
.footer-copy{margin:0;font-size:.79rem;color:var(--text-muted);white-space:nowrap}
@media (max-width:860px){
  .footer-top{grid-template-columns:1fr}
  .footer-links{justify-content:flex-start}
  .footer-legal{flex-direction:column;align-items:flex-start}
  .footer-copy{white-space:normal}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-height: 260px; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

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

  .site-header[data-open="true"] .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(6, 6, 11, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .site-header[data-open="true"] .nav-links a[data-nav-link] {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
  }
  .site-header[data-open="true"] .nav-links .nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin: 1.25rem 0 0;
  }

  .apps-grid { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; row-gap: 1.25rem; }

  html { scroll-padding-top: 56px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .btn { font-size: 0.86rem; padding: 0.75rem 1.2rem; }
}
/* ==========================================================================
   Shared Legal & Policy Pages (Terms, Privacy, Disclosure)
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), height 0.3s var(--ease);
}

.site-head.scrolled {
  background: rgba(6, 6, 11, 0.95);
}

.head-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.87rem;
  font-weight: 500;
}

.head-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.head-nav a:hover {
  color: var(--text-primary);
}

.head-nav a.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--indigo);
  padding-bottom: 2px;
}

.head-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.head-nav .nav-cta:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Page Titles & Headers */
.page-head {
  max-width: 74ch;
  margin: 0 auto;
  padding: 56px 24px 8px;
}

.stamp {
  margin-top: 16px;
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.stamp b {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Reading Layout for Legal Content */
main:not(#hero-main) {
  max-width: 74ch;
  margin: 0 auto;
  padding: 8px 24px 96px;
}

main:not(#hero-main) h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

main:not(#hero-main) h2 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
  margin: 52px 0 14px;
  scroll-margin-top: 96px;
  letter-spacing: -0.01em;
}

main:not(#hero-main) h3 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--silver);
  margin: 30px 0 8px;
  scroll-margin-top: 96px;
}

main:not(#hero-main) p {
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

main:not(#hero-main) ul,
main:not(#hero-main) ol {
  margin: 0 0 16px 1.35rem;
}

main:not(#hero-main) li {
  margin-bottom: 9px;
}

main:not(#hero-main) ul {
  list-style: disc;
}

main:not(#hero-main) a {
  color: var(--indigo-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main:not(#hero-main) a:hover {
  color: var(--silver);
}

/* Specific Content Components */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 36px 0 8px;
  font-size: 0.9rem;
}

.toc .toc-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 34px;
}

.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
}

.toc a:hover {
  color: var(--text-primary);
}

@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

.banner {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--indigo);
  background: linear-gradient(180deg, rgba(91, 100, 144, 0.14), rgba(91, 100, 144, 0.05));
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin: 32px 0;
}

.banner h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.banner p:last-child {
  margin-bottom: 0;
}

.callout {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 0.95rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout .label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 8px;
}

.rule-box {
  border: 1px solid var(--indigo);
  background: rgba(91, 100, 144, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.rule-box p:last-child {
  margin-bottom: 0;
}

.caps {
  font-weight: 600;
  color: var(--text-primary);
}

/* Tables (Postponed or ready whenever needed) */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.table-wrap th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}
/* ==========================================================================
   ADDED 2026-09-07 — Legal page boxes + contact page.
   Only what your HTML actually references and nothing defines yet.
   Reuses your existing .toc .callout .rule-box .table-wrap .caps as-is.
   ========================================================================== */

/* The bordered box from terms.html, as a real class instead of inline styles.
   Used for the top notice AND the "main point" box on all three legal pages. */
.notice-box {
  border: 1px solid var(--indigo);
  background: rgba(91, 100, 144, 0.10);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.7rem 1.4rem;
  margin: 1.75rem 0;
}

.notice-box .box-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 0;
}

.notice-box .box-lead {
  font-weight: 600;
  color: var(--text-primary);
}

.notice-box p:last-child { margin-bottom: 0; }

/* Softer variant for the mid-page "main point" box */
.notice-box.is-soft { background: rgba(91, 100, 144, 0.06); }

/* Page titles sit outside <main>, so main's rules never reached them. */
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-head .lede {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* Keep the pill CTA from picking up the nav underline animation */
.nav-links .nav-cta::after { content: none; }

/* --- contact.html: these classes were used but never defined ------------- */

.routes.routes {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.routes.routes li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.routes.routes li:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-3px);
}

.route-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 7px;
}

.routes.routes p { margin: 0; font-size: 0.92rem; line-height: 1.6; }

@media (max-width: 620px) {
  .routes.routes { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin: 26px 0;
}

.form-card form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-card .field .optional {
  position: absolute;
  right: 1rem;
  top: 0.95rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
}

.form-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card .form-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.form-card button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.2rem;
  background: var(--grad-brand-btn);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(91, 100, 144, 0.35);
}

/* ==========================================================================
   Section cards — every numbered section is its own box
   ========================================================================== */

.sec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.7rem 1.5rem;
  margin: 1.05rem 0;
  scroll-margin-top: 96px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sec:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.sec > .sec-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 1rem;
  scroll-margin-top: 96px;
}

.sec-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sec-body > *:last-child { margin-bottom: 0; }

.sec-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--silver);
  margin: 1.4rem 0 0.5rem;
}

/* boxes nested inside a section card sit tighter */
.sec-body .callout,
.sec-body .rule-box,
.sec-body .notice-box,
.sec-body .table-wrap { margin: 1.1rem 0; }

/* Bigger Get in Touch button */
.nav-links .nav-cta {
  padding: 0.8rem 1.9rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-width: 1px;
}

@media (max-width: 620px) {
  .sec { padding: 1.2rem 1.15rem 1.3rem; }
  .sec > .sec-title { font-size: 1.08rem; gap: 0.6rem; }
  .sec-num { width: 30px; height: 30px; font-size: 0.8rem; }
  .notice-box { padding: 1.1rem 1.15rem 1.25rem; }
}

/* ==========================================================================
   Wider content column + slim two-item header  (2026-09-07)
   ========================================================================== */

/* 1. The reading column was 74ch (~660px). Much wider now. */
main:not(#hero-main) {
  max-width: 1100px;
  padding-left: 32px;
  padding-right: 32px;
}

.page-head {
  max-width: 1100px;
  padding-left: 32px;
  padding-right: 32px;
}

/* 2. Header carries only Home + Get in Touch, so the two stay visible
      at every width and the hamburger is not needed. */
.site-header.is-slim .nav-links { gap: 1.75rem; }

@media (max-width: 860px) {
  .site-header.is-slim .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    border: 0;
    padding: 0;
    gap: 1.1rem;
  }
  .site-header.is-slim .nav-toggle { display: none; }
}

@media (max-width: 620px) {
  main:not(#hero-main),
  .page-head { padding-left: 18px; padding-right: 18px; }
  .site-header.is-slim .nav-cta { padding: 0.65rem 1.35rem; font-size: 0.92rem; }
}

/* ==========================================================================
   Mobile refinements (2026-09-07)
   ========================================================================== */

@media (max-width: 860px) {

  /* 1. Hero logo + ring animation up ~75px */
  .hero-visual { margin-top: 0; }

  /* 2. Hero wording up ~15px */
  .hero-inner { margin-top: -15px; }

  /* 3. Centered footer */
  .site-footer { text-align: center; }
  .footer-brand-col { max-width: none; }
  .footer-brand { display: inline-flex; }
  .footer-links { justify-content: center; }
  .footer-legal { align-items: center; justify-content: center; }
  .footer-note { max-width: none; flex: 1 1 auto; }

  /* 4 + 6. Pull the first box up under the date line (~25px tighter) */
  main:not(#hero-main) { padding-top: 0; }
  main:not(#hero-main) > .notice-box:first-of-type { margin-top: 4px; }
  .notice-box { padding-top: 0.9rem; }

  /* 5 + 6. Centre the page head and every box heading below it */
  .page-head { text-align: center; }
  .page-head .eyebrow { justify-content: center; }
  .page-head .lede { margin-left: auto; margin-right: auto; }
  .page-head .stamp { justify-content: center; }

  .notice-box .box-title { justify-content: center; text-align: center; }
  .notice-box .box-lead { text-align: center; }

  .toc { text-align: center; }
  .toc .toc-title { text-align: center; }
  .toc.toc a { text-align: center; }

  .sec > .sec-title { justify-content: center; text-align: center; }
  .callout .label,
  .route-label { text-align: center; }
  .routes.routes li { text-align: center; }
}
