/* ==========================================================================
   New England Digital — Design System & Layout
   ========================================================================== */

:root {
  /* Brand palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-main: #0a192f;
  --brand-navy: #0a192f;
  --brand-teal: #7ca8a3;
  --accent-red: #ff3333;

  /* Derived tokens */
  --text-muted: #475569;
  --border-subtle: #e2e8f0;
  --border-focus: var(--brand-teal);
  --shadow-card: 0 1px 3px rgba(10, 25, 47, 0.06), 0 8px 24px rgba(10, 25, 47, 0.05);
  --shadow-btn: 0 2px 8px rgba(10, 25, 47, 0.1);

  /* Layout */
  --max-width: 72rem;
  --header-height: 4rem;
  --section-padding-y: clamp(3.5rem, 9vw, 6.5rem);
  --section-padding-x: clamp(1.25rem, 4vw, 2rem);
  --gap-sm: 0.75rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --line-height-tight: 1.15;
  --line-height-base: 1.6;

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--text-main);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--brand-navy);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: var(--line-height-tight);
  font-weight: 700;
  color: var(--text-main);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--section-padding-x);
  z-index: 200;
  padding: 0.625rem 1rem;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--gap-md);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #0a192f;
  text-decoration: none;
}

.site-logo img {
  width: auto;
  max-height: 2.75rem;
  transition: opacity var(--transition-fast);
}

.site-logo__text {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0a192f;
  white-space: nowrap;
}

.site-brand-text {
  margin-left: auto;
  color: var(--brand-navy);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand-text:hover,
.site-brand-text:focus-visible {
  color: var(--brand-teal);
  outline: none;
}

.site-logo:hover img,
.site-logo:focus-visible img {
  opacity: 0.75;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--brand-teal);
  background: var(--bg-secondary);
  outline: none;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--brand-navy);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  padding: var(--gap-md) var(--section-padding-x);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.08);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.site-nav__link {
  display: block;
  padding: 0.625rem 0.75rem;
  color: var(--brand-navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--brand-teal);
  background: var(--bg-secondary);
  outline: none;
}

.site-nav__link[aria-current="page"] {
  color: var(--brand-navy);
  background: var(--bg-secondary);
}

.site-nav__link--pricing {
  padding: 0.625rem 0.75rem;
  color: #ffffff;
  background: #002147;
  font-weight: 600;
  text-align: center;
}

.site-nav__link--pricing:hover,
.site-nav__link--pricing:focus-visible,
.site-nav__link--pricing[aria-current="page"] {
  color: #ffffff;
  background: var(--accent-red);
}

.site-nav__link--cta {
  color: #ffffff;
  background: var(--brand-navy);
  font-weight: 600;
  text-align: center;
}

.site-nav__link--cta:hover,
.site-nav__link--cta:focus-visible {
  color: #ffffff;
  background: var(--accent-red);
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--gap-sm);
  }
}

/* --------------------------------------------------------------------------
   Sections (modular)
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-padding-y);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.section__header {
  max-width: 42rem;
}

.section__header--center {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section__lede {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.section--hero {
  padding-block: clamp(1.25rem, 4vw, 2.75rem) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 168, 163, 0.08), transparent),
    var(--bg-primary);
}

.hero__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.hero__lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 7vw, 5rem);
}

.hero__headline {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  max-width: 16ch;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero__mark {
  width: clamp(16rem, 38vw, 30rem);
  height: auto;
  flex: 0 1 auto;
}

.hero__actions {
  margin-top: 1.25rem;
}

@media (max-width: 47.98rem) {
  .hero__lead {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__mark {
    width: min(20rem, 82vw);
  }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.section--pricing {
  min-height: calc(100vh - var(--header-height));
  padding-block: clamp(2.5rem, 7vw, 5rem);
  background: var(--bg-secondary);
}

.pricing__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.pricing__header {
  max-width: 52rem;
}

.pricing__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.pricing__description {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
}

.pricing__frame-wrap {
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pricing__frame {
  display: block;
  width: 100%;
  height: 80vh;
  border: 0;
}

.pricing__frame-status {
  padding: var(--gap-md);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn--primary {
  color: #ffffff;
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #ffffff;
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 6px 24px rgba(255, 51, 51, 0.25);
  outline: none;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--submit {
  width: 100%;
  margin-top: var(--gap-md);
}

@media (min-width: 36rem) {
  .btn--submit {
    width: auto;
    min-width: 14rem;
  }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.section--about,
.about-section {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-block: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.92)),
    var(--bg-secondary);
  border-block: 1px solid var(--border-subtle);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  min-height: clamp(32rem, 62vw, 42rem);
}

.about__copy,
.about-content {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  margin-left: -2rem;
  padding-left: 2rem;
}

.section--about .section__title,
.about-content h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  text-align: left;
}

.about__content {
  max-width: 42rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
}

.about__content p + p {
  margin-top: 1rem;
}

.about__region {
  position: relative;
  z-index: 0;
  width: min(24rem, 82vw);
  min-height: clamp(18rem, 44vw, 34rem);
  margin: 0 auto;
}

.ne-visual-background {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: auto;
}

.map-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.5s ease-in-out;
}

@media (min-width: 48rem) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    padding-block: clamp(1rem, 3vw, 2rem);
  }

  .about__region {
    justify-self: end;
    width: min(28rem, 36vw);
  }
}

@media (max-width: 47.98rem) {
  .about__inner {
    min-height: auto;
  }

  .about__copy,
  .about-content {
    margin-left: 0;
    padding-left: 0;
  }

  .about__region {
    width: min(16rem, 64vw);
    min-height: 14rem;
  }
}

/* --------------------------------------------------------------------------
   Why Choose Us — scroll typography
   -------------------------------------------------------------------------- */

