/* ==========================================================================
   Ooroboros Sdn Bhd — Site styles
   Built on the official brand tokens in tokens.css (Ooroboros Design System —
   Electric Blue / Ink / Canvas Cloud / Hard-Disk, Zoho Puvi, blueprint grid).
   Load tokens.css before this file.
   ========================================================================== */

:root {
  --container: 1120px;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body { margin: 0; -webkit-font-smoothing: antialiased; }

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

a { text-decoration: none; }

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fg-2);
  max-width: 42em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--oo-electric-aa); /* bright electric fails AA as text on light surfaces */
  margin-bottom: 1.2em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: var(--s-24) 0; }
section.tight { padding: var(--s-16) 0; }

.hr {
  border: none;
  border-top: var(--bw-1) solid var(--border-1);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: var(--w-semibold);
  padding: 14px 26px;
  border: var(--bw-1) solid transparent;
  border-radius: var(--r-1);
  color: var(--fg-1);
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.btn.primary { background: var(--oo-electric-aa); color: #fff; } /* brand electric is 2.65:1 under white — fails AA */
.btn.primary:hover { background: var(--oo-electric-aa-deep); box-shadow: var(--shadow-electric); }

.btn.ghost { border-color: var(--border-1); color: var(--fg-1); }
.btn.ghost:hover { background: var(--bg-3); }

/* Ghost buttons sitting on dark (Ink / blueprint) grounds */
.hero .btn.ghost, .site-nav .btn.ghost, .site-footer .btn.ghost, .panel .btn.ghost,
.glass-panel .btn.ghost {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.hero .btn.ghost:hover, .site-nav .btn.ghost:hover, .site-footer .btn.ghost:hover, .panel .btn.ghost:hover,
.glass-panel .btn.ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

/* Nav highlight chip — pill-shaped, sits apart from the primary/ghost pair */
.btn.highlight { background: var(--oo-highlight); color: var(--oo-ink); border-radius: var(--r-pill); font-weight: var(--w-semibold); }
.btn.highlight:hover { background: var(--oo-highlight-deep); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--oo-ink);
  border-bottom: var(--bw-1) solid var(--on-dark-border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; }
.brand .logo { height: 26px; width: auto; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: var(--w-medium);
  color: var(--on-dark-fg-2);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-dark-fg-1); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--oo-electric);
}

/* Client Login inside the collapsible menu — mobile only; desktop shows it in .nav-actions */
.nav-mobile-only { display: none; }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-actions .btn { padding: 10px 20px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: var(--bw-1) solid rgba(255,255,255,0.35);
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: var(--r-1);
}

/* ---------- Hero — blueprint motif ---------- */
.hero {
  padding: 140px 0 110px;
  position: relative;
  overflow: hidden;
  background: var(--oo-blueprint-deep);
  color: var(--on-dark-fg-1);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero::after {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 128px 128px;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 16em; color: var(--on-dark-fg-1); }
.hero .lede { margin: 28px 0 40px; color: rgba(255,255,255,0.92); } /* gradient mid-tones leave 0.78 white borderline */
.hero .eyebrow { color: var(--oo-electric-soft); } /* bright electric ~3:1 over the mid-blue gradient */

/* ---------- Cards / Grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.card {
  background: var(--bg-2);
  border: var(--bw-1) solid var(--border-1);
  padding: 40px;
  border-radius: var(--r-2);
}
.card p:last-child { margin-bottom: 0; }

/* ---------- Pricing tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: var(--bw-1) solid var(--border-1);
  border-radius: var(--r-2);
  padding: 36px 32px;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.tier:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11,31,102,0.14);
}
.tier.featured {
  border-color: var(--oo-electric);
  box-shadow: 0 0 0 1px var(--oo-electric), 0 18px 44px rgba(39,170,225,0.16);
}
.tier .tier-badge {
  position: absolute;
  top: -12px; left: 32px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: #fff;
  background: var(--oo-electric);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.tier h3 { margin: 0 0 4px; color: var(--fg-1); }
.tier .tier-lead { color: var(--fg-3); font-size: 0.9rem; margin: 0 0 22px; }
.tier .price { font-family: var(--font-sans); font-weight: var(--w-light); font-size: 2.1rem; color: var(--fg-1); line-height: 1.1; }
.tier .price .unit { font-size: 0.95rem; color: var(--fg-3); font-weight: var(--w-regular); }
.tier .price-note { font-size: 0.82rem; color: var(--fg-3); margin: 8px 0 0; }
.tier ul { list-style: none; margin: 26px 0 0; padding: 26px 0 0; border-top: var(--bw-1) solid var(--border-2); display: flex; flex-direction: column; gap: 12px; }
.tier ul li { display: flex; gap: 12px; font-size: 0.92rem; color: var(--fg-2); line-height: var(--lh-snug); }
.tier ul li::before { content: "—"; color: var(--oo-electric); flex-shrink: 0; }
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }

.service-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding: 32px 0;
  border-top: var(--bw-1) solid var(--border-2);
}
.service-row:last-child { border-bottom: var(--bw-1) solid var(--border-2); }
.service-row h3 { margin: 0; color: var(--fg-1); }
.service-row p { margin: 0; }

/* ---------- Myth icons (Greek mythology pack) ----------
   Single-color silhouettes tinted via mask so one file serves
   any surface: ink on light, white on dark. Decorative only —
   always aria-hidden in markup. */
.myth-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background-color: var(--oo-ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
/* Icon URLs live here, not in inline styles: Chrome resolves url() inside a
   custom property against the consuming stylesheet's base, so inline-declared
   relative paths 404 under /css/. */
.icon-hephaestus { --icon: url("../assets/icons/hephaestus.svg"); }
.icon-apollo     { --icon: url("../assets/icons/apollo.svg"); }
.icon-atlas      { --icon: url("../assets/icons/atlas.svg"); }
.icon-hermes     { --icon: url("../assets/icons/hermes.svg"); }
.icon-aphrodite  { --icon: url("../assets/icons/aphrodite.svg"); }
.icon-nike       { --icon: url("../assets/icons/nike.svg"); }
.icon-pillar     { --icon: url("../assets/icons/pillar.svg"); }
.icon-pegasus    { --icon: url("../assets/icons/pegasus.svg"); }
.icon-prometheus { --icon: url("../assets/icons/prometheus.svg"); }
.icon-themis     { --icon: url("../assets/icons/themis.svg"); }
.panel .myth-icon, .cta-card.dark .myth-icon, .cta-card.electric .myth-icon,
.site-footer .myth-icon { background-color: #fff; }

.card.benefit .myth-icon { width: 52px; height: 52px; margin-bottom: 18px; }

/* Icon beside the heading in the services list */
.service-label { display: flex; align-items: center; gap: 18px; }
.service-label .myth-icon { width: 38px; height: 38px; }

/* ---------- Data table ---------- */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0 0; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: var(--bw-1) solid var(--border-2); }
.data-table th { font-weight: var(--w-semibold); font-size: 0.72rem; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--fg-3); }
.data-table td { color: var(--fg-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 10px 8px; }
}

/* ---------- Quote / Founding lines ---------- */
blockquote.line {
  margin: 0;
  padding: 0 0 0 28px;
  border-left: var(--bw-2) solid var(--oo-electric);
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: var(--w-light);
  color: var(--fg-1);
  line-height: var(--lh-snug);
}

.panel {
  background: var(--on-dark-bg-1);
  border-top: var(--bw-1) solid var(--on-dark-border);
  border-bottom: var(--bw-1) solid var(--on-dark-border);
  color: var(--on-dark-fg-1);
}
.panel h1, .panel h2, .panel h3, .panel h4 { color: var(--on-dark-fg-1); }
.panel p, .panel .lede { color: var(--on-dark-fg-2); }
.panel blockquote.line { color: var(--on-dark-fg-1); }
.panel .eyebrow { color: var(--oo-electric); }

/* ---------- Glass panel (photography backdrop + frosted card) ---------- */
.glass-panel {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,31,102,0.82), rgba(11,31,102,0.55));
}
.glass-panel .container { position: relative; z-index: 1; }
/* .glass-card itself is defined once, in the "liquid glass" block below. */

