/* ============================================================
   Homepage — DESIGN 2 (experimental)
   Same content as home.css but: liquid-glass blobs replace the
   dive-pane shards everywhere, and the hero image is clipped to
   the lower-half silhouette of a diving mask (traced from a real
   mask photo) with a glowing edge and glass-lens light hints.
   Self-contained — does not depend on home.css. Pairs with base.css.
   ============================================================ */

/* ---------- liquid glass pane system ----------
   Real glass, not a colour blob: no tint at all (transparent fill),
   just backdrop-filter doing the work — an SVG refraction filter
   (#lg-filter, feTurbulence + feDisplacementMap) bends whatever
   sits behind it, blur/saturate/brightness/contrast do the frosting,
   and a stack of inset highlights (a crisp top-left edge-light, a
   soft inner glow, a hairline outline) plus an outer drop shadow
   sell the lift. Fully round (organic 8-value border-radius, never
   a straight edge) and fast — both drift and shape-morph run in a
   few seconds, so the glass visibly reforms as it slides. */
.liquid-panes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.liquid-pane {
  position: absolute;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(1px) url(#lg-filter) blur(2px) saturate(1.5) brightness(1.12);
  -webkit-backdrop-filter: blur(8px) saturate(1.8) brightness(1.18) contrast(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.2),
    inset -60px -80px 90px rgba(0, 204, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.35);
  will-change: transform, border-radius;
}
.liquid-pane--1 {
  width: clamp(480px, 40vw, 820px);
  height: clamp(340px, 28vw, 560px);
  top: -8vw;
  left: -6vw;
  animation: paneMorphA 6.8s ease-in-out infinite, paneDriftA 6.8s ease-in-out infinite alternate;
}
.liquid-pane--2 {
  width: clamp(380px, 32vw, 660px);
  height: clamp(260px, 22vw, 440px);
  bottom: -10vw;
  right: -5vw;
  animation: paneMorphB 5.8s ease-in-out infinite, paneDriftB 5.8s ease-in-out infinite alternate;
}
@keyframes paneMorphA {
  0%   { border-radius: 62% 38% 55% 45% / 45% 58% 42% 55%; }
  33%  { border-radius: 40% 60% 38% 62% / 62% 38% 58% 42%; }
  66%  { border-radius: 55% 45% 65% 35% / 35% 65% 45% 55%; }
  100% { border-radius: 62% 38% 55% 45% / 45% 58% 42% 55%; }
}
@keyframes paneMorphB {
  0%   { border-radius: 45% 55% 60% 40% / 55% 42% 40% 58%; }
  40%  { border-radius: 63% 37% 42% 58% / 40% 60% 55% 45%; }
  75%  { border-radius: 48% 52% 35% 65% / 65% 35% 50% 50%; }
  100% { border-radius: 45% 55% 60% 40% / 55% 42% 40% 58%; }
}
@keyframes paneDriftA {
  from { transform: translate(0,0) scale(1) rotate(0deg); }
  to   { transform: translate(4.5vw, 5vh) scale(1.05) rotate(4deg); }
}
@keyframes paneDriftB {
  from { transform: translate(0,0) scale(1) rotate(0deg); }
  to   { transform: translate(-5vw, -4.5vh) scale(0.96) rotate(-4deg); }
}

@media (max-width: 900px) {
  .liquid-pane--1 { width: 88vw; height: 60vw; top: -10vw; left: -8vw; }
  .liquid-pane--2 { width: 76vw; height: 52vw; bottom: -12vw; right: -8vw; }
}
@media (prefers-reduced-motion: reduce) {
  .liquid-pane { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .liquid-panes { display: none; }
}

/* ---------- liquid glass card (hero CTA panel, contact panel) ----------
   Same frosted-glass material as .glass but with a slow organic
   corner reform and a diagonal sheen drifting across the surface —
   the "glass" itself feels alive rather than static. */
.liquid-card {
  position: relative;
  background: linear-gradient(155deg, rgba(244,242,236,0.12), rgba(244,242,236,0.035));
  border: 1px solid rgba(244,242,236,0.22);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(244,242,236,0.16),
    0 30px 70px rgba(4,6,10,0.5),
    0 0 0 1px rgba(0,204,255,0.05);
  overflow: hidden;
  animation: cardReform 16s ease-in-out infinite;
}
.liquid-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(75deg,
    transparent 42%,
    rgba(255,255,255,0.10) 48%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.10) 52%,
    transparent 58%);
  transform: translateX(-120%) rotate(2deg);
  animation: cardSheen 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cardReform {
  0%   { border-radius: 28px 40px 26px 44px; }
  50%  { border-radius: 40px 26px 44px 28px; }
  100% { border-radius: 28px 40px 26px 44px; }
}
@keyframes cardSheen {
  0%, 100% { transform: translateX(-120%) rotate(2deg); }
  50% { transform: translateX(120%) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .liquid-card { animation: none; border-radius: 32px; }
  .liquid-card::before { animation: none; opacity: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .liquid-card { background: var(--ink-2); backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; border-radius: 20px; }
  .liquid-card::before { display: none; }
}

/* ================================================================
   HERO — mask-outline media crop
   ================================================================ */
.hero-v2 {
  position: relative;
  background: var(--ink);
  overflow: visible;
  padding-bottom: clamp(5rem, 15vw, 10rem);
}
/* A dark-slate frame sits behind the photo, clipped to the same
   mask-glass outline but a few px larger — it reads as the mask's
   own frame (the way image 3/4's black trim does), so the crop
   line stays legible instead of relying on the glow alone. */
.hero-media-frame {
  position: relative;
  width: 100%;
  /* Height is driven by WIDTH as well as viewport height. The clip-path is
     objectBoundingBox-relative, so a portrait frame stretches the traced
     outline vertically and the nose-bridge notch degenerates into a thin
     black spike through the middle of the photo. Capping the height at
     58vw keeps the frame landscape-ish at every width, which is the only
     aspect the mask outline actually reads at. On a typical 1440x900
     desktop min(88vh, 58vw) is still 88vh, so wide screens are unchanged. */
  height: clamp(240px, min(88vh, 58vw), 980px);
  background: linear-gradient(155deg, #3c4457 0%, #232838 45%, #12141b 100%);
  clip-path: url(#agd-mask-outline);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
  filter:
    drop-shadow(0 0 2px rgba(244,242,236,0.4))
    drop-shadow(0 0 30px rgba(0,204,255,0.38))
    drop-shadow(0 0 78px rgba(25,227,200,0.2));
}
.hero-media {
  position: absolute;
  inset: 16px;
  overflow: hidden;
  clip-path: url(#agd-mask-outline);
}
@media (max-width: 760px) {
  .hero-media { inset: 10px; }
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  animation: heroFade2 56s infinite;
}
.hero-slide-img {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  animation-duration: 56s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,10,14,0.92) 0%, rgba(8,10,14,0.18) 42%, rgba(8,10,14,0.04) 62%, transparent 100%),
    linear-gradient(to bottom, rgba(8,10,14,0.55) 0%, transparent 22%);
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: -7s; }
.hero-slide:nth-child(3) { animation-delay: -14s; }
.hero-slide:nth-child(4) { animation-delay: -21s; }
.hero-slide:nth-child(5) { animation-delay: -28s; }
.hero-slide:nth-child(6) { animation-delay: -35s; }
.hero-slide:nth-child(7) { animation-delay: -42s; }
.hero-slide:nth-child(8) { animation-delay: -49s; }
.hero-slide:nth-child(1) .hero-slide-img { animation-name: kbHero1; animation-delay: 0s; }
.hero-slide:nth-child(2) .hero-slide-img { animation-name: kbHero2; animation-delay: -7s; }
.hero-slide:nth-child(3) .hero-slide-img { animation-name: kbHero3; animation-delay: -14s; }
.hero-slide:nth-child(4) .hero-slide-img { animation-name: kbHero4; animation-delay: -21s; }
.hero-slide:nth-child(5) .hero-slide-img { animation-name: kbHero5; animation-delay: -28s; }
.hero-slide:nth-child(6) .hero-slide-img { animation-name: kbHero6; animation-delay: -35s; }
.hero-slide:nth-child(7) .hero-slide-img { animation-name: kbHero7; animation-delay: -42s; }
.hero-slide:nth-child(8) .hero-slide-img { animation-name: kbHero8; animation-delay: -49s; }

@keyframes heroFade2 {
  0%, 100% { opacity: 0; }
  1.5% { opacity: 1; }
  11% { opacity: 1; }
  12.5% { opacity: 0; }
}
@keyframes kbHero1 { 0%,1.5% { transform: scale(1) translate(0,0); } 12.5%,100% { transform: scale(1.14) translate(-3%,-2%); } }
@keyframes kbHero2 { 0%,1.5% { transform: scale(1.14) translate(3%,2%); } 12.5%,100% { transform: scale(1) translate(0,0); } }
@keyframes kbHero3 { 0%,1.5% { transform: scale(1.04) translate(2%,-2%); } 12.5%,100% { transform: scale(1.18) translate(-2%,1%); } }
@keyframes kbHero4 { 0%,1.5% { transform: scale(1.16) translate(-2%,3%); } 12.5%,100% { transform: scale(1.02) translate(1%,-1%); } }
@keyframes kbHero5 { 0%,1.5% { transform: scale(1.02) translate(-2%,2%); } 12.5%,100% { transform: scale(1.16) translate(3%,-3%); } }
@keyframes kbHero6 { 0%,1.5% { transform: scale(1.18) translate(2%,-1%); } 12.5%,100% { transform: scale(1.03) translate(-1%,2%); } }
@keyframes kbHero7 { 0%,1.5% { transform: scale(1) translate(3%,1%); } 12.5%,100% { transform: scale(1.15) translate(-3%,-1%); } }
@keyframes kbHero8 { 0%,1.5% { transform: scale(1.12) translate(-3%,1%); } 12.5%,100% { transform: scale(1) translate(2%,-2%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
  .hero-slide-img { animation: none; transform: scale(1.05); }
}

/* Two soft glass-lens light hints, sitting roughly where a mask's
   lenses would fall over the diver's eyes — a suggestion of glass,
   not a literal cut, so it works even though only the mask's lower
   outline is actually clipped. */
.hero-lens-glint {
  position: absolute;
  top: 26%;
  width: 17%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(58% 50% at 38% 32%, rgba(255,255,255,0.5), transparent 68%);
  mix-blend-mode: screen;
  filter: blur(2px);
  opacity: 0.55;
  animation: lensGlint 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-lens-glint--l { left: 27%; animation-delay: 0s; }
.hero-lens-glint--r { right: 27%; animation-delay: -3.4s; transform: scaleX(-1); }
@keyframes lensGlint {
  0%, 100% { opacity: 0.4; transform: translateY(0) scale(1); }
  50% { opacity: 0.7; transform: translateY(-2%) scale(1.04); }
}
.hero-lens-glint--r { animation-name: lensGlintR; }
@keyframes lensGlintR {
  0%, 100% { opacity: 0.4; transform: scaleX(-1) translateY(0) scale(1); }
  50% { opacity: 0.7; transform: scaleX(-1) translateY(-2%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-lens-glint { animation: none; opacity: 0.5; }
}

/* Small brand mark riding the guideline, top-left, to anchor the
   nav visually against the bright clipped photo. */
.hero-top-fade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(6,7,10,0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

/* CTA panel — same plain text-on-dark treatment as Design 1's hero
   (no card, no background). Positioned to sit inside the mask's own
   nose-bridge notch — the dark gap between the two clipped "legs" —
   rather than trailing below the whole photo, so it reads as living
   inside the mask rather than stacked underneath it. */
.hero-cta-scrim {
  position: absolute;
  top: 34%;
  left: 0;
  width: auto;
  right: 0;
  height: 78%;
  z-index: 4;
  pointer-events: none;
  /* Was width:160vw with a 30% radius (= 48vw); that overflowed the document
     horizontally at every viewport, and on phones it widened the layout
     viewport past the device width, pushing the nav burger off-screen.
     Same ellipse, expressed against a full-width, non-overflowing box. */
  background: radial-gradient(ellipse 48% 42% at 50% 50%,
    rgba(6,8,12,0.78) 0%,
    rgba(6,8,12,0.6) 26%,
    rgba(6,8,12,0.34) 48%,
    rgba(6,8,12,0.12) 68%,
    rgba(6,8,12,0) 84%);
}
.hero-cta-panel {
  /* centered via left/right auto-margins, not a translateX transform —
     [data-reveal].is-visible sets transform:none for the scroll-reveal
     animation, which would otherwise clobber a centering transform. */
  position: absolute;
  top: 58%;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 5;
  width: min(560px, 88vw);
  padding: 0 clamp(1rem, 3vw, 1.75rem);
  text-align: center;
}
.hero-cta-panel .guideline { margin: 1.4rem auto 0; }
.hero-cta-panel .hero-headline {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  max-width: 18ch;
  margin-inline: auto;
}
.hero-cta-panel .hero-headline em { font-style: normal; color: var(--accent); }
.hero-cta-panel .hero-sub {
  margin: 1.4rem auto 0;
  max-width: 42ch;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  color: rgba(244,242,236,0.82);
}
.hero-cta-panel .hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Below 900px the frame is short and its notch is far too small to hold the
   CTA copy, so the panel stops floating inside the mask and flows underneath
   it. Absolutely positioning it at top:58% of a shrinking hero also pushed
   its lower half straight into the .origin section below. */
@media (max-width: 900px) {
  /* The frame is short here, so a 124px nav sitting over a full-bleed photo
     would cover half the mask. Give it some headroom while keeping a little
     bleed under the nav's gradient. */
  .hero-v2 {
    padding-top: clamp(3.5rem, 13vw, 5.5rem);
    padding-bottom: clamp(3rem, 12vw, 7rem);
  }
  .hero-cta-scrim { display: none; }
  .hero-cta-panel {
    position: static;
    width: auto;
    max-width: 36rem;
    margin: clamp(1.75rem, 6vw, 2.75rem) auto 0;
    padding: 0 var(--edge);
  }
  .hero-cta-panel .hero-headline {
    font-size: clamp(2rem, 8.4vw, 2.9rem);
    max-width: 16ch;
  }
  .hero-cta-panel .hero-sub { font-size: 1rem; max-width: 40ch; }
  .hero-cta-panel .hero-ctas { margin-top: 1.75rem; }
}
@media (max-width: 760px) {
  .hero-lens-glint { display: none; }
}

/* ---------- origin story ---------- */
.origin {
  position: relative;
  background: var(--ink-2);
  margin-top: -6vw;
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.origin-inner { max-width: 62ch; position: relative; z-index: 1; }
.origin h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; }
.origin p { margin-top: 1.5rem; color: var(--muted); font-size: 1.05rem; max-width: 58ch; }
.origin p + p { margin-top: 1rem; }
.origin-sign { margin-top: 2rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--paper); }

/* ---------- sidemount teaser ---------- */
.sidemount-teaser { padding: clamp(5rem, 10vw, 7rem) 0; background: var(--ink); }
.sidemount-teaser-head { max-width: 60ch; margin-bottom: 3rem; }
.sidemount-teaser-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 0.6rem; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.teaser-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.teaser-card:nth-child(2) { clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.teaser-card:nth-child(3) { clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
.teaser-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.teaser-card:hover img { transform: scale(1.08); }
.teaser-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,7,8,0.94) 0%, rgba(6,7,8,0.15) 55%, rgba(6,7,8,0.3) 100%);
}
.teaser-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.teaser-card:hover::after { transform: scaleX(1); }
.teaser-card-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; }
.teaser-card-eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.teaser-card-name { margin-top: 0.35rem; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.teaser-card-blurb { margin-top: 0.6rem; max-width: 30ch; font-size: 0.88rem; color: rgba(244,242,236,0.78); }
.teaser-card-link { position: absolute; inset: 0; z-index: 4; }
@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-card { aspect-ratio: 16 / 10; clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%) !important; }
}

/* ---------- featured shop ---------- */
.shop-feature {
  position: relative; overflow: hidden; background: var(--ink-2);
  padding: clamp(6rem, 12vw, 8rem) 0; margin-top: -4vw;
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}
.shop-feature .container { position: relative; z-index: 1; }
.shop-feature-head { max-width: 68ch; }
.shop-feature-head h2 { margin-top: 0.6rem; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.shop-feature-head p { margin-top: 1.2rem; color: var(--muted); max-width: 58ch; font-size: 1.02rem; }
.shop-feature-head .btn { margin-top: 1.8rem; }
.shop-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.shop-card {
  position: relative; padding: 1.6rem 1.5rem 1.8rem;
  border: 1px solid rgba(25, 227, 200, 0.3);
  background: linear-gradient(155deg, rgba(25,227,200,0.08), rgba(124,92,255,0.03));
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}
.shop-card h3 { font-size: 1.05rem; color: var(--paper); }
.shop-card p { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }

/* ---------- about teaser ---------- */
.about-teaser { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 7rem) 0; background: var(--ink); }
.about-teaser .container {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about-teaser-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); border: 1px solid var(--line); }
.about-teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.about-teaser p { margin-top: 1.1rem; color: var(--muted); max-width: 52ch; }
.about-teaser .btn { margin-top: 1.6rem; }
@media (max-width: 760px) {
  .about-teaser .container { grid-template-columns: 1fr; }
  .about-teaser-media { max-width: 280px; margin-inline: auto; }
}

/* ---------- contact strip ---------- */
.contact-strip { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 7rem) 0; background: var(--ink-2); }
.contact-strip .container { position: relative; z-index: 1; }
.contact-panel { padding: clamp(2.2rem, 5vw, 3rem); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.contact-panel h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.contact-panel p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }
.contact-panel .btn { margin-top: 1.6rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0.25rem 0 0; font-size: 1.02rem; }
.contact-list a:hover { color: var(--accent); }
@media (max-width: 760px) { .contact-panel { grid-template-columns: 1fr; } }
