/* ==========================================================
   Hippo-Crates by Luxhmi Traders – styles
   ========================================================== */

:root {
  /* Palette from hippo-bcard.pdf (page 2): teal #0aacc6, mint #bbe2e2, charcoal #231f20.
     Deeper teals are derived from the same hue so text and buttons meet WCAG AA contrast. */
  --deep: #044c57;          /* headings, primary dark */
  --deep-2: #022a31;        /* darkest sections, footer, loader */
  --teal-ink: #077688;      /* buttons, links, labels (5.3:1 on white) */
  --teal-ink-dark: #055d6b; /* hover */
  --teal: #0aacc6;          /* brand teal: accents, icons, gradients */
  --mint: #bbe2e2;          /* brand mint: text and outlines on dark */
  --ice: #eef8f8;           /* tinted section background */
  --text: #231f20;
  --muted: #55686c;
  --line: #d2e7e8;
  --white: #ffffff;
  --whatsapp: #25d366;
  --error: #d64545;

  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(4, 76, 87, 0.10);
  --shadow-lg: 0 20px 50px rgba(4, 76, 87, 0.18);
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .3s var(--ease), background-color .3s, color .3s, box-shadow .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--primary { background: var(--teal-ink); color: var(--white); box-shadow: 0 4px 12px rgba(7,118,136,.2); }
.btn--primary:hover { background: var(--deep); box-shadow: 0 10px 22px rgba(4,76,87,.28); }
.btn--ghost { background: transparent; color: var(--teal-ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-ink); background: var(--ice); }
.btn--light { background: var(--white); color: var(--deep); }
.btn--light:hover { background: var(--ice); box-shadow: 0 10px 22px rgba(2,42,49,.22); }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 4px 12px rgba(37,211,102,.2); }
.btn--whatsapp:hover { background: #1eb957; box-shadow: 0 10px 22px rgba(30,185,87,.3); }

/* ---------- Header: transparent over the hero, floating glass pill once scrolled ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0;
  transition: transform .45s var(--ease), padding .35s var(--ease);
}
.header.is-scrolled { padding: 10px 0; }
.header.is-hidden { transform: translateY(-115%); }
.header__inner {
  width: min(1200px, calc(100% - 24px)); height: 64px; margin: 0 auto; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.header.is-scrolled .header__inner {
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border-color: rgba(4,76,87,.08); box-shadow: 0 12px 34px rgba(4,76,87,.14);
}
.header__logo { position: relative; z-index: 1; display: block; height: 46px; }
.header__logo img { height: 100%; width: auto; transition: opacity .4s; }
.header__logo .logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
.header.is-scrolled .logo--light { opacity: 0; }
.header.is-scrolled .logo--dark { opacity: 1; }

.nav { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__indicator {
  position: absolute; left: 0; top: 50%; width: 0; height: 38px; margin-top: -19px;
  border-radius: 999px; background: rgba(255,255,255,.14); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s, background .4s;
}
.header.is-scrolled .nav__indicator { background: var(--ice); }
.nav__link {
  position: relative; z-index: 1; padding: 9px 15px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: rgba(255,255,255,.86); transition: color .3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.header.is-scrolled .nav__link { color: var(--deep); }
.header.is-scrolled .nav__link.is-active { color: var(--teal-ink); }
.header:not(.is-scrolled) .roll__b { color: var(--mint); }
.nav__cta { margin-left: 10px; }
.header:not(.is-scrolled) .nav__cta { background: var(--white); color: var(--deep); box-shadow: none; }
.header:not(.is-scrolled) .nav__cta:hover { background: var(--ice); color: var(--deep); }

.nav-toggle {
  display: none; position: relative; z-index: 1; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  transition: background .3s;
}
.header.is-scrolled .nav-toggle { background: var(--ice); }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.header.is-scrolled .nav-toggle span { background: var(--deep); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 150px;
  color: var(--white); overflow: hidden;
  background: radial-gradient(120% 90% at 85% 5%, #066e7e 0%, var(--deep) 40%, var(--deep-2) 78%);
}

/* Drifting light, like sun through water */
/* Sunset jacuzzi photo under a teal gradient (darker on the left for the text) */
.hero__bg { position: absolute; inset: 0; background: url("../lifestyle-sunset.jpg") center / cover no-repeat; transform: scale(1.05); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(2,42,49,.94) 0%, rgba(4,76,87,.84) 45%, rgba(10,172,198,.5) 100%);
}
.hero__water { position: absolute; inset: -10%; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 18s ease-in-out infinite alternate; }
.blob--1 { width: 46vw; height: 46vw; left: -8vw; top: 12%; background: var(--teal); opacity: .22; }
.blob--2 { width: 34vw; height: 34vw; right: 4vw; top: 2%; background: var(--mint); opacity: .1; animation-duration: 22s; animation-delay: -6s; }
.blob--3 { width: 30vw; height: 30vw; left: 40%; bottom: -4%; background: var(--teal-ink); opacity: .35; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  0% { translate: 0 0; scale: 1; }
  50% { translate: 6vw -4vh; scale: 1.15; }
  100% { translate: -4vw 5vh; scale: .95; }
}

