/* Offset Shore — marketing site
   Square corners throughout, no border radius anywhere. */

/* ---------------------------------------------------------------- base */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-surface);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-orange);
  color: #fff;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

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

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

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

/* Tracking is size-relative, not a fixed pixel value. A single -0.5px reads
   correctly at one size only — in em it stays tight on the 56px hero and
   loosens automatically at the 32px mobile cut. */
h1,
h2 {
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-orange);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ------------------------------------------------------------ layout */

.shell {
  max-width: var(--width-content);
  margin: 0 auto;
}

.section {
  padding: var(--space-section);
}

.section-head {
  max-width: var(--width-measure);
  margin-bottom: 56px;
}

.eyebrow {
  color: var(--color-orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.eyebrow--amber {
  color: var(--color-accent-on-navy);
}

.section-title {
  font-size: var(--text-h2);
  margin: 0 0 20px;
}

.section-title--tight {
  margin-bottom: 0;
}

.section-title--sm {
  font-size: var(--text-h2-sm);
  line-height: 1.15;
}

.section-title--stack {
  line-height: 1.15;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lede {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--color-text-body);
  margin: 0;
}

/* Grids. The 2px gap over a coloured parent is the divider-rule technique. */

.grid {
  display: grid;
}

.grid--hairline {
  gap: 2px;
  background: var(--color-border);
}

.grid--gap-20 {
  gap: 20px;
}

.grid--gap-24 {
  gap: 24px;
}

.grid--gap-64 {
  gap: 64px;
}

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

@media (min-width: 760px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-weight: 700;
  transition: background var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-press) var(--ease-out);
}

.btn--primary {
  background: var(--color-orange);
  color: #fff;
  padding: 16px 30px;
  font-size: 15px;
  box-shadow: var(--shadow-orange-lg);
}

.btn--primary:hover {
  background: #fff;
  color: var(--color-orange);
}

.btn--ghost-light {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
}

.btn--ghost-light:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn--ghost-dark {
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  padding: 14px 26px;
  font-size: 14.5px;
}

.btn--ghost-dark:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn--navy {
  background: var(--color-navy);
  color: #fff;
  padding: 16px 30px;
  font-size: 15px;
}

.btn--navy:hover {
  color: #fff;
}

.btn--outline-white {
  border: 2px solid #fff;
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
}

.btn--outline-white:hover {
  background: #fff;
  color: var(--color-orange);
}

/* -------------------------------------------------------------- nav */

/* The bar keeps a constant box; the material behind it scales. Nothing here
   animates a layout property, so the shrink runs entirely on the compositor. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  pointer-events: none;
}

/* Translucent chrome as its own layer — content scrolls underneath it. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--material-nav);
  backdrop-filter: var(--material-blur);
  -webkit-backdrop-filter: var(--material-blur);
  box-shadow: var(--shadow-nav);
  opacity: 0;
  transform-origin: top;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-in-out);
}

.nav.is-scrolled::before,
.nav.is-menu-open::before {
  opacity: 1;
}

.nav.is-scrolled::before {
  transform: scaleY(var(--nav-scale-scrolled));
}

.nav__bar {
  position: relative;
  max-width: var(--width-content);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
  transition: transform 300ms var(--ease-in-out);
}

/* Re-centres the row inside the shorter material without touching layout. */
.nav.is-scrolled .nav__bar {
  transform: translateY(var(--nav-shift-scrolled));
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

/* Height-driven so it stays put while the bar shrinks; the brand guide's
   no-tagline rule applies below 240px wide, which is where a nav logo lands. */
.brand__logo {
  height: 40px;
  width: auto;
  flex: none;
}

@media (min-width: 760px) {
  .brand__logo {
    height: 44px;
  }
}

.nav__links {
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.nav__link {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.nav__cta {
  background: var(--color-orange);
  color: #fff;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-orange);
  white-space: nowrap;
  flex: none;
  transition: background var(--duration-fast) var(--ease),
    transform var(--duration-press) var(--ease-out);
}

.nav__cta:hover {
  background: var(--color-orange-dark);
  color: #fff;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  padding: 8px 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.nav.is-menu-open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-menu-open .nav__burger span:nth-child(2) {
  opacity: 0;
}

.nav.is-menu-open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Opens from the hamburger rather than teleporting into place. visibility is part
   of the transition so collapsed links stay out of the tab order. */
.nav__mobile {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  background: var(--material-nav);
  backdrop-filter: var(--material-blur);
  -webkit-backdrop-filter: var(--material-blur);
  transition: grid-template-rows var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out),
    visibility 0s linear var(--duration-fast);
}

/* The clipping element carries no padding of its own — padding is not clipped by
   a 0fr track, so it would hold the menu open by its own vertical padding. */
.nav__mobile-inner {
  overflow: hidden;
  min-height: 0;
}

.nav__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 20px 20px;
}

.nav.is-menu-open .nav__mobile {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out), visibility 0s;
}

.nav__mobile a {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Links inline from 980px up; hamburger below. */
@media (min-width: 980px) {
  .nav__links {
    display: flex;
  }

  .nav__burger {
    display: none;
  }

  .nav__mobile,
  .nav.is-menu-open .nav__mobile {
    display: none;
  }
}

/* ------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: var(--space-hero);
  overflow: hidden;
  background: radial-gradient(
      1100px 600px at 85% -10%,
      rgba(230, 116, 38, 0.1),
      transparent
    ),
    linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-alt) 100%);
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  opacity: 0.5;
}

.hero__grid {
  max-width: var(--width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent-on-navy);
  font-weight: 700;
  font-size: var(--text-kicker);
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.hero__kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-orange);
  flex: none;
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 24px;
}

.hero__body {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-on-navy-body);
  max-width: 560px;
  margin: 0 0 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero__trust {
  font-size: 13px;
  color: var(--color-on-navy-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero__media {
  width: 100%;
  height: 260px;
  object-fit: cover;
  box-shadow: var(--shadow-media);
}

@media (min-width: 760px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .hero__media {
    height: 420px;
  }
}

/* ---------------------------------------------------------- marquee */

.marquee {
  background: var(--color-navy-alt);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.marquee__item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  flex: none;
}

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

/* ---------------------------------------------------------- problem */

.problem-card {
  background: var(--color-surface);
  padding: 36px 32px;
  transition: transform var(--duration-normal) var(--ease);
}



.problem-card__n {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-border);
  margin-bottom: 14px;
}

.problem-card__title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-navy);
}

