/* JAL-01: Base reset keeps the template dependency-free and resistant to horizontal overflow. */
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  --header-height: 72px;
  --veil-opacity: 1;
  --hero-transition-duration: 1600ms;
  --jal-warm: #c89a61;
  --jal-blinds-bg: #163b4d;
  color-scheme: light;
  --bg: #f7f1e8;
  --text: #182d37;
  --muted: #63737a;
  --line: rgba(24, 45, 55, 0.16);
  --panel: #fffaf1;
  --panel-strong: #e1edf3;
  --brand: #164a64;
  --accent: #d88b4a;
  --accent-contrast: #fffaf1;
  --warm: #ecd3b2;
  --veil-bg: #33281f;
  --shadow: 0 24px 70px rgba(29, 45, 50, 0.16);
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  text-size-adjust: 100%;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f1e8;
  --text: #182d37;
  --muted: #63737a;
  --line: rgba(24, 45, 55, 0.16);
  --panel: #fffaf1;
  --panel-strong: #e1edf3;
  --brand: #164a64;
  --accent: #d88b4a;
  --accent-contrast: #fffaf1;
  --warm: #ecd3b2;
  --veil-bg: #33281f;
  --shadow: 0 24px 70px rgba(29, 45, 50, 0.16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #091821;
  --text: #eef8fb;
  --muted: #b4c7cf;
  --line: rgba(238, 248, 251, 0.16);
  --panel: #102532;
  --panel-strong: #163548;
  --brand: #8fc5dc;
  --accent: #e3a25e;
  --accent-contrast: #12100d;
  --warm: #49301f;
  --veil-bg: #1c1510;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
}

html.has-open-modal,
html.has-open-modal body {
  overflow: hidden;
}

/* JAL-05: The below-hero surface stays anchored to the page and fades through the sampled hero-floor brown. */
.page-reveal {
  position: relative;
  isolation: isolate;
}

html.js .page-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: var(--veil-opacity);
  background: var(--veil-bg);
  transition: opacity 180ms ease-out;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 0.9rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* JAL-02: Header chrome responds to scroll state and menu open state from script.js. */
.site-header {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 70;
  padding-inline: clamp(12px, 2.25vw, 28px);
  pointer-events: none;
}

.nav-shell {
  width: 100%;
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.45rem;
  pointer-events: auto;
  color: #c4cbd0;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html.is-scrolled .nav-shell,
.nav-shell:has(.site-menu[open]) {
  color: var(--text);
  background: rgba(255, 250, 241, 0.84);
  border-color: var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

html[data-theme="dark"].is-scrolled .nav-shell,
html[data-theme="dark"] .nav-shell:has(.site-menu[open]) {
  background: rgba(16, 37, 50, 0.84);
}

.brand {
  width: clamp(98px, 8.5vw, 128px);
  height: 54px;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
  padding: 0.1rem 0;
  font-weight: 830;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.32));
}

html.is-scrolled .brand {
  background: transparent;
}

.js .nav-links,
.js .site-menu-list {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 420ms ease, transform 420ms ease;
}

html.js.hero-copy-visible .nav-links,
html.js.hero-copy-visible .site-menu-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a,
.site-menu-list a {
  border-radius: 6px;
  color: currentColor;
  opacity: 0.84;
  padding: 0.58rem 0.72rem;
  font-weight: 720;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active,
.site-menu-list a:hover,
.site-menu-list a:focus-visible,
.site-menu-list a.is-active {
  opacity: 1;
  background: rgba(216, 139, 74, 0.16);
}

.theme-toggle,
.site-menu summary {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 250, 241, 0.35);
  border-radius: 50%;
  background: rgba(9, 24, 33, 0.24);
  color: currentColor;
  cursor: pointer;
}

.theme-toggle {
  border-color: transparent;
  background: transparent;
}

html.is-scrolled .theme-toggle,
html.is-scrolled .site-menu summary {
  border-color: var(--line);
  background: var(--panel);
}

html.is-scrolled .theme-toggle {
  border-color: transparent;
  background: transparent;
}

.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  overflow: hidden;
}

.theme-toggle-symbol {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.2, .85, .18, 1);
}

