@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap");

:root {
  --brand-red: #e00000;
  --brand-red-deep: #a80000;
  --brand-black: #111111;
  --brand-grey: #dddddd;
  --brand-grey-soft: #f3f3f3;
  --brand-white: #ffffff;
  --text-main: #1a1a1a;
  --text-dark: #111111;
  --text-muted: #5d5d5d;
  --line: rgba(0, 0, 0, 0.08);
  --panel-border: rgba(17, 17, 17, 0.09);
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top right, rgba(17, 17, 17, 0.04), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f9f9f9 48%, #f1f1f1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 30px rgba(20, 20, 20, 0.08);
}

.site-header__inner,
.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 82px;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(17, 17, 17, 0.08);
}

.progress-bar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-red);
  transition: width 120ms linear;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 42px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: var(--brand-black);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.top-nav a {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand-black);
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.top-nav a:hover {
  color: var(--brand-red);
}

.top-nav a.is-active {
  color: var(--brand-white);
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.page-shell {
  padding: 2rem 0 4rem;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 1rem;
  align-items: start;
  margin-top: 0.75rem;
}

.portal-hero--full {
  grid-template-columns: 1fr;
}

.portal-hero__rail {
  display: grid;
  gap: 1rem;
}

.hero-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.portal-aside-card,
.portal-panel,
.metric-card,
.ops-column,
.flowchart-board,
.flowchart-step,
.mini-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 248, 248, 0.99));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.portal-aside-card,
.portal-panel,
.flowchart-board {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.portal-aside-card--alert {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(255, 255, 255, 0.99));
}

.portal-checklist,
.ops-list {
  margin: 0;
  padding-left: 1.2rem;
}

.portal-checklist li,
.ops-list li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.portal-note {
  margin: 0;
  color: #444;
  line-height: 1.7;
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.metric-card {
  position: relative;
  border-radius: 20px;
  padding: 1rem 1.1rem;
}

.metric-card__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card__value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.metric-card__hint {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.6rem);
  z-index: 5;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.94);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 14px 32px rgba(20, 20, 20, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.metric-card__hint::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  bottom: 100%;
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent rgba(17, 17, 17, 0.94) transparent;
}

.metric-card--hint:hover .metric-card__hint,
.metric-card--hint:focus-within .metric-card__hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.portal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.portal-sidebar {
  display: grid;
  gap: 1rem;
  align-self: start;
  position: sticky;
  top: 110px;
}

.portal-shortcuts,
.portal-mini-grid,
.status-list {
  display: grid;
  gap: 0.75rem;
}

.portal-shortcuts a,
.mini-tile {
  text-decoration: none;
}

.portal-shortcuts a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.035);
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-weight: 700;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.portal-shortcuts a:hover {
  transform: translateX(4px);
  background: rgba(17, 17, 17, 0.06);
  border-color: rgba(17, 17, 17, 0.14);
}

.mini-tile {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 18px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mini-tile:hover {
  transform: translateY(-3px);
}

.mini-tile__title {
  font-size: 1rem;
  font-weight: 800;
}

.mini-tile__meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.status-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: #333;
  line-height: 1.5;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 6px rgba(17, 17, 17, 0.08);
}

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

.smartcoach-gallery {
  display: grid;
  gap: 1rem;
}

.smartcoach-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 248, 248, 0.99));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.smartcoach-card--reverse {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.smartcoach-card--reverse .smartcoach-card__content {
  order: 2;
}

.smartcoach-card--reverse .smartcoach-card__media {
  order: 1;
}

.smartcoach-card__content h3 {
  margin-bottom: 0.75rem;
}

.smartcoach-card__content p {
  margin-top: 0;
  color: #4f4f4f;
  line-height: 1.72;
}

.smartcoach-card__media {
  margin: 0;
}

.smartcoach-card__media img {
  display: block;
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 22px 45px rgba(20, 20, 20, 0.12);
}

.contact-hero {
  margin-top: 0.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-layout--single {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.contact-panel,
.contact-sidebar {
  min-width: 0;
}

.contact-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 248, 248, 0.99));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.contact-sidebar {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.status-banner {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  font-weight: 700;
}

.status-banner--success {
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.1);
  color: var(--brand-black);
}

.status-banner--error {
  background: rgba(224, 0, 0, 0.06);
  border: 1px solid rgba(224, 0, 0, 0.15);
  color: var(--brand-red);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2d2d2d;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-black);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 160px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.08);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section--portal {
  padding-top: 0;
  margin-bottom: 1rem;
}

.flowchart-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 7rem;
  overflow: hidden;
}

.flowchart-lane {
  position: relative;
  z-index: 1;
}

.flowchart-lane__label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flowchart-step {
  position: relative;
  min-height: 180px;
  border-radius: 24px;
  padding: 1.2rem 1.2rem 1.35rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.flowchart-step--primary {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.04), rgba(255, 255, 255, 0.99));
}

.flowchart-step--dark {
  background: linear-gradient(180deg, rgba(221, 221, 221, 0.65), rgba(255, 255, 255, 0.99));
}

.flowchart-step__index {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}