/* ---------- Photography ---------- */
.photo {
  border-radius: var(--r-2);
  overflow: hidden;
  border: var(--bw-1) solid var(--border-1);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { font-size: 0.8rem; color: var(--fg-3); margin-top: 10px; }

/* Ken Burns — slow continuous zoom inside .photo */
@keyframes ken-burns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}
.photo.kb img { animation: ken-burns 18s ease-in-out infinite; will-change: transform; }

/* ---------- Lists ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  padding: 18px 0;
  border-top: var(--bw-1) solid var(--border-2);
  color: var(--fg-2);
  display: flex;
  gap: 16px;
}
.plain-list li:last-child { border-bottom: var(--bw-1) solid var(--border-2); }
.plain-list li::before {
  content: "—";
  color: var(--oo-electric);
  flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.82rem; letter-spacing: var(--ls-normal); color: var(--fg-2); }
input, textarea, select {
  background: var(--bg-2);
  border: var(--bw-1) solid var(--border-1);
  color: var(--fg-1);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  border-radius: var(--r-1);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--oo-electric);
  box-shadow: 0 0 0 3px var(--oo-electric-soft);
}
textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; }

.form-note { font-size: 0.85rem; color: var(--fg-3); margin-top: 18px; }

.form-notice { padding: 18px 20px; border-radius: var(--r-1); margin-bottom: 24px; }
.form-notice p { margin: 0; }
.form-notice-success { background: var(--oo-electric-soft); border: var(--bw-1) solid var(--oo-electric); color: var(--oo-ink); }
.form-notice-error { background: var(--bg-3); border: var(--bw-1) solid var(--border-1); color: var(--fg-1); }
.form-notice-error a { color: var(--oo-electric-aa-deep); text-decoration: underline; } /* --oo-electric-aa is 4.3:1 on the bg-3 notice — just under AA */

