/* ==========================================================================
   KK Jewels — Stylesheet
   Brand tokens live in :root. Change the --brand-* variables below
   and the whole site follows.
   ========================================================================== */

:root {
  /* Brand palette (KK Jewels identity): #795C92 purple · #34263F aubergine · #FAF8F5 ivory */
  --brand-primary: #795c92;
  --brand-primary-light: #b7a3c8; /* tint, for accents on dark backgrounds */
  --brand-primary-dark: #5e4675;  /* shade, for small accent text on light backgrounds */
  --brand-dark: #34263f;
  --brand-dark-2: #45334f;

  /* Neutrals */
  --ivory: #faf8f5;
  --cream: #f2eef3;
  --paper: #ffffff;
  --text: #2e2534;
  --muted: #6e6577;
  --line: #e7e1ea;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 84px;
  --shadow: 0 18px 40px -22px rgba(52, 38, 63, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------ Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--brand-dark);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--brand-dark); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

/* ------------------------------ Utilities -------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--brand-dark); color: #d5cddc; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 500; color: var(--brand-primary-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--brand-primary-light); }
.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.divider-gem { display: flex; justify-content: center; margin: 14px 0 0; color: var(--brand-primary); }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: all 0.35s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: var(--brand-primary-dark); }
.btn--dark { background: var(--brand-dark); color: #fff; }
.btn--dark:hover { background: var(--brand-dark-2); }
.btn--outline { border-color: var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn--outline:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--brand-primary-dark); border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 16px; }

/* ------------------------------ Top bar & Header -------------------------- */
.topbar {
  background: var(--brand-dark); color: #c4b9cd; font-size: 0.78rem; letter-spacing: 0.04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a:hover { color: var(--brand-primary-light); }
.topbar__links { display: flex; gap: 22px; }
@media (max-width: 720px) { .topbar__msg { display: none; } .topbar .container { justify-content: center; } }

.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would trap the fixed mobile nav inside it */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 248, 245, 0.92); backdrop-filter: saturate(1.4) blur(10px);
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, 0.4); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--brand-dark); --logo-gap: var(--ivory); }
.logo__mark { width: 54px; height: 52px; flex: none; overflow: visible; }
.logo__mark text { font-family: var(--font-display); font-weight: 600; fill: var(--brand-primary); }
.logo__k1 { font-size: 50px; }
/* The second K gets a background-colored outline so it reads as woven through the first */
.logo__k2 { font-size: 44px; stroke: var(--logo-gap); stroke-width: 2.4px; paint-order: stroke; }
.logo__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo__name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.16em; }
.logo__sub { font-size: 0.52rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.footer .logo { --logo-gap: #211828; }
.footer .logo, .footer .logo__name { color: #fff; }
.footer .logo__mark text { fill: var(--brand-primary-light); }
.footer .logo__sub { color: var(--brand-primary-light); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__link {
  position: relative; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
  padding: 8px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brand-primary);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--brand-primary-dark); }
.nav .btn { padding: 12px 22px; }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--brand-dark);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; background: var(--ivory);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-12px); overflow-y: auto;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------ Hero ------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 75% 30%, rgba(121, 92, 146, 0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(121, 92, 146, 0.22), transparent 60%),
    linear-gradient(160deg, #241a2d 0%, #34263f 45%, #3d2d4a 100%);
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  min-height: min(calc(100vh - var(--header-h) - 38px), 760px); padding-top: 60px; padding-bottom: 60px;
}
.hero h1 { color: #fff; font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--brand-primary-light); }
.hero p { color: #d5cddc; font-size: 1.15rem; max-width: 540px; margin-bottom: 2em; }
.hero .eyebrow { color: var(--brand-primary-light); }
.hero__art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.hero__art svg { width: 100%; height: 100%; overflow: visible; }
.hero__ring { animation: spin 60s linear infinite; transform-origin: 50% 50%; }
.hero__gem { animation: float 6s ease-in-out infinite; transform-origin: 50% 50%; }
.sparkle { animation: twinkle 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.sparkle:nth-of-type(2) { animation-delay: 1.1s; } .sparkle:nth-of-type(3) { animation-delay: 2.1s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: #a497af;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--brand-primary), transparent); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero__art { max-width: 340px; order: -1; }
  .hero__scroll { display: none; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: #fff; padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 100px);
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(121, 92, 146, 0.25), transparent 60%),
    linear-gradient(160deg, #241a2d, #3d2d4a);
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-weight: 400; margin-bottom: 0.3em; }
.page-hero p { color: #d5cddc; max-width: 640px; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: var(--brand-primary-light); }
.breadcrumb { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a497af; margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--brand-primary-light); }
.breadcrumb span { margin: 0 10px; }
.page-hero__gem { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: 0.12; pointer-events: none; }

/* ------------------------------ Stats strip ------------------------------ */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--brand-dark); line-height: 1; }
.stat__num sup { font-size: 0.5em; color: var(--brand-primary); }
.stat__label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ------------------------------ Media frames ----------------------------- */
.frame { position: relative; }
.frame__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.frame__img svg, .frame__img img { width: 100%; height: 100%; object-fit: cover; }
.frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brand-primary-light);
  border-radius: var(--radius); z-index: -1;
}
.frame__badge {
  position: absolute; left: -24px; bottom: 36px; background: var(--brand-dark); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.frame__badge strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--brand-primary-light); line-height: 1; font-weight: 500; }
