/* Ivertiq — brand system
   Direction: "Precision Tide" — cool ink/sea foundation, brass signal accent,
   Manrope (UI/display) + Source Serif 4 (body). No purple glow, no cream-terracotta. */

:root {
  --ink: #0a1c26;
  --ink-soft: #143040;
  --sea: #1f5c6b;
  --sea-bright: #2a7a8c;
  --mist: #e7eef1;
  --paper: #f3f6f7;
  --brass: #c4923a;
  --brass-deep: #9a7128;
  --slate: #4a5c66;
  --line: rgba(10, 28, 38, 0.12);
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(10, 28, 38, 0.08);
  --font-display: "Manrope", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Manrope", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Keyboard focus — brass ring, visible only for keyboard users */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 2px;
}

.form-panel input:focus-visible,
.form-panel select:focus-visible,
.form-panel textarea:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 1px;
  border-color: var(--sea);
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 247, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  overflow: visible;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 247, 0.94);
}

.header-inner {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: visible;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand span {
  color: var(--brass);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-secondary {
  height: 40px;
  width: auto;
  max-width: 200px;
}

.brand-logo-primary {
  height: 88px;
  width: auto;
  max-width: 180px;
}

.brand-logo-app {
  height: 56px;
  width: 56px;
  border-radius: 12px;
}

.site-footer .brand-lockup-footer {
  margin-bottom: 0.9rem;
}

.site-footer .brand-logo-app {
  height: 64px;
  width: 64px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.05rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  overflow: visible;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
  padding: 0.15rem 0 0.45rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a::after {
  display: none;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: rgba(196, 146, 58, 0.45);
}

.nav a[aria-current="page"],
.nav a.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--brass);
}

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--white) !important;
  border-radius: 4px;
  border-bottom: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--sea);
  transform: translateY(-1px);
  border-bottom-color: transparent;
}

.nav-group {
  position: relative;
}

.nav-group-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0 0.45rem;
  font: inherit;
  font-family: var(--font-ui);
  font-size: inherit;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
}

.nav-group-toggle::after {
  display: none;
}

.nav-group.is-current .nav-group-toggle,
.nav-group.is-open .nav-group-toggle {
  color: var(--ink);
  font-weight: 700;
}

.nav-group.is-current .nav-group-toggle {
  border-bottom-color: var(--brass);
}

.nav-group-toggle:hover {
  color: var(--ink);
  border-bottom-color: rgba(196, 146, 58, 0.45);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 12.5rem;
  padding: 0.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  z-index: 40;
}

.nav-group:hover .nav-submenu,
.nav-group.is-open .nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-submenu a {
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-submenu a::after {
  display: none !important;
}

.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  background: var(--mist);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-ui);
  font-weight: 700;
  cursor: pointer;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(42, 122, 140, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(196, 146, 58, 0.18), transparent 50%),
    linear-gradient(155deg, #07141c 0%, #0f3040 42%, #1a5563 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, black, transparent 85%);
  animation: gridDrift 28s linear infinite;
}

.hero-orb {
  position: absolute;
  width: min(52vw, 520px);
  aspect-ratio: 1;
  right: -4%;
  top: 12%;
  border-radius: 40% 60% 55% 45%;
  background:
    conic-gradient(from 200deg, rgba(42, 122, 140, 0.35), rgba(196, 146, 58, 0.2), rgba(42, 122, 140, 0.05));
  filter: blur(2px);
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(56px, 56px, 0); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto 12vh;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  margin-bottom: 1.25rem;
}

