:root {
  --ink: #081014;
  --ink-2: #101b20;
  --paper: #f5f1e9;
  --paper-2: #ded7ca;
  --muted: #aeb7b4;
  --line: rgba(245, 241, 233, 0.18);
  --cyan: #19d2ff;
  --cyan-soft: rgba(25, 210, 255, 0.18);
  --champagne: #d6b36a;
  --coral: #ff6b57;
  --mint: #8be0be;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Sans", sans-serif;
  overflow-x: hidden;
  animation: pageFade 520ms ease both;
}

body.is-leaving {
  opacity: 0;
  transition: opacity 180ms ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 78%, transparent);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 210, 255, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(214, 179, 106, 0.13), transparent 28%),
    linear-gradient(135deg, #081014 0%, #0b171c 48%, #11140f 100%);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  background: rgba(8, 16, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px);
  z-index: 50;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 179, 106, 0.55);
  border-radius: 50%;
  color: var(--champagne);
  font-family: "Fraunces", serif;
  font-weight: 760;
  background:
    linear-gradient(145deg, rgba(214, 179, 106, 0.18), transparent),
    rgba(255, 255, 255, 0.035);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

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

nav a {
  padding: 10px 12px;
  color: rgba(245, 241, 233, 0.78);
  font-size: 0.9rem;
  border-radius: 999px;
}

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

nav a[aria-current="page"] {
  background: rgba(214, 179, 106, 0.14);
  color: var(--paper);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.header-action svg,
.button svg,
.contact-lines svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 88vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 118px max(28px, calc((100vw - 1180px) / 2)) 46px;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.94) 0%, rgba(8, 16, 20, 0.76) 36%, rgba(8, 16, 20, 0.28) 70%, rgba(8, 16, 20, 0.82) 100%),
    linear-gradient(0deg, rgba(8, 16, 20, 0.96) 0%, transparent 34%);
}

.hero-media {
  z-index: -2;
}

.hero-content {
  width: min(100%, 790px);
  max-width: 790px;
  padding-top: 8vh;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 830px;
  font-size: clamp(3rem, 7vw, 6.35rem);
}

h1 .headline-desktop,
h1 .headline-mobile,
h1 .headline-desktop span,
h1 .headline-mobile span {
  display: block;
}

h1 .headline-mobile {
  display: none;
}

h2 {
  font-size: clamp(2.35rem, 5.4vw, 5.35rem);
}

h3 {
  font-size: 1.24rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 650px;
  color: rgba(245, 241, 233, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--paper);
  color: var(--ink);
}

.button.ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  width: min(280px, calc(100% - 56px));
  padding: 18px;
  border: 1px solid rgba(214, 179, 106, 0.35);
  border-radius: var(--radius);
  background: rgba(8, 16, 20, 0.68);
  backdrop-filter: blur(18px);
}

.hero-proof span,
.hero-proof small,
.dash-label,
.metric-tile span,
.action-panel span,
.roi-panel label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-proof strong {
  display: block;
  margin: 8px 0;
  color: var(--champagne);
  font-family: "Fraunces", serif;
  font-size: 3rem;
  line-height: 1;
}

.hero-proof small {
  display: block;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.signal-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 233, 0.035);
}

.signal-bar div,
.signal-bar a {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: rgba(245, 241, 233, 0.86);
  font-weight: 700;
}

.signal-bar span {
  color: var(--cyan);
  font-size: 0.76rem;
}

.signal-bar a {
  transition: background 180ms ease, color 180ms ease;
}

.signal-bar a:hover {
  background: rgba(245, 241, 233, 0.06);
  color: var(--paper);
}

.story-section,
.services,
.dashboard-section,
.roi,
.contact,
.audit-lab {
  padding: 110px max(28px, calc((100vw - 1180px) / 2));
}

.intro {
  background: linear-gradient(180deg, rgba(245, 241, 233, 0.035), transparent);
}

.page-hero,
.editorial-section,
.page-route-grid,
.home-dashboard-preview,
.service-deep,
.faq-section {
  padding: 122px max(28px, calc((100vw - 1180px) / 2));
}