.frame__badge span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 640px) { .frame::before { inset: 12px -10px -12px 12px; } .frame__badge { left: 12px; } }

/* Illustrated placeholder panels */
.placeholder-panel {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(150deg, #3d2d4a, #241a2d); color: #a497af; padding: 24px;
}
.placeholder-panel svg { width: 60%; max-width: 260px; margin: 0 auto 12px; }
.placeholder-panel small { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ------------------------------ Category tiles --------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-grid .cat:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } .cat-grid .cat:first-child { grid-column: auto; grid-row: auto; } }
.cat {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper);
  aspect-ratio: 1; isolation: isolate;
}
.cat-grid .cat:first-child { aspect-ratio: auto; }
.cat__art { position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.cat__art svg { width: 100%; height: 100%; }
.cat:hover .cat__art { transform: scale(1.06); }
.cat__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: linear-gradient(transparent, rgba(52, 38, 63, 0.78)); color: #fff;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
}
.cat__body h3 { color: #fff; margin: 0; font-size: 1.6rem; }
.cat__body small { display: block; font-size: 0.75rem; color: #e4dee9; letter-spacing: 0.04em; }
.cat__arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid; place-items: center; flex: none; transition: background 0.3s, border-color 0.3s;
}
.cat:hover .cat__arrow { background: var(--brand-primary); border-color: var(--brand-primary); }

/* ------------------------------ Feature cards ---------------------------- */
.feature {
  background: var(--paper); padding: 40px 34px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--cream); color: var(--brand-primary-dark);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.5rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.section--dark .feature { background: var(--brand-dark-2); border-color: var(--line-dark); }
.section--dark .feature p { color: #b3a8bd; }
.section--dark .feature__icon { background: rgba(121, 92, 146, 0.14); color: var(--brand-primary-light); }

/* ------------------------------ Process steps ---------------------------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 1px; background: var(--line-dark); }
.step { text-align: center; padding: 0 12px; position: relative; }
.step__num {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--brand-primary); background: var(--brand-dark); color: var(--brand-primary-light);
  font-family: var(--font-display); font-size: 1.5rem; position: relative; z-index: 1;
}
.step h4 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: #b3a8bd; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* Detailed process (manufacturing page) */
.process-list { display: grid; gap: 0; }
.process-item {
  display: grid; grid-template-columns: 120px 1fr 1.2fr; gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: 44px 0; border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item__num { font-family: var(--font-display); font-size: 3.4rem; color: var(--brand-primary); line-height: 1; }
.process-item h3 { margin: 0; }
.process-item ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.process-item p { color: var(--muted); }
@media (max-width: 800px) { .process-item { grid-template-columns: 1fr; gap: 10px; } }

/* ------------------------------ Product cards ---------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); padding: 9px 20px; border-radius: 999px; cursor: pointer;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; transition: all 0.25s;
}
.chip:hover { border-color: var(--brand-primary); }
.chip.is-active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }
.product { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; width: 100%; }
.product__media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.product__media svg, .product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product:hover .product__media svg, .product:hover .product__media img { transform: scale(1.06); }
.product__tag {
  position: absolute; top: 12px; left: 12px; background: var(--brand-dark); color: #fff;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px;
}
.product__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255, 255, 255, 0.95);
  text-align: center; padding: 11px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  transform: translateY(140%); transition: transform 0.4s var(--ease);
}
.product:hover .product__quick, .product:focus-visible .product__quick { transform: none; }
.product__info { padding: 16px 2px 0; }
.product__code { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brand-primary-dark); text-transform: uppercase; }
.product__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand-dark); line-height: 1.25; margin: 4px 0 2px; }
.product__meta { font-size: 0.85rem; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ------------------------------ Modal ------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30, 21, 37, 0.7); animation: fade 0.3s; }
.modal__dialog {
  position: relative; background: var(--ivory); width: min(960px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); animation: rise 0.4s var(--ease);
}
.modal__media svg, .modal__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.modal__body { padding: clamp(28px, 4vw, 48px); }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--paper); cursor: pointer; font-size: 1.4rem; line-height: 1; z-index: 2; box-shadow: var(--shadow);
}
.spec { list-style: none; padding: 0; margin: 24px 0 30px; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec li span:first-child { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; padding-top: 3px; }
.spec li span:last-child { text-align: right; }
@media (max-width: 720px) { .modal__dialog { grid-template-columns: 1fr; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ------------------------------ Certifications --------------------------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 880px; margin: 0 auto; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cert { background: var(--paper); padding: 30px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cert__seal {
  width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--brand-primary-light);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--brand-dark); letter-spacing: 0.06em; position: relative;
}
.cert__seal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed var(--brand-primary-light); }
.cert small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; line-height: 1.4; }
@media (max-width: 760px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .certs { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ Testimonials ----------------------------- */
.quote-slider { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.quote { display: none; }
.quote.is-active { display: block; animation: fade 0.6s; }
.quote blockquote {
  margin: 0 0 28px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.45;
  color: var(--brand-dark); font-style: italic; font-weight: 400;
}
.quote cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-primary-dark); }
.quote cite span { display: block; color: var(--muted); letter-spacing: 0.08em; text-transform: none; font-size: 0.9rem; margin-top: 4px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--brand-primary); background: transparent; padding: 0; cursor: pointer; }
.dots button.is-active { background: var(--brand-primary); }

/* ------------------------------ Markets marquee -------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.marquee__track { display: flex; gap: 64px; width: max-content; padding: 26px 0; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.5rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 64px; }
.marquee__track span::after { content: "◆"; font-size: 0.6rem; color: var(--brand-primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------ CTA band --------------------------------- */
.cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(121, 92, 146, 0.3), transparent 70%),
    var(--brand-dark);
}
.cta h2 { color: #fff; font-weight: 400; }
.cta p { color: #d5cddc; max-width: 600px; margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }

/* ------------------------------ Timeline --------------------------------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item { position: relative; width: 50%; padding: 0 48px 48px; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; }
.tl-item::before {
  content: ""; position: absolute; top: 8px; width: 13px; height: 13px; transform: rotate(45deg);
  background: var(--brand-primary); right: -7px;
}
.tl-item:nth-child(even)::before { left: -6px; right: auto; }
.tl-year { font-family: var(--font-display); font-size: 2rem; color: var(--brand-primary-dark); line-height: 1; }
.tl-item h4 { font-size: 1.3rem; margin: 8px 0 6px; }
.tl-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 700px) {
  .timeline::before { left: 6px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin: 0; text-align: left; padding: 0 0 40px 36px; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
}

/* ------------------------------ Team ------------------------------------- */
.person { text-align: center; }
.person__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(160deg, var(--cream), #e3d9ea); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3.4rem; color: var(--brand-primary-dark);
}
.slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__art img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { font-size: 1.35rem; margin: 0 0 2px; }
.person small { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------ Tables ----------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.cap { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
table.cap th, table.cap td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cap th { font-weight: 500; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-primary-dark); background: var(--cream); }
table.cap tr:last-child td { border-bottom: 0; }
table.cap td:first-child { font-weight: 400; color: var(--brand-dark); white-space: nowrap; }

/* ------------------------------ Jobs ------------------------------------- */
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.job:hover { border-color: var(--brand-primary-light); box-shadow: var(--shadow); }
.job h3 { font-size: 1.45rem; margin: 0 0 4px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; color: var(--muted); }
.job__meta span::before { content: "◆ "; color: var(--brand-primary); font-size: 0.6rem; vertical-align: 2px; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }

/* ------------------------------ Forms ------------------------------------ */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--brand-dark); }
.field label .req { color: var(--brand-primary-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.98rem; font-weight: 300; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(121, 92, 146, 0.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b4463c; }
.field__error { font-size: 0.8rem; color: #b4463c; min-height: 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.checkbox input { margin-top: 5px; accent-color: var(--brand-primary); }
.checkbox.has-error { color: #b4463c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; display: none; }
.form-status.is-success { display: block; background: #e8f1ec; color: #1f4d45; border: 1px solid #c3dccd; }
.form-status.is-error { display: block; background: #f8e9e7; color: #8a2f27; border: 1px solid #ecc8c3; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.contact-card {
  background: var(--brand-dark); color: #d5cddc; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius); height: 100%;
}
.contact-card h3 { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 24px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.contact-list .ic {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(183, 163, 200, 0.35); color: var(--brand-primary-light);
}
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list strong { display: block; color: #fff; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a:hover { color: var(--brand-primary-light); }
.map { border: 0; width: 100%; height: 360px; display: block; filter: grayscale(0.4) contrast(1.05); }
.office-maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.office-map { margin: 0; background: var(--paper); }
.office-map figcaption { padding: 18px var(--gutter); font-size: 0.92rem; color: var(--muted); }
.office-map figcaption strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--brand-dark); }
@media (max-width: 900px) { .office-maps { grid-template-columns: 1fr; } }

/* RJC highlight */
.cert--featured { background: var(--brand-dark); color: #d5cddc; transition: background 0.3s; }
.cert--featured:hover { background: var(--brand-dark-2); }
.cert--featured .cert__seal { color: var(--brand-primary-light); }
.cert--featured small { color: #d5cddc; }
.badge-rjc {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--brand-dark); color: #d5cddc; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius);
}
.badge-rjc h3 { color: #fff; margin-bottom: 6px; }
.badge-rjc p { margin: 0 0 14px; }
.badge-rjc .cert__seal { width: 96px; height: 96px; font-size: 1.5rem; color: var(--brand-primary-light); }
.badge-rjc .link-arrow { color: var(--brand-primary-light); }
@media (max-width: 560px) { .badge-rjc { grid-template-columns: 1fr; } }

/* ------------------------------ Footer ----------------------------------- */
.footer { background: #211828; color: #a497af; font-size: 0.92rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 80px 0 56px; }
.footer h5 {
  font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  color: #fff; margin: 0 0 22px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--brand-primary-light); }
.footer__about p { margin: 20px 0 24px; max-width: 320px; }
.footer__office { display: block; color: #fff; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid; place-items: center; transition: all 0.3s;
}
.socials a:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.newsletter { display: flex; margin-top: 8px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); overflow: hidden; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 13px 14px; color: #fff; }
.newsletter input:focus { outline: none; }
.newsletter button { background: var(--brand-primary); border: 0; color: #fff; padding: 0 18px; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 0; font-size: 0.8rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; padding-top: 60px; } }

/* ------------------------------ Floating WhatsApp ------------------------ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.to-top {
  position: fixed; right: 26px; bottom: 90px; z-index: 150; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-dark); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ------------------------------ Prose & misc ----------------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.check-list li::before { content: "◆"; color: var(--brand-primary); font-size: 0.7rem; padding-top: 6px; }
.notice {
  border-left: 3px solid var(--brand-primary); background: var(--cream); padding: 16px 20px; font-size: 0.92rem; color: var(--muted);
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-list li { border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; background: var(--paper); }
.section--dark .pill-list li { background: transparent; border-color: var(--line-dark); color: #d5cddc; }

/* ------------------------------ Reveal animation ------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--brand-primary-light); }