.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero__content { position: relative; }
.hero__title {
  font-family: var(--font-head); font-weight: 600; line-height: .95; letter-spacing: -.01em;
  font-size: clamp(3.4rem, 9.5vw, 7.4rem); margin: 0 0 .32em;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--mint); padding-right: .06em; }
.hero__text { max-width: 520px; margin: 0; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300; color: #d9f0f0; }
/* clip-path (not overflow) clips the rolling words without breaking baseline alignment */
.rotator { display: inline-grid; clip-path: inset(0 -0.3em); color: var(--mint); font-weight: 500; }
.rotator__word { grid-area: 1 / 1; transform: translateY(110%); }
.rotator__word.is-active { transform: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.hero__facts li { display: flex; align-items: baseline; gap: 10px; font-size: .85rem; color: #a7cfd1; }
.hero__facts strong { font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--white); }

/* Floating product collage (CSS `translate`/`rotate` so GSAP's transform can layer on top) */
.hero__visual { position: relative; height: clamp(320px, 54vh, 560px); }
.hero__card {
  position: absolute; margin: 0; overflow: hidden; border-radius: 24px;
  background: var(--deep); border: 1px solid rgba(187,226,226,.25);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  animation: bob 7s ease-in-out infinite alternate;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(2,42,49,.75); backdrop-filter: blur(6px);
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--mint);
}
.hero__card--main { width: 60%; height: 74%; left: 20%; top: 12%; z-index: 2; rotate: -3deg; }
.hero__card--back { width: 42%; height: 44%; right: 0; top: 0; z-index: 1; rotate: 7deg; animation-delay: -2.5s; }
.hero__card--small { width: 38%; height: 38%; left: 0; bottom: 2%; z-index: 3; rotate: -8deg; animation-delay: -5s; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -16px; } }

.hero__badge {
  position: absolute; right: 3%; bottom: 3%; z-index: 4; display: grid; place-items: center;
  width: clamp(100px, 11vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: var(--teal); box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.hero__badge text { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--deep-2); }
.hero__badge img { width: 44%; }
@keyframes spin { to { rotate: 360deg; } }

/* Flowing waves: three layers roll sideways at different speeds (middle one the other way) */
.hero__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 140px; z-index: 2; }
.wave { animation: waveFlow linear infinite; }
.wave--back { fill: rgba(255,255,255,.16); animation-duration: 26s; animation-delay: -9s; }
.wave--mid { fill: rgba(255,255,255,.34); animation-duration: 18s; animation-direction: reverse; animation-delay: -4s; }
.wave--front { fill: var(--white); animation-duration: 13s; }
@keyframes waveFlow { to { transform: translateX(-1440px); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--ice); }
.section--dark { background: linear-gradient(160deg, var(--deep-2), var(--deep) 60%, #066e7e); color: var(--white); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title {
  font-family: var(--font-head); font-weight: 600; color: var(--deep);
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.section__title--light { color: var(--white); }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section__lead--light { color: #bbe2e2; }

.eyebrow {
  margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow--light { color: var(--mint); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }

.about__visual { position: relative; width: 100%; max-width: 560px; margin: 0 auto; height: clamp(380px, 95vw, 600px); }
.about__img { position: absolute; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { inset: 0 14% 14% 0; }
.about__img--inset { right: 0; bottom: 0; width: 46%; height: 42%; border: 8px solid var(--white); border-radius: 26px; }
.about__badge {
  position: absolute; left: 6%; bottom: 6%; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 14px; border-radius: 18px; background: var(--deep-2); box-shadow: var(--shadow-lg);
}
.about__badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal); }
.about__badge-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about__badge strong { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; color: var(--white); }
.about__badge span { font-size: .8rem; color: var(--mint); }

.about__text strong { color: var(--deep); }
.about__lead { margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.6; color: var(--text); }

.pillars { list-style: none; padding: 0; margin: 36px 0 0; }
.pillar { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 18px 0; }
.pillar__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.pillar__num { grid-row: span 2; font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--teal); }
.pillar h3 { margin: 0; font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--deep); }
.pillar p { margin: 3px 0 0; font-size: .93rem; color: var(--muted); }

.about__contact {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius); background: var(--ice); border: 1px solid var(--line);
}
.about__contact strong { display: block; color: var(--deep); }
.about__contact span { font-size: .86rem; color: var(--muted); }