.problem-card__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ------------------------------------------------- how we work / steps */

.solution {
  background: var(--color-surface-muted);
}

.solution__intro {
  margin-bottom: 70px;
}

.solution__intro .lede {
  align-self: center;
}

.steps {
  position: relative;
}

.steps__line {
  display: none;
  position: absolute;
  top: 27px;
  left: 0;
  width: 100%;
  height: 4px;
}

.steps__list {
  position: relative;
}

.step {
  position: relative;
}

.step__n {
  width: 56px;
  height: 56px;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.step__title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--color-navy);
}

.step__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (min-width: 760px) {
  .steps__line {
    display: block;
  }
}

/* --------------------------------------------------------- services */

.service {
  border: 2px solid var(--color-border);
  padding: var(--space-card);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease);
}


.service__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.service__lead {
  display: flex;
  gap: 18px;
}

.service__title,
.service__desc {
  display: block;
}

.service__n {
  font-weight: 800;
  font-size: 22px;
  color: var(--color-orange);
  flex: none;
  width: 34px;
}

.service__title {
  font-weight: 700;
  font-size: 18.5px;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.service__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.service__toggle {
  font-size: 20px;
  color: var(--color-orange);
  font-weight: 800;
  flex: none;
  line-height: 1;
  transition: transform var(--duration-normal) var(--ease-out);
}

.service.is-open .service__toggle {
  transform: rotate(45deg);
}

/* Collapsed only when JS can reopen it — no-JS visitors see every bullet.
   The 0fr/1fr grid collapse animates to the content's real height, so there is no
   magic max-height to outgrow and no dead time once the content has finished moving. */
.has-js .service__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-slow) var(--ease-out);
}