.page-hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 56px;
  align-items: end;
  padding-top: 170px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.72), rgba(8, 16, 20, 0.16)),
    url("assets/aven-command-room.png") center / cover no-repeat;
}

.page-hero-copy h1 {
  max-width: 1000px;
}

.page-hero-copy,
.page-hero-panel {
  min-width: 0;
}

.page-hero-copy p {
  max-width: 720px;
  color: rgba(245, 241, 233, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.62;
}

.page-hero-panel {
  padding: 24px;
  border: 1px solid rgba(214, 179, 106, 0.36);
  border-radius: var(--radius);
  background: rgba(8, 16, 20, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.page-hero-panel span,
.route-panel span,
.process-rail span,
.audit-ledger span,
.service-deep article > span,
.dashboard-ledger span {
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero-panel strong {
  display: block;
  margin: 12px 0;
  color: var(--paper);
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.95;
}

.page-hero-panel p,
.page-hero-panel a {
  color: rgba(245, 241, 233, 0.74);
  line-height: 1.55;
}

.editorial-section {
  border-bottom: 1px solid rgba(245, 241, 233, 0.08);
}

.split-reveal {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 62px;
  align-items: start;
}

.page-route-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: background 220ms ease, transform 220ms ease;
}

.route-panel:last-child {
  border-right: 0;
}

.route-panel:hover {
  background:
    linear-gradient(180deg, rgba(214, 179, 106, 0.08), transparent),
    rgba(255, 255, 255, 0.035);
  transform: translateY(-4px);
}

.route-panel h2 {
  margin: 52px 0 18px;
  font-size: clamp(2.15rem, 4vw, 4.2rem);
}

.route-panel p,
.proof-stack p,
.deliverable-list p,
.package-ledger p,
.dashboard-ledger p,
.meeting-flow p,
.feature-columns p,
.faq-section p,
.service-deep p,
.service-deep li {
  color: rgba(245, 241, 233, 0.72);
  line-height: 1.65;
}

.proof-stack {
  display: grid;
  gap: 1px;
  background: rgba(245, 241, 233, 0.14);
}

.proof-stack article {
  padding: 26px;
  background: rgba(8, 16, 20, 0.92);
}

.proof-stack span {
  display: block;
  color: var(--champagne);
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.mini-dashboard {
  margin-top: 42px;
}

.text-link {
  color: var(--champagne);
  font-weight: 700;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-rail article {
  min-height: 430px;
  padding: 36px;
  border-right: 1px solid var(--line);
  background: rgba(245, 241, 233, 0.026);
}

.process-rail article:last-child {
  border-right: 0;
}

.process-rail h2 {
  margin: 90px 0 18px;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
}

.process-rail p {
  color: rgba(245, 241, 233, 0.72);
  line-height: 1.65;
}

.audit-ledger,
.dashboard-ledger,
.package-ledger,
.deliverable-list,
.meeting-flow,
.feature-columns {
  display: grid;
  gap: 1px;
  background: rgba(245, 241, 233, 0.14);
}

.audit-ledger,
.dashboard-ledger,
.deliverable-list,
.feature-columns {
  grid-template-columns: repeat(2, 1fr);
}

.audit-ledger article,
.dashboard-ledger article,
.package-ledger article,
.deliverable-list article,
.meeting-flow article,
.feature-columns article {
  padding: 28px;
  background: rgba(8, 16, 20, 0.94);
}

.paper-section {
  background: var(--paper);
  color: var(--ink);
}

.paper-section p,
.paper-section .deliverable-list p,
.paper-section .meeting-flow p {
  color: #486268;
}

.paper-section .deliverable-list,
.paper-section .meeting-flow {
  background: rgba(8, 16, 20, 0.15);
}

.paper-section .deliverable-list article,
.paper-section .meeting-flow article {
  background: #f8f5ed;
}

.deliverable-list strong,
.package-ledger strong,
.meeting-flow strong {
  display: block;
  color: var(--champagne);
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  line-height: 1.08;
  margin-bottom: 10px;
}

.paper-section .deliverable-list strong,
.paper-section .meeting-flow strong {
  color: var(--ink);
}

.connection-map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connection-map span {
  padding: 12px 14px;
  border: 1px solid rgba(245, 241, 233, 0.18);
  border-radius: 999px;
  color: rgba(245, 241, 233, 0.82);
  background: rgba(255, 255, 255, 0.035);
}

.service-deep {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 241, 233, 0.14);
}

.service-deep article {
  padding: 34px;
  background: rgba(8, 16, 20, 0.94);
}

.service-deep h2 {
  margin: 42px 0 18px;
  font-size: clamp(2rem, 3.3vw, 3.7rem);
}

.service-deep ul {
  margin: 24px 0 0;
  padding-left: 20px;
}

.service-deep li + li {
  margin-top: 10px;
}

.package-ledger {
  grid-template-columns: 1fr;
}

.package-ledger article {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 140px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.package-ledger span {
  color: var(--champagne);
  font-weight: 700;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
}

.faq-section details {
  grid-column: 2;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-section h2 {
  grid-row: 1 / span 3;
}

.faq-section summary {
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.dashboard-ledger {
  grid-template-columns: 1fr;
}

.dashboard-ledger article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
}

.feature-columns {
  grid-template-columns: repeat(3, 1fr);
}

.feature-columns h3 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.portal-hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 58px;
  align-items: end;
  padding: 170px max(28px, calc((100vw - 1180px) / 2)) 110px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.84), rgba(8, 16, 20, 0.28)),
    url("assets/aven-command-room.png") center / cover no-repeat;
}

.portal-hero h1 {
  max-width: 880px;
}

.portal-title span {
  display: block;
}

.portal-hero p {
  max-width: 720px;
  color: rgba(245, 241, 233, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.portal-login,
.portal-panel,
.portal-sidebar,
.portal-metrics article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 16, 20, 0.78);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.25);
}

.portal-login {
  display: grid;
  gap: 16px;
  padding: 24px;
  backdrop-filter: blur(18px);
}

.portal-login > span,
.portal-metrics span {
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-login p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 110px max(28px, calc((100vw - 1180px) / 2));
}

.is-hidden {
  display: none !important;
}

.portal-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding: 18px;
}

.portal-client {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.portal-client strong,
.portal-client small {
  display: block;
}

.portal-client small {
  color: var(--muted);
}

.portal-nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(245, 241, 233, 0.76);
  font-weight: 700;
  cursor: pointer;
}

.portal-nav svg {
  width: 18px;
  height: 18px;
}

.portal-nav.active,
.portal-nav:hover {
  background: rgba(214, 179, 106, 0.14);
  color: var(--paper);
}

.portal-main {
  min-width: 0;
}

.portal-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.portal-topline h2 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
}

