/* ============================================================
   AquaLayer™ — home.css  (Home template layer)
   Sales Deck composition: cover · philosophy · journey · oxidation · packages · correction · horizon · menu · closing
   ============================================================ */

/* ---------- COVER HERO (Sales Deck p1) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 28px) var(--gutter) clamp(72px, 12vh, 120px);
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg picture,
.hero__bg img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 45%;
}
.hero__video {
  display: block;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/ceramic-hull-beading-640.jpg') center / cover no-repeat;
  }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,8,16,.15) 0%, rgba(0,8,16,.55) 55%, rgba(0,8,16,.82) 100%),
    linear-gradient(180deg, rgba(0,8,16,.5) 0%, transparent 38%, rgba(0,8,16,.75) 100%);
  pointer-events: none;
}
.hero__center {
  position: relative;
  z-index: 2;
  width: min(100%, 56rem);
  min-height: min(72svh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero-lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pearl);
  margin-bottom: 0;
}
.hero-brand__logo {
  width: min(72vw, 360px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero .hero-title {
  font-family: var(--font-tech);
  font-weight: 200;
  font-size: clamp(.95rem, 0.5rem + 2.2vw, 1.85rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: none;
  width: 100%;
  margin: 0 0 var(--s4);
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,240,224,.32);
  text-stroke: 1px rgba(240,240,224,.32);
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px black) {
  .hero .hero-title { color: rgba(240,240,224,.28); }
}
.hero__footer {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(56px, 10vh, 88px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-cta__btn {
  border-color: rgba(240,240,224,.28);
  color: rgba(240,240,224,.72);
  letter-spacing: .16em;
  font-size: .72rem;
  padding: 10px 18px;
}
.hero-cta__btn:hover { border-color: rgba(240,240,224,.65); color: var(--pearl); }
.hero__meta {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-family: var(--font-tech);
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(240,240,224,.45);
  pointer-events: none;
}

.hero__gloss {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(108deg, transparent 42%, rgba(168,176,180,.14) 50%, transparent 58%);
  mix-blend-mode: screen;
}
.settling .hero__gloss { animation: gloss-sweep .85s var(--ease) .65s both; }

.hero__cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-tech); font-size: .58rem; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(240,240,224,.4);
}
.hero__cue span.bar {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(240,240,224,.5), transparent);
}

/* Settle */
.settling .hero-lockup,
.settling .hero-title,
.settling .hero-cta__btn,
.settling .hero__meta { opacity: 0; transform: translateY(20px); }
.settling .hero__cue { opacity: 0; }
.settling .hero__bg img { transform: scale(1.06); }

.is-settled .hero__bg img {
  transition: transform 1.4s var(--ease) .2s;
  transform: none;
}
.is-settled .hero__meta { transition: opacity .7s var(--ease) .65s, transform .7s var(--ease) .65s; opacity: 1; transform: none; }
.is-settled .hero-lockup { transition: opacity .85s var(--ease) .9s, transform .85s var(--ease) .9s; opacity: 1; transform: none; }
.is-settled .hero-title  { transition: opacity .8s var(--ease) 1.15s, transform .8s var(--ease) 1.15s; opacity: 1; transform: none; }
.is-settled .hero-cta__btn { transition: opacity .7s var(--ease) 1.35s, transform .7s var(--ease) 1.35s; opacity: 1; transform: none; }
.is-settled .hero__cue   { transition: opacity 1s var(--ease) 1.65s; opacity: 1; }

/* ---------- JOURNEY (Sales Deck p3 · pearl) ---------- */
.journey { padding-block: var(--section-y); }
.journey .eyebrow { color: var(--tide); }
.journey h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--abyss);
}
.journey .btn--ghost {
  color: var(--abyss);
  border-color: rgba(0,16,32,.28);
}
.journey .btn--ghost:hover { border-color: rgba(0,16,32,.6); }
.journey .btn--ghost::before { background: var(--abyss); }
.journey .btn--ghost::after {
  background: linear-gradient(105deg, transparent 38%, rgba(0,16,32,.12) 50%, transparent 62%);
  mix-blend-mode: multiply;
}
.journey .deck-head h2 {
  letter-spacing: .08em;
}
.journey__grid {
  display: grid;
  gap: var(--s4);
  align-items: stretch;
}
@media (min-width: 800px) {
  .journey__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.2vw, 32px);
  }
}
.journey-step {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-width: 0;
  height: 100%;
}
.journey-step__panel {
  border: 1px solid rgba(0,16,32,.14);
  background: transparent;
  padding: clamp(20px, 2.4vw, 28px);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 800px) {
  .journey-step__panel { min-height: 11.5rem; }
}
.journey-step__phase {
  font-family: var(--font-tech);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tide);
  margin: 0 0 var(--s3);
  font-weight: 500;
}
.journey-step__body {
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.55;
  color: #2a343c;
  margin: 0;
  max-width: 28ch;
}
.band-pearl .journey-step__body {
  font-weight: 500;
}
.journey-step__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: rgba(0,16,32,.08);
  margin: 0;
  flex: 0 0 auto;
}
.journey-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.journey .flow-cta {
  margin-top: var(--s6);
  text-align: center;
}