.has-js .service__inner {
  overflow: hidden;
  min-height: 0;
}

.has-js .service.is-open .service__body {
  grid-template-rows: 1fr;
}

/* Hold the bullets back briefly so they fade in behind the opening box
   rather than popping at full opacity while it is still moving. */
.has-js .service__bullets {
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.has-js .service.is-open .service__bullets {
  opacity: 1;
  transition-delay: 80ms;
}

.service__bullets {
  padding: 18px 0 0 52px;
  margin: 18px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 9px;
  list-style: none;
}

.service__bullets li {
  font-size: 13.5px;
  color: var(--color-text-body);
  display: flex;
  gap: 10px;
}

.service__bullets li::before {
  content: "—";
  color: var(--color-orange);
  font-weight: 700;
  flex: none;
}

/* ---------------------------------------------------- why sri lanka */

.whysl {
  background: var(--color-navy);
  color: #fff;
}

.whysl__grid {
  align-items: start;
}

.whysl__body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-on-navy-body);
  margin: 0 0 28px;
}

.whysl__media {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.reason-list {
  display: grid;
  gap: 2px;
  background: var(--color-on-navy-rule);
}

.reason {
  background: var(--color-navy);
  padding: 24px 0 24px 24px;
  display: flex;
  gap: 20px;
}

.reason__n {
  font-weight: 800;
  font-size: 22px;
  color: var(--color-orange);
  flex: none;
  width: 30px;
}

.reason__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.reason__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-on-navy-soft);
}

@media (min-width: 760px) {
  .whysl__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .whysl__aside {
    position: sticky;
    top: 120px;
  }
}

/* -------------------------------------------------- differentiators */

.diff-card {
  padding: 28px;
  background: var(--color-surface-muted);
  transition: background var(--duration-fast) var(--ease);
}


.diff-card__title {
  font-weight: 700;
  font-size: 16.5px;
  margin-bottom: 12px;
  color: var(--color-navy);
}

.diff-card__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------- capability */

.capability {
  background: var(--color-band);
  color: #fff;
  padding: var(--space-capability);
}

.capability__label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--color-accent-on-navy);
  margin-bottom: 30px;
}

.capability__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.capability__list li {
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.capability__list li::before {
  content: "✓";
  color: var(--color-orange);
  flex: none;
}

@media (min-width: 760px) {
  .capability__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .capability__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------------------------------- engagement */

.model {
  border: 2px solid var(--color-navy);
  padding: 32px;
  transition: background var(--duration-fast) var(--ease);
}


.model__title {
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 14px;
  color: var(--color-navy);
  transition: color var(--duration-fast) var(--ease);
}

.model__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  transition: color var(--duration-fast) var(--ease);
}

.model__tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-orange);
}

/* --------------------------------------------------------- security */

.security {
  background: var(--color-navy);
  color: #fff;
}

.security__body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-on-navy-body);
  margin: 0;
}

.security__points {
  gap: 2px;
  background: var(--color-on-navy-rule);
}

.security-point {
  background: var(--color-navy);
  padding: 24px;
}

.security-point__title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 8px;
  color: #fff;
}

.security-point__body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-on-navy-faint);
}

@media (min-width: 760px) {
  .security__grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------------------------------------------------------- careers */

.careers__grid {
  align-items: center;
}

.careers__media {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.careers__body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-text-body);
  margin: 0 0 26px;
}

/* -------------------------------------------------------- final cta */

.cta {
  background: linear-gradient(120deg, var(--color-orange), var(--color-orange-dark));
  color: #fff;
}

.cta__inner {
  max-width: var(--width-narrow);
  margin: 0 auto;
  padding: var(--space-cta);
  text-align: center;
}

.cta__title {
  font-size: var(--text-h2);
  margin: 0 0 18px;
}