/* ---------- Contact details ---------- */
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding: 20px 0; border-top: var(--bw-1) solid var(--border-2); }
.detail-list li:last-child { border-bottom: var(--bw-1) solid var(--border-2); }
.detail-list .label { font-size: var(--type-eyebrow); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.detail-list .value { font-family: var(--font-sans); font-weight: var(--w-light); font-size: 1.25rem; color: var(--fg-1); }
.detail-list a.value:hover { color: var(--oo-electric); }

/* ---------- Footer ---------- */
.site-footer { background: var(--oo-ink); color: var(--on-dark-fg-2); border-top: var(--bw-1) solid var(--on-dark-border); padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 26em; }
.footer-badges { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.footer-badges img { height: 48px; width: auto; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-sans); font-size: var(--type-eyebrow); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--on-dark-fg-3); margin-bottom: 16px; font-weight: var(--w-semibold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--on-dark-fg-2); font-size: 0.92rem; transition: color var(--dur-base) var(--ease-out); }
.footer-col a:hover { color: var(--oo-electric); }
.footer-legal { display: grid; gap: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: var(--bw-1) solid var(--on-dark-border);
  color: var(--on-dark-fg-3);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll reveal (original) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  --stagger-index: 0;
  animation-delay: calc(var(--stagger-base, 0s) + (var(--stagger-index) * 80ms));
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  /* Halt the continuous/looping background motion for vestibular safety. */
  .hero-animated, .hero-glow, .section-grid, .card-glow { animation: none; }
}

/* ---------- Cinematic background animations ---------- */
@keyframes gradient-morph {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-pulse {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.3) translateY(-10px);
    opacity: 0.2;
  }
}

/* Animated background gradient container */
.hero-animated {
  background: linear-gradient(135deg, var(--oo-blueprint-deep), var(--oo-electric), var(--oo-canvas-cloud));
  background-size: 400% 400%;
  animation: gradient-morph 12s ease-in-out infinite;
}

/* SVG background positioning */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  animation: glow-pulse 8s ease-in-out infinite;
}

/* Grid overlay lines */
.hero-grid-line {
  stroke: white;
  stroke-width: 1;
  opacity: 0.1;
}

/* ---------- Enhanced glass-card (liquid glass) ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-3);
  padding: var(--s-6);
  max-width: 34em;
  position: relative;
}

/* Liquid glass border frame (sharp precision edge) */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: var(--r-3);
  pointer-events: none;
}

.glass-card h2, .glass-card h3, .glass-card h4 { color: #fff; }
.glass-card p, .glass-card .lede { color: rgba(255, 255, 255, 0.82); }
.glass-card .eyebrow { color: var(--oo-electric); }

/* ---------- Grid overlay animation (sections) ---------- */
@keyframes grid-pulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.14; }
}

.section-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: grid-pulse 6s ease-in-out infinite;
}

/* ---------- Glass-block for quotes ---------- */
.glass-block {
  background: rgba(255, 255, 255, 0.008);
  background-blend-mode: luminosity;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-left: 2px solid rgba(39, 170, 225, 0.4);
  padding: 28px;
  border-radius: var(--r-2);
}

