:root {
  --ink: #061018;
  --ink-soft: #102032;
  --paper: #edf2f6;
  --muted: #5a6a7b;
  --line: #cfd8e3;
  --accent: #0d9488;
  --accent-deep: #0f766e;
  --signal: #e85d04;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 16, 24, 0.16);
  --radius: 20px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(232, 93, 4, 0.08), transparent 50%),
    linear-gradient(180deg, #e8eef4 0%, var(--paper) 40%, #e4ebf2 100%);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.wrap {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header,
.site-navbar.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(237, 242, 246, 0.92);
  border-bottom: 1px solid rgba(207, 216, 227, 0.7);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.site-navbar .navbar-brand.brand {
  margin-right: 1rem;
}

.site-navbar .nav-link {
  font-weight: 600;
  color: var(--muted) !important;
  padding: 0.45rem 0.75rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: var(--ink) !important;
}

.site-navbar .navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.site-navbar .navbar-toggler-icon {
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%286%2c 16%2c 24%2c 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-navbar .nav-link {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    border-radius: 10px;
  }

  .site-navbar .nav-link:hover {
    background: rgba(13, 148, 136, 0.08);
  }
}

/* Keep brand buttons ahead of Bootstrap defaults */
.btn {
  --bs-btn-border-width: 1px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.35rem;
  position: relative;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-mobile-cta {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--accent-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Accounting desk: short nav stays visible on phones. */
body.role-accounting .nav-links-desk {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  min-width: 0;
}

body.role-accounting .nav-cta-desk {
  display: inline-flex;
  flex-shrink: 0;
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(6, 16, 24, 0.22);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ink);
}

.hero .btn-secondary,
.hero-bleed .btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.35);
}

.btn-accent:hover {
  background: var(--accent-deep);
}

/* —— Full-bleed hero —— */
.hero-bleed {
  position: relative;
  min-height: calc(100svh - 4.35rem);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: #061018;
}

.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(13, 148, 136, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 50% at 15% 80%, rgba(232, 93, 4, 0.22), transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(165deg, #0a1a28 0%, #061018 48%, #0b2e2a 100%);
  animation: atmosphere 14s ease-in-out infinite alternate;
}

.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-orbit {
  position: absolute;
  width: min(58vw, 640px);
  aspect-ratio: 1;
  right: -8%;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: spin 48s linear infinite;
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-orbit::before {
  inset: 12%;
  animation: spin 32s linear infinite reverse;
}

.hero-orbit::after {
  inset: 28%;
  background:
    radial-gradient(circle at 30% 30%, rgba(13, 148, 136, 0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(232, 93, 4, 0.2), transparent 50%);
}

.hero-doc {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(34vw, 360px);
  aspect-ratio: 8.5 / 11;
  z-index: 2;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 1.4rem 1.3rem;
  transform: rotate(6deg);
  animation: float-doc 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-doc .line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 0.7rem;
}

.hero-doc .line.short {
  width: 42%;
}

.hero-doc .line.mid {
  width: 68%;
}

.hero-doc .line.accent {
  width: 55%;
  background: rgba(13, 148, 136, 0.7);
}

.hero-doc .block {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 4.5rem 0 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 4.35rem);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: min(920px, 100%);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #ffffff;
  max-width: 12ch;
}

.hero-copy .lede {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
}

.hero-services {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.35rem;
  max-width: 40rem;
}

.hero-services li {
  margin: 0;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  backdrop-filter: blur(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1,
  .hero-copy .lede,
  .hero-services,
  .hero-actions {
    animation: hero-in 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-copy .lede {
    animation-delay: 140ms;
  }

  .hero-services {
    animation-delay: 220ms;
  }

  .hero-actions {
    animation-delay: 320ms;
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  translate: -50% 0;
  z-index: 3;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

.section {
  padding: 5rem 0;
}

.services-band {
  padding: 3.5rem 0 4.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.95)),
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13, 148, 136, 0.08), transparent 55%);
  border-bottom: 1px solid var(--line);
}

.service-hits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-hit {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 0.25rem;
  height: 100%;
}

.service-hit strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.service-hit span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  max-width: 42rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.section-head h2,
.panel h2,
.tier h3,
.path-step h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
}

.section-head p,
.panel p,
.path-step p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.tier-grid:not(.row) {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.tier-grid:not(.row) .tier {
  grid-column: span 4;
}

.tier {
  min-width: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.tier .btn {
  width: 100%;
}

.tier:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 148, 136, 0.35);
}

.tier.featured {
  background:
    linear-gradient(160deg, #0f2a36 0%, #061018 55%, #0a3d38 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(6, 16, 24, 0.28);
  grid-column: auto;
}

.tier.featured p,
.tier.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.tier-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.14);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tier.featured .tier-tag {
  background: rgba(13, 148, 136, 0.35);
  color: #9ff0e6;
}

.tier-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.tier.featured .price small {
  color: rgba(255, 255, 255, 0.65);
}

.tier ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.tier .btn {
  width: 100%;
}

.path-rail {
  margin-top: 0.5rem;
}

.path-step {
  position: relative;
  padding: 1.5rem 1.35rem 1.55rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, rgba(13, 148, 136, 0.1), transparent 55%);
  box-shadow: 0 10px 28px rgba(6, 16, 24, 0.05);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.path-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.path-step .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  color: var(--accent-deep);
  line-height: 1;
}

