:root {
  color-scheme: light;
  --ink: #17201D;
  --paper: #FAF9F5;
  --sea: #0F5257;
  --sea-dark: #0A3A3E;
  --sand: #E7DEC9;
  --sun: #A6772F;
  --sky: #CDE4E2;
  --line: rgba(23,32,29,0.13);
  --shadow: 0 30px 80px rgba(10, 11, 13, 0.12);
  --radius: 28px;
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding: 32px 6vw 48px;
}

.glow { display: none; }

.nav {
  position: sticky;
  top: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  padding: 12px 20px 12px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  min-width: 0;
}

.brand a {
  display: inline-flex;
  align-items: center;
}

.brand-icon {
  width: clamp(185px, 21vw, 270px);
  height: auto;
  max-height: 62px;
  display: block;
  border-radius: 0;
  object-fit: contain;
}

.rounded-title {
  font-family: "SF Pro Rounded", "SF Pro Display", "SF Pro", "Avenir Next Rounded",
    "Avenir Next", "Segoe UI Rounded", -apple-system, system-ui, sans-serif;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item.has-dropdown > a::after {
  content: "▾";
  font-size: 0.72rem;
  opacity: 0.7;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(10, 11, 13, 0.16);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 5;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.nav-dropdown .nav-subtitle {
  display: block;
  padding: 8px 12px 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(10, 11, 13, 0.56);
}

.nav-dropdown a:hover {
  background: rgba(31, 111, 120, 0.1);
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

main {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

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

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--sea);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 1100px;
}

.lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(10, 11, 13, 0.7);
  margin-bottom: 24px;
}

/* Animated rotating headline word */
.hero-title .rotator {
  display: inline-block;
  overflow: hidden;
  height: 1.32em;
  line-height: 1.32em;
  vertical-align: top;
}
.hero-title .rotator-list {
  display: flex;
  flex-direction: column;
  animation: rotateWords 12s cubic-bezier(0.6, 0, 0.2, 1) infinite;
}
.hero-title .rotator-list > span {
  height: 1.32em;
  line-height: 1.32em;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--sea), var(--sun) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@keyframes rotateWords {
  0%, 14% { transform: translateY(0); }
  18%, 33% { transform: translateY(-1.32em); }
  37%, 52% { transform: translateY(-2.64em); }
  56%, 71% { transform: translateY(-3.96em); }
  75%, 90% { transform: translateY(-5.28em); }
  94%, 100% { transform: translateY(-6.6em); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .rotator-list {
    animation: none;
  }
}

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

/* Life-area chips under the hero lede */
.domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.domain-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(10, 11, 13, 0.05);
  backdrop-filter: blur(6px);
}
.domain-chips .chip .emoji {
  font-size: 1.08rem;
  line-height: 1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.button {
  background: var(--sea);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(31, 111, 120, 0.25);
}

.ghost {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}

/* Shared nav: contact button + active page indicator */
.nav-links a.nav-cta {
  background: var(--sea);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(31, 111, 120, 0.22);
  transition: background 160ms ease;
}

.nav-links a.nav-cta:hover {
  background: var(--sea-dark);
}

.nav-links a[aria-current="page"]:not(.nav-cta) {
  color: var(--sea);
  font-weight: 600;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(10, 11, 13, 0.6);
}

.dot {
  color: var(--sea);
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
  width: 100%;
  margin: 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pill {
  background: var(--sand);
  color: var(--sea-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.status {
  font-size: 0.85rem;
  color: rgba(10, 11, 13, 0.6);
}

.chat-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.chat-line.reply {
  justify-content: flex-end;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky);
  border: 1px solid var(--line);
}

.bubble {
  background: var(--paper);
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 240px;
  line-height: 1.4;
  font-size: 0.95rem;
}

.chat-line.reply .bubble {
  background: var(--sea);
  color: #fff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.card-body.prototype {
  display: grid;
  gap: 18px;
}

.magazine-carousel {
  position: relative;
}

.magazine-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.magazine-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef3fb;
  box-shadow: 0 12px 28px rgba(10, 11, 13, 0.12);
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 450px;
  padding: 10px;
}

.magazine-note {
  padding: 10px 12px;
  border: 1px solid rgba(11, 60, 68, 0.14);
  border-radius: 12px;
  background: #fff6e7;
}

.magazine-note h4 {
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--sea-dark);
}

.magazine-note p {
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(10, 11, 13, 0.72);
}

.magazine-image {
  position: relative;
  min-height: 0;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 111, 120, 0.16);
  background: #ffffff;
}

.magazine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prototype-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
}

