:root {
  --ink: #0b1f33;
  --ink-soft: #243a4d;
  --muted: #5a6f80;
  --paper: #f4f6f8;
  --paper-elevated: #ffffff;
  --navy: #0b1f33;
  --navy-mid: #143049;
  --line: rgba(11, 31, 51, 0.12);
  --accent: #1f7a6a;
  --accent-soft: #3aa692;
  --focus: #2a6f8f;
  --radius: 2px;
  --font-display: "Source Serif 4", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --max: 70rem;
  --shadow: 0 24px 48px rgba(11, 31, 51, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1.0625rem;
  overflow-x: clip;
}

a {
  color: var(--focus);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 246, 248, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 246, 248, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--navy);
  color: var(--navy) !important;
}

.nav-cta:hover {
  background: var(--navy);
  color: #fff !important;
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 50rem);
  display: grid;
  align-items: end;
  padding: 5.5rem 0 4.75rem;
  overflow: clip;
  background: linear-gradient(165deg, #071521 0%, #0b1f33 48%, #143049 100%);
  color: #edf2f6;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 28%, rgba(58, 166, 146, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 12% 80%, rgba(42, 111, 143, 0.22), transparent 65%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-panel {
  position: absolute;
  inset: 14% 6% 20% 48%;
  border: 1px solid rgba(237, 242, 246, 0.14);
  background:
    linear-gradient(160deg, rgba(237, 242, 246, 0.07), transparent 55%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 22px,
      rgba(237, 242, 246, 0.05) 22px,
      rgba(237, 242, 246, 0.05) 23px
    );
  transform: skewY(-3deg);
  animation: plane-rise 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-inner {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237, 242, 246, 0.62);
  font-weight: 600;
}

.brand-lockup {
  margin: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-lead {
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 33rem;
  color: rgba(237, 242, 246, 0.86);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.hero-expand {
  margin: 2.4rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(237, 242, 246, 0.48);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-soft);
  color: #062019;
  border-color: var(--accent-soft);
}

.btn-primary:hover {
  background: #4db8a4;
  color: #062019;
}

.btn-ghost {
  background: transparent;
  color: #edf2f6;
  border-color: rgba(237, 242, 246, 0.35);
}

.btn-ghost:hover {
  background: rgba(237, 242, 246, 0.08);
  color: #fff;
}

.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.btn-quiet:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.contact .btn-primary {
  width: 100%;
}

/* Sections shared */
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 18ch;
}

.section-lead {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.problem,
.steps,
.solution,
.contact {
  padding: 5.75rem 0;
}

.problem {
  background: var(--paper);
}

.problem-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 800px) {
  .problem-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 2.5rem;
  }
}

.problem-list li {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.problem-list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

.problem-list span {
  color: var(--muted);
}

.stat-line {
  margin: 2.6rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.stat-line strong {
  color: var(--accent);
  font-weight: 700;
}

/* Interactive flow */
.steps {
  background: linear-gradient(180deg, #e9eef2 0%, #f4f6f8 100%);
}

.flow {
  margin-top: 2.75rem;
  position: relative;
}

.flow-rail {
  display: none;
}

@media (min-width: 760px) {
  .flow-rail {
    display: block;
    position: absolute;
    top: 1.55rem;
    left: 7%;
    right: 7%;
    z-index: 0;
    pointer-events: none;
  }

  .flow-rail-track {
    height: 2px;
    background: rgba(11, 31, 51, 0.12);
    border-radius: 999px;
    overflow: hidden;
  }

  .flow-rail-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--focus));
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.flow-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}

.flow-dot {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem 0.25rem 0.75rem;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font: inherit;
  position: relative;
}

.flow-dot::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid rgba(11, 31, 51, 0.22);
  background: var(--paper);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.flow-dot.is-active::before,
.flow-dot.is-done::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 122, 106, 0.18);
}

.flow-dot.is-active::before {
  transform: scale(1.15);
}

.flow-dot-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
}

.flow-dot-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  display: none;
}

@media (min-width: 700px) {
  .flow-dot-label {
    display: block;
  }
}

.flow-dot.is-active,
.flow-dot.is-done {
  color: var(--navy);
}

.flow-dot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.flow-stage {
  margin-top: 0.5rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 18rem;
  position: relative;
  overflow: hidden;
}

.flow-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  color: var(--navy);
  animation: panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-panel.is-active {
  display: grid;
}