/* ---------- Card glow background ---------- */
.card-glow {
  position: absolute;
  inset: -24px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(39, 170, 225, 0.1), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  /* Opacity-only pulse: glow-pulse's scale(1.3) pushed this past the viewport
     edge on narrow screens (horizontal scrollbar). */
  animation: card-glow-pulse 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes card-glow-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- Section-specific stagger base timing ---------- */
section.panel { --stagger-base: 80ms; }
section.tight { --stagger-base: 100ms; }

/* ---------- Bento hero (einvoice) ----------
   Photo card + white content card side by side, two bold CTA cards beneath —
   white/ink/electric surfaces popping against the dark blueprint hero. */
.bento-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bento-photo {
  border-radius: var(--r-3);
  overflow: hidden;
  border: var(--bw-1) solid rgba(255,255,255,0.18);
  min-height: 380px;
}
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }
.bento-card {
  background: var(--bg-2);
  border-radius: var(--r-3);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  box-shadow: var(--shadow-3);
}
.hero .bento-card h1 { color: var(--fg-1); max-width: none; }
.hero .bento-card .lede { color: var(--fg-2); margin: 0; }
.bento-card.wide { grid-column: 1 / -1; }
.bento-card.wide h1 { max-width: 13em; }
.bento-card.wide .lede { max-width: 42em; }
.product-mark { height: 72px; width: auto; align-self: flex-start; }

/* Full-width product screenshot inside the bento hero */
.bento-screen {
  grid-column: 1 / -1;
  border-radius: var(--r-3);
  overflow: hidden;
  border: var(--bw-1) solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-4);
}
.bento-screen img { width: 100%; height: auto; }

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--r-3);
  padding: 36px 40px;
  border-bottom: none;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.cta-card:hover { border-bottom: none; transform: translateY(-6px); }