.theme-toggle-symbol.sun {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -8px 0 -5px currentColor, 0 8px 0 -5px currentColor, 8px 0 0 -5px currentColor, -8px 0 0 -5px currentColor;
}

.theme-toggle-symbol.moon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset -5px 0 0 currentColor;
  opacity: 0;
  transform: translateY(18px);
}

html[data-theme="dark"] .theme-toggle-symbol.sun {
  opacity: 0;
  transform: translateY(18px);
}

html[data-theme="dark"] .theme-toggle-symbol.moon {
  opacity: 1;
  transform: translateY(0);
}

.site-menu {
  position: relative;
  display: none;
}

.site-menu summary {
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.site-menu-list {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(78vw, 250px);
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0.45rem;
  box-shadow: var(--shadow);
}

/* JAL-05: Hero keeps the window centered and swaps day/night images through html[data-theme]. */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #183445;
  padding: 118px clamp(18px, 5vw, 42px) 72px clamp(18px, 2.5vw, 32px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.8) 22%, rgba(0, 0, 0, 0.24) 43%, rgba(0, 0, 0, 0) 60%);
  opacity: 1;
  transition: opacity var(--hero-transition-duration) ease-in-out;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(1, 10, 18, 0.97) 0%, rgba(1, 10, 18, 0.82) 22%, rgba(1, 10, 18, 0.26) 43%, rgba(1, 10, 18, 0) 60%);
  opacity: 0;
  transition: opacity var(--hero-transition-duration) ease-in-out;
}

html[data-theme="dark"] .hero::before {
  opacity: 0;
}

html[data-theme="dark"] .hero::after {
  opacity: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #183445;
}

.hero-image::before,
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: 45% center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: opacity;
  transition: opacity var(--hero-transition-duration) ease-in-out;
}

.hero-image::before {
  background-image: url("assets/hero-day-1600.b690997b52.webp");
  opacity: 1;
}

.hero-image::after {
  background-image: url("assets/hero-night-1600.76ef21349f.webp");
  opacity: 0;
  filter: saturate(1.04) brightness(1);
}

html[data-theme="dark"] .hero-image::before {
  opacity: 0;
}

html[data-theme="dark"] .hero-image::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .hero-image::before {
    background-image: url("assets/hero-day-960.854bf5bb77.webp");
  }

  .hero-image::after {
    background-image: url("assets/hero-night-960.d98b1d260d.webp");
  }
}

.hero-inner {
  width: 100%;
  margin: 0 auto;
  color: #fffaf1;
}

.hero-content {
  max-width: 820px;
}

.js .hero-content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(.2, .8, .2, 1);
}

html.js.hero-copy-visible .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 1.25rem;
  color: #f7f1e8;
  font-size: 0.94rem;
  font-weight: 460;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.35rem;
  color: #fffaf1;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 4.35rem;
  font-weight: 430;
  line-height: 0.96;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.24);
}

h1 > span {
  display: block;
}

h1 > span:first-child {
  white-space: nowrap;
}

.title-accent {
  display: inline;
  color: #d9a064;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 2.5rem;
  line-height: 1.06;
}

