@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  color-scheme: light;
  --ink: #113d5c;
  --ink-deep: #082f4d;
  --blue: #0d4b73;
  --blue-light: #dceaf1;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --text: #263946;
  --muted: #667783;
  --line: #d7e0e4;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 47, 77, 0.1);
  --radius: 1.25rem;
  --max: 74rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--ink-deep);
}

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

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink-deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.brand-name {
  max-width: 12rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  padding-block: 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--blue);
  border-color: var(--blue);
}

.nav-list .nav-cta {
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 999px;
}

.nav-list .nav-cta:hover {
  color: var(--white);
  background: var(--ink-deep);
}

.nav-toggle {
  display: none;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 700;
}

main {
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background:
    radial-gradient(circle at 82% 22%, rgba(13, 75, 115, 0.09), transparent 28rem),
    linear-gradient(135deg, var(--paper), var(--cream));
}

.hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -11rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(13, 75, 115, 0.14);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.hero-logo {
  max-width: 31rem;
  padding: 0;
  border-radius: 50%;
}

.hero-logo img {
  width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 22px 34px rgba(8, 47, 77, 0.18));
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.18;
}

h1 {
  max-width: 14ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 6.5vw, 5.25rem);
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.lead {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.82rem 1.25rem;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}

.button-secondary {
  color: var(--blue);
  background: transparent;
}

.button-secondary:hover {
  color: var(--ink-deep);
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-soft {
  background: var(--cream);
}

.section-ink {
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink-deep);
}

.section-ink h2,
.section-ink h3,
.section-ink .eyebrow {
  color: var(--white);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-ink .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(8, 47, 77, 0.05);
}

.card-number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-group {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
}