.prototype-frame {
  width: 210px;
  height: 410px;
  margin: 0 auto;
  justify-self: center;
  align-self: center;
  border-radius: 16px;
  overflow: hidden;
  background: #e9eef5;
  border: 1px solid var(--line);
  position: relative;
}

.prototype-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(10, 11, 13, 0.18);
  opacity: 0;
  transform: translateX(6px);
  animation: prototype-fade 40s ease-in-out infinite;
  animation-delay: calc(var(--i) * 4s);
  will-change: opacity, transform;
}

.prototype-slideshow.is-delayed img {
  animation-duration: 32s;
  animation-delay: calc(var(--i) * 4s + 2s);
}

.prototype-slideshow img.is-first {
  opacity: 1;
}

@keyframes prototype-fade {
  0% {
    opacity: 0;
    transform: translateX(6px);
  }
  6% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(0);
  }
  65% {
    opacity: 0;
    transform: translateX(-6px);
  }
  100% {
    opacity: 0;
  }
}

.metrics h3 {
  font-family: "SF Pro Rounded", "SF Pro Display", "SF Pro", "Avenir Next Rounded",
    "Avenir Next", "Segoe UI Rounded", -apple-system, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.section {
  margin-bottom: 56px;
}

.section-title h2,
.section h2 {
  font-family: "SF Pro Rounded", "SF Pro Display", "SF Pro", "Avenir Next Rounded",
    "Avenir Next", "Segoe UI Rounded", -apple-system, system-ui, sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 16px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-grid article {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(10, 11, 13, 0.08);
}

.feature-grid h3 {
  font-family: "SF Pro Rounded", "SF Pro Display", "SF Pro", "Avenir Next Rounded",
    "Avenir Next", "Segoe UI Rounded", -apple-system, system-ui, sans-serif;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Seeded-agent grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}
.agent-card {
  background: #fff;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(10, 11, 13, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(10, 11, 13, 0.12);
}
.agent-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.7rem;
  line-height: 1;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--sky), rgba(246, 178, 107, 0.35));
  margin-bottom: 14px;
}
.agent-card h3 {
  font-family: "SF Pro Rounded", "SF Pro Display", "SF Pro", "Avenir Next Rounded",
    "Avenir Next", "Segoe UI Rounded", -apple-system, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.agent-card p {
  line-height: 1.55;
  color: rgba(10, 11, 13, 0.72);
  font-size: 0.95rem;
}
.agent-tag {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sea-dark);
  background: rgba(31, 111, 120, 0.12);
  border: 1px solid rgba(31, 111, 120, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
}
.agent-card--build {
  background: linear-gradient(160deg, rgba(199, 230, 242, 0.55), rgba(255, 255, 255, 0.9));
  border-style: dashed;
}
.section-title--sub {
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.steps {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.steps li {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.steps span {
  font-weight: 700;
  color: var(--sea);
}

.stats {
  display: grid;
  gap: 16px;
}

.stats div {
  background: var(--sea-dark);
  color: #fff;
  padding: 22px;
  border-radius: 20px;
}

.stats h3 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin-bottom: 4px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.contact-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  min-width: 240px;
}

.contact-card .button,
.contact-card .ghost {
  display: inline-block;
  margin-top: 12px;
}

.contact-card .ghost {
  margin-left: 10px;
}

.store-cta,
.store-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-store-badge {
  background: #000;
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(10, 11, 13, 0.2);
}

.app-store-badge .badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.app-store-badge .badge-top {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.app-store-badge .badge-bottom {
  font-size: 1rem;
  font-weight: 600;
}

.store-cta svg,
.store-cta-ghost svg {
  width: 16px;
  height: 16px;
  display: block;
}

.app-store-badge svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: #fff;
}

.store-cta svg {
  fill: #fff;
}

.store-cta-ghost svg {
  fill: var(--ink);
}

footer {
  margin-top: 64px;
  text-align: center;
  color: rgba(10, 11, 13, 0.5);
  font-size: 0.9rem;
}

/* Video showcase --------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.showcase-copy .lede {
  max-width: 460px;
}

.showcase-phone {
  justify-self: center;
}

.phone-frame {
  width: min(300px, 80vw);
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #0b3c44, #06262b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.phone-frame video {
  display: block;
  width: 100%;
  border-radius: 30px;
  background: #000;
}

.showcase-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(10, 11, 13, 0.55);
}

/* Legal & support pages -------------------------------------------------- */
.legal-page {
  max-width: 880px;
  margin: 0 auto;
}

.legal-page .section-title {
  margin-bottom: 22px;
}

.legal-page .section-title h1 {
  font-family: "SF Pro Rounded", "SF Pro Display", "SF Pro", "Avenir Next Rounded",
    "Avenir Next", "Segoe UI Rounded", -apple-system, system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 10px;
}

.legal-page .section-title .lede {
  font-size: 0.96rem;
  margin-bottom: 0;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px clamp(20px, 4vw, 40px);
  box-shadow: 0 18px 40px rgba(10, 11, 13, 0.08);
}

.legal-card h2 {
  font-family: "SF Pro Rounded", "SF Pro Display", "SF Pro", "Avenir Next Rounded",
    "Avenir Next", "Segoe UI Rounded", -apple-system, system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--sea-dark);
  line-height: 1.3;
  margin-top: 26px;
  margin-bottom: 8px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p + h2 {
  border-top: 1px solid rgba(10, 11, 13, 0.08);
  padding-top: 22px;
}

.legal-card p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(10, 11, 13, 0.76);
  margin-bottom: 10px;
}

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

.legal-card a {
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 111, 120, 0.35);
}

.legal-card a:hover {
  color: var(--sea-dark);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 8px;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-icon {
    width: min(220px, 70vw);
    max-height: none;
  }

  .nav-dropdown {
    right: auto;
    left: 0;
  }

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

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: none;
  }

  .magazine-track {
    grid-auto-columns: 100%;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .magazine-track {
    grid-auto-columns: calc((100% - 24px) / 3);
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  .magazine-track {
    grid-auto-columns: calc((100% - 36px) / 4);
  }
}

/* Built with Google Gemma badge */
.gemma-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(66, 133, 244, 0.28);
  background: linear-gradient(100deg, rgba(66, 133, 244, 0.10), rgba(52, 168, 83, 0.10) 55%, rgba(251, 188, 5, 0.10));
  box-shadow: 0 8px 18px rgba(10, 11, 13, 0.06);
  font-size: 0.86rem;
  color: var(--ink);
}
.gemma-badge .gemma-spark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  color: #fff;
  background: conic-gradient(from 210deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
}
.gemma-badge .gemma-text strong { font-weight: 700; }

/* Powered-by-Gemma proof band */
.gemma-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.gemma-proof-media {
  display: flex;
  justify-content: center;
}
.gemma-proof-media img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 26px 54px rgba(10, 11, 13, 0.18);
}
.gemma-proof-copy h2 {
  margin: 14px 0 12px;
}
.gemma-proof-points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}
.gemma-proof-points li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
  color: rgba(10, 11, 13, 0.82);
}
.gemma-proof-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
}
@media (max-width: 820px) {
  .gemma-proof {
    grid-template-columns: 1fr;
  }
  .gemma-proof-media { order: -1; }
}