.cta-card h3, .cta-card p { color: inherit; margin: 0; }
.cta-card p { opacity: 0.82; }
.cta-card .cta-action { margin-top: 10px; font-weight: var(--w-semibold); font-size: 0.95rem; }
.cta-card.dark { background: var(--oo-ink); color: #fff; }
.cta-card.dark:hover { box-shadow: var(--shadow-4); }
.cta-card.dark .cta-action { color: var(--oo-electric); }
/* Glass over the blueprint-gradient heroes. The translucent gradient doubles
   as the no-blur fallback: dark enough on its own to keep white text ≥4.5:1
   even over the lightest gradient corner. */
.cta-card.electric {
  background: linear-gradient(135deg, rgba(11, 31, 102, 0.74), rgba(10, 88, 120, 0.66));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-glass);
  color: #fff;
}
.cta-card.electric:hover { box-shadow: var(--shadow-electric); }
.cta-card.electric p { opacity: 1; color: rgba(255, 255, 255, 0.92); }
.cta-card.electric .cta-action { color: #fff; }

@media (max-width: 900px) {
  .bento-hero { grid-template-columns: 1fr; }
  .bento-photo { min-height: 240px; }
  .bento-card { padding: 36px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-card, .cta-card:hover { transform: none; transition: none; }
}

/* ---------- Homepage hero bento ----------
   Headline + CTAs on the left; a stack of cards on the right —
   value-prop card over the CODE / Canvas division pair. */
.hero-bento {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-stack { display: grid; gap: 20px; }
.division-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.cta-card.light { background: var(--bg-2); color: var(--fg-1); }
.cta-card.light:hover { box-shadow: var(--shadow-4); }
.cta-card.light .cta-action { color: var(--oo-electric-aa); }

.division-card { align-items: flex-start; justify-content: space-between; gap: 18px; padding: 28px; }
.division-card img { width: auto; max-width: 100%; height: 44px; object-fit: contain; align-self: flex-start; }

@media (max-width: 900px) {
  .hero-bento { grid-template-columns: 1fr; gap: 40px; }
  .division-row { grid-template-columns: 1fr; }
}

/* ---------- Benefit cards (einvoice "why" grid) ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card.benefit {
  border-top: var(--bw-2) solid var(--oo-electric);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.card.benefit:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,31,102,0.14); }
.card.benefit h3 { margin-bottom: 10px; }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .card.benefit, .card.benefit:hover { transform: none; transition: none; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 46em; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 760px) {
  section { padding: var(--s-16) 0; }
  .hero { padding: 120px 0 72px; }
  .nav-links, .nav-actions .btn.ghost { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--oo-ink);
    padding: 40px 32px;
    gap: 28px;
    z-index: 99;
  }
  body.nav-open .nav-links a { font-size: 1.1rem; }
  .nav-mobile-only { display: list-item; }
}

/* ---------- Photo hover lift + electric glow ----------
   Placed after the scroll-reveal rules on purpose: .photo.lift elements
   usually also carry .reveal, and these later rules must win the cascade
   for hover transform/box-shadow while keeping the reveal fade. */
.js .photo.lift, .photo.lift {
  transition: opacity 0.9s var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}
.js .photo.lift:hover, .photo.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11,31,102,0.18), 0 0 0 1px rgba(39,170,225,0.35);
}

@media (prefers-reduced-motion: reduce) {
  .photo.kb img { animation: none; }
  .js .photo.lift, .photo.lift, .js .photo.lift:hover, .photo.lift:hover {
    transform: none;
    box-shadow: none;
    transition: none;
  }
}

/* ---------- Industry hub cards ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--fg-1);
  border-bottom: none;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.industry-card:hover { border-bottom: none; transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,31,102,0.14); }
.industry-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.industry-photo img { width: 100%; height: 100%; object-fit: cover; }
.industry-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.industry-body h3 { margin: 0; }
.industry-body p { margin: 0; color: var(--fg-2); font-size: 0.95rem; }
.industry-body .cta-action { margin-top: auto; padding-top: 12px; font-weight: var(--w-semibold); font-size: 0.9rem; color: var(--oo-electric-aa); }
@media (max-width: 900px) { .industry-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .industry-card, .industry-card:hover { transform: none; transition: none; }
}

/* ---------- Ouroboros myth illustration (about page) ---------- */
.myth-illustration { max-width: min(400px, 100%); margin: 0 auto; display: block; }

/* ---------- Milestone timeline (about page) ---------- */
.milestone-list { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.milestone-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: var(--bw-1) solid var(--border-2);
  align-items: baseline;
}
.milestone-list li:last-child { border-bottom: var(--bw-1) solid var(--border-2); }
.milestone-year {
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  color: var(--oo-electric-aa);
  font-size: 1.1rem;
}
.milestone-body h3 { margin: 0 0 4px; }
.milestone-body p { margin: 0; color: var(--fg-2); }
@media (max-width: 600px) {
  .milestone-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Motto (about page, on dark panel) ---------- */
.motto { text-align: center; max-width: 40em; margin: 56px auto 0; }
.motto-latin { font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--w-light); color: #fff; letter-spacing: var(--ls-tight); margin: 0; }
.motto-en { font-size: var(--type-eyebrow); font-weight: var(--w-semibold); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--oo-electric-soft); margin: 10px 0 0; }
.motto-line { margin: 20px auto 0; color: var(--on-dark-fg-2); max-width: 32em; }

/* ---------- Founder cards (about page) ---------- */
.founder-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.founder-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: var(--bw-1) solid var(--border-1);
  border-radius: var(--r-2);
  overflow: hidden;
}
.founder-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--oo-ink); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Monogram placeholder for team members without a photo yet */
.founder-photo.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--oo-blueprint-deep), var(--oo-electric-deep));
}
.founder-monogram {
  font-family: var(--font-sans);
  font-weight: var(--w-light);
  font-size: clamp(3rem, 7vw, 4.5rem);
  letter-spacing: var(--ls-tight);
  color: #fff;
}
.founder-body { padding: 32px; }
.founder-body h3 { margin: 0; }
.founder-title { margin: 4px 0 0; color: var(--oo-electric-aa); font-size: 0.9rem; font-weight: var(--w-semibold); }
.founder-body p:last-child { margin-top: 16px; color: var(--fg-2); }
@media (max-width: 700px) {
  .founder-grid { grid-template-columns: 1fr; }
}

/* ---------- How we work (services process) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { border-top: var(--bw-2) solid var(--oo-electric); padding-top: 18px; }
.process-step .step-num { font-family: var(--font-sans); font-weight: var(--w-light); font-size: 1.8rem; color: var(--oo-electric-aa); line-height: 1; }
.process-step h3 { margin: 8px 0 6px; }
.process-step p { margin: 0; color: var(--fg-2); font-size: 0.95rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Selected engagements ---------- */
.engagement-status { display: inline-block; margin-top: 16px; font-size: 0.78rem; font-weight: var(--w-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--oo-electric-aa); }