/* soft rule + tighter stack between consecutive pearl bands on home */
.gallery-tease + .packages,
.packages + .correction {
  border-top: 1px solid rgba(0,16,32,.1);
  padding-top: clamp(36px, 2rem + 3vw, 64px);
}

/* Keep the oxidation thesis on one line when there’s room */
.oxidation .deck-head h2 {
  font-size: clamp(1.2rem, 0.8rem + 1.5vw, 1.9rem);
  letter-spacing: .05em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .oxidation .deck-head h2 {
    white-space: normal;
    font-size: clamp(1.15rem, 4.8vw, 1.4rem);
    letter-spacing: .03em;
  }
}

/* ---------- OXIDATION (Sales Deck p4) ---------- */
.ox-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0,16,32,.12);
  border-bottom: 1px solid rgba(0,16,32,.12);
}
@media (min-width: 800px) {
  .ox-grid { grid-template-columns: repeat(3, 1fr); }
}
.ox-level {
  padding: clamp(28px, 4vw, 40px) clamp(18px, 2.5vw, 28px);
  border-bottom: 1px solid rgba(0,16,32,.1);
}
@media (min-width: 800px) {
  .ox-level {
    border-bottom: 0;
    border-right: 1px solid rgba(0,16,32,.1);
  }
  .ox-level:last-child { border-right: 0; }
}
.ox-level__dots {
  display: flex;
  gap: 8px;
  margin-bottom: var(--s3);
}
.ox-level__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--tide);
  background: transparent;
}
.ox-level__dots span.is-on { background: var(--tide); }
.ox-level__label {
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: var(--s2);
}
.ox-level__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: var(--s3);
  line-height: 1.15;
}
.ox-level__body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: #2a343c;
  max-width: 32ch;
}

/* ---------- PACKAGES (Sales Deck p5–10) ---------- */
.pkg-deck {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 900px) {
  .pkg-deck { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}
.pkg-deck__item {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(0,16,32,.12);
  background: rgba(255,255,255,.22);
  min-width: 0;
}
.pkg-deck__meta {
  font-family: var(--font-tech);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tide);
}
.pkg-deck__name {
  font-family: var(--font-display);
  font-weight: 40 0;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem);
  letter-spacing: .02em;
  color: var(--abyss);
  line-height: 1.15;
}
.pkg-deck__lead {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: #2a343c;
}
.pkg-deck__ideal {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
  color: #3a444c;
  padding-top: var(--s2);
  border-top: 1px solid rgba(0,16,32,.1);
}
.pkg-deck__ideal span {
  display: block;
  font-family: var(--font-tech);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 6px;
}
.pkg-deck__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s2);
}
.pkg-deck__list li {
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,16,32,.7);
  padding-left: 14px;
  position: relative;
}
.pkg-deck__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tide);
}
.pkg-deck__link {
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,16,32,.55);
  text-decoration: none;
  margin-top: var(--s2);
}
.pkg-deck__link:hover { color: var(--abyss); }

/* ---------- CORRECTION (Sales Deck p11) ---------- */
.corr-list {
  max-width: 48rem;
  margin-inline: auto;
  border-top: 1px solid rgba(0,16,32,.12);
}
.corr-row {
  display: grid;
  gap: var(--s3);
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid rgba(0,16,32,.12);
}
@media (min-width: 720px) {
  .corr-row {
    grid-template-columns: 7.5rem 1fr;
    gap: var(--s5);
    align-items: start;
  }
}
.corr-row__lvl {
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,16,32,.45);
  padding-top: 6px;
}
.corr-row__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 0.95rem + .5vw, 1.25rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--abyss);
  margin-bottom: 8px;
}
.corr-row__body p {
  margin: 0;
  color: #2a343c;
}
.corr-row--final .corr-row__lvl,
.corr-row--final .corr-row__body h3 { color: var(--tide); }
.correction .flow-cta { text-align: center; }