.hero-logo-panel {
  display: inline-block;
  padding: 1rem 1.35rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-logo {
  display: block;
  width: min(300px, 68vw);
  height: auto;
  object-fit: contain;
}

.hero-brand em {
  font-style: normal;
  color: var(--brass);
}

.page-brand-logo {
  display: block;
  width: min(220px, 55vw);
  height: auto;
  margin: 0 0 1.25rem;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero .lede {
  font-size: 1.12rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}

.btn-primary:hover {
  background: #d4a44a;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--sea);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.section-ink {
  background: var(--ink);
  color: var(--white);
}

.section-ink .eyebrow {
  color: var(--brass);
}

.section-sea {
  background:
    linear-gradient(180deg, #123845 0%, #1a5563 100%);
  color: var(--white);
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-head p {
  color: var(--slate);
  font-size: 1.08rem;
}

.section-ink .section-head p,
.section-sea .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

/* Title-phrase breakdown (Optimized / Sovereign / Full-Stack / …) */
.thesis-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 52rem;
}

.thesis-breakdown > li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) 1fr;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.thesis-breakdown > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.thesis-breakdown h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.thesis-term {
  color: var(--sea);
}

.thesis-body {
  min-width: 0;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.55;
}

.thesis-body > p {
  margin: 0;
}

.thesis-body > p + ul {
  margin-top: 0.55rem;
}

.thesis-body ul {
  margin: 0;
  padding-left: 1.15rem;
}

.thesis-body li ul {
  margin-top: 0.45rem;
}

.thesis-body > ul > li {
  margin-bottom: 0.45rem;
}

.thesis-body > ul > li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .thesis-breakdown > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Split layouts — not card grids in hero; content sections may use panels */
.focus-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}

.focus-pillars article h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.focus-pillars article p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
}

.focus-outro {
  margin-top: 1.75rem;
  max-width: 48rem;
  color: var(--slate);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .focus-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .focus-pillars {
    grid-template-columns: 1fr;
  }
}

.panel-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.panel {
  padding: 1.6rem 0;
  border-top: 2px solid var(--brass);
}

.panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.panel p {
  color: var(--slate);
  margin: 0;
  font-size: 0.98rem;
}

.section-ink .panel {
  border-top-color: rgba(196, 146, 58, 0.7);
}

.section-ink .panel p {
  color: rgba(255, 255, 255, 0.75);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-rev {
  grid-template-columns: 0.95fr 1.05fr;
}

.stack-visual {
  position: relative;
  min-height: 340px;
  perspective: 900px;
}

.stack-layer {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 88px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transform: rotateX(12deg) rotateY(-8deg);
  animation: layerSettle 1s ease both;
}

.stack-layer:nth-child(1) {
  top: 12px;
  background: #b8d4e0;
  color: var(--ink);
  z-index: 3;
  animation-delay: 0.05s;
}

.stack-layer:nth-child(2) {
  top: 118px;
  background: #1f4f63;
  color: var(--white);
  z-index: 2;
  animation-delay: 0.15s;
}

.stack-layer:nth-child(3) {
  top: 224px;
  background: #5c6970;
  color: var(--white);
  z-index: 1;
  animation-delay: 0.25s;
}

@keyframes layerSettle {
  from { opacity: 0; transform: rotateX(12deg) rotateY(-8deg) translateY(24px); }
  to { opacity: 1; transform: rotateX(12deg) rotateY(-8deg) translateY(0); }
}

.stack-layer strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.stack-layer span {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.tier-list {
  display: grid;
  gap: 1.25rem;
}

.tier {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.tier:first-child {
  border-top: 1px solid var(--line);
}

.tier h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.tier p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.tier-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--sea);
}

.audience-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.audience-strip article h3 {
  font-size: 1.15rem;
}

.audience-strip article p {
  color: var(--slate);
  margin: 0;
}

.section-ink .audience-strip article p,
.section-sea .audience-strip article p {
  color: rgba(255, 255, 255, 0.78);
}

.section-ink .audience-strip article h3,
.section-sea .audience-strip article h3 {
  color: var(--white);
}

.page-hero {
  padding: 4.5rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(31, 92, 107, 0.08), transparent 50%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  max-width: 16ch;
}

.page-hero .lede {
  max-width: 48ch;
  color: var(--slate);
  font-size: 1.15rem;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.55rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--slate);
}

.prose li {
  margin-bottom: 0.45rem;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0 2rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sea);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-grid,
  .hero-orb,
  .hero-content {
    animation: none !important;
  }

  .btn:hover,
  .mosaic-tile:hover,
  .panel:hover,
  .factor-card:hover {
    transform: none;
  }
}

