/* Section styles: home.
   First the section's own authored rules (hover / animation / state), then the
   classes extracted from the original inline styles. */

/* ---- Authored rules ---- */

@keyframes atlas-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-marquee {
    animation: none !important;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ecg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
}

.hero-ecg path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  opacity: .3;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  animation: ecg-draw 5.5s linear infinite;
}

@keyframes ecg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-spark {
  position: absolute;
  right: clamp(20px,5vw,72px);
  top: clamp(66px,11vh,132px);
  width: min(460px,40vw);
  opacity: .13;
}

.hero-spark polyline {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
}

.spark-a {
  animation: spark-drift 9s ease-in-out infinite;
}

.spark-b {
  animation: spark-drift 12s ease-in-out infinite reverse;
}

@keyframes spark-drift {
  0%,100% {
    transform: translateY(6px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-flow {
  position: absolute;
  right: clamp(28px,4.5vw,76px);
  top: 50%;
  transform: translateY(-50%);
  width: min(212px,19vw);
  opacity: .66;
}

@media (max-width:1120px) {
  .hero-flow,.hero-spark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-live::after,.wa-cta,.hero-ecg path,.spark-a,.spark-b {
    animation: none;
  }
  .hero-ecg path {
    stroke-dashoffset: 0;
  }
}

.gal-tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: clamp(320px,52vh,540px);
  cursor: pointer;
  overflow: hidden;
  border-right: 2px solid var(--color-text);
  transition: flex-grow .55s cubic-bezier(.16,1,.3,1);
}

.gal-tile:last-child {
  border-right: none;
}

.gal-row:hover .gal-tile {
  flex-grow: .5;
}

.gal-tile:hover {
  flex-grow: 5.5;
}

.gal-imgwrap {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(1.02);
  transition: filter .55s ease,transform .8s cubic-bezier(.16,1,.3,1);
  transform: scale(1.04);
}

.gal-tile:hover .gal-imgwrap {
  filter: grayscale(0);
  transform: scale(1);
}

.gal-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(32,30,29,0) 38%,rgba(32,30,29,.82) 100%);
  opacity: .92;
  transition: opacity .5s ease;
  z-index: 1;
  pointer-events: none;
}

.gal-tile:hover .gal-veil {
  opacity: 1;
}

.gal-accent {
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  width: 0;
  background: var(--color-accent);
  z-index: 3;
  transition: width .55s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}

.gal-tile:hover .gal-accent {
  width: 100%;
}

.gal-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 3px 9px;
  pointer-events: none;
}

.gal-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 22px 22px 52px;
  color: var(--color-bg);
  width: 100%;
  pointer-events: none;
}

.gal-cap-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(17px,1.5vw,22px);
  letter-spacing: -.01em;
  line-height: 1.08;
  white-space: normal;
}

.gal-cap-sub {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(243,242,242,.82);
  margin-top: 8px;
  max-width: 34ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease .1s,transform .5s ease .1s;
}

.gal-tile:hover .gal-cap-sub {
  opacity: 1;
  transform: none;
}

.gal-vert {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  transform-origin: center;
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-bg);
  white-space: nowrap;
  pointer-events: none;
}

.gal-tile:hover .gal-vert {
  color: var(--color-accent);
}

@media (max-width:760px) {
  .gal-row {
    flex-direction: column;
  }
  .gal-tile {
    height: 200px;
    border-right: none;
    border-bottom: 2px solid var(--color-text);
  }
  .gal-tile:hover,.gal-row:hover .gal-tile {
    flex-grow: 1;
  }
  .gal-cap-sub {
    opacity: 1;
    transform: none;
  }
  .gal-imgwrap {
    filter: grayscale(0);
    transform: scale(1);
  }
}

/* ---- Layout and typography (from the original inline styles) ---- */

.atlas-hero {
  padding: clamp(56px,9vh,104px) clamp(20px,5vw,72px) 0;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  font-weight: 600;
}

.hero-rule {
  flex: 1;
  height: 2px;
  background: var(--color-divider);
  max-width: 220px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(44px,7.2vw,104px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 28px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
  margin-top: 44px;
  padding-bottom: 52px;
  border-bottom: 2px solid var(--color-text);
}

.hero-text {
  font-size: clamp(17px,1.5vw,21px);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-link.hero-link {
  text-decoration: none;
  justify-content: flex-start;
}

.hero-icon {
  margin-left: auto;
}

.atlas-growth {
  padding: 0 clamp(20px,5vw,72px);
}

.growth-inner {
  max-width: 1200px;
  margin: 52px auto 0;
  position: relative;
}

.growth-box {
  position: absolute;
  left: -16px;
  top: -16px;
  width: clamp(90px,12vw,150px);
  height: clamp(90px,12vw,150px);
  background: var(--color-accent);
  z-index: 0;
}

.growth-box-2 {
  position: relative;
  z-index: 1;
  aspect-ratio: 16/7;
  border: 2px solid var(--color-text);
  background: var(--color-bg);
  overflow: hidden;
}

.growth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.growth-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px,2.4vw,28px);
  border-bottom: 2px solid var(--color-text);
  background: var(--color-bg);
  z-index: 2;
}