.service-group ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.service-group li {
  padding-block: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-group a {
  color: var(--white);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.trip-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.trip-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.trip-detail {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.trip-detail p {
  margin: 0;
  color: var(--muted);
}

.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink-deep);
  border-radius: var(--radius);
}

.work-feature h2,
.work-feature h3,
.work-feature .eyebrow {
  color: var(--white);
}

.work-feature .button {
  color: var(--ink-deep);
  background: var(--white);
  border-color: var(--white);
}

.work-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.work-metric {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.work-metric strong {
  display: block;
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.4rem;
}

.work-metric span {
  font-size: 0.86rem;
}

.case-study {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.case-study:last-child {
  border-bottom: 0;
}

.case-header {
  display: grid;
  grid-template-columns: minmax(13rem, 0.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 2.5rem;
}

.case-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case-block {
  padding-top: 1.25rem;
  border-top: 2px solid var(--blue);
}

.case-block p,
.case-block li {
  color: var(--muted);
}

.case-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-mark {
  position: relative;
  min-height: 22rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--blue-light);
  border-radius: 46% 54% 53% 47% / 58% 42% 58% 42%;
}

.feature-mark::before,
.feature-mark::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 13rem;
  background: var(--blue);
  border-radius: 55% 45% 62% 38%;
  transform: rotate(30deg);
  opacity: 0.9;
}

.feature-mark::before {
  left: 26%;
  bottom: 18%;
}

.feature-mark::after {
  top: 13%;
  right: 25%;
  transform: rotate(30deg) scale(0.68);
  opacity: 0.5;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

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

.process-step {
  position: relative;
  padding-top: 1.25rem;
  border-top: 3px solid var(--blue);
}

.process-step p {
  color: var(--muted);
}

.page-hero {
  padding-block: clamp(4rem, 9vw, 7rem);
  background:
    linear-gradient(120deg, rgba(13, 75, 115, 0.05), transparent 65%),
    var(--cream);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.service-section {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.service-section:last-child {
  border-bottom: 0;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.service-kicker {
  color: var(--blue);
  font-weight: 700;
}

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

.service-content p,
.service-content li {
  color: var(--muted);
}

.service-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.68fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.quote-card,
.contact-card {
  padding: 2rem;
  background: var(--cream);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-card p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
}

.about-profile {
  text-align: center;
}

.about-headshot {
  display: block;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1rem 2.5rem rgba(29, 52, 68, 0.18);
}

.about-profile .profile-name {
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li {
  margin-top: 0.8rem;
}

.calendar-section {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: var(--cream);
}

.calendar-shell {
  min-height: 760px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calendly-inline-widget {
  min-width: 320px;
  height: 760px;
}

.calendar-fallback {
  margin: 1.25rem 0 0;
  color: var(--muted);
  text-align: center;
}

.cta-band {
  padding-block: 3.5rem;
  color: var(--white);
  background: var(--blue);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .button {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  white-space: nowrap;
}

.site-footer {
  padding-block: 3rem 1.5rem;
  color: rgba(255, 255, 255, 0.68);
  background: #062a43;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  width: 10rem;
  padding: 0.6rem;
  background: var(--paper);
  border-radius: 0.6rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 58rem) {
  .hero-grid,
  .feature,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    max-width: 28rem;
    margin-inline: auto;
  }

  .card-grid,
  .service-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .trip-panel {
    grid-template-columns: 1fr;
  }

  .work-feature,
  .case-header {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 68rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.8rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 0.4rem;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0;
  }

  .nav-list .nav-cta {
    display: inline-block;
    padding-inline: 1rem;
  }
}

@media (max-width: 46rem) {
  .header-inner {
    min-height: 4.5rem;
  }

  .brand img {
    width: 3rem;
    height: 3rem;
  }

  .brand-name {
    max-width: 9rem;
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.8rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 0.4rem;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0;
  }

  .nav-list .nav-cta {
    display: inline-block;
    padding-inline: 1rem;
  }

  .card-grid,
  .service-groups,
  .process,
  .service-content,
  .trip-details,
  .work-metrics,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-mark {
    min-height: 17rem;
  }

  .calendar-shell,
  .calendly-inline-widget {
    min-height: 700px;
    height: 700px;
  }
}

.developer-credit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.4;
}

.developer-credit img {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  opacity: 0.76;
}

@media (max-width: 640px) {
  .developer-credit {
    width: auto;
    justify-content: center;
    text-align: left;
  }
}

/* Motion system */
@keyframes motion-header-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motion-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motion-map-in {
  from { opacity: 0; transform: translate(18px, 10px) scale(0.98); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes atlas-route-draw {
  from { transform: rotate(var(--route-angle)) scaleX(0); }
  to { transform: rotate(var(--route-angle)) scaleX(1); }
}

@keyframes atlas-waypoint-arrive {
  from { opacity: 0; transform: translateY(12px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes atlas-contour-drift {
  from { transform: rotate(-6deg) scale(1.25) translate3d(-0.5%, -0.5%, 0); }
  to { transform: rotate(-4deg) scale(1.3) translate3d(1.5%, 1%, 0); }
}

@keyframes feature-mark-drift-one {
  from { transform: rotate(30deg) translate3d(-3px, 2px, 0); }
  to { transform: rotate(35deg) translate3d(5px, -5px, 0); }
}

@keyframes feature-mark-drift-two {
  from { transform: rotate(30deg) scale(0.68) translate3d(2px, -2px, 0); }
  to { transform: rotate(24deg) scale(0.72) translate3d(-5px, 6px, 0); }
}

@keyframes tile-flash-on {
  0% { filter: brightness(0.78) saturate(0.82); outline-color: transparent; outline-offset: -2px; }
  48% { filter: brightness(1.18) saturate(1.08); outline-color: rgba(196, 125, 70, 0.72); outline-offset: 3px; }
  100% { filter: brightness(1) saturate(1); outline-color: transparent; outline-offset: 9px; }
}

.motion-enabled .site-header .brand {
  animation: motion-header-enter 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.motion-enabled .site-header .nav-list li {
  opacity: 0;
  animation: motion-header-enter 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.motion-enabled .site-header .nav-list li:nth-child(1) { animation-delay: 155ms; }
.motion-enabled .site-header .nav-list li:nth-child(2) { animation-delay: 220ms; }
.motion-enabled .site-header .nav-list li:nth-child(3) { animation-delay: 285ms; }
.motion-enabled .site-header .nav-list li:nth-child(4) { animation-delay: 350ms; }
.motion-enabled .site-header .nav-list li:nth-child(5) { animation-delay: 415ms; }
.motion-enabled .site-header .nav-list li:nth-child(6) { animation-delay: 480ms; }

.motion-enabled .atlas-hero.hero-animate .atlas-copy > *,
.motion-enabled .page-hero.hero-animate .container > * {
  opacity: 0;
  animation: motion-rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.motion-enabled .hero-animate .container > :nth-child(1),
.motion-enabled .hero-animate .atlas-copy > :nth-child(1) { animation-delay: 120ms; }
.motion-enabled .hero-animate .container > :nth-child(2),
.motion-enabled .hero-animate .atlas-copy > :nth-child(2) { animation-delay: 220ms; }
.motion-enabled .hero-animate .container > :nth-child(3),
.motion-enabled .hero-animate .atlas-copy > :nth-child(3) { animation-delay: 320ms; }
.motion-enabled .hero-animate .container > :nth-child(4),
.motion-enabled .hero-animate .atlas-copy > :nth-child(4) { animation-delay: 420ms; }
.motion-enabled .hero-animate .container > :nth-child(5),
.motion-enabled .hero-animate .atlas-copy > :nth-child(5) { animation-delay: 520ms; }

.motion-enabled .atlas-hero.hero-animate .atlas-map {
  animation: motion-map-in 0.9s 280ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.motion-enabled .atlas-hero.hero-animate .route-leg {
  animation: atlas-route-draw 0.62s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.motion-enabled .atlas-hero.hero-animate .route-leg-1 { animation-delay: 650ms; }
.motion-enabled .atlas-hero.hero-animate .route-leg-2 { animation-delay: 1.05s; }
.motion-enabled .atlas-hero.hero-animate .route-leg-3 { animation-delay: 1.45s; }

.motion-enabled .atlas-hero.hero-animate .waypoint {
  opacity: 0;
  animation: atlas-waypoint-arrive 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.motion-enabled .atlas-hero.hero-animate .wp-1 { animation-delay: 620ms; }
.motion-enabled .atlas-hero.hero-animate .wp-2 { animation-delay: 1.02s; }
.motion-enabled .atlas-hero.hero-animate .wp-3 { animation-delay: 1.42s; }
.motion-enabled .atlas-hero.hero-animate .wp-4 { animation-delay: 1.82s; }

.motion-enabled .atlas-hero.hero-animate::before,
.motion-enabled .page-hero.hero-animate::before {
  animation: atlas-contour-drift 16s ease-in-out infinite alternate;
}

.motion-enabled .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.8, 0.3, 1),
    transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.motion-enabled .motion-lift:not(.reveal-item) {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.motion-enabled .motion-flash.reveal-item.is-visible {
  outline: 1px solid transparent;
  animation: tile-flash-on 0.72s calc(var(--reveal-delay, 0ms) + 90ms) ease-out both;
}

.motion-enabled .motion-lift:hover,
.motion-enabled .motion-lift:focus-within {
  transform: translateY(-6px);
  border-color: rgba(196, 125, 70, 0.58);
  box-shadow: 0 18px 38px rgba(8, 47, 77, 0.13);
  transition-delay: 0ms;
}

.motion-enabled .feature-mark::before {
  animation: feature-mark-drift-one 7s ease-in-out infinite alternate;
}

.motion-enabled .feature-mark::after {
  animation: feature-mark-drift-two 8.5s ease-in-out infinite alternate;
}

.motion-enabled .card.is-visible .card-number {
  animation: atlas-waypoint-arrive 0.5s calc(var(--reveal-delay, 0ms) + 220ms) cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.button {
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.motion-enabled .button:hover,
.motion-enabled .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(8, 47, 77, 0.18);
}

.motion-enabled .button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(8, 47, 77, 0.14);
}

.nav-list a {
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

@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;
    transition-delay: 0ms !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