/* Contact form — interaction container */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.form-panel label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  background: var(--paper);
}

.form-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 0.75rem;
}

.form-note-success {
  color: var(--sea);
  font-weight: 600;
}

.form-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  line-height: 1.45;
  color: var(--slate);
}

.form-check input {
  width: auto !important;
  margin: 0.2rem 0 0 !important;
  flex-shrink: 0;
}

.form-check a {
  color: var(--sea);
  font-weight: 700;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand {
  color: var(--white);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer a:hover {
  color: var(--brass);
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  max-width: 52rem;
}

.footer-disclaimer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .brand-logo-secondary {
    height: 34px;
    max-width: 160px;
  }

  .hero-logo {
    width: min(260px, 78vw);
  }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav > a.is-active,
  .nav > a[aria-current="page"] {
    border-bottom-color: var(--brass);
    border-bottom-width: 2px;
  }

  .nav-group {
    border-bottom: 1px solid var(--line);
  }

  .nav-group-toggle {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 0;
  }

  .nav-group.is-current .nav-group-toggle {
    box-shadow: inset 3px 0 0 var(--brass);
    padding-left: 0.65rem;
  }

  .nav-submenu {
    position: static;
    transform: none;
    display: none;
    min-width: 0;
    padding: 0 0 0.5rem 0.85rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-group.is-open .nav-submenu {
    display: flex;
  }

  .nav-group:hover .nav-submenu {
    display: none;
  }

  .nav-group.is-open:hover .nav-submenu {
    display: flex;
  }

  .nav-submenu a {
    border-bottom: 0;
    padding: 0.55rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .panel-row,
  .audience-strip,
  .split,
  .split-rev,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tier {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero {
    min-height: 86vh;
    align-items: center;
  }

  .hero-content {
    margin-bottom: 0;
  }

  .hero-orb {
    opacity: 0.55;
  }

  .diagram-compare,
  .form-factor-grid,
  .metric-row,
  .jensen-stack {
    grid-template-columns: 1fr;
  }

  .bridge-label {
    transform: none;
    text-align: left;
    padding: 0.5rem 0;
  }
}

/* Diagram image figures (screenshot-based, brand overlays) */
.diagram-figure {
  margin: 0 0 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.diagram-figure-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.diagram-figure-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.diagram-figure-header span {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.diagram-frame {
  position: relative;
  background: #f7f9fa;
  overflow: hidden;
}

.diagram-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-figure figcaption {
  padding: 0.9rem 1.25rem 1.15rem;
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
  border-top: 1px solid var(--line);
}

.diagram-figure.hero-diagram .diagram-frame {
  max-height: none;
}

/* Language toggle (Enterprise page) */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.lang-toggle button {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-toggle button.is-active,
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

html[lang="zh-Hant"] body,
html[lang="zh-Hant"] .prose {
  font-family: "Noto Sans TC", "Source Serif 4", sans-serif;
}

html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3,
html[lang="zh-Hant"] .eyebrow {
  font-family: "Noto Sans TC", Manrope, sans-serif;
  letter-spacing: 0;
}

/* ===== Visual enhancements: diagrams, metrics, case study ===== */

.band-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.75rem;
}

.diagram-compare {
  display: grid;
  grid-template-columns: 0.9fr 0.15fr 1.2fr;
  gap: 1rem;
  align-items: stretch;
}

.jensen-stack {
  display: grid;
  gap: 0.45rem;
}

.jensen-layer {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
}

.jensen-layer small {
  display: block;
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.jensen-layer .n {
  font-weight: 800;
  font-size: 1.1rem;
}

.jl-5 { background: #5b4d8a; }
.jl-4 { background: #2f6f9f; }
.jl-3 { background: #2a7a7a; }
.jl-2 { background: #b8923a; color: var(--ink); }
.jl-1 { background: #3d7a4a; }

.bridge-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sea);
  transform: rotate(-90deg);
  white-space: nowrap;
}

.harness-iso {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(31, 92, 107, 0.08), transparent 55%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.harness-iso .hlayer {
  border-radius: 8px;
  padding: 1rem 1.1rem;
  color: var(--white);
}

.harness-iso .hlayer h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: inherit;
}

.harness-iso .hlayer p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

.hl-apps {
  background: linear-gradient(135deg, #6fa8bc, #3d7a8c);
  margin-left: 0;
}

.hl-control {
  background: linear-gradient(135deg, #1f4f63, #163a4a);
  margin-left: 0.6rem;
}

.hl-core {
  background: linear-gradient(135deg, #5c6970, #3f484e);
  margin-left: 1.2rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.chip {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.diagram-caption {
  margin-top: 1.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.form-factor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.factor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.factor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.factor-visual {
  height: 140px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(42, 122, 140, 0.2), transparent 55%),
    linear-gradient(180deg, #eef4f6, #dce8ec);
}

.factor-visual.cloud {
  background:
    radial-gradient(circle at 70% 40%, rgba(196, 146, 58, 0.18), transparent 50%),
    linear-gradient(180deg, #eef4f6, #dce8ec);
}

.mini-stack {
  width: 72%;
  display: grid;
  gap: 4px;
}

.mini-stack i {
  display: block;
  height: 18px;
  border-radius: 4px;
}

.mini-stack i:nth-child(1) { background: #8fbfcd; margin-inline: 0; }
.mini-stack i:nth-child(2) { background: #1f5c6b; margin-inline: 6px; }
.mini-stack i:nth-child(3) { background: #5c6970; margin-inline: 12px; }

.hw-box {
  position: absolute;
  bottom: 14px;
  width: 54px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(160deg, #8a6a3e, #5c4526);
  box-shadow: 0 6px 14px rgba(10, 28, 38, 0.2);
}

.hw-box.dual {
  width: 96px;
  background:
    linear-gradient(160deg, #8a6a3e, #5c4526) left / 46% 100% no-repeat,
    linear-gradient(160deg, #8a6a3e, #5c4526) right / 46% 100% no-repeat;
}

.hw-cloud {
  position: absolute;
  bottom: 18px;
  width: 70px;
  height: 36px;
  border: 2px solid var(--sea);
  border-radius: 18px 18px 10px 10px;
  background: rgba(255, 255, 255, 0.65);
}

.factor-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.factor-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.factor-body p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.metric {
  padding: 1.4rem 1.2rem;
  border-top: 3px solid var(--brass);
  background: var(--white);
  border-radius: 0 0 8px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric .num {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  color: var(--sea);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.metric h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.metric p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.case-hero-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.case-visual {
  min-height: 260px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(196, 146, 58, 0.25), transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(42, 122, 140, 0.35), transparent 50%),
    linear-gradient(145deg, #0a1c26, #1f5c6b);
  position: relative;
  overflow: hidden;
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0 2px,
      transparent 2px 18px
    );
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
}

.quote-strip {
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--brass);
  background: rgba(31, 92, 107, 0.06);
  font-size: 1.08rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.flow-step {
  padding: 1rem;
  background: var(--mist);
  border-radius: 8px;
  position: relative;
}

.flow-step .step-n {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brass-deep);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.flow-step h4 {
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
}

.flow-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate);
}

.feature-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}

.mosaic-main,
.mosaic-side {
  border-radius: 12px;
  padding: 1.75rem;
  min-height: 220px;
}

.mosaic-main {
  background:
    linear-gradient(145deg, rgba(10, 28, 38, 0.92), rgba(31, 92, 107, 0.88)),
    var(--ink);
  color: var(--white);
}

.mosaic-main p {
  color: rgba(255, 255, 255, 0.8);
}

.mosaic-side {
  display: grid;
  gap: 1rem;
}

.mosaic-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mosaic-tile:hover {
  border-color: var(--sea);
  transform: translateY(-2px);
}

.mosaic-tile h3 {
  font-size: 1.05rem;
}

.mosaic-tile p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .case-hero-band,
  .feature-mosaic,
  .flow-steps {
    grid-template-columns: 1fr;
  }
}