.growth-row-2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(13px,1.4vw,16px);
  letter-spacing: -.01em;
}

.growth-rule {
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  display: inline-block;
}

.growth-row-3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--color-text) 55%,transparent);
}

.growth-rule-2 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.growth-row-4 {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  z-index: 2;
  border-top: 2px solid var(--color-text);
  width: 100%;
  background: color-mix(in srgb,var(--color-bg) 82%,transparent);
  backdrop-filter: blur(2px);
}

.growth-box-3 {
  flex: 1;
  padding: 12px clamp(12px,1.8vw,22px);
  border-right: 2px solid var(--color-divider);
}

.growth-label {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--color-text) 55%,transparent);
}

.growth-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px,2.4vw,30px);
  letter-spacing: -.02em;
  margin-top: 3px;
}

.atlas-stats {
  margin-top: 96px;
  border-top: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  background: var(--color-accent);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.stats-box {
  padding: 40px clamp(20px,5vw,72px);
  border-right: 2px solid rgba(243,242,242,.4);
}

.stats-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px,3vw,42px);
  color: var(--color-bg);
  letter-spacing: -.02em;
}

.stats-box-2 {
  font-size: 14px;
  color: rgba(243,242,242,.85);
  margin-top: 6px;
}

.stats-box-3 {
  padding: 40px clamp(20px,5vw,72px);
}

.atlas-ticker {
  border-bottom: 2px solid var(--color-text);
  overflow: hidden;
  background: var(--color-bg);
  padding: 20px 0;
}

.ticker-row {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: atlas-scroll 32s linear infinite;
}

.ticker-row-2 {
  display: inline-flex;
  align-items: center;
}

.ticker-row-3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px,2.2vw,30px);
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
}

.ticker-rule {
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  display: inline-block;
}

.atlas-quote {
  padding: clamp(80px,10vw,120px) clamp(20px,5vw,72px);
  background: var(--color-accent-100);
  border-bottom: 2px solid var(--color-text);
}

.quote-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 120px;
  line-height: .5;
  color: var(--color-accent);
  height: 56px;
}

.quote-quote {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px,4.4vw,60px);
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 20ch;
  margin: 20px 0 0;
  text-wrap: balance;
}

.quote-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.quote-rule {
  width: 44px;
  height: 2px;
  background: var(--color-accent);
}

.quote-span {
  font-size: 13px;
  color: color-mix(in srgb,var(--color-text) 60%,transparent);
}

.atlas-gallery {
  border-top: 2px solid var(--color-text);
  padding: clamp(64px,8vw,104px) 0 clamp(64px,8vw,104px);
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,72px);
}

.gallery-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--color-text);
}

.gallery-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px,3.6vw,48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 12px 0 0;
  max-width: 20ch;
}

.gallery-text {
  font-size: 14px;
  line-height: 1.5;
  max-width: 36ch;
  margin: 0;
  color: color-mix(in srgb,var(--color-text) 60%,transparent);
}

.gallery-inner-2 {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 clamp(20px,5vw,72px);
}

.gallery-row-2 {
  display: flex;
  border: 2px solid var(--color-text);
  overflow: hidden;
}

.gallery-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-image-slot {
  position: absolute;
  inset: 0;
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-shift {
  border-top: 2px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  padding: clamp(72px,9vw,112px) clamp(20px,5vw,72px);
}

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  margin-top: 26px;
}

.shift-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px,4vw,52px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

.shift-text {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(243,242,242,.8);
  margin: 26px 0 0;
  max-width: 46ch;
}

.shift-text-2 {
  font-size: 17px;
  line-height: 1.65;
  margin: 22px 0 0;
  max-width: 46ch;
  padding-left: 20px;
  border-left: 2px solid var(--color-accent);
}

.shift-box {
  border: 2px solid var(--color-bg);
  background: rgba(243,242,242,.03);
  padding: 24px 22px 18px;
}

.shift-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243,242,242,.55);
  padding: 0 4px 16px;
}

.shift-span {
  color: var(--color-accent-400);
}

.shift-icon {
  display: block;
  overflow: visible;
}

.shift-rect {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1) .9s;
}

