/* Cinematic layer on the live A1 site.
   Navy + chrome. Does not replace booking/pay/form styles. */

.grain,
.vignette,
.film-progress { pointer-events: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0.1;
  mix-blend-mode: overlay;
  background-size: 180px 180px;
}

@media (max-width: 480px) {
  .grain,
  .vignette,
  .film-progress { display: none !important; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: radial-gradient(ellipse at 50% 42%, transparent 42%, rgba(5, 10, 18, 0.38) 100%);
}

.film-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #9bb4cc, #f0f4f8);
}

.hero-media img,
.hero-media-home img {
  transform: scale(1.08);
  animation: film-ken 34s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-media-team img {
  object-position: center 35%;
}
.hero-media-foam img {
  object-position: center 22%;
}

@keyframes film-ken {
  from { transform: scale(1.08) translate3d(-1.4%, 0.6%, 0); }
  to { transform: scale(1.18) translate3d(1.6%, -1.2%, 0); }
}

.hero {
  align-items: flex-end;
}

.scroll-hint {
  position: absolute;
  right: clamp(1.1rem, 4vw, 2.4rem);
  bottom: 2.4rem;
  z-index: 3;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.55);
  writing-mode: vertical-rl;
}

@media (max-width: 720px) {
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-media-home img {
    animation: none;
    transform: scale(1.06);
  }
}

[data-rise] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.18, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-rise].is-in {
  opacity: 1;
  transform: none;
}
[data-rise="late"] { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1; transform: none; }
}

.scrub {
  position: relative;
  height: 235vh;
  background: #050a12;
}
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.scrub-stack,
.scrub-img {
  position: absolute;
  inset: 0;
}
.scrub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scrub-after {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, opacity;
}
.scrub-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.1) 0%, rgba(5, 10, 18, 0.08) 40%, rgba(5, 10, 18, 0.72) 100%);
  pointer-events: none;
}
.scrub-ui {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0 clamp(1.1rem, 4vw, 2.4rem) 2.2rem;
  display: grid;
  gap: 0.75rem;
  color: #f0f4f8;
}
.scrub-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 700;
}
.scrub-note {
  margin: 0;
  max-width: 32rem;
  color: #d4dce6;
  font-size: 0.95rem;
}
.scrub-axis {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.55);
}
.scrub-track {
  display: block;
  height: 1px;
  background: rgba(240, 244, 248, 0.2);
  position: relative;
}
.scrub-track i {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 0;
  background: #f0f4f8;
}

@media (max-width: 720px) {
  .scrub { height: 200vh; }
  .scrub-after { clip-path: none; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scrub { height: auto; }
  .scrub-sticky { position: relative; height: min(78svh, 36rem); }
  .scrub-after { clip-path: inset(0 0 0 50%); opacity: 1; }
}

.bleed-band {
  position: relative;
  min-height: min(88svh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f0f4f8;
}
.bleed-band .hero-media {
  position: absolute;
  inset: -8%;
  z-index: 0;
}
.bleed-band .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bleed-band .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.08) 0%, rgba(5, 10, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.55) 0%, transparent 60%);
}
.bleed-band .hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}
.bleed-band .display-sm,
.bleed-band h2 {
  color: #fff;
  max-width: 16ch;
}
.bleed-band .lead {
  color: #d4dce6;
  max-width: 36rem;
}
.bleed-band .eyebrow {
  color: #9bb4cc;
}

