/* ============================================================
   MY BATHROOMS BY TPS — v2 "THE FLOOR"
   Architectural showroom site, NOT editorial bath magazine.

   DIRECTION
     A vertical zoned walkthrough of a 4,200 sq ft Calicut
     bath showroom. Deep-clay dark zones alternate with
     pearl-warm light zones — like physically walking through
     sanitaryware halls, faucet walls, wellness bays.

   PALETTE  (pulled from real bath showroom materials —
            NOT cream/ivory/brass-gold template stack)
     --clay        #221E1A  warm dark (showroom at evening)
     --clay-soft   #2D2925
     --pearl       #EFEAE0  warm light (NOT pure white)
     --pearl-dim   #E5DFD2
     --bone        #FAF6EE  brightest surface
     --copper      #B36844  burnished — distinctive
     --copper-deep #8C4F30
     --teal        #4A6E6B  terrazzo water-undertone
     --ink         #1A1816
     --ink-mid     #5C5751
     --ink-soft    #8A857B
     --line        #D9D2C3  hairline divider

   TYPE     Bricolage Grotesque (variable, GF) + Manrope (var, GF)
            + JetBrains Mono. NO italic serif accents.

   DENSITY  Generous on dark zones, dense-tactile on light.
============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --clay:        #221E1A;
  --clay-soft:   #2D2925;
  --clay-line:   #3A352E;
  --pearl:       #EFEAE0;
  --pearl-dim:   #E5DFD2;
  --bone:        #FAF6EE;
  --copper:      #B36844;
  --copper-deep: #8C4F30;
  --copper-soft: #E3B595;
  --teal:        #4A6E6B;
  --ink:         #1A1816;
  --ink-mid:     #5C5751;
  --ink-soft:    #8A857B;
  --line:        #D9D2C3;
  --line-warm:   #C9C0AC;

  --f-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --f-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 88px);
  --pad-y: clamp(96px, 14vw, 200px);

  --radius:    2px;        /* sharp, architectural */
  --radius-md: 6px;
  --radius-lg: 12px;

  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast:   .25s var(--ease);
  --t-med:    .5s  var(--ease);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01" on, "kern" on, "cv11" on;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
p { margin: 0; }

/* ---------- TYPE PRIMITIVES ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "wdth" 100, "opsz" 22;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.display-xxl { font-size: clamp(56px, 9.8vw, 156px); font-variation-settings: "wdth" 92, "opsz" 22; letter-spacing: -0.045em; line-height: 0.93; }
.display-xl  { font-size: clamp(44px, 7vw, 110px);  font-variation-settings: "wdth" 96, "opsz" 22; letter-spacing: -0.04em;  line-height: 0.95; }
.display-l   { font-size: clamp(36px, 5.2vw, 76px); letter-spacing: -0.028em; line-height: 1.0; }
.display-m   { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.022em; line-height: 1.05; }
.display-s   { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.015em; line-height: 1.15; }

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 58ch;
}
.lede-on-dark { color: rgba(239, 234, 224, 0.75); }

/* Zone label — replaces "kicker" badges */
.zone-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.zone-tag::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transform: translateY(-3px);
}
.zone-tag .num {
  color: var(--copper);
  font-weight: 500;
}
.zone-tag.on-dark { color: var(--ink-soft); }
.zone-tag.on-dark .num { color: var(--copper-soft); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 18px 28px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
}
.btn svg {
  width: 16px; height: 16px;
  transition: transform var(--t-fast);
}
.btn:hover svg { transform: translateX(5px); }

.btn--solid  {
  background: var(--ink);
  color: var(--pearl);
}
.btn--solid:hover {
  background: var(--copper);
  color: var(--bone);
}

.btn--copper {
  background: var(--copper);
  color: var(--bone);
}
.btn--copper:hover { background: var(--copper-deep); }

.btn--ghost  {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--pearl); }

.btn--on-dark.btn--solid {
  background: var(--pearl);
  color: var(--ink);
}
.btn--on-dark.btn--solid:hover {
  background: var(--copper);
  color: var(--bone);
}
.btn--on-dark.btn--ghost {
  color: var(--pearl);
  border-color: rgba(239, 234, 224, 0.4);
}
.btn--on-dark.btn--ghost:hover {
  background: var(--pearl);
  color: var(--ink);
  border-color: var(--pearl);
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.wrap-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  color: var(--pearl);
  transition: all var(--t-med);
}
/* By default nav is light on dark (over hero photo) */
.nav.is-scrolled,
.nav.always-solid {
  background: rgba(34, 30, 26, 0.85);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--clay-line);
  padding: 14px var(--pad-x);
}
/* Light-theme pages (sub-pages over pearl) */
.nav.theme-light {
  color: var(--ink);
}
.nav.theme-light.is-scrolled,
.nav.theme-light.always-solid {
  background: rgba(239, 234, 224, 0.88);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav__brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.nav__brand-mark svg { width: 100%; height: 100%; color: inherit; }
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.nav__brand-text .nb-1 {
  font-size: 16px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.nav__brand-text .nb-2 {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 4px;
}
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--copper-soft); }
.nav.theme-light .nav__links a:hover { color: var(--copper); }
.nav__links a.is-current::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--copper);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__phone {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: 0.85;
  transition: opacity var(--t-fast);
}
.nav__phone:hover { opacity: 1; color: var(--copper-soft); }
.nav.theme-light .nav__phone:hover { color: var(--copper); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--copper);
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.nav__cta:hover { background: var(--copper-deep); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: all var(--t-fast);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--clay);
  color: var(--pearl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mm-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--clay-line);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: -0.02em;
  color: var(--pearl);
}
.mm-link small {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--copper-soft);
  font-weight: 400;
}
.mm-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.mm-footer a { color: var(--copper-soft); }