/* ---------- SHORT VS LONG (Sales Deck p12 · dark) ---------- */
.horizon {
  background: var(--abyss);
  color: var(--pearl);
}
.hz-grid {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 700px) {
  .hz-grid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
}
@media (min-width: 1100px) {
  .hz-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
}
.hz-col {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-width: 0;
}
.hz-col__tag {
  font-family: var(--font-tech);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(240,240,224,.45);
  margin: 0;
}
.hz-col__span {
  font-family: var(--font-tech);
  font-weight: 500;
  font-size: clamp(.95rem, 0.8rem + .5vw, 1.15rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tide);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tide);
  width: fit-content;
}
.hz-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: var(--s2) 0 0;
  counter-reset: hz;
  flex: 1;
}
.hz-col__list li {
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,240,224,.82);
  counter-increment: hz;
}
.hz-col__list li::before {
  content: counter(hz) ". ";
  color: rgba(240,240,224,.4);
}
.hz-col__note {
  margin: var(--s4) 0 0;
  padding-left: 12px;
  border-left: 1px solid rgba(88,164,180,.55);
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(240,240,224,.62);
  max-width: 28ch;
}

/* ---------- PROTECTION MENU (Sales Deck p13) ---------- */
.menu-grid {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 800px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}
.menu-sys {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-width: 0;
}
.menu-sys__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--abyss);
  letter-spacing: .02em;
  margin: 0;
  padding-top: 14px;
  border-top: 1.5px solid var(--tide);
}
.menu-sys__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: menu;
  margin: 0;
}
.menu-sys__list li {
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2a343c;
  counter-increment: menu;
}
.menu-sys__list li::before {
  content: counter(menu) ". ";
  color: var(--tide);
}
.menu-sys__media {
  margin: var(--s2) 0 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0,16,32,.06);
}
.menu-sys__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-sys .pkg-deck__link { margin-top: auto; }

/* ---------- GALLERY TEASE ---------- */
.gallery-tease {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 68vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  overflow: hidden;
  color: var(--pearl);
}
.gallery-tease__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gallery-tease__bg picture,
.gallery-tease__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}
.gallery-tease__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,8,16,.78) 0%, rgba(0,8,16,.42) 52%, rgba(0,8,16,.2) 100%),
    linear-gradient(180deg, rgba(0,8,16,.25) 0%, rgba(0,8,16,.72) 100%);
  pointer-events: none;
}
.gallery-tease__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
}
.gallery-tease__copy .eyebrow {
  color: var(--tide);
  margin-bottom: var(--s3);
}
.gallery-tease__copy h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.65rem, 1.1rem + 2vw, 2.6rem);
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--pearl);
  margin: 0 0 var(--s3);
}
.gallery-tease__copy .lead {
  color: rgba(240,240,224,.78);
  margin: 0 0 var(--s5);
  max-width: 36ch;
}
.gallery-tease .btn--ghost {
  color: var(--pearl);
  border-color: rgba(240,240,224,.45);
}
.gallery-tease .btn--ghost:hover {
  border-color: var(--tide);
  color: var(--tide);
}

.js .gallery-tease__bg img {
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.gallery-tease.is-inview .gallery-tease__bg img,
.gallery-tease:has(.is-visible) .gallery-tease__bg img {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .gallery-tease__bg img { transform: none !important; transition: none !important; }
}

/* Home scroll motion — image ease when stagger parent is visible */
.js .menu-grid[data-reveal-stagger] .menu-sys__media img,
.js .journey__grid[data-reveal-stagger] .journey-step__media img {
  transform: scale(1.05);
  transition: transform 1.1s var(--ease);
}
.menu-grid.is-visible .menu-sys__media img,
.journey__grid.is-visible .journey-step__media img {
  transform: none;
  transition-duration: 1.6s;
}
@media (prefers-reduced-motion: reduce) {
  .js .menu-grid[data-reveal-stagger] .menu-sys__media img,
  .js .journey__grid[data-reveal-stagger] .journey-step__media img { transform: none !important; transition: none !important; }
}
