/* ==========================================================================
   Nero Diamond — static site
   Light adaptation of the Althea layout in #FAFAFC and cool neutral tints.
   ========================================================================== */

:root {
  --bg: #FAFAFC;
  --bg-deep: #ECEDF2;
  --white: #FFFFFF;
  --ink: #0D0D0D;
  --btn: #1E1F24;
  --btn-hover: #2F3138;
  --text: #2A2B30;
  --muted: #62646E;
  --muted-2: #9496A0;
  --line: rgba(30, 31, 36, 0.35);
  --accent: #2A2B30;
  --accent-text: #0D0D0D;
  --on-dark: #FAFAFC;
  --card: rgba(255, 255, 255, 0.66);
  --card-strong: rgba(255, 255, 255, 0.9);
  --card-line: rgba(255, 255, 255, 0.95);
  --hair: rgba(30, 31, 36, 0.08);
  --shadow: 0 18px 50px -24px rgba(30, 32, 48, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(30, 32, 48, 0.3);
  --radius: 26px;
  --radius-sm: 16px;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] {
  --serif: "Tajawal", "Instrument Serif", "Times New Roman", sans-serif;
  --sans: "Tajawal", "Inter", system-ui, sans-serif;
}
[dir="rtl"] [lang="en"] {
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
/* <picture> only chooses the file (AVIF or WebP); the <img> inside does the layout. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(30, 31, 36, 0.12); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; }
.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 { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--btn); color: #fff; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .h4, .h5, .h6, .testi__quote, .quote__text {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
}
.display { font-size: clamp(50px, 7.5vw, 108px); line-height: 1.08; letter-spacing: -0.02em; }
.h1 { font-size: clamp(44px, 6vw, 86px); line-height: 1.08; letter-spacing: -0.02em; }
.h2 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.1; letter-spacing: -0.01em; }
.h3 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.01em; }
.h4 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
.h5 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; }
.h6 { font-size: 22px; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--muted); }

[dir="rtl"] .display, [dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .h4, [dir="rtl"] .testi__title { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .h5, [dir="rtl"] .h6, [dir="rtl"] .testi__quote, [dir="rtl"] .quote__text { line-height: 1.5; }
/* Tajawal headings read better a touch heavier than the Latin serif. */
[dir="rtl"] :is(.display, .h1, .h2, .h3, .h4, .h5, .h6, .testi__title) { font-weight: 500; }
[dir="rtl"] [lang="en"] .quote__text { line-height: 1.3; font-weight: 400; }
[dir="rtl"] .display { font-size: clamp(44px, 6.6vw, 96px); }
[dir="rtl"] .h1 { font-size: clamp(40px, 5.4vw, 78px); }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 4px 14px -10px rgba(30, 32, 48, 0.4);
}
.link-underline { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .25s; }
.link-underline:hover { color: var(--accent-text); }

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 25%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #FAFAFC 0%, #F1F2F6 65%, #E6E8EE 100%);
}
.bg__rings { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px -12px rgba(13, 13, 13, 0.55);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--btn-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px -12px rgba(30, 32, 48, 0.6); }
.btn:active { transform: scale(0.98); }
.btn__label { position: relative; display: block; line-height: 52px; transition: transform .5s var(--ease-out); }
.btn__label::after { content: attr(data-label); position: absolute; inset-inline: 0; top: 100%; color: var(--on-dark); text-align: center; }
.btn:hover .btn__label, .btn:focus-visible .btn__label { transform: translateY(-100%); }
.btn--light { background: #fff; color: var(--text); box-shadow: 0 8px 22px -12px rgba(30, 32, 48, 0.45); }
.btn--light:hover { background: #fff; }
.btn--light .btn__label::after { color: var(--muted); }
.btn--block { width: 100%; }

.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.round-btn:hover { background: #fff; color: var(--accent-text); transform: scale(1.06); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Cards / frames ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.frame {
  padding: 8px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
}
.frame__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.jewel-icon { width: 60px; height: 60px; color: var(--accent); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.star { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { max-width: 860px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head .lead { max-width: 560px; margin: 20px auto 0; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
.nav__fade {
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background: linear-gradient(to bottom, rgba(246, 247, 250, 0.96) 0%, rgba(246, 247, 250, 0.7) 45%, rgba(246, 247, 250, 0) 100%);
  pointer-events: none;
}
.nav__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; justify-self: start; color: var(--ink); }
/* Logo image (mark + NERO DIAMOND): sized by height, width follows its proportions. */
.nav__logo { display: block; height: 38px; width: auto; }
.nav__links { display: flex; gap: clamp(28px, 4vw, 64px); }
.nav__link { position: relative; font-size: 17px; color: var(--text); transition: color .25s; }
.nav__link::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--accent-text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Collections submenu. In the header bar it drops down on hover (mouse) or on click/tap/keyboard
   (.is-open, set by main.js); in the mobile panel it opens in place under its button. */
.nav__sub { position: relative; }
.nav__sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.nav__chevron { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.nav__sub.is-open .nav__chevron { transform: rotate(180deg); }
.nav__sub-menu { list-style: none; margin: 0; padding: 0; }
.nav__sub-link { display: block; color: var(--text); transition: color .2s, background .2s; }
.nav__links .nav__sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 5;
  min-width: 230px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
/* Invisible bridge over the gap, so the menu stays open while the pointer moves down to it. */
.nav__links .nav__sub-menu::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 18px; }
.nav__links .nav__sub.is-open .nav__sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) {
  .nav__links .nav__sub:hover .nav__sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .nav__links .nav__sub:hover .nav__chevron { transform: rotate(180deg); }
}
.nav__links .nav__sub-link { padding: 10px 14px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.nav__links .nav__sub-link:hover, .nav__links .nav__sub-link:focus-visible { background: var(--bg); color: var(--accent-text); }
.nav__panel .nav__sub-toggle { width: 100%; justify-content: space-between; text-align: start; }
.nav__panel .nav__sub-menu { display: none; padding: 2px 0 10px; padding-inline-start: 14px; border-inline-start: 1px solid var(--hair); margin-inline-start: 6px; }
.nav__panel .nav__sub.is-open .nav__sub-menu { display: grid; gap: 2px; }
.nav__panel .nav__sub-link { padding: 8px 4px; font-size: 18px; }
.nav__actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.nav__lang {
  display: inline-grid;
  place-items: center;
  height: 40px;
  min-width: 52px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 31, 36, 0.18);
  font-size: 15px;
  color: var(--text);
  transition: background .25s, color .25s;
}
.nav__lang:hover { background: #fff; color: var(--accent-text); }
.nav__lang:lang(ar) { font-family: "Tajawal", "Segoe UI", sans-serif; font-weight: 500; }
.nav__lang:lang(en) { font-family: "Inter", system-ui, sans-serif; }
.nav__cta { height: 46px; font-size: 16px; }
.nav__cta .btn__label { line-height: 46px; }
.nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.nav__panel {
  position: relative;
  margin: 0 var(--gutter);
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__panel nav { display: grid; gap: 4px; margin-bottom: 18px; }
.nav__panel .nav__link { padding: 10px 4px; font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.nav__panel .nav__link::after { display: none; }
.nav__panel .btn { width: 100%; }
.nav__panel:not([hidden]) { animation: panel-in .45s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(70px, 12vh, 140px); }
.hero__inner { position: relative; z-index: 1; text-align: center; }
/* Portrait behind the headline, fitted to height like the template's "Image 3D". */
.hero__visual {
  position: absolute;
  top: 0;
  left: 50%;
  height: min(104svh, 1000px);
  aspect-ratio: 928 / 1228;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 97%);
  animation: hero-visual-in 1.8s var(--ease-out) both;
}
.hero__img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__visual.is-3d .hero__img { visibility: hidden; }
@keyframes hero-visual-in { from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(1.03); filter: blur(12px); } }
.hero__title { max-width: 1180px; margin-inline: auto; font-size: clamp(42px, 6vw, 92px); }
/* Arabic glyphs are larger and wider than the Latin serif at the same size, so the Arabic headline
   is set smaller to match the English one: two lines, the same visual weight. */
[dir="rtl"] .hero__title { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.35; }
.hero__text { margin: 22px auto 30px; max-width: 600px; color: var(--text); text-wrap: balance; }

/* ---------- Trust strip (marquee) ---------- */
/* Two identical groups slide by exactly one group width, so the loop is seamless. */
.trust {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 22px;
  border-block: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust__track { display: flex; width: max-content; animation: trust-loop 48s linear infinite; }
.trust:hover .trust__track { animation-play-state: paused; }
.trust__group { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.trust__item { display: flex; align-items: center; gap: 18px; padding-inline: 28px; white-space: nowrap; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; color: var(--text); }
.trust__icon { flex: none; width: 18px; height: 18px; color: var(--muted-2); }
.trust__icon * { stroke-width: 3.2; }
.trust__item .icon.trust__icon { width: 20px; height: 20px; }
.trust__item .icon.trust__icon * { stroke-width: 1.6; }
/* Nero mark (N + diamond) is wider than tall. */
.trust__icon--mark { width: auto; height: 17px; }
.trust__icon--mark * { stroke-width: 34; } /* drawn in a 1726-unit box: keep its own line weight */
/* Certifier logos: the file is used as a mask, so every logo shows in the same grey. */
.trust__logo { flex: none; display: block; height: 24px; width: auto; background-color: var(--muted); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
/* Heights balanced by eye: the logos differ in how much of their box is ink (JTR is dense and wide). */
.trust__logo--gia { height: 30px; }
.trust__logo--jtr { height: 19px; }
.trust__logo--hrd { height: 30px; }
/* The logo reads as part of the phrase (it replaces the certifier name), so it sits closer. */
.trust__item:has(.trust__logo) { gap: 10px; }
@keyframes trust-loop { to { transform: translateX(-50%); } }
[dir="rtl"] .trust__track { animation-name: trust-loop-rtl; }
[dir="rtl"] .trust__item { font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; }
@keyframes trust-loop-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .trust { -webkit-mask-image: none; mask-image: none; }
  .trust__track { animation: none; width: auto; justify-content: center; }
  .trust__group { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .trust__group[aria-hidden], .trust__item[aria-hidden] { display: none; }
}

/* ---------- Quote (word reveal) ---------- */
/* Pinned for 200px of scrolling — two mouse-wheel steps — to light every word and show the signature. */
.quote { --quote-scroll: 200px; position: relative; height: calc(100vh + var(--quote-scroll)); height: calc(100svh + var(--quote-scroll)); }
.quote__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.quote__inner { margin: 0 auto; max-width: 1060px; text-align: center; }
.quote__text { margin: 0; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.3; }
.quote__text .qw { opacity: 0.13; transition: opacity .35s var(--ease); }
.quote__text .qw.is-lit { opacity: 1; }
.quote__author { margin-top: 32px; display: grid; justify-items: center; gap: 4px; opacity: 0; transition: opacity .6s var(--ease); }
.quote.is-done .quote__author { opacity: 1; }

/* Signature: each pen stroke (--s start, --d duration, as fractions of the whole) draws in
   sequence and reveals the vector outline; the full outline settles in at the end. */
.signature { --sig-time: 3.4s; width: clamp(200px, 21vw, 300px); }
.signature svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sig-ink, .sig-full { fill: var(--ink); }
.sig-full { opacity: 0; }
/* Each pen stroke stays hidden until its turn: round caps would otherwise show a dot at both ends
   of every stroke before it is drawn. The 1 2 dash keeps the next dash off the end of the path. */
.sig-pen { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; }
.quote.is-done .sig-pen, .signature.is-in .sig-pen { animation: sig-write calc(var(--d) * var(--sig-time)) linear calc(var(--s) * var(--sig-time) + .3s) forwards; }
.quote.is-done .sig-full, .signature.is-in .sig-full { animation: sig-settle .6s var(--ease) calc(var(--sig-time) + .3s) forwards; }
@keyframes sig-write { from { opacity: 1; stroke-dashoffset: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes sig-settle { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sig-pen { stroke-dashoffset: 0; opacity: 1; animation: none !important; }
  .sig-full { opacity: 1; animation: none !important; }
}

/* ---------- Collection arc ---------- */
.arc { position: relative; height: 420vh; }
.arc__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-top: calc(var(--nav-h) + 2vh); display: flex; flex-direction: column; }
.arc .section-head { margin-bottom: 0; padding-inline: var(--gutter); }
.arc__title { max-width: 900px; margin-inline: auto; font-size: clamp(34px, min(4.6vw, 7vh), 66px); }
.arc .section-head .lead { margin-top: min(20px, 2vh); }
.arc__track { position: relative; flex: 1; margin: clamp(28px, 6vh, 64px) 0 0; padding: 0; list-style: none; }
.arc__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px;
  height: 312px;
  margin-left: -150px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: var(--card-strong);
  will-change: transform;
}
.arc__card .jewel-icon { width: 52px; height: 52px; margin-bottom: 6px; }
.arc__card .small.muted { flex: 1; }
.arc__link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.arc__link:hover { color: var(--accent-text); }
[dir="rtl"] .arc__card .h4 { font-size: clamp(28px, 2.4vw, 34px); }
.arc__card { transition: box-shadow .4s var(--ease-out); }
.arc__card:hover { box-shadow: var(--shadow); }
.arc__card:hover .arc__link { text-decoration-color: currentColor; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Journey ---------- */
.journey { padding-bottom: 40px; }
.journey__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.journey__media { position: sticky; top: calc(var(--nav-h) + 20px); aspect-ratio: 1600 / 1300; }
/* One image per step, cross-faded as each step becomes active. */
.journey__pane { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease-out); }
.journey__pane.is-active { opacity: 1; transform: none; }
.journey__step-img { display: none; }
/* The step photos come with their own soft, transparent edges, so they are shown whole. */
.journey__img { width: 100%; height: 100%; aspect-ratio: 1600 / 1300; object-fit: contain; }
.journey__steps { list-style: none; display: grid; gap: 26vh; padding-block: 8vh 14vh; }
.journey__cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }
.journey__step { position: relative; padding-inline-start: 120px; opacity: 0.35; transition: opacity .6s var(--ease); }
.journey__step.is-active { opacity: 1; }
.journey__num {
  position: absolute;
  inset-inline-start: -70px;
  top: -40px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(130px, 14vw, 200px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 12px 40px rgba(60, 64, 90, 0.25);
  -webkit-text-stroke: 1px rgba(90, 94, 120, 0.4);
  pointer-events: none;
}
.journey__copy { position: relative; max-width: 360px; }
.journey__copy .h5 { margin-bottom: 10px; }

/* ---------- Social links ---------- */
.social { display: flex; gap: 8px; margin-top: 12px; list-style: none; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: color .25s, background .25s; }
.social a:hover { color: var(--accent-text); background: rgba(255, 255, 255, 0.8); }

/* ---------- Craft bento ---------- */
/* Seven cards on a 4-column grid: three rows of products with the Nero card in the middle row.
   Row 1: p1 | p2 (wide) | p3 (tall, rows 1–2)   Row 2: p4 (wide) | brand | p3   Row 3: p5 | p6 */
.bento { display: grid; grid-template-columns: 1.2fr 0.55fr 1.2fr 1.25fr; grid-template-rows: repeat(3, 300px); gap: 16px; }
.bento__card { position: relative; isolation: isolate; overflow: hidden; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: var(--card-strong); }
.bento__copy { display: flex; flex-direction: column; height: 100%; max-width: 48%; }
.bento__img { z-index: -1; }
.bento__copy .small.muted { margin-top: auto; }
.bento__copy .arc__link { margin-top: 12px; align-self: flex-start; }
.bento__card--p1 { grid-column: 1; grid-row: 1; }
.bento__card--p2 { grid-column: 2 / 4; grid-row: 1; }
.bento__card--p3 { grid-column: 4; grid-row: 1 / 3; }
.bento__card--p4 { grid-column: 1 / 3; grid-row: 2; }
.bento__card--brand { grid-column: 3; grid-row: 2; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.bento__card--p5 { grid-column: 1 / 3; grid-row: 3; }
.bento__card--p6 { grid-column: 3 / 5; grid-row: 3; }
/* Product shots are transparent cut-outs: shown whole (contain) beside the text. */
.bento__img { position: absolute; top: 0; inset-inline-end: 0; width: 50%; height: 100%; padding: 22px 18px; object-fit: contain; transition: transform 1s var(--ease-out), opacity .45s var(--ease-out); }
.bento__card:hover .bento__img { transform: scale(1.04); }
/* Product cards turn the logo's black on hover (pointer devices only), with light text. */
.bento__card:not(.bento__card--brand) { transition: background-color .45s var(--ease-out), border-color .45s var(--ease-out), color .45s var(--ease-out); }
.bento__card:not(.bento__card--brand) :is(h3, .small, .arc__link) { transition: color .45s var(--ease-out), text-decoration-color .45s var(--ease-out); }
@media (hover: hover) {
  .bento__card:not(.bento__card--brand):hover { background: #000; border-color: #000; }
  .bento__card:not(.bento__card--brand):hover h3 { color: var(--on-dark); }
  .bento__card:not(.bento__card--brand):hover .small.muted { color: rgba(250, 250, 252, 0.66); }
  .bento__card:not(.bento__card--brand):hover .arc__link { color: var(--on-dark); text-decoration-color: rgba(250, 250, 252, 0.45); }
  /* Bespoke: the black signature cross-fades to its white version on the black card. */
  .bento__card:hover:has(.bento__img--hover) .bento__img:not(.bento__img--hover) { opacity: 0; }
  .bento__card:hover .bento__img--hover { opacity: 1; }
}
.bento__img--hover { opacity: 0; }
/* Nero card: "World full of Diamonds" photo behind the logo, softened for legibility. */
.bento__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__card--brand::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(250, 250, 252, 0.94) 0%, rgba(250, 250, 252, 0.8) 45%, rgba(250, 250, 252, 0.4) 100%); }
.bento__card--brand > :not(picture):not(.bento__bg) { position: relative; z-index: 2; }
/* Tall card: copy on top, image filling the lower part. */
.bento__card--tall .bento__copy { max-width: none; height: auto; }
.bento__card--tall .bento__copy .small.muted { margin-top: 10px; }
.bento__card--tall .bento__img { top: auto; bottom: 0; width: 100%; height: 62%; padding: 12px 24px 24px; }
/* The logo is an <img> inside <picture> (display: contents), so it gets its own layer above the overlay. */
.bento__logo { position: relative; z-index: 2; width: 230px; max-width: 80%; height: auto; }

/* ---------- Testimonials ---------- */
.testi { position: relative; padding-block: 12vh clamp(80px, 10vw, 140px); }
.testi__title {
  position: sticky;
  top: 12vh;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(84px, 15vw, 230px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 2px rgba(90, 94, 120, 0.35), 0 18px 60px rgba(60, 64, 90, 0.28);
  pointer-events: none;
}
.testi__intro { position: relative; z-index: 1; margin-top: 6vh; text-align: center; }
.testi__intro .lead { margin: 12px auto 0; }
.testi__stage { position: relative; z-index: 1; margin-top: 8vh; display: grid; grid-template-columns: auto minmax(0, 380px) auto; justify-content: center; align-items: center; column-gap: clamp(24px, 9vw, 150px); }
.testi__stack { position: relative; height: 460px; }
.testi__card {
  position: absolute;
  inset: 0;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  transition: transform .7s var(--ease-out), opacity .5s var(--ease);
}
.testi__card[data-pos="0"] { z-index: 3; transform: none; }
.testi__card[data-pos="1"] { z-index: 2; transform: translateY(14px) rotate(2.5deg) scale(0.97); }
.testi__card[data-pos="2"] { z-index: 1; transform: translateY(26px) rotate(-2deg) scale(0.94); }
.testi__card[data-pos="out"] { z-index: 0; opacity: 0; transform: translateY(30px) scale(0.9); }
.testi__card[data-pos="1"] > *, .testi__card[data-pos="2"] > * { opacity: 0; }
.testi__quote { margin: 0; flex: 1; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; }
.testi__share { position: relative; z-index: 1; margin-top: 70px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; max-width: 1040px; margin-inline: auto; }
.faq__col { display: grid; gap: 14px; }
.faq__item { border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--card-line); box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 500; font-size: 15.5px; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; flex: none; transition: transform .35s var(--ease); }
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq__item[open] .faq__answer { animation: faq-in .45s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq__more { margin-top: 56px; text-align: center; display: grid; gap: 6px; }

/* ---------- Footer ---------- */
/* Last section before the footer: no oversized gap (FAQ on inner pages, Contact on home). */
.faq, .contact-section { padding-bottom: clamp(48px, 6vw, 72px); }
.footer { padding-top: 0; }
.footer__cards { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.footer__card { padding: 30px clamp(24px, 4vw, 40px); background: var(--card-strong); }
.footer__links { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.footer__links--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 32px; }
.footer__links a { font-size: 17px; transition: color .25s; }
.footer__links a:hover { color: var(--accent-text); }
.footer__bottom { display: grid; justify-items: center; gap: 14px; padding-block: 64px 48px; text-align: center; }
/* Copyright and developer credit on one line, separated by a dot (they wrap onto two on phones). */
.footer__copy { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; }
.footer__credit { display: inline-flex; gap: 4px; align-items: baseline; }
.footer__credit::before { content: "·"; margin-inline-end: 8px; }
/* On phones the credit wraps under the copyright, where a leading dot would look stray. */
@media (max-width: 600px) { .footer__copy { flex-direction: column; align-items: center; } .footer__credit::before { content: none; } }
.footer__credit a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .25s, text-decoration-color .25s; }
.footer__credit a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.footer__email { display: inline-block; padding-block: 8px; font-size: 18px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.footer__brand { margin-top: 12px; }
.footer__logo { display: block; height: 44px; width: auto; }

/* ---------- Forms ---------- */
.field {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(30, 31, 36, 0.07);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  box-shadow: 0 4px 14px -10px rgba(30, 32, 48, 0.35);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field::placeholder { color: var(--muted-2); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30, 31, 36, 0.08); }
.field[aria-invalid="true"] { border-color: #B5523F; }
.field--area { height: auto; min-height: 140px; padding: 16px 22px; border-radius: 20px; resize: vertical; line-height: 1.55; }
.field-icon { position: relative; }
.field-icon .icon { position: absolute; top: 50%; inset-inline-end: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-icon--start .icon { inset-inline-start: 18px; inset-inline-end: auto; }
.field-icon--start .field { padding-inline-start: 48px; }
.field-icon select.field { padding-inline-end: 48px; cursor: pointer; }
input[type="date"].field { position: relative; }
input[type="date"].field::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }

.form-wrap { max-width: 600px; }
.form__group { display: grid; gap: 12px; margin: 0 0 56px; padding: 0; border: 0; min-width: 0; }
.form__group legend { width: 100%; margin-bottom: 20px; padding: 0; text-align: center; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.choice, .check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.choice input, .check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid rgba(30, 31, 36, 0.15);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s;
}
.choice input { border-radius: 50%; }
.check input { border-radius: 7px; }
.choice input::after, .check input::after { content: ""; width: 10px; height: 10px; border-radius: inherit; background: var(--accent); transform: scale(0); transition: transform .25s var(--ease-out); }
.choice input:checked, .check input:checked { border-color: var(--accent); }
.choice input:checked::after, .check input:checked::after { transform: scale(1); }
.check { margin-top: 12px; }
.form__actions { display: grid; gap: 10px; }
.form__status { min-height: 1.6em; color: var(--accent-text); text-align: center; }
.form__status[data-state="error"] { color: #A23B2A; }

/* ---------- Page heroes ---------- */
.page-hero { padding-top: clamp(150px, 22vh, 230px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .lead { max-width: 660px; margin: 22px auto 0; }
.page-hero .lead + .lead { margin-top: 12px; }
.page-hero .small { margin-top: 18px; }

/* ---------- About: designer profile ---------- */
.about-profile {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-block: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) clamp(56px, 8vw, 110px);
}
.about-profile__photo { max-width: 560px; justify-self: center; width: 100%; position: sticky; top: calc(var(--nav-h) + 24px); }
.about-profile__photo .frame__img { aspect-ratio: 961 / 924; }
.about-profile__copy { display: grid; justify-items: start; gap: 18px; max-width: 580px; }
.about-profile__copy .eyebrow { margin-bottom: 0; }
.about-profile__subtitle { margin-top: -8px; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; color: var(--muted); }
.about-profile__person { display: grid; gap: 4px; margin-top: -4px; }
.about-profile__name { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--text); }
.about-profile__role { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .about-profile__role { letter-spacing: 0; text-transform: none; font-size: 16px; }
.about-profile .prose { margin-top: 6px; }
.about-profile__quote { margin: 10px 0 0; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.prose p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 14px 0; padding-inline-start: 22px; color: var(--muted); line-height: 1.75; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.contact__form { padding: clamp(28px, 4vw, 44px); display: grid; gap: 12px; }
.contact__form .h5 { margin-bottom: 10px; }
.contact__info { padding: clamp(28px, 4vw, 44px); background: var(--card-strong); }
.contact__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.contact__logo { display: block; height: 42px; width: auto; }
.contact__list { display: grid; gap: 22px; margin: 0 0 22px; }
.contact__list dt { display: flex; align-items: center; gap: 8px; }
.contact__list dt .icon { width: 16px; height: 16px; color: var(--accent); }
.contact__list dd { margin: 4px 0 0; font-size: 17px; }
.contact__list a { display: inline-block; padding-block: 6px; }
.contact__list a:hover { color: var(--accent-text); }
[dir="rtl"] .contact__address { text-align: right; }

/* ---------- Legal ---------- */
.legal { max-width: 880px; margin-inline: auto; padding: clamp(28px, 5vw, 64px); background: var(--card-strong); }

/* ---------- 404 ---------- */
.not-found { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding-block: 140px 80px; }
.not-found__code { font-family: "Instrument Serif", serif; font-size: clamp(140px, 22vw, 300px); line-height: 0.9; color: rgba(255, 255, 255, 0.95); text-shadow: 0 0 2px rgba(90, 94, 120, 0.4), 0 20px 60px rgba(60, 64, 90, 0.3); }
.not-found .lead { margin-bottom: 14px; }

/* ---------- Sound toggle ---------- */
.sound { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: start; }
.sound__dot { display: flex; align-items: center; justify-content: center; gap: 2px; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.sound__dot i { width: 2px; height: 4px; border-radius: 2px; background: var(--accent); transition: height .3s; }
.sound[aria-pressed="true"] .sound__dot i { animation: eq 1s var(--ease) infinite alternate; }
.sound[aria-pressed="true"] .sound__dot i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__dot i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__dot i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 4px; } to { height: 16px; } }
.sound__text { font-size: 12px; line-height: 1.25; color: var(--muted); }

/* ---------- Reveal animations (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .sw { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.25em); transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].is-in .sw { opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .sw { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 28px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 280px; }
  .bento__card--p1, .bento__card--p5 { grid-column: 1; grid-row: auto; }
  .bento__card--p2, .bento__card--p4, .bento__card--p6, .bento__card--brand { grid-column: 2; grid-row: auto; }
  .bento__card--p3 { grid-column: 1; grid-row: span 2; }
}

/* Five header links need room: below 1080px they move into the Menu panel. */
@media (max-width: 1080px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  :root { --nav-h: 76px; }
  .nav__logo { height: 32px; }

  .arc { height: 380vh; }
  .arc__card { width: 260px; height: 262px; margin-left: -130px; padding: 24px 20px 22px; gap: 12px; }
  .arc__card .small { font-size: 13.5px; line-height: 1.55; }
  .arc__card .jewel-icon { width: 44px; height: 44px; margin-bottom: 0; }

  .journey__grid { grid-template-columns: 1fr; }
  .journey__media { display: none; }
  .journey__steps { gap: 64px; padding-block: 8px 0; }
  .journey__step { opacity: 1; padding-inline-start: 0; }
  .journey__step-img { display: block; max-width: 520px; margin-inline: auto; }
  .journey__num { position: relative; inset: auto; display: block; font-size: 96px; margin: -48px 0 -6px; }


  .testi__stage { grid-template-columns: 1fr 1fr; grid-template-areas: "stack stack" "prev next"; row-gap: 28px; margin-top: 10vh; }
  .testi__stack { grid-area: stack; width: min(380px, 100%); margin-inline: auto; height: 420px; }
  .testi__prev { grid-area: prev; justify-self: end; }
  .testi__next { grid-area: next; justify-self: start; }

  .faq__grid, .footer__cards, .contact, .about-profile { grid-template-columns: 1fr; }
  .about-profile { min-height: 0; }
  .about-profile__photo { max-width: 420px; position: static; }
}

@media (max-width: 600px) {
  .nav__cta { display: none; }
  .nav__lang { min-width: 44px; height: 40px; padding: 0 10px; font-size: 14px; }
  .hero__visual { top: 40px; height: min(80svh, 700px); }
  .hero { padding-bottom: 90px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card { min-height: 260px; grid-column: 1 !important; grid-row: auto !important; }
  .bento__card--tall { min-height: 460px; }
  .choices { grid-template-columns: 1fr; }
  .footer__links--grid { column-gap: 16px; }
  /* Compact sound toggle on phones; the footer gets room so it never covers the last line. */
  .sound { bottom: 14px; inset-inline-start: 14px; }
  .sound__text { display: none; }
  .sound__dot { width: 40px; height: 40px; }
  .footer__bottom { padding-bottom: 84px; }
}