.why-choose-section {
  width: 100%;
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.section-container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: auto;
  padding-inline: 0;
}

.section-main-title {
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  color: var(--text-main);
  padding-inline: var(--section-padding-x);
}

.scroll-pillars-wrapper {
  display: flex;
  flex-direction: column;
}

.pillar-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start;
  text-align: left !important;
}

.pillar-scroll-block {
  width: 100%;
  padding: 120px 0;
  display: flex;
  justify-content: center;
  background-color: #ffffff;
  transition: background-color 2.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background-color;
}

.pillar-scroll-block.active {
  background-color: #f3f4f6;
}

.pillar-block-inner {
  width: 85%;
  max-width: 1000px;
  display: block;
}

.pillar-title-wrap {
  width: 100%;
  margin-left: 0 !important;
  padding-left: 0 !important;
  overflow: visible;
}

.massive-scroll-word {
  display: block;
  font-size: 8.5rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--text-main);
  margin: 0 0 35px 0;
  padding: 0;
  text-align: left;
  text-wrap: balance;
  opacity: 0;
  transform: scale(0.95) translateY(50px);
  transition:
    opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 2.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, letter-spacing;
}

.no-orphan {
  white-space: nowrap;
}

.pillar-content-wrap {
  max-width: 680px;
  margin-left: 5%;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.4s;
  will-change: transform, opacity;
}

.pillar-scroll-block.active .massive-scroll-word {
  opacity: 1;
  transform: scale(1) translateY(0);
  letter-spacing: -0.02em;
}

.pillar-scroll-block.active .pillar-content-wrap {
  opacity: 1;
  transform: translateY(0);
}

.pitch-subheading {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--text-main);
}

.pillar-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.85;
}

@media (max-width: 992px) {
  .massive-scroll-word {
    font-size: 6rem;
    margin-bottom: 25px;
  }

  .pillar-content-wrap {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pillar-scroll-block {
    padding: 80px 0;
  }

  .massive-scroll-word {
    font-size: 3.8rem;
  }
}

@media (max-width: 768px) {
  .why-choose-section .section-main-title {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.1;
  }

  .why-choose-section .massive-scroll-word {
    font-size: clamp(2.15rem, 10.5vw, 3.25rem);
    line-height: 1.05;
  }

  .why-choose-section .pitch-subheading {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.25;
  }
}

/* Fixed Right-Sidebar Progress Indicator */
.scroll-progress-sidebar {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.scroll-progress-sidebar.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Background Vertical Track Line */
.progress-line-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: -1;
}

/* Individual Indicator Nodes */
.progress-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: background-color 0.6s ease, transform 0.6s ease;
}

/* Active Node State */
.progress-node.active {
  background-color: var(--text-main, #000000);
  transform: scale(1.5);
}

/* Hide on mobile devices to preserve core layout space */
@media (max-width: 992px) {
  .scroll-progress-sidebar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.section--contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.audit-list {
  margin: 1.25rem auto 0;
  padding-left: 1.25rem;
  max-width: 34rem;
  list-style: disc;
  text-align: left;
  color: var(--text-main);
}

.audit-list li {
  margin-bottom: 0.75rem;
}

.audit-list li:last-child {
  margin-bottom: 0;
}

.contact-form {
  max-width: 36rem;
  margin-inline: auto;
  width: 100%;
}

.form-grid {
  display: grid;
  gap: var(--gap-md);
}

@media (min-width: 36rem) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:hover {
  border-color: var(--brand-teal);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(124, 168, 163, 0.2);
  background: var(--bg-primary);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a192f' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  min-height: 1.5rem;
  color: var(--brand-teal);
}

.form-status.is-error {
  color: var(--accent-red);
}

.form-status.is-success {
  color: var(--brand-teal);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid rgba(124, 168, 163, 0.2);
  background: var(--brand-navy);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--brand-teal);
}