@media (min-width: 820px) {
  .flow-panel.is-active {
    grid-template-columns: 1.05fr 1fr;
  }
}

.flow-visual {
  display: grid;
  place-items: center;
  padding: 1.75rem 1.25rem;
  background:
    linear-gradient(160deg, rgba(11, 31, 51, 0.04), transparent 55%),
    #eef2f5;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  min-height: 14rem;
}

@media (min-width: 820px) {
  .flow-visual {
    border-bottom: none;
    border-right: 1px solid var(--line);
    min-height: 18rem;
  }
}

.flow-visual svg {
  width: min(100%, 18rem);
  height: auto;
}

.flow-copy {
  padding: 1.85rem 1.6rem 2rem;
  display: grid;
  align-content: center;
}

.flow-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.flow-copy h3 {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  color: var(--navy);
}

.flow-copy p:last-child {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.flow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.flow-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Solution */
.solution {
  background: var(--navy);
  color: #e8eef3;
}

.solution .section-title {
  color: #fff;
}

.solution .section-lead {
  color: rgba(232, 238, 243, 0.7);
}

.pillars {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 760px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
}

.pillars li {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(232, 238, 243, 0.14);
}

.pillars h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.pillars p {
  margin: 0.45rem 0 0;
  color: rgba(232, 238, 243, 0.72);
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.email-image-btn {
  display: inline-block;
  margin: 1.65rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  max-width: 100%;
}

.email-image-btn img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 0.35rem;
}

.email-image-btn:hover img {
  border-bottom-color: var(--accent);
}

.email-image-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.contact-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.85rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  background: #fff;
}

.honeypot {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

.form-fallback {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.1rem 0 2.6rem;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-inner > div > span {
  display: block;
  margin-top: 0.2rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-meta a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-meta a:hover {
  color: var(--navy);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes plane-rise {
  from {
    opacity: 0;
    transform: skewY(-3deg) translateY(36px);
  }
  to {
    opacity: 1;
    transform: skewY(-3deg) translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .flow-panel {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .hero-panel {
    animation: none;
  }
}

/* —— Responsive polish —— */
@media (max-width: 860px) {
  .wrap {
    width: min(100% - 1.75rem, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 4.25rem 0 3.75rem;
    align-items: center;
  }

  .hero-panel {
    inset: auto -8% 8% 18%;
    height: 42%;
    opacity: 0.35;
  }

  .brand-name {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
    word-break: break-word;
  }

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

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

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

  .section-title {
    max-width: none;
  }

  .problem,
  .steps,
  .solution,
  .contact {
    padding: 3.75rem 0;
  }

  .flow-stage {
    min-height: 0;
  }

  .flow-visual {
    min-height: 11.5rem;
    padding: 1.35rem 1rem;
  }

  .flow-visual svg {
    width: min(100%, 15rem);
  }

  .flow-copy {
    padding: 1.4rem 1.2rem 1.55rem;
  }

  .contact-form {
    padding: 1.35rem 1.15rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    min-height: 3.75rem;
  }

  .logo-mark {
    font-size: 1.1rem;
  }

  .nav {
    gap: 0.65rem;
  }

  .nav-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
  }

  .flow-nav {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .flow-nav::-webkit-scrollbar {
    display: none;
  }

  .flow-dot {
    min-width: 0;
    padding: 0.4rem 0.15rem 0.65rem;
  }

  .flow-dot-num {
    font-size: 0.82rem;
  }

  .flow-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .flow-controls .btn-quiet {
    flex: 1 1 auto;
    min-width: 7.5rem;
  }

  .flow-hint {
    order: 3;
    flex: 1 0 100%;
    text-align: left;
  }

  .pillars {
    gap: 1.5rem;
  }

  .email-image-btn img {
    width: min(100%, 18rem);
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(100% - 1.35rem, var(--max));
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    line-height: 1.4;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-expand {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
  }

  .section-lead {
    font-size: 1rem;
  }

  .problem-list strong,
  .pillars h3 {
    font-size: 1.1rem;
  }

  .flow-dot::before {
    width: 0.72rem;
    height: 0.72rem;
  }

  .flow-dot-num {
    font-size: 0.75rem;
  }

  .stat-line {
    font-size: 0.9rem;
  }

  .footer-inner > div > span {
    max-width: 22rem;
  }
}

/* Prevent iOS zoom-on-focus: inputs ≥16px */
@media (max-width: 860px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
}