h3 {
  margin-bottom: 0.42rem;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 1.75rem;
  color: rgba(255, 250, 241, 0.94);
  font-size: 1.2rem;
  font-weight: 360;
  line-height: 1.45;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-actions {
  display: flex;
}

.hero-actions .button {
  min-width: min(100%, 272px);
  min-height: 58px;
  border-radius: 5px;
  padding: 1.05rem 1.55rem;
  font-weight: 620;
  letter-spacing: 0.035em;
}

.hero-actions .button.primary {
  background: #c89a61;
  color: #12100d;
}

.action-row.two-up {
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.78rem 0.8rem;
  font-weight: 830;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.button.secondary {
  border-color: rgba(255, 250, 241, 0.52);
  color: #fffaf1;
  background: rgba(255, 250, 241, 0.09);
}

.section-estimate .button.secondary {
  border-color: rgba(255, 250, 241, 0.36);
}

/* JAL-08/JAL-09/JAL-10/JAL-11: Full-width bands extend side colors to the viewport edges. */
.section {
  background: var(--section-bg, var(--bg));
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-about {
  --section-bg: #fff7ef;
  color: #0d2230;
}

.section-comfort {
  --section-bg: var(--panel-strong);
}

.section-process {
  --section-bg: var(--panel);
}

.section-transformations {
  --section-bg: var(--bg);
}

.section-reviews {
  --section-bg: var(--panel);
}

.section-estimate {
  --section-bg: var(--brand);
  color: #fffaf1;
}

html[data-theme="dark"] .section-estimate {
  color: #091821;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 86px clamp(18px, 5vw, 42px);
}

.section-about .section-inner {
  width: 100%;
  padding: clamp(54px, 7vw, 86px) clamp(20px, 2.8vw, 54px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading > p,
.comfort-layout > div > p,
.reviews-layout .section-heading > p,
.estimate-layout > div > p {
  color: var(--muted);
}

.section-about .eyebrow,
.section-process .eyebrow,
.section-transformations .eyebrow,
.section-reviews .eyebrow,
.comfort-copy .eyebrow {
  color: var(--brand);
}

.section-reviews .section-heading > .eyebrow {
  color: var(--brand);
}

.section-estimate .eyebrow,
.section-estimate .estimate-layout > div > p {
  color: rgba(255, 250, 241, 0.78);
}

html[data-theme="dark"] .section-estimate .eyebrow,
html[data-theme="dark"] .section-estimate .estimate-layout > div > p {
  color: rgba(9, 24, 33, 0.76);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.98fr) minmax(680px, 1.02fr);
  gap: clamp(2.2rem, 5.2vw, 5.8rem);
  align-items: stretch;
}

.about-feature {
  min-height: clamp(430px, 28vw, 540px);
  display: grid;
  align-content: space-between;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 249, 240, 0.94) 0%, rgba(255, 249, 240, 0.8) 38%, rgba(255, 249, 240, 0.18) 72%),
    url("assets/mountains-960.d7d6f4ff1f.webp") center / cover;
  padding: clamp(1.35rem, 3vw, 2.1rem);
  box-shadow: 0 18px 52px rgba(20, 49, 66, 0.14);
}

.about-feature h2 {
  max-width: 680px;
  margin-bottom: 1.1rem;
  color: #0d2230;
  font-size: clamp(2.3rem, 4vw, 3.35rem);
  line-height: 1.08;
}

.about-feature p:not(.eyebrow) {
  max-width: 680px;
  color: #000000;
  font-size: 1.06rem;
  line-height: 1.7;
}

.partnership-logos {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: center;
  margin-top: 2rem;
}

.partnership-logos img {
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  object-position: center;
}

.partnership-logos span {
  width: 1px;
  height: 68px;
  background: var(--jal-warm);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.review-card,
.estimate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(20, 49, 66, 0.08);
}

.about-card {
  min-height: 390px;
  display: grid;
  grid-template-rows: 132px auto 1fr;
  justify-items: center;
  align-content: start;
  gap: 0.62rem;
  padding: clamp(2.2rem, 4vw, 3.2rem) clamp(1.1rem, 2vw, 1.65rem) clamp(1.1rem, 2vw, 1.65rem);
  text-align: center;
}

.about-card + .about-card {
  border-left: 1px solid rgba(13, 34, 48, 0.14);
}

.about-icon {
  width: 102px;
  height: 102px;
  align-self: end;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.review-card span,
.process-list span {
  color: var(--jal-warm);
  font-weight: 900;
}

.about-card p,
.comfort-list span,
.review-card p,
.process-list p {
  color: var(--muted);
}

.section-about .about-card h3 {
  color: #0d2230;
  font-size: 1.35rem;
}

.section-about .about-card h3::after {
  content: "";
  width: 38px;
  height: 2px;
  display: block;
  margin: 1.05rem auto 0.25rem;
  background: var(--jal-warm);
}

.section-about .about-card p {
  max-width: 230px;
  color: rgba(13, 34, 48, 0.7);
  font-size: 1.02rem;
  line-height: 1.7;
}

.estimate-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px);
  gap: 1.4rem;
  align-items: start;
}

.section-comfort .section-inner {
  width: min(1420px, 100%);
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(72px, 8vw, 104px);
}

.comfort-layout {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4.2rem);
}