.portal-content {
  display: none;
}

.portal-content.active {
  display: block;
  animation: portalIn 340ms ease both;
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.portal-metrics article,
.portal-panel {
  padding: 22px;
}

.portal-metrics strong {
  display: block;
  margin: 16px 0 10px;
  color: var(--paper);
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  line-height: 0.95;
}

.portal-metrics p,
.portal-panel p,
.timeline-list,
.portal-checklist {
  color: rgba(245, 241, 233, 0.72);
  line-height: 1.65;
}

.portal-two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.portal-panel h3 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.timeline-list {
  margin: 0;
  padding-left: 22px;
}

.timeline-list li + li,
.portal-checklist li + li {
  margin-top: 12px;
}

.timeline-list span {
  color: var(--champagne);
  font-weight: 700;
}

.support-form {
  display: grid;
  gap: 14px;
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}

.chatbot-toggle {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 179, 106, 0.5);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
}

.chatbot-window {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(214, 179, 106, 0.38);
  border-radius: var(--radius);
  background: rgba(8, 16, 20, 0.94);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(22px);
  transform-origin: bottom right;
}

.chatbot-window.is-hidden {
  display: none;
}

.chatbot-window:not(.is-hidden) {
  animation: chatOpen 240ms ease both;
}

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.chatbot-head strong,
.chatbot-head small {
  display: block;
}

.chatbot-head small {
  color: var(--muted);
}