.svc-split { display: grid; gap: 2rem; }
.svc-index { display: grid; gap: 0; }
.svc-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.8rem 1.2rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(240, 244, 248, 0.12);
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
.svc-row:last-child { border-bottom: 1px solid rgba(240, 244, 248, 0.12); }
.svc-row .num {
  font-family: "Syne", sans-serif;
  font-style: italic;
  color: #9bb4cc;
  font-size: 1.05rem;
}
.svc-row h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.svc-row h3 a { color: inherit; }
.svc-row p {
  display: none;
  margin: 0.35rem 0 0;
  color: rgba(240, 244, 248, 0.58);
  font-size: 0.95rem;
  max-width: 36rem;
}
.svc-row .go {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.5);
  align-self: center;
}
.svc-row .price-inline {
  display: block;
  margin-top: 0.2rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: #d4dce6;
  font-size: 0.95rem;
}
.svc-row:hover,
.svc-row.is-on { color: #fff; }
.svc-row:hover .go,
.svc-row.is-on .go { color: #9bb4cc; }
.svc-stage { display: none; }

@media (min-width: 880px) {
  .svc-split {
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
  .svc-stage {
    display: block;
    position: sticky;
    top: calc(var(--header-offset) + 1.2rem);
    height: min(68vh, 34rem);
    overflow: hidden;
    background: #152a4a;
  }
  .svc-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.18, 1), opacity 0.55s ease;
  }
  .svc-stage:hover img { transform: scale(1.1); }
  .svc-row p { display: block; }
}

.chapter {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f0f4f8;
}
#chapter-exterior,
#chapter-reset { z-index: 1; }
#chapter-interior,
#chapter-maintain { z-index: 2; }
#chapter-full,
#chapter-member { z-index: 3; }
.chapter-media {
  position: absolute;
  inset: -8%;
}
.chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: film-ken 34s ease-in-out infinite alternate;
}
.chapter-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.18) 0%, rgba(5, 10, 18, 0.22) 40%, rgba(5, 10, 18, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.62) 0%, rgba(5, 10, 18, 0.08) 70%);
}
.chapter-copy {
  position: relative;
  z-index: 2;
  width: min(48rem, calc(100% - 2 * clamp(1.1rem, 4vw, 2.4rem)));
  margin: 0 auto 0 0;
  padding: 0 0 3.2rem clamp(1.1rem, 4vw, 4rem);
}
.chapter .num {
  font-family: "Syne", sans-serif;
  font-style: italic;
  color: #9bb4cc;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.chapter h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem;
}
.chapter .price-line {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin: 0 0 0.8rem;
}
.chapter .size-list {
  display: grid;
  gap: 0.3rem;
  margin: 1rem 0 1.4rem;
  max-width: 22rem;
  font-size: 0.92rem;
  color: #d4dce6;
}
.chapter .size-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(240, 244, 248, 0.12);
  padding: 0.35rem 0;
}
.chapter .size-list strong { color: #f0f4f8; }

.chapter-copy > p:not(.num):not(.price-line) {
  color: #d4dce6;
  max-width: 38rem;
}

.chapter .check-list {
  display: grid;
  gap: 0.2rem;
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
  max-width: 26rem;
  font-size: 0.95rem;
  color: #d4dce6;
}
.chapter .check-list li {
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(240, 244, 248, 0.12);
}

.chapter-rail { display: none; }
@media (min-width: 1100px) {
  .chapter-rail {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: fixed;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
  }
  .chapter-rail a {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #a8b4c4;
    text-indent: -999px;
    overflow: hidden;
    opacity: 0.45;
  }
  .chapter-rail a.is-on {
    opacity: 1;
    background: #9bb4cc;
    border-color: #9bb4cc;
  }
}

.btn[data-magnetic] { will-change: transform; }

.section,
.section-tight {
  position: relative;
  z-index: 20;
}

/* Homepage-only motion: fade/rise, chrome glow, package ease-in */
.page-home .hero .reveal {
  transform: translateY(36px);
  transition-duration: 0.95s;
}

.page-home .display-hero {
  max-width: 14em;
}

.page-home .hero-media-home .hero-still,
.page-home .hero-media-home .hero-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

@media (min-width: 900px) {
  .page-home .hero-media-home .hero-still,
  .page-home .hero-media-home .hero-loop {
    object-position: center right;
  }
}

.page-home .hero-media-home .hero-still {
  z-index: 0;
  transform: none;
  animation: none;
}

.page-home .hero-media-home .hero-loop {
  z-index: 1;
  display: block;
  opacity: 1;
  visibility: visible;
  background: transparent;
}

.page-home .hero-media-home .hero-overlay {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(5, 10, 18, 0.9) 0%, rgba(5, 10, 18, 0.42) 38%, rgba(5, 10, 18, 0.16) 72%, rgba(5, 10, 18, 0.1) 100%),
    linear-gradient(to right, rgba(5, 10, 18, 0.72) 0%, rgba(5, 10, 18, 0.28) 48%, rgba(5, 10, 18, 0.08) 100%);
}