.path-step h3 {
  font-size: 1.2rem;
}

.path-step p {
  font-size: 0.98rem;
  line-height: 1.5;
}

.story-carousel {
  position: relative;
  max-width: 820px;
}

.story-track {
  position: relative;
  min-height: 220px;
}

.story {
  margin: 0;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.35rem;
  align-items: start;
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story[hidden] {
  display: none;
}

.story.is-active {
  opacity: 1;
  transform: none;
}

.story.is-exit {
  opacity: 0;
  transform: translateX(-24px);
}

.story img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

.story-body {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.stars {
  color: var(--accent-deep);
  letter-spacing: 0.12em;
  font-size: 1rem;
  line-height: 1;
}

.story blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
}

.story figcaption {
  display: grid;
  gap: 0.15rem;
}

.story figcaption strong {
  font-size: 1.02rem;
}

.story figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.story-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.story-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.story-nav:hover {
  border-color: rgba(13, 148, 136, 0.45);
  background: #fff;
  transform: translateY(-1px);
}

.story-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.story-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(15, 118, 110, 0.25);
  cursor: pointer;
  transition:
    width 200ms ease,
    background 200ms ease;
}

.story-dot.is-active {
  width: 26px;
  background: var(--accent-deep);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.panel {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.panel.dark {
  background:
    linear-gradient(145deg, #102032 0%, #061018 60%, #0d3a34 100%);
  color: var(--white);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.panel.dark::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35), transparent 65%);
  animation: pulse 5s ease-in-out infinite;
}

.panel.dark > * {
  position: relative;
  z-index: 1;
}

.panel.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.cta-band {
  margin: 1rem 0 5rem;
  padding: 2.4rem;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(13, 148, 136, 0.22), transparent 55%),
    linear-gradient(120deg, #061018, #0f2a36 55%, #0a3d38);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.04em;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #c5f5ef;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-shell {
  width: min(860px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.portal-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.portal-card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.flash {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-deep);
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes atmosphere {
  from {
    filter: hue-rotate(0deg) saturate(1);
    transform: scale(1);
  }
  to {
    filter: hue-rotate(12deg) saturate(1.15);
    transform: scale(1.04);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-doc {
  0%,
  100% {
    transform: rotate(6deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-12px);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.45;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 0.85;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .wrap,
  .hero-inner,
  .portal-shell {
    width: 100%;
    max-width: 1140px;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    box-sizing: border-box;
  }

  .portal-shell {
    margin: 1rem auto 2rem;
  }

  .hero-doc,
  .hero-orbit,
  .hero-scroll {
    display: none;
  }

  .hero-bleed {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 2.25rem 0 2.25rem;
  }

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

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    max-width: none;
  }

  .hero-copy .lede {
    font-size: 1.05rem;
    max-width: none;
  }

  .hero-services {
    gap: 0.45rem;
    max-width: none;
  }

  .hero-services li {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.35rem;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .section {
    padding: 2.75rem 0;
  }

  .services-band {
    padding: 2.5rem 0 2.75rem;
  }

  .section-head {
    margin-bottom: 1.5rem;
    max-width: none;
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .split,
  .cta-band,
  .form-row.two {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-hit strong {
    font-size: 1.15rem;
  }

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

  .story img {
    width: 112px;
    height: 112px;
  }

  .story blockquote {
    font-size: 1.05rem;
  }

  .cta-band {
    align-items: stretch;
    padding: 1.35rem;
    margin: 0.5rem 0 2.5rem;
    border-radius: 20px;
    gap: 1rem;
  }

  .tier:hover {
    transform: none;
  }

  .brand {
    font-size: 1.15rem;
    min-width: 0;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .portal-card {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .portal-card h1 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .btn {
    min-height: 2.85rem;
    padding: 0.7rem 1.1rem;
  }

  .flash {
    word-break: break-word;
  }

  .flash .btn,
  .flash form {
    width: 100%;
  }

  .flash .btn {
    margin-top: 0.35rem;
  }

  table.table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th,
  .table td {
    padding: 0.65rem 0.55rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .table .btn {
    min-height: 2.4rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
  }

  .footer-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  input,
  select,
  textarea {
    font-size: 16px; /* avoid iOS zoom on focus */
  }
}

@media (max-width: 640px) {
  .price {
    font-size: 1.55rem;
  }

  .tier {
    padding: 1.2rem;
  }

  .tier-top {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }

  .path-step {
    padding-left: 1.1rem;
  }

  .hero-actions form {
    width: 100%;
  }

  .hero-actions form .btn {
    width: 100%;
  }

  .hero-services li {
    flex: 1 1 calc(50% - 0.45rem);
    text-align: center;
  }
}

@supports (padding: max(0px)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