.comfort-copy {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.comfort-copy .eyebrow {
  color: var(--brand);
}

.comfort-copy h2 {
  max-width: 1120px;
  margin-inline: auto;
  font-size: clamp(2.35rem, 4.3vw, 4.15rem);
  line-height: 1.06;
}

.comfort-accent {
  color: var(--jal-warm);
}

.comfort-copy h2::after {
  content: "";
  width: 72px;
  height: 4px;
  display: block;
  margin: clamp(1.1rem, 2vw, 1.55rem) auto clamp(1.25rem, 2.2vw, 1.8rem);
  border-radius: 999px;
  background: var(--jal-warm);
}

.comfort-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.6;
}

.comfort-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto;
  gap: 0;
}

.comfort-list article {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 0 clamp(1.3rem, 3vw, 2.4rem);
  text-align: left;
}

.comfort-list article + article {
  border-left: 1px solid rgba(24, 45, 55, 0.16);
}

.comfort-list strong {
  color: var(--text);
  font-size: clamp(1.24rem, 1.8vw, 1.58rem);
  line-height: 1.18;
}

.comfort-list span {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.62;
}

html[data-theme="dark"] .comfort-list article + article {
  border-left-color: rgba(238, 248, 251, 0.16);
}

.process-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}

.section-transformations .section-inner {
  width: 100%;
  padding: clamp(72px, 7vw, 104px) clamp(20px, 2.8vw, 54px);
}

.transformations-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.45fr) minmax(0, 1fr);
  gap: clamp(2.2rem, 5.2vw, 5.8rem);
  align-items: center;
}

.transformations-copy h2 {
  max-width: 560px;
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  line-height: 1.06;
}

.transformations-copy h2::after {
  content: "";
  width: 54px;
  height: 3px;
  display: block;
  margin: 1.45rem 0 1.7rem;
  border-radius: 999px;
  background: var(--jal-warm);
}

.transformations-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
}

.transformation-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 520px;
  margin-top: clamp(2rem, 4vw, 3.1rem);
}

.transformation-benefits article {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.55rem;
  padding: 0 clamp(0.65rem, 1.5vw, 1rem);
  text-align: center;
}

.transformation-benefits article + article {
  border-left: 1px solid var(--line);
}

.transformation-benefits img {
  width: clamp(58px, 5vw, 76px);
  height: clamp(58px, 5vw, 76px);
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  object-position: center;
}

.transformation-benefits span {
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 650;
  line-height: 1.35;
}