.contact__icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Featured product ---------- */
.featured {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: grid; grid-template-columns: 1fr;
}
.featured__gallery { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.featured__main {
  position: relative; display: block; border: 0; padding: 0; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--ice);
}
.featured__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured__main:hover img { transform: scale(1.04); }
.featured__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb {
  border: 2px solid transparent; border-radius: var(--radius-sm); padding: 0; background: var(--white);
  overflow: hidden; text-align: center; transition: border-color .2s;
}
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .7; transition: opacity .2s; }
.thumb span { display: block; padding: 6px 4px; font-size: .75rem; font-weight: 500; color: var(--muted); }
.thumb:hover img, .thumb.is-active img { opacity: 1; }
.thumb.is-active { border-color: var(--teal-ink); }
.thumb.is-active span { color: var(--teal-ink); }
.featured__body { padding: 8px 24px 28px; display: flex; flex-direction: column; }

.badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--deep); color: var(--white);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.product__tag { margin: 0 0 6px; color: var(--teal-ink); font-weight: 600; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
.product__title { font-family: var(--font-head); font-size: 2rem; color: var(--deep); font-weight: 600; }
.product__desc { color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; color: var(--deep); font-weight: 600; padding-right: 12px; }
.specs td { color: var(--muted); }
.product__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Full collection ---------- */
.collection { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.collection > .model-card { flex: 0 1 100%; }
.model-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.model-card[hidden] { display: none; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.model-card__media {
  border: 0; padding: 12px; background: #f3fafa; aspect-ratio: 4 / 3; width: 100%;
  display: grid; place-items: center; overflow: hidden;
}
.model-card__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.model-card:hover .model-card__media img { transform: scale(1.04); }
.model-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.model-card__meta {
  margin: 0 0 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.model-card__meta span { background: var(--ice); color: var(--teal-ink); font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .06em; }
.model-card__title { font-family: var(--font-head); font-size: 1.55rem; color: var(--deep); font-weight: 600; margin-bottom: 2px; }
.model-card__size { margin: 0 0 12px; font-size: .88rem; font-weight: 600; color: var(--teal-ink); }
.model-card__specs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.model-card__specs li { position: relative; padding-left: 16px; }
.model-card__specs li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.model-card .btn { margin-top: auto; align-self: flex-start; }
.collection__note { text-align: center; color: var(--muted); margin: 40px 0 0; }
.collection__note a { font-weight: 600; }

/* ---------- Gallery (horizontal track) ---------- */
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery__track {
  display: flex; gap: 16px; width: max-content;
  padding: 0 max(16px, calc((100vw - 1200px) / 2 + 16px)) 8px;
}
.gallery__item {
  position: relative; flex: 0 0 auto; border: 0; padding: 0; overflow: hidden;
  height: clamp(260px, 58vh, 520px); aspect-ratio: 4 / 5;
  border-radius: var(--radius); background: var(--ice); scroll-snap-align: center;
}
.gallery__item--wide { aspect-ratio: 3 / 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,42,49,.6), transparent 55%);
  opacity: .6; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__num {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--white);
}
.gallery__progress { height: 2px; background: var(--line); margin-top: 28px; border-radius: 2px; overflow: hidden; }
.gallery__progress span { display: block; height: 100%; background: var(--teal-ink); transform: scaleX(0); transform-origin: left; }
.gallery__hint { margin-top: 4px; font-weight: 500; color: var(--teal-ink); }
.gallery__hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ---------- Countries ---------- */
.countries {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.country {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-weight: 500; font-size: .95rem;
  transition: background .25s, transform .25s var(--ease);
}
.country:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.country__flag { width: 28px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); flex: none; }

/* ---------- Markets: country list + three.js globe ---------- */
.markets { position: relative; overflow: hidden; }
.markets__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.section__head--left { text-align: left; margin: 0 0 28px; max-width: 540px; }
.markets__grid .countries { grid-template-columns: repeat(2, 1fr); }
.country { cursor: default; outline: none; }
.country:focus-visible { box-shadow: 0 0 0 2px var(--mint); }
.country.is-active { background: rgba(10,172,198,.22); border-color: var(--teal); }

.globe { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; margin: 0 auto 40px; cursor: grab; user-select: none; -webkit-user-select: none; }
.globe:active { cursor: grabbing; }
/* Round fade instead of the canvas's square edges (visible when the globe zooms in) */
.globe canvas {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.globe.is-off { display: none; }
.globe__label {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; background: rgba(2,42,49,.82); border: 1px solid rgba(187,226,226,.35);
  color: var(--white); font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  transform: translate(-50%, -160%); opacity: 0; transition: opacity .25s;
}
.globe__label--hub { background: var(--teal); border-color: transparent; color: var(--deep-2); }
.globe__hint {
  position: absolute; left: 50%; top: calc(100% + 10px); margin: 0; transform: translateX(-50%); white-space: nowrap;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(187,226,226,.6);
}
@media (pointer: coarse) { .globe { cursor: default; } .globe__hint { display: none; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list div { display: flex; flex-direction: column; }
.contact__list strong { color: var(--deep); font-size: .95rem; }
.contact__list span, .contact__list a { color: var(--muted); word-break: break-word; }
.contact__list a:hover { color: var(--teal-ink); }
.contact__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--deep);
}
.contact__icon svg { width: 20px; height: 20px; }

.enquiry {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 20px;
}
.enquiry__title { font-family: var(--font-head); font-size: 2rem; color: var(--deep); font-weight: 600; margin-bottom: 4px; }
.enquiry__sub { margin: 0 0 24px; color: var(--muted); font-size: .88rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--deep); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfefe; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
/* Selects: custom chevron in the brand teal instead of the browser arrow */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23077688' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select:hover:not(:disabled) { border-color: #a9d3d6; }
.field select:disabled { cursor: not-allowed; color: var(--muted); background-color: #f1f6f6; opacity: .8; }
.field__hint { margin-top: 5px; font-size: .78rem; color: var(--teal-ink); }
.field__hint:empty { display: none; }
.enquiry__product {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px;
  padding: 10px 10px 10px 16px; border-radius: var(--radius-sm); background: var(--ice); border: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.enquiry__product[hidden] { display: none; }
.enquiry__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.enquiry__product strong { color: var(--deep); }
.enquiry__product button {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--white);
  font-size: 1.2rem; line-height: 1; color: var(--deep); transition: background .2s, color .2s;
}
.enquiry__product button:hover { background: var(--deep); color: var(--white); }
@media (max-width: 639px) {
  body .wa-float, body .to-top { transition: opacity .3s, visibility .3s, transform .3s; }
  .form-in-view .wa-float, .form-in-view .to-top.is-visible { opacity: 0; visibility: hidden; pointer-events: none; }
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 4px rgba(7,118,136,.12);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field__error { color: var(--error); font-size: .8rem; min-height: 0; margin-top: 4px; }
.field__error:empty { display: none; }
.enquiry__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.enquiry__actions .btn { flex: 1 1 200px; }

/* ---------- Footer ---------- */
.footer { background: var(--deep-2); color: #a7cfd1; padding: 64px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer__logo { width: 180px; margin-bottom: 16px; }
.footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #a7cfd1; }
.footer a:hover { color: var(--white); }
.footer strong { color: var(--white); }
/* copyright sits above the divider; the giant wordmark follows below it */
.footer__bottom { border-bottom: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-bottom: 20px; font-size: .82rem; text-align: center; }
.footer__bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- Back to top (sits above WhatsApp) ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 86px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); box-shadow: 0 8px 24px rgba(4,76,87,.22);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s, visibility .35s, transform .35s var(--ease), background .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--deep); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__track, .to-top__bar { fill: none; stroke-width: 2.5; }
.to-top__track { stroke: var(--line); }
.to-top__bar { stroke: var(--teal-ink); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.to-top__arrow {
  position: relative; width: 20px; height: 20px; fill: none; stroke: var(--deep);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s;
}
.to-top:hover .to-top__arrow { stroke: var(--white); }
.to-top:hover .to-top__bar { stroke: var(--mint); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2,42,49,.94);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px;
  animation: fadeIn .25s;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox__figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: #bbe2e2; margin-top: 14px; font-size: .92rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 140%);
  background: var(--deep); color: var(--white);
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-size: .92rem; max-width: calc(100% - 32px); text-align: center;
  visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeIn { from { opacity: 0; } }

/* ==========================================================
   Motion layer (driven by animations.js)
   ========================================================== */

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
/* Lenis does the smoothing; native smooth scroll would also break ScrollTrigger's measurements */
html.has-gsap { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Intro loader: only shown when JS + motion are on */
.loader { display: none; }
.js-anim .loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #066e7e, var(--deep-2) 70%);
}
.js-anim.is-loaded .loader { display: none; }
.loader__inner { width: min(260px, 70vw); text-align: center; }
.loader__logo { width: 100%; margin-bottom: 28px; }
.loader__bar { height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.loader__count { margin: 14px 0 0; color: var(--mint); font-size: .8rem; letter-spacing: .3em; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
  background: linear-gradient(90deg, var(--teal-ink), var(--teal));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* Cursor follower (desktop only) */
.cursor { display: none; }
.has-cursor .cursor {
  position: fixed; top: 0; left: 0; z-index: 400; display: grid; place-items: center;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid var(--teal-ink); pointer-events: none;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s;
}
.has-cursor .cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(7,118,136,.12); }
.has-cursor .cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--teal-ink); border-color: var(--teal-ink); }
.has-cursor .cursor.is-hidden { opacity: 0; }
.cursor__label { color: var(--white); font-size: .78rem; font-weight: 600; letter-spacing: .08em; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* Hero extras */
.hero__bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(187,226,226,.12) 60%, transparent 70%);
  border: 1px solid rgba(255,255,255,.25);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(18px, -50vh); }
  100% { transform: translate(-12px, -105vh); opacity: 0; }
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 150px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.75); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
}
.hero__mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 12px; position: relative; }
.hero__mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--white); animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* Split text */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-wi, .split-c { display: inline-block; will-change: transform; }

