/* ==========================================================================
   Nihal Gems — design system (mobile-first)
   Base styles target phones; min-width queries enhance for tablet/desktop.
   Breakpoints: 600px (large phone / small tablet), 900px (tablet/desktop), 1100px (wide)
   ========================================================================== */

@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --ink: #0a1a33;
  --ink-2: #3a4a66;
  --ink-3: #6a7a93;
  --line: rgba(10, 42, 90, 0.1);
  --line-strong: rgba(10, 42, 90, 0.16);

  --sky-100: #e4f4ff;
  --sky-200: #c6e8ff;
  --sky-400: #45b6f3;
  --sky-500: #1a98de;
  --sky-600: #0b78bd;
  --sapphire: #1446b8;
  --sapphire-deep: #0b2463;
  --night: #050e23;

  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 40px -12px rgba(14, 76, 140, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(11, 36, 99, 0.35);

  --grad-brand: linear-gradient(135deg, #5cc8f7 0%, #1a98de 45%, #1446b8 100%);
  --grad-text: linear-gradient(120deg, #1a98de 0%, #20c4cc 40%, #1446b8 100%);
  --grad-text-light: linear-gradient(120deg, #9fe0ff 0%, #6fe7ec 45%, #c9dcff 100%);

  --font-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --bar-h: 0px;          /* mobile action bar height (set below) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 600px) { :root { --gutter: 28px; --radius: 20px; --radius-lg: 28px; } }
@media (min-width: 900px) { :root { --gutter: 40px; --radius-lg: 32px; --header-h: 84px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.08; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sky-200); color: var(--sapphire-deep); }
:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }

.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; transition: top .2s; }
.skip-link:focus { top: 16px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.flip { transform: scaleX(-1); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; animation: drift 26s var(--ease-in-out) infinite alternate; }
.aurora span:nth-child(1) { width: 90vmax; height: 90vmax; left: -40vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(143, 211, 255, .5), transparent); }
.aurora span:nth-child(2) { width: 70vmax; height: 70vmax; right: -35vmax; top: 20vh; background: radial-gradient(closest-side, rgba(32, 196, 204, .2), transparent); animation-duration: 32s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 60vmax; height: 60vmax; left: 10vw; bottom: -40vmax; background: radial-gradient(closest-side, rgba(20, 70, 184, .12), transparent); animation-duration: 38s; animation-delay: -14s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }

.cursor-light {
  position: fixed; left: 0; top: 0; z-index: -1; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(69, 182, 243, .2), rgba(69, 182, 243, 0));
  transition: opacity .6s; will-change: transform;
}
.cursor-light.is-on { opacity: 1; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sky-600);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--grad-brand); border-radius: 1px; box-shadow: 0 0 0 3px rgba(69, 182, 243, .18); flex: none; }
.eyebrow--light { color: #bfe7ff; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.display em, .accent {
  font-style: italic; padding: 0 .06em .14em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-xl { font-size: clamp(46px, 12vw, 112px); line-height: .98; }
.h-lg { font-size: clamp(32px, 8vw, 66px); line-height: 1.04; }
.h-md { font-size: clamp(28px, 6.4vw, 46px); line-height: 1.08; }
.lead { font-size: clamp(16px, 4.2vw, 19px); line-height: 1.7; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 900px) { .lead { font-size: clamp(17px, 1.45vw, 19px); } }
.muted { color: var(--ink-3); }

.section { position: relative; padding-block: clamp(64px, 12vw, 150px); }
.section--tight { padding-block: clamp(48px, 8vw, 110px); }
.section--flush { padding-top: 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 5vw, 56px); }
.section-head--row { align-items: end; }
@media (min-width: 900px) {
  .section-head--row { grid-template-columns: 1fr auto; gap: 40px; }
  .section-head--row h2 { max-width: 24ch; }
}

/* ---------- glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform .4s var(--ease); }
.btn-primary { color: #fff; background: var(--grad-brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 14px 30px -12px rgba(20, 70, 184, .6); }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-light { color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn-light::after { background: linear-gradient(105deg, transparent 30%, rgba(143, 211, 255, .45) 50%, transparent 70%); }
.btn-glass { color: var(--ink); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn-primary:hover::after, .btn-light:hover::after { transform: translateX(120%); }
  .btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 20px 40px -14px rgba(20, 70, 184, .7); }
  .btn-glass:hover { background: rgba(255, 255, 255, .9); }
  .btn-dark:hover { background: var(--sapphire-deep); }
  .btn-light:hover { background: #fff; }
}

.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.round-btn:active { transform: scale(.92); }
.round-btn--light { color: var(--ink); background: rgba(255, 255, 255, .8); border-color: var(--line); }
.round-btn[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) {
  .round-btn:hover { background: #fff; color: var(--ink); }
  .round-btn--light:hover { background: var(--ink); color: #fff; }
}
.link-btn { color: var(--sky-600); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 10px var(--gutter) 0; }
.nav {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  max-width: var(--container); height: 58px; margin-inline: auto; padding: 0 7px 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  transition: background-color .4s, box-shadow .4s, height .5s var(--ease);
}
.is-scrolled .nav { background: rgba(255, 255, 255, .8); box-shadow: var(--glass-shadow); }
.nav-links { display: none; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 46px; height: auto; transition: transform .6s var(--ease); }
.brand-name { font-family: var(--font-display); font-size: 21px; color: var(--ink); letter-spacing: .01em; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; grid-column: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; }
.menu-toggle .icon { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .site-header { padding-top: 14px; }
  .nav { grid-template-columns: 1fr auto 1fr; height: 64px; padding: 0 10px 0 26px; }
  .is-scrolled .nav { height: 58px; }
  .nav-links { display: flex; align-items: center; gap: 4px; }
  .nav-links.right { justify-content: flex-end; }
  .nav-links a {
    position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); transition: color .3s, background-color .3s;
  }
  .nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
  .nav-links a[aria-current="page"] { color: var(--ink); }
  .nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; transform: rotate(45deg); background: var(--sky-500); }
  .brand { justify-self: center; }
  .brand img { width: 58px; }
  .brand:hover img { transform: scale(1.06) rotate(-3deg); }
  .brand-name { display: none; }
  .menu-toggle { display: none; }
}

/* header over the dark story hero */
.site-header.is-dark .nav { background: rgba(5, 14, 35, .28); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.site-header.is-dark .brand-name { color: #fff; }
.site-header.is-dark .menu-toggle { background: #fff; color: var(--ink); }
@media (min-width: 900px) {
  .site-header.is-dark .nav-links a { color: rgba(255, 255, 255, .78); }
  .site-header.is-dark .nav-links a:hover, .site-header.is-dark .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
  .site-header.is-dark .nav-links a[aria-current="page"]::after { background: #9fe0ff; }
}
body.menu-open .site-header.is-dark .nav { background: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .7); }
body.menu-open .site-header.is-dark .brand-name { color: var(--ink); }
body.menu-open .site-header.is-dark .menu-toggle { background: var(--ink); color: #fff; }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: rgba(246, 251, 255, .86);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mobile-menu nav a {
  display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(36px, 11vw, 56px); line-height: 1.1; color: var(--ink);
  opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mobile-menu nav a small { font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.mobile-menu nav a[aria-current="page"] { color: var(--sky-600); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu-foot { display: grid; gap: 6px; font-size: 15px; }
.mobile-menu-foot > a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-2); }
.mobile-menu-foot .socials { margin-top: 8px; }
body.menu-open { overflow: hidden; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- mobile quick-contact bar ---------- */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 40px -16px rgba(11, 36, 99, .45);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  transform: translateY(calc(100% + 30px)); transition: transform .6s var(--ease);
}
.action-bar.is-visible { transform: none; }
body.menu-open .action-bar, body.dialog-open .action-bar { transform: translateY(calc(100% + 30px)); }
.action-bar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); }
.action-bar__btn--primary { color: #fff; background: var(--grad-brand); }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- hero: full-screen scroll story + idle autoplay ----------
   Tall section with a sticky stage. Every transition is scrubbed by the scroll position
   (like scrubbing a video, forward and back): JS writes --r / --in / --out per slide each
   frame. After 10 s of no interaction the stage glides to the next slide; any
   interaction stops it.
   Per-slide theme from its photo: --bg, --a1/--a2 (gem colours), --ix/--iy (gem on
   desktop), --iy-m (gem on phones). New slides open as an iris from the gem itself. */
.story-hero { --step: 75svh; position: relative; height: calc(100svh + (var(--count) - 1) * var(--step)); background: #0b0d14; }
.story-hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.no-js .story-hero { height: auto; }
.no-js .story-hero__sticky { position: relative; }

.sh-slide {
  /* scrubbed by scroll (set every frame by JS):
     --r   iris opening of this slide 0→1
     --in  its words / button arriving 0→1
     --out next slide opening over it 0→1 (its words leave) */
  --r: 0; --in: 0; --out: 0;
  --iris-x: 50%; --iris-y: var(--iy-m, 30%);
  position: absolute; inset: 0; z-index: var(--z, 1); visibility: hidden; background: var(--bg, #0b0d14);
  clip-path: circle(calc(var(--r) * 150%) at var(--iris-x) var(--iris-y));
}
/* only the slide on screen (plus the one being uncovered) is painted — keeps GPU memory low */
.sh-slide.is-shown { visibility: visible; }
.sh-slide.is-open { clip-path: none; }
/* before JS starts (and without JS) the first slide is the visible base */
.story-hero:not(.is-ready) .sh-slide:first-child { visibility: visible; clip-path: none; --r: 1; }
.no-js .sh-slide { --in: 1; }
/* ambient light in the gem's colour, gently breathing */
.sh-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at var(--iris-x) var(--iris-y), color-mix(in srgb, var(--a2) 30%, transparent), transparent 70%);
  opacity: .7; animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .45; } to { opacity: .95; } }
/* soft top shade for the header */
.sh-slide::after { content: ""; position: absolute; inset: 0 0 auto; height: 140px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent); }

/* photo panel — phones: top 58% of the screen, fading down into the backdrop */
.sh-slide__media {
  position: absolute; left: 0; right: 0; top: 0; height: 58svh; z-index: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  opacity: calc(1 - var(--out) * .6);
}
/* zoom follows the scroll exactly: settles as the iris opens, sinks back as the next one covers it */
.sh-slide__media img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos-m, center);
  transform-origin: var(--pos-m, center);
  transform: scale(calc(1.26 - var(--r) * .22 + var(--out) * .1));
  translate: var(--px, 0) var(--py, 0); transition: translate .9s var(--ease);
}
.sh-slide.is-shown .sh-slide__media img { will-change: transform; }
/* a single shine sweeping across the photo while it opens (scrubbed with the iris) */
.sh-slide__media::after {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%);
  mix-blend-mode: overlay;
  opacity: calc(var(--r) * (1 - var(--r)) * 4); transform: translateX(calc(-60% + var(--r) * 120%));
}

/* text — phones: lower part of the screen, below the gem */
.sh-slide__content { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.sh-slide__inner {
  display: grid; gap: 20px; justify-items: center; text-align: center;
  translate: calc(var(--px, 0px) * -.6) calc(var(--py, 0px) * -.6); transition: translate .9s var(--ease);
}
.sh-slide__title {
  font-size: clamp(28px, min(9.2vw, 5.2svh), 52px); line-height: 1.07; max-width: 15ch; text-wrap: balance; letter-spacing: -.005em;
  color: color-mix(in srgb, #fff 92%, var(--a1));
}
/* gradient + shimmer painted on each word (painting it on the <em> breaks when words animate) */
.sh-slide__title em { background: none; padding: 0; color: var(--a1); }
.sh-slide__title em .w > span {
  background: linear-gradient(110deg, var(--a1) 0%, var(--a2) 35%, #fff 50%, var(--a2) 65%, var(--a1) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
/* word mask. Both the mask and the word box are padded below, so descenders (g, p, y) and
   italic overhangs are never cut — background-clip:text only paints inside the box. */
.sh-slide__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .1em .32em; margin: -.04em -.1em -.32em; }
.sh-slide__title .w > span {
  /* --k: word position 0→1 across the title (stagger); --wp arrive, --wo leave */
  --wp: clamp(0, calc((var(--in) - var(--k, 0) * .4) / .6), 1);
  --wo: clamp(0, calc(var(--out) * 2.2 - var(--k, 0) * .5), 1);
  --we: calc(var(--wp) * (2 - var(--wp)));
  display: inline-block; padding: 0 .1em .3em 0; margin: 0 -.1em -.3em 0;
  opacity: calc(var(--we) * (1 - var(--wo)));
  transform: translate3d(0, calc((1 - var(--we)) * 75% - var(--wo) * 45%), 0);
}

/* ---------- gem shine — light that comes from the gem itself ----------
   --gr: gem radius as a share of the photo height; --ph: photo panel height */
.sh-slide { --ph: 58svh; }
.sh-shine {
  position: absolute; left: var(--iris-x); top: var(--iris-y); width: 0; height: 0; z-index: 2; pointer-events: none;
  opacity: calc(var(--r) * (1 - var(--out)));
}
.sh-shine__bloom, .sh-shine__sweep { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen; }
/* inner light breathing in the stone */
.sh-shine__bloom {
  width: calc(var(--gr, .15) * var(--ph) * 1.7); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .45), color-mix(in srgb, var(--a1) 40%, transparent) 42%, transparent 100%);
  animation: bloom 5s ease-in-out infinite alternate;
}
@keyframes bloom { from { opacity: .1; scale: .9; } to { opacity: .34; scale: 1.04; } }
/* every few seconds a soft band of light glides across the stone (masked to the gem),
   and one facet catches it — fades in, glows, fades away */
.sh-shine__sweep {
  width: calc(var(--gr, .15) * var(--ph) * 2.3); aspect-ratio: 1; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.sh-shine__sweep::before, .sh-shine__sweep::after { content: ""; position: absolute; opacity: 0; }
.sh-shine__sweep::before {
  inset: -20%; transform: translateX(-75%);
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .08) 43%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, .08) 57%, transparent 64%);
}
.sh-shine__sweep::after {
  left: 64%; top: 30%; width: 24%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), color-mix(in srgb, var(--a1) 55%, transparent) 38%, transparent 100%);
}
.sh-slide.is-current .sh-shine__sweep::before { animation: gemSweep 7.5s cubic-bezier(.45, 0, .2, 1) .9s infinite; }
.sh-slide.is-current .sh-shine__sweep::after { animation: gemTwinkle 7.5s ease-in-out .9s infinite; }
@keyframes gemSweep {
  0% { transform: translateX(-75%); opacity: 0; }
  6%, 24% { opacity: 1; }
  32%, 100% { transform: translateX(75%); opacity: 0; }
}
@keyframes gemTwinkle {
  0%, 12% { opacity: 0; scale: .5; }
  21% { opacity: .85; scale: 1; }
  38%, 100% { opacity: 0; scale: .7; }
}