.page-home .slogan-line {
  isolation: isolate;
  margin: 10px 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.85rem, 6.2vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 16em;
  background-image: linear-gradient(
    168deg,
    #ffffff 0%,
    #f8fafc 8%,
    #d8dee6 16%,
    #ffffff 24%,
    #e4e8ee 32%,
    #b4bcc6 42%,
    #f2f4f7 50%,
    #8b95a2 62%,
    #4a515a 76%,
    #1a1d22 90%,
    #0d0f12 100%
  );
  background-size: 140% 180%;
  background-position: 20% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45))
    drop-shadow(0 2px 0 #111318)
    drop-shadow(1px 3px 0 #0a0c10)
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
  animation: chrome-sheen 7.5s ease-in-out infinite;
}

@keyframes chrome-sheen {
  0%, 100% { background-position: 15% 0%; }
  50% { background-position: 80% 100%; }
}

.page-home .hero .lead {
  max-width: 38em;
  color: rgba(236, 244, 252, 0.9);
}

.page-home .btn-glow {
  animation: chrome-glow 3.2s ease-in-out infinite;
}

@keyframes chrome-glow {
  0%, 100% {
    box-shadow: 0 4px 22px rgba(10, 22, 40, 0.4), 0 0 0 0 rgba(155, 180, 204, 0);
  }
  50% {
    box-shadow: 0 8px 28px rgba(155, 180, 204, 0.28), 0 0 22px rgba(155, 180, 204, 0.16);
  }
}

.page-home .svc-row.reveal {
  transform: translate3d(0, 22px, 0);
  transition:
    color 0.3s,
    opacity 0.85s cubic-bezier(0.22, 0.61, 0.18, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.page-home .svc-row.reveal.visible {
  transform: none;
}

.page-home .scrub-after {
  transition: opacity 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .btn-glow,
  .page-home .slogan-line { animation: none; }
  .page-home .hero .reveal,
  .page-home .svc-row.reveal {
    transform: none;
    transition: none;
  }
}

/* Homepage-only color lift: brighter A1 blue on wordmark and labels. Still dark. */
.page-home .promo-bar {
  background: linear-gradient(90deg, #050a12 0%, #0b1c32 38%, #18456d 50%, #0b1c32 62%, #050a12 100%);
  border-bottom-color: rgba(142, 212, 255, 0.32);
}
.page-home .promo-bar,
.page-home .promo-bar a,
.page-home .promo-bar strong {
  color: #b6e4ff;
}
.page-home .promo-bar a { color: #8ed4ff; }
.page-home .promo-bar .promo-dot {
  background: #8ed4ff;
  box-shadow: 0 0 12px rgba(142, 212, 255, 0.65);
}
.page-home .nav-brand-text,
.page-home .site-header.on-dark .nav-brand-text {
  color: #b6e4ff;
}
.page-home .nav-brand-text span,
.page-home .site-header.on-dark .nav-brand-text span {
  color: #8ed4ff;
}
.page-home .hero-brand,
.page-home .hero .eyebrow,
.page-home .hero-meta a,
.page-home .process-step a {
  color: #8ed4ff;
}
.page-home .hero-brand {
  color: #b6e4ff;
}
.page-home .hero .eyebrow::before { background: #8ed4ff; }
.page-home .hero-meta a:hover,
.page-home .process-step a:hover {
  color: #b6e4ff;
}
.page-home .process-step a {
  font-weight: 600;
}

/* Services page: linger on each chapter. No stacked snap-cards. */
html:has(body.page-services) {
  scroll-snap-type: none;
}

.page-services .chapter {
  position: relative;
  top: auto;
  min-height: 128svh;
  z-index: 1;
  padding-bottom: 28svh;
}

.page-services #chapter-exterior,
.page-services #chapter-interior,
.page-services #chapter-full {
  z-index: 1;
}

.page-services .chapter-media {
  position: absolute;
  inset: 0;
}

.page-services .chapter-copy {
  position: sticky;
  bottom: 2.6rem;
  padding-bottom: 2.4rem;
}

.page-services [data-rise] {
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.18, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-services .reveal {
  transform: translateY(32px);
  transition-duration: 0.95s;
}

.page-services .chapter-media img {
  animation-duration: 48s;
}

.page-services #chapter-interior .chapter-media img {
  object-position: center 68%;
}

.page-services #chapter-full .chapter-media img {
  object-position: center 42%;
}

.page-services .card {
  transition:
    transform 0.6s cubic-bezier(0.22, 0.61, 0.18, 1),
    box-shadow 0.6s ease,
    border-color 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .page-services .chapter {
    min-height: auto;
    padding-bottom: 0;
  }
  .page-services .chapter-copy {
    position: relative;
    bottom: auto;
  }
  .page-services .chapter-media img {
    animation: none;
  }
  .page-services [data-rise],
  .page-services .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