/* Marquee bands */
.marquee { overflow: hidden; padding: 28px 0; background: var(--white); border-block: 1px solid var(--line); }
.marquee--dark { background: var(--deep-2); border-color: rgba(255,255,255,.08); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track[data-marquee="-1"] { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span {
  font-family: var(--font-head); font-weight: 600; white-space: nowrap; line-height: 1;
  font-size: clamp(2.4rem, 7vw, 5.5rem); color: var(--deep);
}
.marquee span.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--teal-ink); }
.marquee i { font-style: normal; font-size: clamp(1.2rem, 3vw, 2.2rem); color: var(--teal); }
.marquee--dark span { color: var(--white); }
.marquee--dark span.is-outline { -webkit-text-stroke-color: var(--mint); }

/* While GSAP drives an element, CSS must not transition the same properties */
.has-gsap .reveal { opacity: 1; transform: none; }
.gs-anim { transition: none !important; }
.has-gsap .marquee__track { animation: none; }
.has-gsap .gallery--h { overflow: hidden; scroll-snap-type: none; }
.has-gsap .gallery--h .gallery__item img { transition: none; transform: scale(1.18); }
.has-gsap .model-card { transition: box-shadow .3s; }
.has-gsap .model-card:hover { transform: none; }

/* ---------- Heavier motion pass ---------- */