/* ============================================================
   FOOTER (shared)
============================================================ */
.footer {
  background: var(--clay);
  color: var(--pearl);
  padding: clamp(64px, 8vw, 110px) var(--pad-x) 32px;
}
.footer__inner {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--clay-line);
}
.footer__lead h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.footer__lead p {
  font-size: 14px;
  color: rgba(239, 234, 224, 0.7);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 38ch;
}
.footer__lead .btn { padding: 16px 24px; font-size: 12px; }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: 10px;
}
.footer__col a, .footer__col span {
  font-size: 13.5px;
  color: rgba(239, 234, 224, 0.85);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--copper-soft); }
.footer__col span.small {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.footer__bottom {
  max-width: 1560px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(239, 234, 224, 0.5);
}
.footer__bottom .credit a {
  color: rgba(239, 234, 224, 0.7);
  transition: color var(--t-fast);
}
.footer__bottom .credit a:hover { color: var(--copper-soft); }

/* ============================================================
   REVEAL SYSTEM (JS-added pre-hide; CLAUDE.md hard rule)
============================================================ */
.is-pre-reveal { opacity: 0; transform: translateY(36px); }
.is-revealed   {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

/* ---- premium clip-path image reveal (curtain wipe up) ---- */
.is-pre-clip {
  clip-path: inset(0 0 100% 0);
}
.is-clipped {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-out);
}

/* ---- premium heading line-mask reveal ---- */
.mask-line { overflow: hidden; display: block; }
.mask-line > span { display: block; will-change: transform; }
.is-pre-mask .mask-line > span { transform: translateY(105%); }
.is-mask-in .mask-line > span {
  transform: translateY(0);
  transition: transform 1s var(--ease-out);
}
.is-mask-in .mask-line:nth-child(2) > span { transition-delay: .08s; }
.is-mask-in .mask-line:nth-child(3) > span { transition-delay: .16s; }
.is-mask-in .mask-line:nth-child(4) > span { transition-delay: .24s; }

/* ============================================================
   ZONE PROGRESS RAIL — fixed left, desktop only
   (distinctive "walk the floor" device — anti-template)
============================================================ */
.zone-rail {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.zone-rail.is-on { opacity: 1; }
.zone-rail__item {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  cursor: pointer;
  padding: 5px 0;
}
.zone-rail__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  opacity: 0.5;
  transition: opacity var(--t-fast);
  width: 18px;
}
.zone-rail__bar {
  width: 22px;
  height: 1.5px;
  background: #FFFFFF;
  opacity: 0.3;
  transition: width var(--t-fast), opacity var(--t-fast);
}
.zone-rail__label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.zone-rail__item:hover .zone-rail__label,
.zone-rail__item.is-active .zone-rail__label { opacity: 0.85; transform: translateX(0); }
.zone-rail__item.is-active .zone-rail__num { opacity: 1; }
.zone-rail__item.is-active .zone-rail__bar { width: 40px; opacity: 1; }

/* ---- custom cursor dot (desktop, fine pointer) ---- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot  { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; transition: transform .18s var(--ease); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.5); margin: -19px 0 0 -19px; transition: transform .35s var(--ease), width .25s, height .25s, border-color .25s; }
.cursor-ring.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: rgba(255,255,255,.9); }
.cursor-ring.is-view { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor-ring__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .12em;
  color: #fff; text-transform: uppercase; opacity: 0;
  transition: opacity .25s;
}
.cursor-ring.is-view .cursor-ring__label { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring, .zone-rail { display: none !important; }
}

/* ============================================================
   PAGE BAND — for sub-page headers (light-theme pages)
============================================================ */
.page-band {
  background: var(--pearl);
  padding: clamp(140px, 18vw, 220px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-band__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
}
.page-band__title {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 92, "opsz" 22;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-top: 24px;
}
.page-band__right {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.page-band__right p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-mid);
  line-height: 1.55;
  max-width: 50ch;
}

/* page-band variant — clay dark */
.page-band--dark {
  background: var(--clay);
  color: var(--pearl);
}
.page-band--dark .page-band__title { color: var(--pearl); }
.page-band--dark .page-band__right p { color: rgba(239, 234, 224, 0.75); }
.page-band--dark .page-band__right { border-bottom-color: var(--clay-line); }

/* ============================================================
   MEDIA QUERIES (shared)
============================================================ */
@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .page-band__inner { grid-template-columns: 1fr; gap: 32px; }
  .page-band__right { padding-bottom: 0; border: 0; }
}
@media (max-width: 480px) {
  .btn { padding: 16px 22px; font-size: 12px; gap: 10px; }
  .nav { padding: 16px var(--pad-x); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .is-pre-reveal { opacity: 1; transform: none; }
}