.flowchart-board__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flowchart-board__svg path {
  fill: none;
  stroke: rgba(17, 17, 17, 0.22);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ops-column {
  border-radius: 24px;
  padding: 1.25rem;
}

.ops-column__head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.ops-column__head h3 {
  margin: 0;
}

.ops-column__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
}

.card-grid--portal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.75rem;
}

.hero--home {
  grid-template-columns: 1.45fr 0.95fr;
}

.hero--subpage {
  grid-template-columns: 1.25fr 0.95fr;
}

.hero__content,
.hero__panel,
.flow-node,
.timeline-card,
.guide-card,
.panel,
.info-card,
.accordion,
.callout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.98));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero__content,
.hero__panel,
.panel,
.info-card,
.timeline-card,
.guide-card,
.callout {
  border-radius: var(--radius-lg);
  padding: 1.7rem;
}

.hero__content--feature {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.hero__content--feature::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 0, 0, 0.16), rgba(224, 0, 0, 0.04) 42%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

h1 {
    margin-bottom: 0;
    font-size: 40px;
  line-height: 1.25;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.hero__lede,
.section-copy,
.panel p,
.info-card p,
.timeline-card p,
.guide-card p,
.flow-node p,
.callout p {
  color: #4f4f4f;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, #ff1f1f, var(--brand-red-deep));
  color: var(--brand-white);
}

.button--secondary {
  background: #ffffff;
  color: var(--brand-black);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.quick-list,
.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.quick-list li,
.steps li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
  color: #242424;
}

.section {
  padding-top: 4rem;
}

.section-heading {
  margin-bottom: 1.3rem;
}

.section-heading--tight {
  margin-bottom: 1rem;
}

.card-grid,
.split-layout,
.timeline-grid {
  display: grid;
  gap: 1rem;
}

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

.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card,
.guide-card,
.panel,
.info-card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline-card:hover,
.guide-card:hover,
.panel:hover,
.info-card:hover,
.flow-node:hover,
.accordion:hover,
.callout:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.12);
}

.timeline-card::before,
.guide-card::before,
.panel::before,
.info-card::before,
.hero__content::before,
.hero__panel::before,
.callout::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), transparent 70%);
}

.timeline-card__step {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--brand-red);
  font-size: 0.84rem;
  font-weight: 800;
}

.guide-card {
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.18);
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: center;
}

.flow-node {
  min-height: 180px;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.flow-node--accent {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.05), rgba(255, 255, 255, 0.98));
}

.flow-node--dark {
  background: linear-gradient(180deg, rgba(221, 221, 221, 0.45), rgba(255, 255, 255, 0.98));
}

.flow-node__label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-arrow {
  display: flex;
  justify-content: center;
  color: var(--brand-red);
  font-size: 2rem;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag-row span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.1);
  color: var(--brand-black);
  font-size: 0.92rem;
  font-weight: 700;
}

.callout {
  position: relative;
}

.callout--wide {
  max-width: 760px;
}

.accordion-list {
  display: grid;
  gap: 0.9rem;
}

.accordion {
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-black);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion[open] summary {
  background: rgba(17, 17, 17, 0.05);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.accordion .steps {
  padding: 1rem 1.4rem 1.25rem 2.5rem;
}

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-black);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .timeline-card,
  .guide-card,
  .panel,
  .info-card,
  .flow-node,
  .accordion,
  .callout,
  .button,
  .scroll-top,
  .progress-bar__fill,
  .site-header {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .portal-hero,
  .portal-layout,
  .contact-layout,
  .smartcoach-card,
  .smartcoach-card--reverse,
  .flowchart-board,
  .ops-board,
  .portal-metrics,
  .hero-summary-grid {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .smartcoach-card--reverse .smartcoach-card__content,
  .smartcoach-card--reverse .smartcoach-card__media {
    order: initial;
  }

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

  .hero--home,
  .hero--subpage,
  .split-layout,
  .card-grid,
  .timeline-grid,
  .flow-diagram {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flowchart-board {
    gap: 1rem;
  }

  .flowchart-board__svg {
    display: none;
  }

  .card-grid--portal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 31;
  }

  .top-nav {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    align-content: start;
    gap: 0.7rem;
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    backdrop-filter: none;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-header.is-nav-open .top-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .top-nav a {
    width: 100%;
    text-align: left;
    padding: 1rem 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow: 0 10px 24px rgba(20, 20, 20, 0.06);
    font-size: 1rem;
  }

  .top-nav a:hover {
    color: var(--brand-black);
    background: #f4f4f4;
  }

  .top-nav a.is-active {
    color: var(--brand-white);
    background: var(--brand-red);
    border-color: var(--brand-red);
    box-shadow: 0 12px 26px rgba(224, 0, 0, 0.18);
  }

  .page-shell,
  .site-header__inner {
    width: min(100% - 1rem, 1180px);
  }

  .hero__content,
  .hero__panel,
  .panel,
  .info-card,
  .timeline-card,
  .guide-card,
  .callout {
    padding: 1.3rem;
  }

  h1 {
    max-width: none;
  }

  .brand__logo {
    height: 36px;
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .portal-aside-card,
  .portal-panel,
  .flowchart-board,
  .ops-column {
    padding: 1.15rem;
  }
}

@media (max-width: 760px) {
  .top-nav {
    top: 79px;
  }
}