/* Nav links: label rolls up to a teal copy (markup added by animations.js) */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll__a, .roll__b { display: block; transition: transform .45s var(--ease); }
.roll__b { position: absolute; inset: 0; transform: translateY(100%); color: var(--teal-ink); }
.nav__link:hover .roll__a { transform: translateY(-100%); }
.nav__link:hover .roll__b { transform: translateY(0); }

/* Click ripple */
.ripple {
  position: fixed; z-index: 450; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid var(--teal); pointer-events: none;
  animation: ripple .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.ripple--late { border-color: var(--mint); animation-delay: .12s; opacity: 0; animation-name: ripple-late; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(6); opacity: 0; } }
@keyframes ripple-late { from { transform: scale(.2); opacity: .9; } to { transform: scale(9); opacity: 0; } }

/* Showcase: full-screen image (animations.js pins it and grows it from a small card) */
.showcase { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--white); }
.showcase__media { position: absolute; inset: 0; overflow: hidden; }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.showcase__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,42,49,.45), rgba(2,42,49,.82));
}
.showcase__text {
  position: relative; z-index: 1; height: 100%; padding: 0 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  color: var(--white);
}
.showcase__title {
  font-family: var(--font-head); font-weight: 600; line-height: 1.04;
  font-size: clamp(2.6rem, 7.5vw, 6.2rem); max-width: 13ch; margin: 0 0 .35em;
}
.showcase__cta { margin-top: 28px; }
.showcase__sub { max-width: 560px; margin: 0; color: #d9f0f0; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300; }

/* Giant footer wordmark */
.footer { overflow: hidden; }
.footer__mega {
  font-family: var(--font-head); font-weight: 700; line-height: 1; text-align: center; white-space: nowrap;
  font-size: clamp(3.2rem, 15vw, 15rem); color: rgba(187,226,226,.5);
  padding: 20px 0 .12em; user-select: none;
}
/* letters rise out of masks: leave room for the descenders of p/p so they aren't clipped */
.footer__mega .split-w { padding-bottom: .3em; margin-bottom: -.3em; }

/* ==========================================================
   Catalogue page (products.html)
   ========================================================== */

.btn[hidden] { display: none; }

/* Banner */
.page-hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--deep-2);
  padding: calc(var(--header-h) + 64px) 0 150px;
}
/* Wall of product photos: three tilted rows sliding in opposite directions */
.page-hero__wall {
  position: absolute; inset: -30% -15%; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  transform: rotate(-8deg);
}
.wall-row { display: flex; gap: 18px; width: max-content; animation: wallSlide 70s linear infinite; }
.wall-row:nth-child(2) { animation-direction: reverse; animation-duration: 85s; }
.wall-row:nth-child(3) { animation-duration: 60s; }
.wall-row img {
  flex: none; width: 230px; height: 170px; object-fit: cover; border-radius: 16px;
  background: #0a3d45; opacity: .9; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@keyframes wallSlide { to { transform: translateX(-50%); } }
.page-hero__content { position: relative; z-index: 2; }
.page-hero__title { font-family: var(--font-head); font-weight: 600; line-height: 1; font-size: clamp(3rem, 8vw, 6rem); margin: 0 0 .3em; }
.page-hero__lead { max-width: 600px; margin: 0; color: #d9f0f0; font-size: clamp(1rem, 1.8vw, 1.15rem); font-weight: 300; }
.page-hero__stats { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.page-hero__stats li { display: flex; align-items: baseline; gap: 10px; font-size: .85rem; color: #a7cfd1; }
.page-hero__stats strong { font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--white); }

/* Category tabs: the same glass pill + gliding indicator as the header nav */
.section.catalogue { padding: 8px 0 104px; }
.cat-nav {
  position: sticky; top: calc(var(--header-h) - 6px); z-index: 50; padding: 10px 0;
  transition: top .45s var(--ease);
}
.header.is-hidden ~ main .cat-nav { top: 4px; }
.cat-nav__pill {
  position: relative; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.95); border: 1px solid rgba(4,76,87,.08);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 8px 24px rgba(4,76,87,.08); transition: box-shadow .4s;
}
.cat-nav.is-stuck .cat-nav__pill { box-shadow: 0 14px 36px rgba(4,76,87,.16); }
.cat-nav::before {
  content: ""; position: absolute; inset: -12px 0 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(255,255,255,.96) 55%, rgba(255,255,255,0)); transition: opacity .3s;
}
.cat-nav.is-stuck::before { opacity: 1; }
/* soft fades on whichever edge has more tabs hidden */
.cat-nav__pill::before, .cat-nav__pill::after {
  content: ""; position: absolute; top: 6px; bottom: 6px; width: 40px; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.cat-nav__pill::before { left: 6px; border-radius: 999px 0 0 999px; background: linear-gradient(90deg, rgba(255,255,255,.95), transparent); }
.cat-nav__pill::after { right: 6px; border-radius: 0 999px 999px 0; background: linear-gradient(-90deg, rgba(255,255,255,.95), transparent); }
.cat-nav__pill.has-left::before, .cat-nav__pill.has-right::after { opacity: 1; }
.cat-tabs {
  position: relative; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs__indicator {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: var(--deep); box-shadow: 0 6px 16px rgba(4,76,87,.28); pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.cat-tab {
  position: relative; z-index: 1; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 10px; border: 0; border-radius: 999px; background: none;
  font-size: .88rem; font-weight: 500; color: var(--deep); white-space: nowrap; transition: color .3s, background .3s;
}
.cat-tab:hover { background: var(--ice); }
.cat-tab.is-active, .cat-tab.is-active:hover { color: var(--white); background: none; }
.cat-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.cat-tab { gap: 5px; }
.cat-tab__n { font-size: .7rem; font-weight: 600; color: var(--teal); transition: color .3s; }
.cat-tab.is-active .cat-tab__n { color: var(--mint); }

/* Category intro */
.cat-intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
  margin: 44px 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.cat-intro > div { max-width: 640px; }
.cat-intro__title { margin-bottom: .25em; }
.cat-intro__lead { font-size: 1rem; }
.cat-intro__count { margin: 0; display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .9rem; }
.cat-intro__count strong { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; line-height: 1; color: var(--teal-ink); }

/* Product grid */
.catalogue__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.pcard { border-radius: 18px; }
.pcard:hover { border-color: rgba(10,172,198,.45); box-shadow: var(--shadow-lg); }
.pcard__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0;
  overflow: hidden; background: linear-gradient(160deg, #f6fbfb, #e8f4f5);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__media:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.pcard__model {
  position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--deep);
  box-shadow: 0 4px 12px rgba(2,42,49,.12);
}
.pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard__cat { margin: 0 0 4px; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }
.pcard__title { margin: 0 0 10px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--deep); }
.pcard__size {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; line-height: 1.4;
  font-size: .85rem; font-weight: 600; color: var(--deep);
}
.pcard__size svg { flex: none; margin-top: -1px; width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pcard__more { white-space: nowrap; font-size: .78rem; font-weight: 500; color: var(--muted); }
.pcard__feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 5px; font-size: .86rem; color: var(--muted); }
.pcard__feats li { position: relative; padding-left: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__feats li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.pcard__foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pcard__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none;
  font-size: .88rem; font-weight: 600; color: var(--teal-ink);
}
.pcard__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.pcard__link:hover svg { transform: translateX(4px); }
.pcard__link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.model-card.pcard .btn { margin-top: 0; align-self: auto; }

/* Load more + progress */
.catalogue__more { margin: 56px auto 0; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.catalogue__count { margin: 0; font-size: .9rem; color: var(--muted); }
.catalogue__progress { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.catalogue__progress span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-ink)); transition: width .6s var(--ease); }
.catalogue__more .btn { margin-top: 6px; }

@media (min-width: 560px) {
  .catalogue__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .catalogue__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .cat-intro { margin-top: 56px; }
}
@media (min-width: 1200px) {
  .catalogue__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* Details dialog */
.product-modal {
  width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
  border-radius: 22px; background: var(--white); color: var(--text); overflow: hidden;
  box-shadow: 0 30px 80px rgba(2,42,49,.35);
}
.product-modal::backdrop { background: rgba(2,42,49,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.product-modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.product-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--ice); color: var(--deep); font-size: 1.7rem; line-height: 1; transition: background .2s, color .2s;
}
.product-modal__close:hover { background: var(--deep); color: var(--white); }
/* Fixed height: the photo stays put and only the details scroll */
.product-modal__grid {
  display: grid; grid-template-columns: 1fr; grid-template-rows: 290px minmax(0, 1fr);
  height: min(760px, calc(100vh - 48px));
}
.product-modal__media {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 0;
  padding: 20px 20px 16px; overflow: hidden; background: #f3fafa;
}
.product-modal__media img {
  flex: 0 1 auto; width: 100%; height: auto; min-height: 0; object-fit: contain; border-radius: 12px;
  transition: opacity .25s, transform .35s var(--ease);
}
.product-modal__media img.is-swapping { opacity: 0; transform: scale(.97); }
/* Prev / next through the current category */
.pm-nav {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 5px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(4,76,87,.12);
}
.pm-nav__btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ice); color: var(--deep); transition: background .25s, color .25s, transform .25s var(--ease);
}
.pm-nav__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pm-nav__btn:hover { background: var(--deep); color: var(--white); }
#pmPrev:hover { transform: translateX(-2px); }
#pmNext:hover { transform: translateX(2px); }
.pm-nav__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pm-nav__count {
  min-width: 78px; margin: 0; text-align: center; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums;
}
.pm-nav__count strong { color: var(--deep); }
.product-modal__body { padding: 20px 28px 32px; overflow-y: auto; overscroll-behavior: contain; }
.product-modal__cat { background: none !important; color: var(--muted) !important; padding: 0 !important; }
.product-modal__title { margin: 6px 0 10px; font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--deep); }
.product-modal__note { margin: 0; font-size: .9rem; font-style: italic; color: var(--muted); }
.product-modal__heading { margin: 22px 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }
.product-modal__sizes, .product-modal__options { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product-modal__sizes li { padding: 6px 12px; border-radius: 999px; background: var(--ice); font-size: .85rem; font-weight: 500; color: var(--deep); }
.product-modal__options li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.product-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Call-to-action band */
.cta-band { padding: 72px 0; color: var(--white); background: linear-gradient(120deg, var(--deep-2), var(--deep) 60%, #066e7e); }
.cta-band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cta-band__title { margin: 0; max-width: 24ch; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* "View all products" on the home page */
.collection__more { margin-top: 44px; text-align: center; }
.collection__more .collection__note { margin-top: 14px; }

@media (min-width: 800px) {
  .product-modal__grid { grid-template-columns: .9fr 1.1fr; grid-template-rows: minmax(0, 1fr); height: min(620px, calc(100vh - 48px)); }
  .product-modal__media { padding: 32px; }
  .product-modal__body { padding: 36px 40px 36px 32px; }
}
@media (min-width: 900px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1079px) {
  .nav-toggle { display: flex; }
  /* No backdrop-filter here: it would trap the full-screen menu inside the pill */
  .header.is-scrolled .header__inner { background: rgba(255,255,255,.95); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header__logo { height: 40px; }

  /* Full-screen menu that spreads out from the menu button */
  .nav {
    position: fixed; inset: 0; z-index: 0;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 110px 32px 48px;
    background: radial-gradient(120% 80% at 100% 0%, #066e7e, var(--deep-2) 65%);
    clip-path: circle(0% at calc(100% - 40px) 46px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 46px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav__indicator { display: none; }
  .nav__link,
  .header.is-scrolled .nav__link {
    padding: 4px 0; font-family: var(--font-head); font-size: clamp(2.1rem, 8vw, 3rem); font-weight: 600;
    color: var(--white); opacity: 0; transform: translateY(26px);
    transition: opacity .5s, transform .6s var(--ease), color .3s;
  }
  .nav__link.is-active, .header.is-scrolled .nav__link.is-active { color: var(--mint); }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open .nav__link:nth-of-type(2) { transition-delay: .2s; }
  .nav.is-open .nav__link:nth-of-type(3) { transition-delay: .25s; }
  .nav.is-open .nav__link:nth-of-type(4) { transition-delay: .3s; }
  .nav.is-open .nav__link:nth-of-type(5) { transition-delay: .35s; }
  .nav.is-open .nav__link:nth-of-type(6) { transition-delay: .4s; }
  .nav.is-open .nav__link:nth-of-type(7) { transition-delay: .45s; }
  .nav.is-open .nav__link:nth-of-type(1) { transition-delay: .15s; }
  .nav__cta, .header:not(.is-scrolled) .nav__cta { margin: 24px 0 0; opacity: 0; transition: opacity .5s; }
  .nav.is-open .nav__cta { opacity: 1; transition-delay: .5s; }

  /* While the menu is open the bar sits on the dark overlay */
  .header.menu-open .header__inner { background: transparent; border-color: transparent; box-shadow: none; }
  .header.menu-open .logo--light { opacity: 1; }
  .header.menu-open .logo--dark { opacity: 0; }
  .header.menu-open .nav-toggle { background: rgba(255,255,255,.12); }
  .header.menu-open .nav-toggle span { background: var(--white); }
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .enquiry { padding: 40px 36px; }
  .collection > .model-card { flex-basis: calc((100% - 24px) / 2); }
  .countries { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding: 120px 0; }
  .about { grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
  .markets__grid { grid-template-columns: .85fr 1.15fr; gap: 48px; }
  .about__visual { position: sticky; top: calc(var(--header-h) + 32px); height: min(600px, calc(100vh - var(--header-h) - 64px)); }
  .featured { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .featured__gallery { padding: 20px; }
  .featured__body { padding: 32px 36px 32px 12px; }
  .collection > .model-card { flex-basis: calc((100% - 48px) / 3); }
  .contact { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .countries { grid-template-columns: repeat(4, 1fr); }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
}

@media (min-width: 1200px) {
  .countries { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 400px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero__scroll, .hero__bubbles, .ripple { display: none; }
}