.atlas-build {
  padding: clamp(72px,9vw,112px) clamp(20px,5vw,72px);
}

.build-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-text);
}

.build-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px,3.6vw,46px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 12px 0 0;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  border-left: 2px solid var(--color-text);
  border-top: 0;
  margin-top: 0;
}

.build-box {
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding: 36px 30px;
  transition: background .25s ease;
}

.build-box:hover {
  background: var(--color-accent-100) !important;
}

.build-row-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.build-row-3 {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.build-strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-accent-700);
}

.build-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
  margin: 22px 0 0;
}

.build-text {
  font-size: 14.5px;
  line-height: 1.58;
  color: color-mix(in srgb,var(--color-text) 74%,transparent);
  margin: 10px 0 0;
}

.atlas-packages {
  border-top: 2px solid var(--color-text);
  padding: clamp(72px,9vw,112px) clamp(20px,5vw,72px);
  background: var(--color-neutral-100);
}

.packages-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.packages-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px,3.6vw,46px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 12px 0 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 44px;
}

.packages-link {
  text-decoration: none;
  color: inherit;
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform .25s ease,box-shadow .25s ease;
}

.packages-link:hover {
  transform: translateY(-6px) !important;
  box-shadow: 10px 10px 0 var(--color-text) !important;
}

.packages-link--dark {
  background: var(--color-text);
}

.packages-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

.packages-label--dark {
  color: var(--color-accent-400);
}

.packages-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.02em;
  margin: 14px 0 0;
  color: var(--color-text);
}

.packages-heading--dark {
  color: var(--color-bg);
}

.packages-text {
  font-size: 15px;
  line-height: 1.55;
  margin: 16px 0 0;
  flex: 1;
  color: color-mix(in srgb,var(--color-text) 74%,transparent);
}

.packages-text--dark {
  color: rgba(243,242,242,.78);
}

.packages-span {
  font-size: 13px;
  font-weight: 600;
  margin-top: 22px;
  color: var(--color-accent-700);
}

.packages-span--dark {
  color: var(--color-accent-400);
}

.atlas-audit-band {
  background: var(--color-accent-100);
  border-top: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding: clamp(40px,5vw,64px) clamp(20px,5vw,72px);
}

.audit-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.audit-band-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px,2.6vw,34px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 26ch;
  text-wrap: balance;
}

.audit-band-text {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 54ch;
  color: color-mix(in srgb,var(--color-text) 76%,transparent);
}

.audit-band-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 17px 28px;
  border: 2px solid var(--color-text);
  transition: background .25s ease,transform .25s ease;
}

.audit-band-link:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  transform: translateY(-3px) !important;
}

.atlas-proof {
  border-top: 2px solid var(--color-text);
  padding: clamp(72px,9vw,110px) 0;
}

.atlas-process {
  border-top: 2px solid var(--color-text);
  padding: clamp(72px,9vw,112px) clamp(20px,5vw,72px);
  background: var(--color-neutral-100);
}

.process-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px,3.6vw,46px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 12px 0 44px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.process-box {
  border-top: 2px solid var(--color-text);
  padding: 24px 28px 0 0;
}

.process-strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-accent);
}

.process-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.01em;
  margin: 14px 0 0;
}

.process-text {
  font-size: 14.5px;
  line-height: 1.58;
  color: color-mix(in srgb,var(--color-text) 74%,transparent);
  margin: 10px 0 0;
}

.atlas-why {
  border-top: 2px solid var(--color-text);
  padding: clamp(72px,9vw,112px) clamp(20px,5vw,72px);
  background: var(--color-accent-100);
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px,4vw,52px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.why-text {
  font-size: 17px;
  line-height: 1.65;
  margin: 24px 0 0;
  max-width: 48ch;
}

.why-text-2 {
  font-size: 17px;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 48ch;
  color: color-mix(in srgb,var(--color-text) 78%,transparent);
}

.why-link.why-link {
  text-decoration: none;
  margin-top: 30px;
}

.why-box {
  position: relative;
  aspect-ratio: 4/5;
  border: 2px solid var(--color-text);
}

.why-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.atlas-cta {
  background: var(--color-accent);
  color: var(--color-bg);
  border-top: 2px solid var(--color-text);
  padding: clamp(76px,10vw,128px) clamp(20px,5vw,72px);
  text-align: left;
}

.cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px,7vw,96px);
  line-height: .96;
  letter-spacing: -.03em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}

.cta-text {
  font-size: clamp(17px,1.6vw,22px);
  line-height: 1.5;
  margin: 28px 0 0;
  max-width: 52ch;
  color: rgba(243,242,242,.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