.before-after-showcase {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.before-after-stage {
  width: 100%;
  display: grid;
  aspect-ratio: 1896 / 830;
}

.before-after-view {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.before-after-view.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.before-after-slider,
.before-after-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(20, 49, 66, 0.14);
}

.before-after-slider {
  --before-after-split: 50%;
  height: 100%;
  aspect-ratio: 1896 / 830;
  margin: 0;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.before-after-slider:focus-within {
  outline: 3px solid rgba(200, 154, 97, 0.62);
  outline-offset: 4px;
}

.before-after-layer,
.before-after-crop img {
  display: block;
  height: 100%;
  object-fit: cover;
}

.before-after-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.before-layer {
  clip-path: polygon(0 0, var(--before-after-split) 0, var(--before-after-split) 100%, 0 100%);
}

.before-after-image {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-layer .before-after-image {
  left: 0;
}

.after-layer .before-after-image {
  left: 0;
  right: 0;
}

.before-after-badge {
  position: absolute;
  z-index: 2;
  top: clamp(0.75rem, 1.5vw, 1.2rem);
  left: clamp(0.75rem, 1.5vw, 1.2rem);
  border-radius: 6px;
  color: #fffaf1;
  padding: 0.46rem 0.82rem;
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.before-badge {
  background: rgba(24, 45, 55, 0.8);
}

.after-badge {
  background: var(--jal-warm);
}

.before-after-slider .after-badge {
  right: clamp(0.75rem, 1.5vw, 1.2rem);
  left: auto;
}

.before-after-divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--before-after-split);
  width: 2px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(42px, 4vw, 58px);
  height: clamp(42px, 4vw, 58px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffaf1;
  color: #0d2230;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}

.before-after-handle::before {
  content: "< >";
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 900;
  letter-spacing: -0.14em;
}

.before-after-pair {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.before-after-card {
  height: 100%;
  margin: 0;
}

.before-after-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.before-after-slider.is-drag-ready .before-after-range {
  pointer-events: none;
}

.before-after-slider.is-dragging .before-after-handle {
  transform: translate(-50%, -50%) scale(1.06);
}

.before-after-crop {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.before-after-crop img {
  width: 100%;
}

.before-after-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.before-after-controls [data-before-after-dot] {
  position: relative;
  width: 48px;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 45, 55, 0.22);
  cursor: pointer;
  padding: 0;
}

.before-after-controls [data-before-after-dot]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--jal-warm);
  transform: scaleX(0);
  transform-origin: left center;
}

.before-after-controls [data-before-after-dot].is-active::before {
  animation: beforeAfterProgress 5600ms linear forwards;
}

.before-after-controls.is-paused [data-before-after-dot].is-active::before {
  animation-play-state: paused;
}

html[data-theme="dark"] .before-after-controls [data-before-after-dot] {
  background: rgba(238, 248, 251, 0.2);
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid currentColor;
  color: var(--brand);
  font-weight: 760;
}

html[data-theme="dark"] .text-link {
  color: var(--brand);
}

.review-rotator {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.review-card {
  grid-area: 1 / 1;
  width: min(100%, 560px);
  display: none;
  align-content: start;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.review-card small {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 760;
}

.review-card.is-active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: reviewFade 360ms ease;
}

.review-controls {
  grid-area: 2 / 1;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
}

.review-controls [data-review-dot] {
  position: relative;
  width: 42px;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 45, 55, 0.22);
  cursor: pointer;
  padding: 0;
}

.review-controls [data-review-dot]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--jal-warm);
  transform: scaleX(0);
  transform-origin: left center;
}

.review-controls [data-review-dot].is-active::before {
  animation: reviewProgress 5200ms linear forwards;
}

html[data-theme="dark"] .review-controls [data-review-dot] {
  background: rgba(238, 248, 251, 0.2);
}

.review-controls.is-paused [data-review-dot].is-active::before {
  animation-play-state: paused;
}

@keyframes reviewFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reviewProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes beforeAfterProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1240px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .transformations-layout {
    grid-template-columns: 1fr;
  }

  .transformations-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .transformations-copy h2,
  .transformations-copy > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .transformation-benefits {
    margin-right: auto;
    margin-left: auto;
  }

  .transformations-copy h2::after {
    margin-right: auto;
    margin-left: auto;
  }
}

.estimate-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.12);
  border-color: rgba(255, 250, 241, 0.28);
}

.estimate-contact-row {
  align-items: center;
}

.estimate-card .connect-button {
  width: auto;
  justify-self: stretch;
}

.estimate-card > a,
.estimate-contact-row > a {
  border-radius: 6px;
  color: #fffaf1;
  padding: 0.45rem;
  font-weight: 830;
}

html[data-theme="dark"] .estimate-card > a,
html[data-theme="dark"] .estimate-contact-row > a {
  color: #091821;
}

/* JAL-15: Bottom connect sheet opens from script.js and mirrors the standalone /links/ actions. */
.connect-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.connect-drawer[hidden] {
  display: none;
}

.connect-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 33, 0.48);
  opacity: 0;
  transition: opacity 240ms ease;
}

.connect-panel {
  --drawer-drag-y: 0px;
  position: relative;
  width: min(100% - 1.5rem, 520px);
  max-height: min(92svh, 720px);
  display: grid;
  gap: 1.1rem;
  justify-self: center;
  overflow: auto;
  border: 1px solid rgba(255, 250, 241, 0.72);
  border-radius: 24px 24px 0 0;
  background: #fffaf1;
  color: #0d2230;
  padding: 1rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.24);
  transform: translateY(calc(100% + var(--drawer-drag-y)));
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.connect-drawer.is-open {
  pointer-events: auto;
}

.connect-drawer.is-open .connect-backdrop {
  opacity: 1;
}

.connect-drawer.is-open .connect-panel {
  transform: translateY(var(--drawer-drag-y));
  pointer-events: auto;
}

.connect-drawer.is-dragging .connect-panel {
  transition: none;
}