.chatbot-close {
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.chatbot-messages {
  height: 330px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
}

.chat-message {
  max-width: 82%;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: rgba(245, 241, 233, 0.86);
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.06);
}

.chat-message.user {
  align-self: flex-end;
  background: var(--paper);
  color: var(--ink);
}

.chat-message.bot {
  align-self: flex-start;
}

.chatbot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.chatbot-prompts button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 241, 233, 0.82);
  cursor: pointer;
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chatbot-form input {
  min-width: 0;
}

.chatbot-form button {
  width: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--champagne);
  color: var(--ink);
  cursor: pointer;
}

@keyframes chatOpen {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portalIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expanded-contact {
  border-top: 1px solid var(--line);
}

.cta-band {
  margin: 110px max(28px, calc((100vw - 1180px) / 2));
  padding: 44px;
  border: 1px solid rgba(214, 179, 106, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(214, 179, 106, 0.12), rgba(25, 210, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.cta-band h2 {
  max-width: 880px;
  margin-bottom: 18px;
}

.cta-band p {
  max-width: 760px;
  color: rgba(245, 241, 233, 0.76);
  line-height: 1.65;
}

.story-grid,
.audit-lab,
.roi,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 58px;
  align-items: start;
}

.story-copy {
  padding-top: 8px;
  color: rgba(245, 241, 233, 0.74);
  font-size: 1.1rem;
  line-height: 1.75;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-step {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: background 220ms ease;
}

.journey-step.active,
.journey-step:hover {
  background:
    linear-gradient(180deg, rgba(25, 210, 255, 0.13), transparent),
    rgba(255, 255, 255, 0.045);
}

.journey-step span {
  color: var(--champagne);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-step h3 {
  margin: 70px 0 16px;
  max-width: 270px;
}

.journey-step p,
.audit-copy p,
.roi p,
.contact-intro p,
.metric-tile small,
.action-panel li,
.form-note {
  color: rgba(245, 241, 233, 0.72);
  line-height: 1.6;
}

.section-header {
  max-width: 860px;
  margin-bottom: 42px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(245, 241, 233, 0.18);
  border-bottom: 1px solid rgba(245, 241, 233, 0.18);
}

.metric-tile,
.action-panel,
.roi-panel,
.lead-form,
.lens-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.service-card {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 92px minmax(230px, 0.72fr) minmax(320px, 1fr) 116px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(245, 241, 233, 0.14);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: transparent;
  transition: background 180ms ease;
}

.service-card:last-child {
  border-bottom: 0;
}

.service-card h3 {
  margin: 0;
  max-width: 360px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2vw, 2.35rem);
  font-weight: 650;
  line-height: 1.03;
}

.service-card p {
  margin: 0;
  max-width: 550px;
  color: rgba(245, 241, 233, 0.68);
  font-size: 1rem;
  line-height: 1.65;
}

.service-number {
  padding-left: 18px;
  color: var(--champagne);
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  font-weight: 650;
}

.service-cue {
  justify-self: end;
  color: rgba(245, 241, 233, 0.48);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card:hover,
.service-card:focus-visible {
  background: rgba(245, 241, 233, 0.018);
  outline: 0;
}

.service-card:hover .service-cue,
.service-card:focus-visible .service-cue,
.service-card.is-selected .service-cue {
  color: var(--champagne);
}

.service-card.is-selected {
  background: transparent;
  border-bottom-color: rgba(214, 179, 106, 0.42);
}

.service-card.is-selected::before {
  background: var(--champagne);
}

.service-lens {
  margin: -56px max(28px, calc((100vw - 1180px) / 2)) 98px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(214, 179, 106, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(214, 179, 106, 0.08), rgba(25, 210, 255, 0.055)),
    rgba(8, 16, 20, 0.8);
}

.service-lens h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.service-lens p {
  max-width: 760px;
  color: rgba(245, 241, 233, 0.76);
  line-height: 1.65;
}

.lens-panel {
  padding: 20px;
}

.lens-panel strong {
  display: block;
  margin: 12px 0;
  color: var(--cyan);
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
}

.lens-panel small {
  color: var(--muted);
  line-height: 1.45;
}

.audit-lab {
  background: var(--paper);
  color: var(--ink);
}

.audit-lab p {
  color: #486268;
}

.radar {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(8, 16, 20, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(25, 210, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #fbf8ef, #dfe8e5);
  overflow: hidden;
}

.radar-rings,
.radar-rings::before,
.radar-rings::after {
  position: absolute;
  inset: 50%;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(8, 16, 20, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-rings::before,
.radar-rings::after {
  content: "";
  width: 210px;
  height: 210px;
}

.radar-rings::after {
  width: 120px;
  height: 120px;
}

.radar-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 320px;
  background: rgba(8, 16, 20, 0.13);
  transform-origin: top center;
}

.line-a {
  transform: rotate(25deg);
}

.line-b {
  transform: rotate(100deg);
}

.line-c {
  transform: rotate(155deg);
}

.radar-point {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 10px rgba(255, 107, 87, 0.16);
}

.radar-point span {
  position: absolute;
  left: 18px;
  top: -6px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.p1 {
  left: 22%;
  top: 32%;
}

.p2 {
  right: 23%;
  top: 24%;
}

.p3 {
  right: 27%;
  bottom: 26%;
}

.p4 {
  left: 27%;
  bottom: 22%;
}

.radar-score {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.radar-score span {
  max-width: 110px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.radar-score strong {
  font-family: "Fraunces", serif;
  color: var(--champagne);
  font-size: 4rem;
  line-height: 0.8;
}

.dashboard-shell {
  padding: 18px;
  border: 1px solid rgba(25, 210, 255, 0.25);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(25, 210, 255, 0.09), rgba(214, 179, 106, 0.055)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.dash-top,
.scope-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-top h3 {
  margin: 6px 0 0;
  font-family: "Fraunces", serif;
  font-size: 2.3rem;
}

.dash-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.dash-tabs button {
  min-width: 84px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.dash-tabs button.active {
  background: var(--paper);
  color: var(--ink);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metric-tile,
.action-panel {
  min-height: 184px;
  padding: 22px;
}

.metric-tile strong {
  display: block;
  margin: 24px 0 10px;
  font-family: "Fraunces", serif;
  font-size: 3.1rem;
  line-height: 0.9;
}

.metric-tile.accent strong {
  color: var(--mint);
  font-size: 2.35rem;
}

.chart-panel {
  grid-column: span 2;
  min-height: 310px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.bar {
  position: relative;
  height: var(--height);
  min-height: 64px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), rgba(25, 210, 255, 0.18));
}

.bar span {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.action-panel {
  min-height: 310px;
}

.action-panel ol {
  margin: 22px 0 0;
  padding-left: 22px;
}

.action-panel li + li {
  margin-top: 18px;
}

.roi {
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}

.roi-panel {
  padding: 28px;
}

.roi-panel input[type="range"] {
  width: 100%;
  margin: 32px 0;
  accent-color: var(--cyan);
}

.scope-output span {
  color: var(--paper);
  font-weight: 700;
}

.scope-output strong {
  color: var(--champagne);
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
}

.contact {
  align-items: stretch;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(245, 241, 233, 0.07);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(245, 241, 233, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(245, 241, 233, 0.2);
  border-radius: var(--radius);
  background: rgba(8, 16, 20, 0.72);
  color: var(--paper);
  padding: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(25, 210, 255, 0.12);
}

textarea {
  resize: vertical;
}

.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.interest-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 241, 233, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.interest-grid input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(28px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 780ms ease, transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 940px) {
  .site-header {
    height: auto;
    flex-wrap: wrap;
  }

  nav {
    display: none;
  }

  .header-action span {
    display: none;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 124px;
  }

  .hero-proof {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 42px;
  }

  .signal-bar,
  .journey,
  .service-grid,
  .dash-grid,
  .story-grid,
  .audit-lab,
  .roi,
  .contact,
  .service-lens,
  .page-hero,
  .split-reveal,
  .page-route-grid,
  .process-rail,
  .service-deep,
  .faq-section,
  .audit-ledger,
  .deliverable-list,
  .feature-columns {
    grid-template-columns: 1fr;
  }

  .signal-bar div,
  .signal-bar a,
  .journey-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .journey-step {
    min-height: 230px;
  }

  .journey-step h3 {
    margin-top: 36px;
  }

  .service-lens {
    margin-top: -44px;
  }

  .page-hero,
  .portal-hero,
  .editorial-section,
  .page-route-grid,
  .home-dashboard-preview,
  .service-deep,
  .faq-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .page-hero {
    min-height: auto;
    padding-top: 150px;
    align-items: start;
  }

  .portal-hero,
  .portal-shell,
  .portal-metrics,
  .portal-two-column {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    min-height: auto;
    padding: 150px 28px 80px;
  }

  .portal-shell {
    padding-left: 28px;
    padding-right: 28px;
  }

  .portal-sidebar {
    position: static;
  }

  .portal-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-panel {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-rail article {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-rail h2 {
    margin-top: 48px;
  }

  .package-ledger article,
  .dashboard-ledger article {
    grid-template-columns: 1fr;
  }

  .faq-section h2,
  .faq-section details {
    grid-column: auto;
    grid-row: auto;
  }

  .service-card {
    grid-template-columns: 58px 1fr;
    gap: 10px 18px;
    min-height: 0;
    padding: 24px 0;
  }

  .service-card p,
  .service-cue {
    grid-column: 2;
  }

  .service-cue {
    justify-self: start;
  }

  .chart-panel {
    grid-column: auto;
  }

  .dash-top,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand small {
    display: none;
  }

  .hero,
  .story-section,
  .services,
  .dashboard-section,
  .roi,
  .contact,
  .audit-lab,
  .page-hero,
  .portal-hero,
  .editorial-section,
  .page-route-grid,
  .home-dashboard-preview,
  .service-deep,
  .faq-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-hero {
    padding-top: 122px;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-hero {
    padding-top: 122px;
  }

  .portal-shell {
    padding: 72px 18px;
  }

  .page-hero-copy {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  h1 {
    font-size: clamp(2.05rem, 9.3vw, 3.2rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .page-hero-copy h1 {
    width: 100%;
    max-width: calc(100vw - 36px);
    font-size: clamp(2rem, 8.8vw, 2.45rem);
    line-height: 1.03;
  }

  .page-hero-copy p,
  .page-hero-panel {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .page-hero-copy p,
  .page-hero-panel p {
    overflow-wrap: anywhere;
  }

  .portal-hero h1 {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    font-size: clamp(1.55rem, 6.4vw, 1.9rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .portal-hero > div:first-child,
  .portal-hero p {
    width: min(320px, calc(100vw - 36px));
    max-width: min(320px, calc(100vw - 36px));
  }

  .portal-login,
  .portal-sidebar,
  .portal-panel,
  .portal-metrics article {
    width: 100%;
  }

  h1 .headline-desktop {
    display: none;
  }

  h1 .headline-mobile {
    display: block;
  }

  .hero-copy {
    width: min(310px, calc(100vw - 36px));
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions,
  .field-row,
  .interest-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button,
  .header-action {
    width: 100%;
  }

  .header-action {
    width: 46px;
    height: 44px;
    padding: 0;
  }

  .dash-tabs {
    width: 100%;
  }

  .dash-tabs button {
    flex: 1;
    min-width: 0;
  }

  .service-card {
    grid-template-columns: 44px 1fr;
  }

  .service-number {
    padding-left: 10px;
    font-size: 1.1rem;
  }

  .service-card h3 {
    font-size: 1.7rem;
  }

  .radar {
    min-height: 380px;
  }

  .radar-rings {
    width: 230px;
    height: 230px;
  }

  .radar-score {
    width: 136px;
    height: 136px;
  }

  .route-panel,
  .process-rail article,
  .service-deep article,
  .cta-band {
    padding: 24px;
  }

  .cta-band {
    margin-left: 18px;
    margin-right: 18px;
  }

  .chatbot {
    right: 14px;
    bottom: 14px;
  }

  .chatbot-window {
    right: -2px;
    width: calc(100vw - 28px);
  }

  .chatbot-messages {
    height: 280px;
  }
}