/* slide index — tiny gem diamonds; the active one glows in the gem's colours */
.sh-index { position: absolute; z-index: 6; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 2px; }
.sh-index__item { display: grid; place-items: center; width: 30px; height: 30px; }
.sh-index__item i {
  width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid rgba(255, 255, 255, .5); border-radius: 1px;
  transition: transform .6s var(--ease), background-color .6s, border-color .6s, box-shadow .6s;
}
.sh-index__item.is-active i {
  transform: rotate(45deg) scale(1.45); border-color: transparent;
  background: linear-gradient(135deg, var(--a1, #fff), var(--a2, #fff));
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--a2, #fff) 60%, transparent);
}
@media (hover: hover) { .sh-index__item:hover i { border-color: #fff; transform: rotate(45deg) scale(1.2); } }

.sh-cue { display: none; }

@media (min-width: 600px) {
  .sh-slide__title { font-size: clamp(36px, min(7vw, 5.6svh), 60px); }
}
@media (min-width: 900px) {
  .story-hero { --step: 80svh; }
  .sh-slide { --ph: 100svh; }
  .sh-slide { --iris-x: var(--ix, 30%); --iris-y: var(--iy, 50%); }
  /* desktop: photo panel on the gem side, fading toward the text side */
  .sh-slide__media { top: 0; bottom: 0; height: auto; width: 66%; }
  .sh-slide[data-side="right"] .sh-slide__media { left: 0; right: auto; -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 100%); mask-image: linear-gradient(90deg, #000 58%, transparent 100%); }
  .sh-slide[data-side="left"] .sh-slide__media { right: 0; left: auto; -webkit-mask-image: linear-gradient(270deg, #000 58%, transparent 100%); mask-image: linear-gradient(270deg, #000 58%, transparent 100%); }
  /* text alternates sides slide to slide; those photos are mirrored so the gem always sits
     opposite the text (the mask is written in the mirrored panel's own coordinates) */
  .sh-slide[data-flip] .sh-slide__media { transform: scaleX(-1); }
  .sh-slide[data-flip][data-side="left"] .sh-slide__media { -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 100%); mask-image: linear-gradient(90deg, #000 58%, transparent 100%); }
  .sh-slide[data-flip][data-side="right"] .sh-slide__media { -webkit-mask-image: linear-gradient(270deg, #000 58%, transparent 100%); mask-image: linear-gradient(270deg, #000 58%, transparent 100%); }
  .sh-slide__media img { object-position: var(--pos, center); transform-origin: var(--pos, center); }
  /* the words sit centred in the open space opposite the gem */
  .sh-slide__content { align-items: center; justify-content: center; max-width: none; margin: 0; padding-bottom: 0; padding-top: var(--header-h); }
  .sh-slide[data-side="right"] .sh-slide__content { padding-left: 52%; padding-right: calc(var(--gutter) + 48px); }
  .sh-slide[data-side="left"] .sh-slide__content { padding-left: var(--gutter); padding-right: 52%; }
  .sh-slide__inner { max-width: 560px; gap: 28px; justify-items: start; text-align: left; }
  .sh-slide__title { font-size: clamp(44px, 4.4vw, 72px); line-height: 1.05; text-wrap: pretty; }

  .sh-index { left: auto; right: calc(var(--gutter) - 6px); top: 50%; bottom: auto; translate: 0 -50%; flex-direction: column; gap: 4px; }

  .sh-cue {
    position: absolute; z-index: 6; left: 50%; bottom: 28px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .7); transition: opacity .8s var(--ease);
  }
  .sh-cue i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, .2); overflow: hidden; }
  .sh-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: linear-gradient(180deg, transparent, var(--a1, #fff)); animation: cue 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
  .story-hero.is-scrolling .sh-cue { opacity: 0; }
}
@keyframes cue { to { top: 100%; } }

/* fine film grain over the hero — photographic, luxury texture */
.story-hero__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- intro: logo, then split doors open onto the hero (first visit per session) ---------- */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; }
.intro__door { position: absolute; left: 0; right: 0; height: 50.5%; background: #0b0d14; transition: transform 1.25s cubic-bezier(.76, 0, .24, 1); }
.intro__door--top { top: 0; background: linear-gradient(180deg, #0b0d14, #10131d); }
.intro__door--bottom { bottom: 0; background: linear-gradient(0deg, #0b0d14, #10131d); }
.intro__mark { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; transition: opacity .5s ease, transform .9s cubic-bezier(.76, 0, .24, 1); }
.intro__mark img { width: 92px; opacity: 0; transform: scale(.85); filter: drop-shadow(0 0 24px rgba(69, 182, 243, .45)); animation: introLogo 1.1s cubic-bezier(.16, 1, .3, 1) .1s forwards; }
.intro__line { position: relative; width: 140px; height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.intro__line i { position: absolute; inset: 0; background: linear-gradient(90deg, #5cc8f7, #20c4cc, #1446b8); transform: scaleX(0); transform-origin: left; animation: introLine 1.3s cubic-bezier(.65, 0, .35, 1) .25s forwards; }
.intro__name { font-family: var(--font-display); font-size: 22px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .85); opacity: 0; animation: introName 1s ease .55s forwards; }
.intro-out .intro__mark { opacity: 0; transform: translateY(-14px); }
.intro-out .intro__door--top { transform: translateY(-101%); }
.intro-out .intro__door--bottom { transform: translateY(101%); }
@keyframes introLogo { to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introName { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .32em; } }

/* Lenis smooth scroll */
html.has-lenis, html.has-lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- product carousel ---------- */
.carousel-nav { display: none; gap: 8px; }
.carousel { position: relative; }
.carousel__track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 6px var(--edge) 24px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .gem-card { flex: 0 0 68vw; max-width: 300px; scroll-snap-align: start; }
.carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel__track.is-dragging .gem-card__btn { pointer-events: none; }
.carousel__foot { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.carousel__progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.carousel__progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; border-radius: 2px; background: var(--grad-brand); transition: transform .2s linear, width .2s; }
@media (min-width: 600px) { .carousel__track > .gem-card { flex-basis: 42vw; } }
@media (min-width: 900px) {
  .carousel-nav { display: flex; }
  .carousel__track { gap: 20px; cursor: grab; scroll-behavior: smooth; }
  .carousel__track > .gem-card { flex-basis: 280px; }
}

/* ---------- gem cards ---------- */
.gem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .gem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .gem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.gem-card { position: relative; border-radius: var(--radius); }
.gem-card[hidden] { display: none; }
.gem-card__btn {
  --mx: 50%; --my: 30%; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; border-radius: inherit; overflow: hidden;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 1px 0 #fff inset, 0 10px 30px -18px rgba(14, 76, 140, .35);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.gem-card__btn:active { transform: scale(.98); }
.gem-card__btn::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(143, 211, 255, .35), transparent 45%);
}
.gem-card__media { position: relative; aspect-ratio: 1; margin: 6px 6px 0; border-radius: calc(var(--radius) - 6px); background: #fff; overflow: hidden; }
.gem-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gem-card__body { display: grid; gap: 4px; padding: 12px 12px 14px; }
.gem-card__tag { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gem-card__name { font-family: var(--font-display); font-size: clamp(18px, 4.8vw, 24px); line-height: 1.12; color: var(--ink); }
.gem-card__code { font-size: 12px; letter-spacing: .05em; font-variant-numeric: tabular-nums; color: var(--sky-600); }
.gem-card__cta {
  position: absolute; right: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  width: 34px; height: 34px; justify-content: center; border-radius: 999px; overflow: hidden;
  color: var(--ink); background: rgba(255, 255, 255, .88); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: width .5s var(--ease), background-color .3s, color .3s;
}
.gem-card__cta span { display: none; }
@media (min-width: 600px) { .gem-card__body { padding: 14px 16px 18px; gap: 6px; } .gem-card__tag { font-size: 11px; } .gem-card__media { margin: 8px 8px 0; } }
@media (hover: hover) {
  .gem-card__btn:hover { box-shadow: 0 1px 0 #fff inset, 0 30px 60px -28px rgba(20, 70, 184, .45); border-color: var(--sky-200); }
  .gem-card__btn:hover::before { opacity: 1; }
  .gem-card__btn:hover .gem-card__media img { transform: scale(1.08) rotate(-2deg); }
  .gem-card__btn:hover .gem-card__cta { width: 118px; background: var(--ink); color: #fff; }
  .gem-card__btn:hover .gem-card__cta span { display: inline; }
}

/* ---------- split / collage / banner ---------- */
.split { display: grid; gap: 36px; align-items: center; }
.split__copy { display: grid; gap: 20px; justify-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .split--stretch { align-items: stretch; }
}

.collage { position: relative; display: grid; place-items: center; }
.collage__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(69, 182, 243, .35), transparent); filter: blur(10px); }
.collage__img { position: relative; width: min(100%, 520px); animation: float 8s var(--ease-in-out) infinite alternate; will-change: transform; }
.collage--contact .collage__img { border-radius: 0; }
@keyframes float { from { translate: 0 -8px; } to { translate: 0 10px; } }

.banner { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); box-shadow: var(--shadow-lg); color: rgba(255, 255, 255, .86); }
.banner__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 50%; will-change: transform; }
.banner__content { position: relative; display: grid; gap: 18px; justify-items: start; padding: 28px 22px 32px; }
.banner__content h2 { color: #fff; }
.banner__content h2 em { background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; }
@media (min-width: 900px) {
  .banner__img { aspect-ratio: 21 / 9; object-position: 45% 42%; }
  /* photo melts into the night-blue card below */
  .banner::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 38%, rgba(5, 14, 35, .55) 62%, var(--night) 100%); }
  .banner__content {
    z-index: 2; margin: -110px 28px 28px; padding: 40px 48px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); row-gap: 14px; align-items: end;
    border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  }
  /* title on the left; its words and button stacked on the right, both resting on one baseline */
  .banner__content > .eyebrow { grid-column: 1; grid-row: 1; }
  .banner__content > h2 { grid-column: 1; grid-row: 2 / 4; align-self: end; }
  .banner__content > p:not(.eyebrow) { grid-column: 2; grid-row: 2; align-self: end; max-width: 46ch; }
  .banner__content > div { grid-column: 2; grid-row: 3; align-self: end; margin-top: 8px; }
}

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; display: grid; justify-items: center; gap: 22px; padding: 44px 20px; border-radius: var(--radius-lg); text-align: center; overflow: hidden;
}
.cta-panel::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(69, 182, 243, .3), transparent); }
.cta-panel h2 { max-width: 18ch; }
.cta-panel .lead { text-align: center; }
.cta-note { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--sky-600); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 900px) { .cta-panel { padding: clamp(56px, 7vw, 96px) clamp(40px, 6vw, 80px); } }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); transition: color .3s, background-color .3s, transform .4s var(--ease);
}
@media (hover: hover) { .socials a:hover { color: #fff; background: var(--sky-500); transform: translateY(-3px); } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 9vw, 110px)) 0 clamp(32px, 6vw, 64px); }
.page-hero__inner { display: grid; gap: 18px; max-width: 900px; }
.page-hero.center .page-hero__inner { margin-inline: auto; text-align: center; justify-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.breadcrumb a { padding: 10px 0; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .08em .26em; margin: 0 -.08em -.2em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-loaded .hero-title .line > span { transform: none; }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-fade { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .4s, transform 1s var(--ease) .4s; }
.is-loaded .hero-fade { opacity: 1; transform: none; }
.no-js .hero-title .line > span, .no-js .hero-fade { transform: none; opacity: 1; }

/* ---------- story (about page) ---------- */
.story-grid { display: grid; gap: 8px; }
.story-media { display: none; }
.story-steps { display: grid; gap: 48px; }
.story-step { display: grid; gap: 16px; }
.story-step__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-bottom: 8px; }
.story-step__num { font-family: var(--font-display); font-size: 18px; font-style: italic; color: var(--sky-600); }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .story-media { display: block; position: sticky; top: calc(var(--header-h) + 24px); height: calc(100svh - var(--header-h) - 48px); max-height: 720px; }
  .story-frame { position: relative; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--sapphire-deep); box-shadow: var(--shadow-lg); }
  .story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1s var(--ease), transform 2.4s var(--ease); }
  .story-frame img.is-active { opacity: 1; transform: scale(1); }
  .story-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 36, 99, 0) 50%, rgba(11, 36, 99, .55)); pointer-events: none; }
  .story-hud { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 18px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .story-hud__num { font-family: var(--font-display); font-size: 34px; line-height: 1; }
  .story-hud__num small { font-size: 16px; opacity: .6; }
  .story-hud__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
  .story-progress { display: flex; gap: 6px; }
  .story-progress i { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid rgba(255, 255, 255, .7); transition: background-color .4s, transform .4s var(--ease); }
  .story-progress i.is-active { background: #fff; transform: rotate(45deg) scale(1.25); }
  .story-steps { gap: 0; }
  .story-step { min-height: 78svh; align-content: center; padding-block: 40px; opacity: .25; transition: opacity .8s var(--ease); }
  .story-step.is-active { opacity: 1; }
  .story-step__img { display: none; }
}

/* ---------- toolbar (products page) ---------- */
.toolbar { display: grid; gap: 8px; padding: 8px; margin-bottom: 20px; border-radius: 22px; }
.filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding-inline: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; flex: none;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .3s, color .3s;
}
.filter[aria-pressed="true"] { color: #fff; background: var(--ink); }
.filter span { font-size: 12px; opacity: .6; }
.search { position: relative; }
.search .icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  font-size: 16px; /* 16px prevents iOS zoom on focus */ transition: border-color .3s, box-shadow .3s;
}
.search input:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(69, 182, 243, .15); }
.result-count { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 16px; text-align: center; color: var(--ink-3); }
.empty[hidden] { display: none; }
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sky-100); color: var(--sky-600); }
@media (hover: hover) { .filter:not([aria-pressed="true"]):hover { color: var(--ink); background: rgba(255, 255, 255, .8); } }
@media (min-width: 900px) {
  .toolbar { position: sticky; top: calc(var(--header-h) + 4px); z-index: 20; grid-template-columns: 300px 1fr; align-items: center; }
  .search input { height: 44px; font-size: 14px; }
  .filters { justify-content: flex-end; }
}

/* ---------- quick view: bottom sheet on phones, dialog on desktop ---------- */
.quickview {
  width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; padding: 0 0 env(safe-area-inset-bottom); border: 0;
  border-radius: 28px 28px 0 0; color: var(--ink-2); background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 -20px 80px -20px rgba(11, 36, 99, .45); overflow: auto; overscroll-behavior: contain;
}
.quickview::backdrop { background: rgba(10, 26, 51, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.quickview[open] { animation: sheet .55s var(--ease); }
.quickview[open]::backdrop { animation: fade .4s var(--ease); }
.quickview::before { content: ""; display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: var(--line-strong); }
@keyframes sheet { from { transform: translateY(40%); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.quickview__grid { display: grid; }
.quickview__media { position: relative; margin: 10px 12px 0; border-radius: var(--radius); background: #fff; overflow: hidden; }
.quickview__media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.quickview__media.is-zoom img { transform: scale(2); }
.quickview__body { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 24px; }
.qv-code { font-family: var(--font-sans); font-size: 15px; letter-spacing: .06em; color: var(--sky-600); }
.quickview__close { position: absolute; right: 14px; top: 20px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); color: var(--ink); }
.quickview__actions { display: grid; gap: 10px; margin-top: auto; }
body.dialog-open { overflow: hidden; }
@media (min-width: 900px) {
  .quickview { width: min(940px, calc(100% - 48px)); max-height: calc(100svh - 48px); margin: auto; padding: 0; border-radius: var(--radius-lg); box-shadow: 0 40px 120px -30px rgba(11, 36, 99, .55); }
  .quickview[open] { animation: pop .55s var(--ease); }
  .quickview::before { display: none; }
  .quickview__grid { grid-template-columns: 1.1fr 1fr; }
  .quickview__media { margin: 10px; border-radius: calc(var(--radius-lg) - 8px); cursor: zoom-in; }
  .quickview__body { padding: 52px 40px 40px; }
  .quickview__close { top: 14px; }
  .quickview__close:hover { background: var(--ink); color: #fff; }
}

/* ---------- gemstone detail page ---------- */
.gem-detail { padding: calc(var(--header-h) + 24px) 0 clamp(24px, 5vw, 56px); }
.gem-detail__grid { display: grid; gap: 28px; align-items: center; }
.gem-detail__media { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.gem-detail__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gem-detail__body { display: grid; gap: 18px; justify-items: start; }
.gem-detail__body .quickview__actions { width: 100%; max-width: 420px; }
.qv-link { justify-self: center; min-height: 44px; font-size: 14px; }
@media (min-width: 900px) {
  .gem-detail { padding-top: calc(var(--header-h) + 56px); }
  .gem-detail__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 10px; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-content: start; padding: 18px; border-radius: var(--radius); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.contact-card > .pillar__icon { grid-row: span 3; }
.contact-card > :not(.pillar__icon) { grid-column: 2; }
@media (min-width: 600px) {
  .contact-card { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .contact-card > .pillar__icon { grid-row: auto; }
  .contact-card > :not(.pillar__icon) { grid-column: auto; }
}
a.contact-card:active { transform: scale(.98); }
.contact-card h2 { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.contact-card p { font-family: var(--font-display); font-size: clamp(21px, 5.6vw, 24px); line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.contact-card__hint { font-size: 13px; color: var(--sky-600); }
.icon-tile, .pillar__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--sky-600); background: linear-gradient(135deg, #fff, var(--sky-100)); box-shadow: 0 1px 0 #fff inset, 0 8px 20px -10px rgba(20, 70, 184, .4); }
.pillar__icon .icon { width: 22px; height: 22px; }
.map { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 600px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } .map { min-height: 460px; } }
@media (hover: hover) { a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow), 0 30px 60px -30px rgba(20, 70, 184, .4); } }

/* ---------- footer ---------- */
.site-footer { position: relative; padding: 56px 0 24px; margin-top: clamp(24px, 5vw, 64px); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(228, 244, 255, .6)); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; }
.footer-brand img { width: 68px; }
.footer-brand .display { font-size: 30px; color: var(--ink); line-height: 1; }
.footer-brand .socials { margin-top: 6px; }
.footer-col h3 { margin-bottom: 10px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.footer-col ul { display: grid; }
.footer-col a { display: inline-flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 15px; color: var(--ink-2); transition: color .3s; }
.footer-col .icon { margin-top: 4px; color: var(--sky-500); }
.footer-wordmark {
  margin: 40px 0 16px; font-family: var(--font-display); font-size: clamp(60px, 18vw, 240px); line-height: .8; letter-spacing: -.02em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(26, 152, 222, .28), rgba(26, 152, 222, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.footer-bottom { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); text-align: center; }
.footer-bottom a { color: var(--ink); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
@media (hover: hover) { .footer-col a:hover { color: var(--sky-600); } .footer-bottom a:hover { color: var(--sky-600); background-size: 100% 1px; } }
@media (min-width: 900px) {
  .site-footer { padding-top: 88px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
  .footer-col li:first-child a { padding-top: 0; }
  .footer-bottom { display: flex; justify-content: space-between; text-align: left; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.notfound__inner { display: grid; justify-items: center; gap: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="scale"] { transform: scale(.95); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* carousel cards reveal horizontally */
.js .carousel__track > [data-reveal] { transform: translateX(40px); }
.js .carousel__track > [data-reveal].is-in { transform: none; }

/* ---------- reduced motion ---------- */
/* Visitors who ask the OS to reduce motion still get the slideshow and soft
   cross-fades, but no zooming, wiping, sliding words, drifting or sparkles. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .collage__img, .marquee__track, .sh-cue__mouse::after { animation: none !important; }
  .cursor-light, .sh-cue { display: none; }
  /* gem shine stays (a light change, not movement of content); the bloom holds still */
  .sh-shine__bloom { animation: none; opacity: .25; }
  .js [data-reveal], .js [data-reveal="scale"], .js .carousel__track > [data-reveal] { transform: none; }
  .hero-title .line > span, .hero-fade { transform: none; }

  /* hero keeps its iris reveal (a mask, no movement) and soft fades; no zoom/drift/rising text */
  .sh-slide__media img { transform: none; translate: none; }
  .sh-slide__media::after { display: none; }
  .sh-slide__inner { translate: none; }
  .sh-slide__title .w > span { transform: none; }
  .sh-slide::before, .sh-slide__title em .w > span { animation: none; }
  /* intro: simple fade instead of moving doors */
  .intro__door { transition: opacity .9s ease; }
  .intro-out .intro__door--top, .intro-out .intro__door--bottom { transform: none; opacity: 0; }
  .intro__mark img { animation: introFade .8s ease forwards; transform: none; }
  .intro__line i { animation: none; transform: scaleX(1); }
  .intro__name { animation: introFade .8s ease .2s forwards; }
  .intro-out .intro__mark { transform: none; }
}
@keyframes introFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gem-card__btn { transform: none; }
}

/* ---------- phones: centred rhythm (home sections + footer) ---------- */
@media (max-width: 899.98px) {
  .section-head, .split__copy, .banner__content { justify-items: center; text-align: center; }
  .gem-card__body { justify-items: center; text-align: center; }
  .split__copy .lead, .banner__content p { margin-inline: auto; }
  .carousel__foot { flex-direction: column; gap: 22px; }
  .carousel__progress { width: 100%; flex: none; }
  .footer-brand { justify-items: center; text-align: center; }
  .footer-col { text-align: center; }
  .footer-col ul { justify-items: center; }
  .footer-col a { justify-content: center; }
}