.connect-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 34, 48, 0.16);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.92);
  color: #164a64;
  cursor: pointer;
}

.connect-close span,
.connect-close span::after {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.connect-close span {
  transform: rotate(45deg);
}

.connect-close span::after {
  content: "";
  transform: rotate(90deg);
}

.connect-drag-handle {
  width: 42px;
  height: 5px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(13, 34, 48, 0.22);
}

.connect-profile {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding-top: 0.35rem;
  text-align: center;
}

.connect-logo {
  width: clamp(142px, 42vw, 190px);
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-drag: none;
}

.connect-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.connect-profile h2 {
  margin-bottom: 0;
  color: #164a64;
  font-size: 2.15rem;
}

.connect-profile p {
  max-width: 320px;
  margin-bottom: 0;
  color: #5f7179;
}

.connect-links {
  display: grid;
  gap: 0.7rem;
}

.connect-link {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 34, 48, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  color: #0d2230;
  padding: 0.78rem 1rem;
  font-weight: 830;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.connect-link:hover,
.connect-link:focus-visible {
  border-color: rgba(13, 34, 48, 0.26);
  background: #164a64;
  color: #fffaf1;
  transform: translateY(-2px);
}

.connect-link.primary {
  background: #164a64;
  color: #fffaf1;
}

.connect-link.primary:hover,
.connect-link.primary:focus-visible {
  background: #c89a61;
  color: #12100d;
}

.connect-page-link {
  justify-self: center;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: #164a64;
  font-weight: 760;
}

.blinds-page {
  min-height: 100svh;
  background: var(--jal-blinds-bg);
  color: #fff;
}

.blinds-page .nav-shell,
html[data-theme="dark"] .blinds-page .nav-shell {
  color: #fff;
}

.blinds-page .nav-links,
.blinds-page .site-menu-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

html.is-scrolled .blinds-page .nav-shell,
.blinds-page .nav-shell:has(.site-menu[open]),
html[data-theme="dark"].is-scrolled .blinds-page .nav-shell,
html[data-theme="dark"] .blinds-page .nav-shell:has(.site-menu[open]) {
  background: rgba(22, 59, 77, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

.blinds-page .site-menu-list {
  background: var(--jal-blinds-bg);
  color: #fff;
}

.blinds-page .site-menu::before {
  background: rgba(255, 255, 255, 0.42);
}

.blinds-main,
.blinds-coming-soon {
  min-height: 100svh;
}

.blinds-coming-soon {
  display: grid;
  place-items: center;
  padding: 118px clamp(18px, 5vw, 42px) 64px;
  text-align: center;
}

.blinds-coming-soon h1 {
  max-width: min(960px, 100%);
  margin: 0;
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 8vw, 6.5rem);
  font-weight: 820;
  line-height: 1;
  text-shadow: none;
}

.blinds-coming-soon h1 span {
  display: block;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  gap: 0.3rem;
  background: var(--brand);
  color: rgba(255, 250, 241, 0.72);
  padding: 1.2rem clamp(18px, 5vw, 42px) 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-credit {
  color: #E1192D;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-credit:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

html[data-theme="dark"] .site-footer {
  color: rgba(9, 24, 33, 0.72);
}

/* JAL-06: Scroll animations are applied after script.js marks sections and stagger groups in view. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js .reveal .section-heading,
.js .reveal .about-feature,
.js .reveal .comfort-layout > div:first-child,
.js .reveal .transformations-copy,
.js .reveal .before-after-showcase,
.js .reveal .reviews-layout > div:first-child,
.js .reveal .review-rotator,
.js .reveal .estimate-layout > div:first-child,
.js .reveal .estimate-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.js .stagger > *,
.js .reveal .comfort-list article,
.js .reveal .process-list li {
  opacity: 0;
  transform: translateY(26px) scale(.98);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
}

.js .reveal.in-view,
.js .stagger.in-view {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal.in-view .section-heading,
.js .reveal.in-view .about-feature,
.js .reveal.in-view .comfort-layout > div:first-child,
.js .reveal.in-view .transformations-copy,
.js .reveal.in-view .before-after-showcase,
.js .reveal.in-view .reviews-layout > div:first-child,
.js .reveal.in-view .review-rotator,
.js .reveal.in-view .estimate-layout > div:first-child,
.js .reveal.in-view .estimate-card,
.js .stagger.in-view > *,
.js .reveal.in-view .comfort-list article,
.js .reveal.in-view .process-list li {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal.in-view .estimate-card {
  transition-delay: 140ms;
}

.reveal.in-view .before-after-showcase {
  transition-delay: 120ms;
}

.stagger.in-view > *:nth-child(2) {
  transition-delay: 80ms;
}

.stagger.in-view > *:nth-child(3) {
  transition-delay: 160ms;
}

.reveal.in-view .comfort-list article:nth-child(1),
.reveal.in-view .process-list li:nth-child(1) {
  transition-delay: 80ms;
}

.reveal.in-view .comfort-list article:nth-child(2),
.reveal.in-view .process-list li:nth-child(2) {
  transition-delay: 160ms;
}

.reveal.in-view .comfort-list article:nth-child(3),
.reveal.in-view .process-list li:nth-child(3) {
  transition-delay: 240ms;
}

.reveal.in-view .process-list li:nth-child(4) {
  transition-delay: 320ms;
}

.reveal.in-view .process-list li:nth-child(5) {
  transition-delay: 400ms;
}

.reveal.in-view .process-list li:nth-child(6) {
  transition-delay: 480ms;
}

@media (max-width: 860px) {
  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .nav-links {
    display: none;
  }

  .site-menu {
    display: block;
    margin-left: 0.12rem;
    padding-left: 0.62rem;
  }

  .site-menu::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 1px;
    background: rgba(255, 250, 241, 0.42);
  }

  html.is-scrolled .site-menu::before,
  .nav-shell:has(.site-menu[open]) .site-menu::before {
    background: var(--line);
  }

  .site-menu summary,
  html.is-scrolled .site-menu summary,
  .nav-shell:has(.site-menu[open]) .site-menu summary {
    border-color: transparent;
    background: transparent;
  }

  .brand {
    margin-right: auto;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.78) 30%, rgba(0, 0, 0, 0.2) 62%, rgba(0, 0, 0, 0) 82%);
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(1, 10, 18, 0.97) 0%, rgba(1, 10, 18, 0.8) 30%, rgba(1, 10, 18, 0.22) 62%, rgba(1, 10, 18, 0) 82%);
  }

  .about-layout,
  .about-grid,
  .comfort-layout,
  .reviews-layout,
  .estimate-layout {
    grid-template-columns: 1fr;
  }

  .comfort-list {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .before-after-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comfort-list article {
    padding: 1.25rem 0;
    text-align: center;
  }

  .comfort-list article + article {
    border-top: 1px solid rgba(24, 45, 55, 0.16);
    border-left: 0;
  }

  html[data-theme="dark"] .comfort-list article + article {
    border-top-color: rgba(238, 248, 251, 0.16);
    border-left: 0;
  }

  .partnership-logos {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  html {
    --header-height: 78px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand {
    width: 102px;
    height: 54px;
    white-space: normal;
    line-height: 1.1;
  }

  .hero {
    min-height: 100svh;
    padding-top: 118px;
    padding-bottom: 54px;
  }

  .hero-image::before,
  .hero-image::after {
    background-position: 56% center;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .action-row.two-up {
    width: 100%;
    gap: 0.5rem;
  }

  .partnership-logos {
    grid-template-columns: 1fr;
  }

  .partnership-logos span {
    display: none;
  }

  .about-feature {
    min-height: 560px;
  }

  .about-card {
    min-height: auto;
    padding-block: 2rem;
  }

  .about-card + .about-card {
    border-top: 1px solid rgba(13, 34, 48, 0.14);
    border-left: 0;
  }

  .review-card {
    min-height: 286px;
  }

  .connect-panel {
    width: 100%;
    border-radius: 22px 22px 0 0;
  }

  .button {
    min-height: 44px;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  .section-inner {
    padding-block: 66px;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.05rem;
  }
}

@media (max-width: 350px) {
  h1 {
    font-size: 1.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-content,
  .reveal,
  .reveal *,
  .stagger > * {
    opacity: 1;
    transform: none;
  }
}