/* Clickable Gemma badge (hero → #gemma) */
a.gemma-badge--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
a.gemma-badge--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 11, 13, 0.12);
  border-color: rgba(66, 133, 244, 0.5);
}
.gemma-badge-arrow {
  font-weight: 700;
  color: var(--sea-dark);
  transition: transform 200ms ease;
}
a.gemma-badge--link:hover .gemma-badge-arrow {
  transform: translateY(2px);
}
#gemma {
  scroll-margin-top: 90px;
}
html {
  scroll-behavior: smooth;
}

/* Sample advisory download list (docs) */
.advisory-list { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.advisory-list li { line-height: 1.5; color: rgba(10, 11, 13, 0.66); font-size: 0.96rem; }
.advisory-list a {
  font-weight: 600;
  color: var(--sea-dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(11, 60, 68, 0.4);
}
.advisory-list a::before { content: "\2193\00a0"; color: var(--sea); }
.advisory-list a:hover { color: var(--sea); border-bottom-style: solid; }

/* =====================================================================
   IbhanAi rebrand overrides (append) — force Space Grotesk, add wordmark,
   orbital mark sizing, scroll progress + cursor spotlight.
   ===================================================================== */
:root { --accent: #0F5257; --accent-d: #0A3A3E; --brass: #A6772F; --accent-glow: rgba(15,82,87,0.22); --accent-serif: "Newsreader", Georgia, serif; }
/* type system: Fraunces serif for display headings, Space Grotesk for the rest */
h1, h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h3, h4, h5, h6 {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif !important;
  letter-spacing: -0.02em;
}
/* brand wordmark: the "Ai" stands apart in serif italic brass */
.wm { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.wm .ai { font-family: var(--accent-serif); font-style: italic; font-weight: 600; color: var(--brass); padding: 0 0.02em; }
.wm .labs { font-weight: 500; color: rgba(23,32,29,0.55); margin-left: 0.34em; }
.brand { gap: 12px; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.eyebrow { color: var(--sea); }

/* scroll progress + cursor spotlight (shared with site.js) */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 60; background: linear-gradient(90deg, var(--sea), var(--sun)); box-shadow: 0 0 14px var(--accent-glow); }
#spotlight { display: none; }

/* active nav link accent */
.nav-links a[aria-current="page"] { color: var(--sea); font-weight: 600; }

.wm .ai { font-family: var(--accent-serif) !important; }  /* keep the standout "Ai" serif */
/* brand-consistent chips: petrol tint, never sky-blue */
.cp-tags span, .sol-hero-tags span, .page-hero-tags span,
.cp-offer-chips span, .domain-chips span {
  background: rgba(15, 82, 87, 0.07) !important;
  border: 1px solid rgba(15, 82, 87, 0.20) !important;
  color: var(--accent-d) !important;
}

.brand a { gap: 11px; }

/* ===== hero neuron field + orbital atom (products / solutions / engineering) ===== */
.sol-hero { position: relative; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.sol-hero > *:not(#hero-canvas):not(.hero-atom) { position: relative; z-index: 1; max-width: min(58%, 60ch); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-atom { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
@media (max-width: 900px) {
  .sol-hero { min-height: auto; }
  .sol-hero > *:not(#hero-canvas):not(.hero-atom) { max-width: 100%; }
  .hero-atom { display: none; }
}

/* ===== shared orbital atom — all three electrons orbit ===== */
.atom { position: relative; width: clamp(190px, 20vw, 250px); height: clamp(190px, 20vw, 250px); transform-style: preserve-3d; margin: 0 auto; }
.atom .orbit { position: absolute; inset: 0; transform-style: preserve-3d; }
.atom .orbit::before { content: ""; position: absolute; inset: 0; border: 2px solid; border-radius: 50%; box-sizing: border-box; }
.atom .o1 { transform: rotateZ(0deg) rotateX(72deg); }
.atom .o2 { transform: rotateZ(60deg) rotateX(72deg); }
.atom .o3 { transform: rotateZ(120deg) rotateX(72deg); }
.atom .o1::before { border-color: var(--sea, #0F5257); }
.atom .o2::before { border-color: var(--sun, #A6772F); }
.atom .o3::before { border-color: #3E9B90; }
.atom .spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.atom .o1 .spin { animation: atom-spin 7s linear infinite; }
.atom .o2 .spin { animation: atom-spin 9s linear infinite reverse; }
.atom .o3 .spin { animation: atom-spin 11s linear infinite; }
@keyframes atom-spin { to { transform: rotateZ(360deg); } }
.atom .e { position: absolute; top: -6.5px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; }
.atom .e1 { background: radial-gradient(circle at 35% 30%, #fff, var(--sea, #0F5257) 70%); box-shadow: 0 0 14px var(--sea, #0F5257); }
.atom .e2 { background: radial-gradient(circle at 35% 30%, #fff, var(--sun, #A6772F) 70%); box-shadow: 0 0 14px var(--sun, #A6772F); }
.atom .e3 { background: radial-gradient(circle at 35% 30%, #fff, #3E9B90 70%); box-shadow: 0 0 14px #3E9B90; }
.atom .core { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #5cb8b0, var(--sea-dark, #0A3A3E) 80%); box-shadow: 0 0 30px var(--accent-glow, rgba(15,82,87,0.22)), 0 6px 16px rgba(23,32,29,0.25); }
@media (prefers-reduced-motion: reduce) { .atom .spin { animation: none; } }

.sol-hero h1 { min-height: 2.1em; }

/* compact hero cards + narrower content shells (all sol-hero pages) */
.sol-shell { max-width: 1040px; margin-inline: auto; }

/* Home hero-card layout on sol-hero pages: 2 balanced columns (copy | atom).
   Both columns vertically centered; the atom sets a modest floor height so the
   card hugs its content — no forced 420px min-height leaving whitespace below. */
.sol-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; max-width: 900px; margin-inline: auto; min-height: 0 !important; }
.sol-hero-copy { position: relative; z-index: 1; min-width: 0; align-self: start; max-width: 100% !important; }
.sol-hero-copy .lede { max-width: 100% !important; }
/* fixed-width atom track so the wide orbital rings can't steal space from the copy;
   top-aligned + fixed size so the atom sits identically on every hero (see shared
   .hero-atom / .cp-hero-atom geometry below) */
.sol-hero .hero-atom { position: relative !important; right: auto !important; top: auto !important; left: auto !important; transform: none !important; display: flex !important; align-items: center; justify-content: center; z-index: 1; margin: 0; align-self: start; width: 300px; min-height: 300px; perspective: 900px; }
/* soft radial glow behind the atom — shared by every hero so they look identical */
.sol-hero .hero-atom::before,
.cp-hero-atom::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  height: 62%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 82, 87, 0.14), transparent 70%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 820px) {
  .sol-hero { grid-template-columns: 1fr !important; }
  .sol-hero .hero-atom { order: 1; min-height: 220px; }
}

/* ============================================================
   Mobile hamburger nav — collapses the 7 links behind a button.
   Desktop (>720px) keeps the floating pill row untouched:
   .nav-toggle is display:none there.
   ============================================================ */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  /* keep the bar a single row (override the old column/wrap rules above) */
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    top: 12px;
    padding: 10px 12px;
  }
  .nav.open { border-radius: 22px; }

  .brand {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  /* hamburger button */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    order: 2;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle .bars,
  .nav-toggle .bars::before,
  .nav-toggle .bars::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, top 180ms ease, background 180ms ease;
  }
  .nav-toggle .bars { position: relative; }
  .nav-toggle .bars::before { position: absolute; left: 0; top: -6px; }
  .nav-toggle .bars::after  { position: absolute; left: 0; top: 6px; }
  /* animate bars into an X when open */
  .nav.open .nav-toggle .bars { background: transparent; }
  .nav.open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
  .nav.open .nav-toggle .bars::after  { top: 0; transform: rotate(-45deg); }

  /* the links become a dropdown panel below the bar, shown only when open */
  .nav-links {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a {
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"]:not(.nav-cta) {
    background: rgba(15, 82, 87, 0.06);
  }
  .nav-links a.nav-cta {
    text-align: center;
    margin-top: 6px;
  }
}
