/* ==========================================================================
   Himsuta Pools — stylesheet
   Palette is derived from the logo: glacier navy, meltwater teal, snow,
   and a single warm brass note taken from the sun glint on the logo water.
   ========================================================================== */

:root {
  --ink:        #0C2A46;   /* glacier navy — headings, footer, deep water */
  --ink-soft:   #163E63;
  --teal:       #12A2B8;   /* meltwater teal — primary accent */
  --teal-deep:  #0B7A8C;
  --brass:      #C08A3E;   /* warm glint — used sparingly, once per screen */
  --snow:       #FBFDFE;   /* page background */
  --glacier:    #E9F3F6;   /* panel background */
  --line:       #D3E2E8;
  --slate:      #56718A;   /* body text */
  --white:      #FFFFFF;

  --shell: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(12, 42, 70, .06), 0 6px 18px rgba(12, 42, 70, .06);
  --shadow-md: 0 2px 4px rgba(12, 42, 70, .06), 0 18px 44px rgba(12, 42, 70, .12);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-spec: "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; }

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

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--glacier { background: var(--glacier); }
.section--ink { background: var(--ink); color: #C3D8E6; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- eyebrow: a plant-room nameplate, used as the section marker ---- */
.eyebrow {
  font-family: var(--font-spec);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal);
}
.section--ink .eyebrow { color: #6FD3E4; }
.section--ink .eyebrow::before { background: #6FD3E4; }

.lede { font-size: 1.1rem; max-width: 62ch; }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn--onink { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--onink:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #17833F; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- header -------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #A9C6DA;
  font-size: .82rem;
  font-family: var(--font-spec);
  letter-spacing: .03em;
}
.topbar .shell { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 253, 254, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; }
.brand__tag { font-family: var(--font-spec); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .93rem; text-decoration: none;
}
.nav a:hover { background: var(--glacier); text-decoration: none; }
.nav a.is-active { background: var(--ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative; background: transparent; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 600;
  font-size: .9rem; color: var(--ink); font-family: var(--font-body);
}
.cart-btn[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute; top: -7px; right: -7px;
  background: var(--brass); color: #fff;
  font-family: var(--font-spec); font-size: .68rem;
  min-width: 21px; height: 21px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px;
}

.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- hero — the signature: a live waterline over deep water --------- */
.hero {
  position: relative;
  background: linear-gradient(175deg, #0C2A46 0%, #0F3A5C 45%, #0B6B7E 100%);
  color: #DCEAF2;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  /* superseded by the hero video — see MODERN LAYER at the end of this file */
  background-size: cover; background-position: center;
  opacity: .30;
  z-index: -2;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(9,29,49,.94) 12%, rgba(9,29,49,.62) 58%, rgba(9,60,80,.35) 100%);
}
.hero .shell { padding-top: 108px; padding-bottom: 132px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: #6FD3E4; }
.hero__lede { color: #C6DCEA; font-size: 1.16rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.waterline { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.waterline svg { width: 100%; height: 90px; display: block; }
.waterline .wave-a { animation: drift 14s linear infinite; }
.waterline .wave-b { animation: drift 22s linear infinite reverse; opacity: .55; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero__strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.15);
  background: rgba(6,24,41,.55);
}
.hero__strip .shell {
  padding-top: 18px; padding-bottom: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  font-family: var(--font-spec); font-size: .78rem; letter-spacing: .05em;
  color: #9EC2D6; text-transform: uppercase;
}
.hero__strip b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }

/* ---------- cards --------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card--flat { box-shadow: none; }

.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--teal); transform: rotate(45deg);
}

/* ---------- product cards ------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  font-family: var(--font-body); font-size: .87rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product__thumb {
  aspect-ratio: 4 / 3; background: var(--glacier);
  display: grid; place-items: center; text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--teal-deep); font-family: var(--font-spec); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 16px;
  background-image: radial-gradient(circle at 30% 25%, rgba(18,162,184,.14), transparent 60%);
}
.product__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product__brand {
  font-family: var(--font-spec); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 6px;
}
.product__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.06rem; line-height: 1.25; margin-bottom: 8px; }
.product__desc { font-size: .92rem; margin-bottom: 14px; }
.product__specs { list-style: none; margin: 0 0 16px; padding: 0; font-family: var(--font-spec); font-size: .76rem; color: var(--ink-soft); }
.product__specs li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.product__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.product__price b { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.product__price span { font-size: .78rem; color: var(--slate); }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.note {
  font-size: .85rem; background: var(--glacier); border-left: 3px solid var(--teal);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- catalog downloads --------------------------------------------- */
.catalog {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none;
}
.catalog:hover { border-color: var(--teal); text-decoration: none; }
.catalog__icon {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--glacier); color: var(--teal-deep);
  display: grid; place-items: center; font-family: var(--font-spec); font-size: .66rem; font-weight: 700;
}
.catalog__t { font-weight: 600; color: var(--ink); display: block; font-size: .95rem; }
.catalog__s { font-size: .8rem; color: var(--slate); }

/* ---------- gallery ------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--glacier); position: relative; }
.gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; color: #fff; font-family: var(--font-spec);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(9,29,49,.85));
}
.video-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.video-row video { width: 100%; border-radius: var(--radius); background: #000; }

/* ---------- accordion ----------------------------------------------------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 54px 20px 22px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.acc__btn::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-spec); font-size: 1.3rem; color: var(--teal);
}
.acc__item.is-open .acc__btn::after { content: "\2212"; }
.acc__panel { display: none; padding: 0 22px 22px; font-size: .96rem; }
.acc__item.is-open .acc__panel { display: block; }

/* ---------- blog ---------------------------------------------------------- */
.post { display: flex; flex-direction: column; overflow: hidden; }
.post__cover { height: 190px; object-fit: cover; width: 100%; }
.post__meta { font-family: var(--font-spec); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__body h3 { margin: 8px 0 10px; }

/* ---------- forms --------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; margin-top: 12px; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 600; color: var(--teal-deep); }

/* ---------- cart drawer --------------------------------------------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; z-index: 90; box-shadow: -20px 0 60px rgba(12,42,70,.22);
  transform: translateX(102%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer__head h3 { margin: 0; }
.drawer__close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); line-height: 1; }
.drawer__items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer__foot { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--glacier); }
.drawer__empty { color: var(--slate); font-size: .95rem; padding: 30px 0; text-align: center; }
.line-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line-item__n { flex: 1; }
.line-item__n b { display: block; color: var(--ink); font-size: .93rem; font-family: var(--font-display); }
.line-item__n span { font-size: .8rem; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink); }
.qty output { font-family: var(--font-spec); font-size: .85rem; min-width: 20px; text-align: center; }
.line-item__rm { background: none; border: 0; color: #B44; cursor: pointer; font-size: .78rem; padding: 0; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; }
.overlay { position: fixed; inset: 0; background: rgba(12,42,70,.45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- footer -------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9EBDD1; padding: 64px 0 26px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #C8DEEB; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .93rem; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; font-family: var(--font-spec);
}
.footer-logo { height: 54px; margin-bottom: 14px; background: #fff; border-radius: 10px; padding: 6px 10px; }

/* ---------- legal --------------------------------------------------------- */
.legal { max-width: 80ch; }
.legal h3 { margin-top: 34px; }
.legal ol, .legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* ---------- floating whatsapp -------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  background: #1FA855; color: #fff; border-radius: 999px;
  padding: 13px 20px; font-weight: 700; font-size: .92rem;
  box-shadow: 0 10px 30px rgba(31,168,85,.4); text-decoration: none;
}
.wa-float:hover { text-decoration: none; background: #17833F; }

/* ---------- routing ------------------------------------------------------- */
.route { display: none; }
.route.is-visible { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__strip .shell { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px; gap: 2px; display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .site-header .shell { position: relative; flex-wrap: nowrap; }
  .brand__tag { display: none; }
  .topbar .shell { justify-content: center; text-align: center; font-size: .74rem; }
  .section { padding: 58px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .video-row { grid-template-columns: 1fr; }
  .hero .shell { padding-top: 66px; padding-bottom: 96px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { right: 12px; bottom: 12px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   ADDED — hero video, product imagery, sauna & AI Design Studio
   ========================================================================== */

/* ---------- hero video background ---------- */
.hero__video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* the still image now only acts as a tint layer over the video */
.hero__media {
  background-image: none;
  background: radial-gradient(120% 80% at 75% 15%, rgba(18,162,184,.28), transparent 60%);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__media {
    background-image: url("../video/hero-water-poster.jpg");
    background-size: cover; background-position: center; opacity: .34;
  }
}

/* ---------- product imagery ---------- */
.product__thumb { position: relative; padding: 0; overflow: hidden; }
.product__thumb img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 14px; background: #fff;
  transition: transform .35s ease;
}
.product:hover .product__thumb img { transform: scale(1.05); }
.product__thumb--fallback {
  display: grid; place-items: center; gap: 8px;
  background: var(--glacier);
  background-image: radial-gradient(circle at 30% 25%, rgba(18,162,184,.16), transparent 62%);
}
.product__thumb--fallback svg { width: 78px; height: 78px; opacity: .85; }
.product__thumb--fallback span {
  font-family: var(--font-spec); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-deep);
}

/* ==========================================================================
   AI DESIGN STUDIO
   ========================================================================== */
.studio { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 26px; }
.studio__panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px;
}
.studio__panel--out { background: linear-gradient(180deg,#fff, #F6FBFC); }
.studio__h {
  font-family: var(--font-spec); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-deep);
  margin: 26px 0 12px; font-weight: 600;
}
.studio__h:first-child { margin-top: 0; }
.studio__tiny { font-size: .8rem; color: var(--slate); margin: 10px 0 0; }

/* dropzone */
.dropzone {
  position: relative; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--glacier); min-height: 190px; cursor: pointer;
  display: grid; place-items: center; overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-drag {
  border-color: var(--teal); background: #DEF0F4; outline: none;
}
.dropzone__inner { text-align: center; padding: 26px 18px; }
.dropzone__inner b { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: 4px; }
.dropzone__icon { display: block; font-size: 1.8rem; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.dropzone__hint { font-size: .78rem; color: var(--slate); }
.dropzone img { width: 100%; max-height: 300px; object-fit: contain; background: #fff; }
.dropzone.has-file { border-style: solid; border-color: var(--teal); background: #fff; }

/* fields */
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span {
  font-family: var(--font-spec); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate);
}
.field input, .field select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .92rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,162,184,.16);
}

/* feature toggles */
.studio__toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle span {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .82rem; color: var(--slate); transition: all .16s ease;
}
.toggle input:checked + span {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(18,162,184,.3); }

/* viewer */
.studio__viewhead {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.studio__viewbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.viewer {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0C2A46 0%, #0B4A5E 100%);
  aspect-ratio: 4 / 3; min-height: 320px;
}
.viewer canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer__empty {
  position: absolute; inset: 0; display: grid; place-content: center;
  justify-items: center; gap: 6px; text-align: center; padding: 24px; color: #A9C9D8;
}
.viewer__empty span[aria-hidden] { font-size: 2rem; color: var(--teal); }
.viewer__empty b { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.viewer__empty span { font-size: .85rem; max-width: 34ch; }
.viewer__spin {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 14px; background: rgba(9,29,49,.82); color: #DCEAF2; font-size: .88rem;
}
.viewer__spin i {
  width: 34px; height: 34px; border-radius: 50%; display: block;
  border: 3px solid rgba(255,255,255,.22); border-top-color: var(--teal);
  animation: dsspin .8s linear infinite;
}
@keyframes dsspin { to { transform: rotate(360deg); } }

/* read-out */
.readout { list-style: none; margin: 0 0 16px; padding: 0; font-family: var(--font-spec); font-size: .8rem; }
.readout li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft);
}
.readout li span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.readout li.is-head {
  border-bottom: none; padding-top: 16px; color: var(--teal-deep);
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .studio__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MODERN LAYER  —  depth, glass, 3D and motion
   Loaded last so it overrides the base sheet without editing it.
   ========================================================================== */

:root {
  --grad-deep:  linear-gradient(135deg, #0C2A46 0%, #0F3A5C 40%, #0B6B7E 100%);
  --grad-teal:  linear-gradient(120deg, #12A2B8 0%, #3FC6DC 100%);
  --glass:      rgba(255,255,255,.72);
  --glass-line: rgba(255,255,255,.55);
  --shadow-lift: 0 2px 6px rgba(12,42,70,.05), 0 12px 28px rgba(12,42,70,.10), 0 32px 64px rgba(12,42,70,.09);
  --shadow-deep: 0 4px 10px rgba(12,42,70,.08), 0 24px 48px rgba(12,42,70,.16), 0 60px 100px rgba(12,42,70,.12);
}

/* ---------- logo: transparent PNG, correct optical size ---------- */
.brand img {
  height: 50px; width: auto;
  /* the mark is wider than it is tall — let it breathe instead of squashing */
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(12,42,70,.16));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.brand:hover img { transform: scale(1.06) rotate(-2deg); }
.site-footer .brand img,
.footer-brand img { height: 54px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
@media (max-width: 640px) { .brand img { height: 40px; } }

/* ---------- header: real glass ---------- */
.site-header {
  background: rgba(251,253,254,.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(211,226,232,.7);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-stuck {
  background: rgba(251,253,254,.92);
  box-shadow: 0 6px 30px rgba(12,42,70,.10);
}
.nav a { position: relative; transition: color .2s ease, background .25s ease; }
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px;
  border-radius: 2px; background: var(--grad-teal);
  transform: translateX(-50%); transition: width .28s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover::after { width: 42%; }
.nav a.is-active { background: var(--grad-deep); color: #fff; box-shadow: 0 6px 16px rgba(12,42,70,.25); }
.nav a.is-active::after { width: 0; }

/* ---------- smooth page changes (no colour "jump" between routes) ---------- */
.route.is-visible { animation: routeIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes routeIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- hero: video fades in over the poster ---------- */
.hero__video { opacity: 0; transition: opacity 1.1s ease; }
.hero__video.is-ready { opacity: .42; }
.hero {
  background: var(--grad-deep);
  background-image:
    radial-gradient(90% 60% at 80% 0%, rgba(63,198,220,.22), transparent 60%),
    var(--grad-deep);
}
.hero .shell { position: relative; z-index: 2; }
.hero h1 {
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
  animation: heroUp .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero__lede { animation: heroUp .9s .12s cubic-bezier(.2,.8,.2,1) both; }
.hero__cta  { animation: heroUp .9s .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes heroUp { from { opacity:0; transform: translate3d(0,26px,0);} to { opacity:1; transform:none; } }

/* ---------- buttons with depth ---------- */
.btn { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background .2s ease; }
.btn--primary {
  background: var(--grad-teal); border: none;
  box-shadow: 0 4px 14px rgba(18,162,184,.34), 0 10px 30px rgba(18,162,184,.20);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,162,184,.42), 0 18px 46px rgba(18,162,184,.28); }
.btn:active { transform: translateY(0) scale(.985); }

/* ---------- cards: 3D lift ---------- */
.card, .product, .catalog, .studio__panel {
  transform-style: preserve-3d;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .38s ease, border-color .3s ease;
  will-change: transform;
}
.card:hover, .catalog:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(18,162,184,.4);
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-deep); border-color: rgba(18,162,184,.45); }

/* tilt is applied by JS via CSS vars, so it degrades to a plain lift */
.tilt { transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px)); }

/* sheen sweep across product images */
.product__thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .75s ease;
}
.product:hover .product__thumb::after { transform: translateX(120%); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translate3d(0, 26px, 0); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

/* ---------- section depth ---------- */
.section--ink {
  background: var(--grad-deep);
  background-image:
    radial-gradient(70% 100% at 15% 0%, rgba(63,198,220,.20), transparent 60%),
    var(--grad-deep);
}
.section--glacier {
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(18,162,184,.10), transparent 60%),
    var(--glacier);
}
.hero__strip { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__strip b { background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- images get depth ---------- */
.section img[style*="border-radius"] {
  box-shadow: var(--shadow-lift) !important;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.section img[style*="border-radius"]:hover { transform: translateY(-5px) scale(1.012); box-shadow: var(--shadow-deep) !important; }

/* ---------- gallery ---------- */
.gallery-grid img, .grid img { border-radius: var(--radius); }

/* ---------- respect reduced motion everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

/* ==========================================================================
   HERO / HEADER MERGE
   The video was sitting under three separate darkening layers (42% opacity,
   a 94% scrim and a tint). Below, the video runs at full strength and only
   the text area is shaded — just enough to keep the headline readable.
   The header dissolves into the video at the top of the home page.
   ========================================================================== */

/* ---------- 1. let the video actually show ---------- */
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-ready { opacity: 1; }          /* was .42 */
.hero__media { display: none; }                /* the extra tint is gone */

/* A soft vignette instead of a flat wash: dark where the words are (left on
   desktop, bottom on mobile) and almost clear over the water on the right. */
.hero__scrim {
  background:
    linear-gradient(100deg,
      rgba(7,24,40,.86) 0%,
      rgba(7,24,40,.62) 32%,
      rgba(7,24,40,.22) 58%,
      rgba(7,24,40,.06) 78%,
      rgba(7,24,40,.14) 100%),
    linear-gradient(to bottom, rgba(7,24,40,.42) 0%, transparent 22%, transparent 68%, rgba(7,24,40,.34) 100%);
}
@media (max-width: 860px) {
  /* on a narrow screen the text sits over the whole frame, so shade bottom-up */
  .hero__scrim {
    background: linear-gradient(to bottom,
      rgba(7,24,40,.62) 0%, rgba(7,24,40,.30) 34%,
      rgba(7,24,40,.55) 72%, rgba(7,24,40,.86) 100%);
  }
}
/* keep the headline crisp now that there is less shading behind it */
.hero h1 { text-shadow: 0 2px 8px rgba(4,16,28,.55), 0 6px 40px rgba(4,16,28,.45); }
.hero__lede { text-shadow: 0 1px 10px rgba(4,16,28,.65); color: #D7E8F2; }

/* ---------- 2. header dissolves into the video ---------- */
:root { --topbar-h: 38px; }

/* pull the hero up so the video runs behind the bar and the header */
body.at-hero .topbar,
body.at-hero .site-header {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.at-hero .site-header { position: absolute; left: 0; right: 0; }
body.at-hero .topbar { position: absolute; left: 0; right: 0; z-index: 61; }

body.at-hero .brand__name { color: #fff; text-shadow: 0 2px 12px rgba(4,16,28,.6); }
body.at-hero .brand__tag  { color: #8FE0F0; }
body.at-hero .nav a       { color: #EAF4F9; text-shadow: 0 1px 8px rgba(4,16,28,.55); }
body.at-hero .nav a:hover { background: rgba(255,255,255,.14); }
body.at-hero .nav a.is-active {
  background: rgba(255,255,255,.16); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}
body.at-hero .cart-btn,
body.at-hero .nav-toggle {
  color: #fff; border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.at-hero .nav-toggle span { background: #fff; }
body.at-hero .brand img { filter: drop-shadow(0 3px 10px rgba(0,0,0,.45)); }

/* the hero starts at the very top of the page and pays back the space inside */
body.at-hero .hero { margin-top: calc(-1 * (var(--header-h, 74px) + var(--topbar-h))); }
body.at-hero .hero .shell { padding-top: calc(108px + var(--header-h, 74px) + var(--topbar-h)); }

/* once scrolled, everything returns to the solid glass header */
.site-header, .topbar { transition: background .35s ease, border-color .35s ease, box-shadow .35s ease; }
.site-header .shell, .topbar .shell,
.brand__name, .brand__tag, .nav a, .cart-btn { transition: color .35s ease, background .35s ease; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .topbar, .nav a, .brand__name { transition: none; }
}

/* ==========================================================================
   SWIMMING POOLS PAGE + MAP
   ========================================================================== */

/* stat strip */
.statcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.statcard b {
  display: block; font-family: var(--font-display); font-size: 1.18rem;
  color: var(--teal-deep); margin-bottom: 6px;
}
.statcard span { font-size: .88rem; color: var(--slate); line-height: 1.5; }

/* numbered process cards */
.stepcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.stepcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.stepcard b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-teal); color: #fff;
  font-family: var(--font-spec); font-size: .82rem; font-weight: 700;
  margin-bottom: 12px;
}
.stepcard h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.stepcard p { margin: 0; font-size: .87rem; color: var(--slate); line-height: 1.55; }

/* cost table */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.spec-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: .93rem; min-width: 520px;
}
.spec-table thead th {
  background: var(--grad-deep); color: #fff; text-align: left;
  font-family: var(--font-spec); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; padding: 13px 16px;
}
.spec-table td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.spec-table tbody tr:nth-child(even) { background: #FAFCFD; }
.spec-table tbody tr:hover { background: var(--glacier); }
.spec-table td:nth-child(2) { font-family: var(--font-spec); color: var(--teal-deep); font-weight: 600; white-space: nowrap; }

/* pool-page gallery images */
.route[data-route="/swimming-pools"] .grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- click-to-load map ---------- */
.map-embed {
  position: relative; margin-top: 14px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/3; background: var(--glacier);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed__btn {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  display: grid; place-content: center; justify-items: center; gap: 6px; padding: 20px;
  font: inherit; text-align: center; color: #EAF4F9;
  background:
    radial-gradient(circle at 50% 42%, rgba(63,198,220,.30), transparent 58%),
    var(--grad-deep);
  transition: filter .25s ease;
}
.map-embed__btn:hover { filter: brightness(1.14); }
.map-embed__pin { font-size: 1.5rem; color: #6FD3E4; }
.map-embed__btn b { font-family: var(--font-display); font-size: 1.06rem; color: #fff; }
.map-embed__btn span:last-child { font-size: .82rem; color: #A9C9D8; max-width: 30ch; }

@media (max-width: 640px) {
  .spec-table { font-size: .86rem; }
}

/* ==========================================================================
   HEADER LEGIBILITY OVER THE VIDEO
   White links vanished whenever a bright frame of water passed behind them.
   Two fixes, together: a guaranteed dark band behind the bar so contrast never
   depends on the video, and bright sea-blue link text that reads as a colour
   rather than as washed-out white.
   ========================================================================== */

/* 1. a soft dark band behind the topbar + header, only on the hero */
body.at-hero .site-header::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(-1 * var(--topbar-h, 38px));
  bottom: -38px;                       /* extend past the bar so it can fade */
  /* Holds ~0.80 opacity across the whole bar — measured to keep the sea-blue
     links at 7.3:1 contrast even against a pure-white frame of water — then
     fades out below the header so it never looks like a hard edge. */
  background: linear-gradient(to bottom,
    rgba(5,20,34,.84) 0%,
    rgba(5,20,34,.80) 46%,
    rgba(5,20,34,.78) 68%,
    rgba(5,20,34,.40) 86%,
    transparent 100%);
  pointer-events: none;
  z-index: -1;
}
body.at-hero .site-header { position: absolute; left: 0; right: 0; z-index: 60; }
body.at-hero .topbar { z-index: 62; }
body.at-hero .topbar .shell,
body.at-hero .site-header .shell { position: relative; z-index: 2; }

/* 2. sea-blue nav links */
body.at-hero .nav a {
  color: #7FE9FF;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(2,14,26,.85), 0 2px 14px rgba(2,14,26,.55);
}
body.at-hero .nav a:hover {
  color: #FFFFFF;
  background: rgba(18,162,184,.34);
  box-shadow: inset 0 0 0 1px rgba(127,233,255,.45);
}
body.at-hero .nav a::after { background: #7FE9FF; }
body.at-hero .nav a.is-active {
  color: #06222E;
  background: linear-gradient(120deg, #7FE9FF 0%, #3FC6DC 100%);
  box-shadow: 0 4px 16px rgba(63,198,220,.45);
  text-shadow: none;
}

/* brand + controls tuned to match */
body.at-hero .brand__name {
  color: #fff;
  text-shadow: 0 1px 3px rgba(2,14,26,.8), 0 2px 16px rgba(2,14,26,.6);
}
body.at-hero .brand__tag { color: #7FE9FF; text-shadow: 0 1px 4px rgba(2,14,26,.75); }
body.at-hero .topbar,
body.at-hero .topbar a { color: #CFEEF8; text-shadow: 0 1px 4px rgba(2,14,26,.8); }
body.at-hero .topbar a { color: #7FE9FF; font-weight: 600; }

body.at-hero .cart-btn,
body.at-hero .nav-toggle {
  color: #EAFBFF;
  border-color: rgba(127,233,255,.55);
  background: rgba(6,34,46,.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-shadow: 0 1px 3px rgba(2,14,26,.7);
}
body.at-hero .cart-btn:hover,
body.at-hero .nav-toggle:hover { background: rgba(18,162,184,.45); border-color: #7FE9FF; }
body.at-hero .nav-toggle span { background: #7FE9FF; }

/* The mobile drop-down panel must stay solid — it sits over page content,
   not over the video. Scoped to the breakpoint where that panel exists. */
@media (max-width: 760px) {
  body.at-hero .nav.is-open {
    background: rgba(6,26,40,.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom-color: rgba(127,233,255,.25);
    box-shadow: 0 18px 40px rgba(2,14,26,.5);
  }
  body.at-hero .nav.is-open a { color: #EAFBFF; text-shadow: none; }
  body.at-hero .nav.is-open a:hover { background: rgba(18,162,184,.4); }
  body.at-hero .nav.is-open a.is-active { color: #06222E; }
  /* shorter fade on mobile, where the bar is closer to the content */
  body.at-hero .site-header::before { bottom: -22px; }
}