.cta__body {
  font-size: var(--text-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------- footer */

.footer {
  background: var(--color-footer);
  color: var(--color-on-navy-body);
  padding: var(--space-footer);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  width: 190px;
  height: auto;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
}

.footer__blurb {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-footer-text);
  max-width: 280px;
  margin: 0;
}

.footer__heading {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 18px;
}

.footer__list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list a {
  font-size: 13.5px;
  color: var(--color-footer-text);
}

.footer__contact {
  font-size: 13.5px;
  color: var(--color-footer-text);
  line-height: 1.8;
  font-style: normal; /* <address> italicises by default */
}

.footer__contact a {
  display: block;
  color: var(--color-footer-text);
}

.footer__contact strong {
  display: block;
  margin-top: 14px;
  font-weight: 700;
  color: #fff;
}

.footer__legal {
  padding: 28px 0;
  font-size: 12px;
  color: var(--color-footer-legal);
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

/* ------------------------------------------- pointer-dependent motion */

/* Press feedback fires on pointer-down and is the fastest thing on the page —
   a delayed response is where the sense of directness falls apart. */
.btn:active,
.nav__cta:active {
  transform: scale(0.97);
  transition-duration: var(--duration-instant);
  transition-timing-function: var(--ease-out);
}

.service:active {
  border-color: var(--color-orange);
}

/* Motion and sticky colour changes only where a real pointer exists. On touch a
   tap fires a synthetic hover that persists until the next tap elsewhere. */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover,
  .btn--navy:hover {
    transform: translateY(-3px);
  }

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

  .problem-card:hover {
    transform: translateY(-6px);
  }

  .service:hover {
    border-color: var(--color-orange);
  }

  .diff-card:hover {
    background: var(--color-orange-tint);
  }

  .model:hover {
    background: var(--color-navy);
  }

  .model:hover .model__title {
    color: #fff;
  }

  .model:hover .model__body {
    color: var(--color-on-navy-body);
  }

  /* Press composes with the lift rather than replacing it, so a pressed button
     settles in place instead of dropping and shrinking at the same time. */
  .btn--primary:active,
  .btn--navy:active {
    transform: translateY(-3px) scale(0.97);
  }

  .nav__cta:active {
    transform: translateY(-2px) scale(0.97);
  }
}

/* ---------------------------------------------------- scroll reveal */

/* Gated on .has-js so the page is never blank without JavaScript. */
/* One property per layer. The section owns the fade, its children own the rise.
   Sharing a property across both layers multiplies opacity and adds transforms,
   which is how children ended up travelling 52px through a curve nobody drew. */
.has-js [data-reveal] {
  opacity: 0;
  transition: opacity var(--duration-reveal) var(--ease-out);
}

.has-js [data-reveal].is-revealed {
  opacity: 1;
}

.has-js [data-reveal-child] {
  transform: translateY(28px);
  transition: transform var(--duration-reveal) var(--ease-out);
}

.has-js [data-reveal].is-revealed [data-reveal-child] {
  transform: none;
}

/* Reduced motion removes movement, not feedback. Colour and opacity transitions
   stay, so hover states and the accordion still read as deliberate rather than
   snapping between states with no explanation. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-child] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .marquee__track {
    animation: none;
  }

  /* Drop every positional change; keep the colour work. */
  .btn--primary:hover,
  .btn--navy:hover,
  .nav__cta:hover,
  .problem-card:hover,
  .btn:active,
  .nav__cta:active,
  .btn--primary:active,
  .btn--navy:active {
    transform: none;
  }

  /* The material still appears, it just stops resizing and the row stops sliding. */
  .nav::before {
    transition: opacity var(--duration-fast) var(--ease);
  }

  .nav.is-scrolled::before {
    transform: none;
  }

  .nav__bar,
  .nav.is-scrolled .nav__bar {
    transform: none;
    transition: none;
  }

  .nav__burger span,
  .service__toggle {
    transition: opacity var(--duration-fast) var(--ease);
  }
}

/* Frost the material rather than blurring through it. */
@media (prefers-reduced-transparency: reduce) {
  .nav::before,
  .nav__mobile {
    background: var(--color-navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Solid surfaces with a defined edge, so nothing depends on translucency. */
@media (prefers-contrast: more) {
  .nav::before,
  .nav__mobile {
    background: var(--color-navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid #fff;
  }

  .service,
  .model {
    border-color: var(--color-navy);
  }

  .footer__legal {
    color: #b6bfd1;
  }
}
