/* ==========================================================================
   Science Park Engineering — design system
   Palette: navy ink with the logo's brass, on warm lab paper.
   Every component is laid out on a centred, mirrored axis.
   ========================================================================== */

/* Brand colours — change this block to re-theme the whole site. */
:root {
  --brand-glow-rgb: 52 92 158;
  --brand-bright-rgb: 36 78 143;
  --brand-rgb: 22 52 104;
  --brand-deep-rgb: 11 26 51;
  --ink-rgb: 14 24 43;

  --brand-bright: rgb(var(--brand-bright-rgb));
  --brand: rgb(var(--brand-rgb));
  --brand-dark: #10284f;
  --brand-deep-2: #132c55;
  --brand-deep: rgb(var(--brand-deep-rgb));
  --brand-night: #071225;
  --brand-tint: #f2f3f6;
  --brand-pale: #dfe6f2;
  --ink: rgb(var(--ink-rgb));
  --ink-2: #3b465a;
  --muted: #6b7486;
  --line: rgb(var(--ink-rgb) / 0.1);
  --line-strong: rgb(var(--ink-rgb) / 0.2);
}

:root {
  --paper: #f8f6f0;
  --paper-2: #efebdf;
  --surface: #ffffff;
  --brass: #8d5a00;
  --brass-bright: #d9a441;

  --grad-brand: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 48%, var(--brand-dark) 100%);
  --grad-deep: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-deep-2) 50%, var(--brand) 100%);
  --grad-text: linear-gradient(100deg, #8d5a00 0%, #a9741b 100%);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.04), 0 14px 34px -16px rgb(var(--ink-rgb) / 0.2);
  --shadow-lg: 0 2px 4px rgb(var(--ink-rgb) / 0.05), 0 30px 64px -24px rgb(var(--brand-rgb) / 0.38);
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* Lenis smooth scrolling */
html.lenis,
html.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; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand); color: #fff; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
}
.eyebrow::before { background: linear-gradient(90deg, transparent, currentColor); }
.eyebrow::after { background: linear-gradient(90deg, currentColor, transparent); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
  padding: 0 0.08em 0.12em 0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h1.display { font-size: clamp(2.4rem, 5.6vw, 4.5rem); }
h2.display { font-size: clamp(1.9rem, 3.8vw, 3rem); }

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-position 0.5s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn i { font-size: 1rem; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
.btn:hover .bi-download { transform: translateY(2px); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: linear-gradient(120deg, var(--brand-bright) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 12px 28px -12px rgb(var(--brand-rgb) / 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover { background-position: 100% 50%; box-shadow: 0 18px 34px -14px rgb(var(--brand-rgb) / 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

.btn--light { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.5); }
.btn--light:hover { background: linear-gradient(120deg, #fff, #f6e3b8); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn--sm { padding: 12px 20px; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 249, 245, 0.78);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgb(var(--ink-rgb) / 0.55); }

.site-header__row {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; justify-self: start; }
.brand img { height: 52px; width: auto; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 4px;
}

.nav { display: contents; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s;
}
.nav__links a:hover { background: rgb(var(--brand-rgb) / 0.07); color: var(--brand); }
.nav__links a[aria-current="page"] { color: var(--brand); background: rgb(var(--brand-rgb) / 0.09); }
.nav__cta { justify-self: end; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  place-items: center;
}

@media (max-width: 1120px) {
  .site-header__row { grid-template-columns: 1fr auto; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: var(--gutter);
    right: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__links a { justify-content: center; padding: 13px 14px; font-size: 1rem; border-radius: 12px; }
}

@media (max-width: 420px) {
  .brand img { height: 42px; }
  .brand__name { font-size: 1rem; }
  .brand__name small { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 124px); }
.section--tint {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 16%, var(--paper-2) 84%, var(--paper) 100%);
}
.section--flush-top { padding-top: 0; }

.section-head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}
.section-foot { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(58% 52% at 50% 0%, rgb(var(--brand-bright-rgb) / 0.09), transparent 72%),
    radial-gradient(38% 46% at 6% 34%, rgba(217, 164, 65, 0.14), transparent 72%),
    radial-gradient(38% 46% at 94% 34%, rgba(217, 164, 65, 0.14), transparent 72%),
    linear-gradient(180deg, #fdfcf9 0%, var(--paper) 100%);
  overflow: hidden;
}
/* graph-paper grid, fading out evenly from the centre */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 38%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.hero__sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.hero__sectors li {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* specimen shelf: five cards mirrored around the centre one */
.shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  align-items: start;
  max-width: 1080px;
  margin: clamp(40px, 6vw, 72px) auto 0;
}
.specimen {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.22;
  background: linear-gradient(180deg, #fff 62%, var(--brand-tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
}
.specimen:nth-child(1),
.specimen:nth-child(5) { margin-top: 64px; }
.specimen:nth-child(2),
.specimen:nth-child(4) { margin-top: 28px; }
.specimen:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgb(var(--brand-bright-rgb) / 0.35); }
.specimen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12% 12% 34%;
  mix-blend-mode: multiply;
}
.specimen__tag {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.2vw, 1.02rem);
  font-weight: 500;
  line-height: 1.2;
}
.specimen__tag span:first-child {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (max-width: 720px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specimen:nth-child(1),
  .specimen:nth-child(5) { display: none; }
  .specimen:nth-child(2),
  .specimen:nth-child(4) { margin-top: 20px; }
  .specimen { border-radius: 14px; aspect-ratio: 1 / 1.4; }
  .specimen img { padding: 10% 10% 46%; }
  .specimen__tag { bottom: 10px; left: 4px; right: 4px; font-size: 0.8rem; }
  .specimen__tag span:first-child { font-size: 0.54rem; letter-spacing: 0.12em; }
}
@media (max-width: 520px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}
.about__media { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(var(--brand-deep-rgb) / 0.78) 100%);
}
.about__badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
}
.about__badge small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.about__copy { display: grid; gap: 22px; align-content: center; justify-items: start; }
.about__copy p { color: var(--ink-2); }

.checklist { display: grid; width: 100%; border-top: 1px solid var(--line); }
.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.checklist i { color: var(--brand-bright); font-size: 1.1rem; line-height: 1.6; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 0; aspect-ratio: 16 / 11; }
  .about__copy { justify-items: center; text-align: center; }
  .checklist li { text-align: left; }
}

/* ---------- Stats ---------- */

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 50% -20%, rgb(var(--brand-glow-rgb) / 0.6), transparent 72%),
    radial-gradient(50% 110% at 0% 120%, rgba(217, 164, 65, 0.26), transparent 72%),
    radial-gradient(50% 110% at 100% 120%, rgba(217, 164, 65, 0.26), transparent 72%),
    linear-gradient(180deg, var(--brand-deep-2) 0%, var(--brand-deep) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat {
  padding: clamp(36px, 5vw, 60px) 16px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, var(--brand-pale) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* ---------- Product cards ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 1040px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1040px) { .pgrid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
}
.pcard:hover,
.pcard:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgb(var(--brand-bright-rgb) / 0.35);
}

.pcard__media {
  position: relative;
  aspect-ratio: 1 / 0.88;
  background: radial-gradient(80% 80% at 50% 40%, #fff 55%, var(--brand-tint) 100%);
  overflow: hidden;
}
.pcard__media.is-dark { background: #000; }
.pcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 11%;
  mix-blend-mode: multiply;
  transition: transform 0.9s var(--ease);
}
.pcard__media.is-dark img { mix-blend-mode: normal; }
.pcard:hover .pcard__media img { transform: scale(1.07); }

.pcard__no {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 4px 11px;
  background: rgba(248, 246, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brass);
}

.pcard__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 20px 20px 22px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.pcard__cat {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pcard__name {
  display: flex;
  align-items: center;
  min-height: 2.4em;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.pcard__blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.pcard__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand);
}
.pcard__more i { transition: transform 0.4s var(--ease); }
.pcard:hover .pcard__more i { transform: translate(3px, -3px); }

@media (max-width: 640px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard { border-radius: 16px; }
  .pcard__body { padding: 12px 10px 14px; gap: 5px; }
  .pcard__name { font-size: 1rem; }
  .pcard__blurb { display: none; }
  .pcard__cat { font-size: 0.54rem; letter-spacing: 0.1em; }
  .pcard__more { font-size: 0.8rem; padding-top: 6px; }
  .pcard__no { top: 8px; font-size: 0.54rem; padding: 3px 8px; }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.service {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: start;
  padding: clamp(28px, 3.4vw, 40px) clamp(20px, 2.6vw, 32px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), color 0.5s, border-color 0.5s;
}
/* gradient fill fades in on hover */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 0%, rgb(var(--brand-glow-rgb) / 0.55), transparent 70%),
    var(--grad-deep);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.service__no { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; color: var(--brass); transition: color 0.5s; }
.service__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--brand-bright-rgb) / 0.14), rgba(217, 164, 65, 0.2));
  color: var(--brand);
  font-size: 1.5rem;
  transition: background 0.5s, color 0.5s, transform 0.6s var(--ease);
}
.service h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.service p { font-size: 0.94rem; color: var(--ink-2); transition: color 0.5s; }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: #fff; border-color: transparent; }
.service:hover::before { opacity: 1; }
.service:hover p { color: rgba(255, 255, 255, 0.8); }
.service:hover .service__no { color: var(--brass-bright); }
.service:hover .service__icon { background: linear-gradient(135deg, #f2cf85, #d9a441); color: var(--brand-deep); transform: scale(1.06); }

@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Banner (profile download / call to action) ---------- */

.banner {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: clamp(40px, 6vw, 76px) clamp(22px, 5vw, 64px);
  text-align: center;
  color: #fff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 50% -10%, rgb(var(--brand-glow-rgb) / 0.62), transparent 72%),
    radial-gradient(55% 90% at 0% 110%, rgba(217, 164, 65, 0.3), transparent 72%),
    radial-gradient(55% 90% at 100% 110%, rgba(217, 164, 65, 0.3), transparent 72%),
    linear-gradient(180deg, var(--brand-deep-2) 0%, var(--brand-deep) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.banner .eyebrow { color: var(--brass-bright); }
.banner h2 em {
  background: linear-gradient(100deg, #f6dfa6, #d9a441);
  -webkit-background-clip: text;
  background-clip: text;
}
.banner p { max-width: 56ch; color: rgba(255, 255, 255, 0.82); }
.banner__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.9rem;
  color: var(--brass-bright);
}
.banner__meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
@media (max-width: 520px) { .banner .btn { flex: 1 1 100%; } }

/* ---------- Values ---------- */

.values__copy { display: grid; gap: 16px; }
.values__copy p { color: var(--ink-2); max-width: 68ch; text-wrap: pretty; }
.values__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.value {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 26px 10px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgb(var(--brand-bright-rgb) / 0.35); }
.value i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--brand-bright-rgb) / 0.14), rgba(217, 164, 65, 0.22));
  color: var(--brand);
  font-size: 1.25rem;
}
@media (max-width: 980px) { .values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value { padding: 20px 8px; font-size: 1rem; } }

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
}
.panel {
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact__list { display: flex; flex-direction: column; justify-content: space-between; }
.contact__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact__item:first-child { padding-top: 0; }
.contact__item:last-child { padding-bottom: 0; border-bottom: 0; }
.contact__item > i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--brand-bright-rgb) / 0.14), rgba(217, 164, 65, 0.22));
  color: var(--brand);
  font-size: 1.1rem;
}
.contact__item h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact__item p,
.contact__item li { color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.contact__item a { transition: color 0.3s; }
.contact__item a:hover { color: var(--brand-bright); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
}
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field--grow { grid-template-rows: auto 1fr; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field textarea { resize: vertical; min-height: 150px; height: 100%; }
.field input::placeholder,
.field textarea::placeholder { color: #9a98ad; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgb(var(--brand-bright-rgb) / 0.16);
}
.form__foot { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: center; text-align: center; }
.form__foot .btn { width: 100%; }
.form__status { font-size: 0.92rem; font-weight: 500; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { color: #17643b; }
.form__status[data-state="error"] { color: #a3261d; }
.form__status[data-state="loading"] { color: var(--muted); }

@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Catalogue page ---------- */

.page-hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 84px) clamp(28px, 4vw, 48px);
  background:
    radial-gradient(58% 70% at 50% 0%, rgb(var(--brand-bright-rgb) / 0.09), transparent 72%),
    radial-gradient(36% 60% at 6% 40%, rgba(217, 164, 65, 0.14), transparent 72%),
    radial-gradient(36% 60% at 94% 40%, rgba(217, 164, 65, 0.14), transparent 72%),
    linear-gradient(180deg, #fdfcf9 0%, var(--paper) 100%);
  overflow: hidden;
}
.page-hero__inner {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--brass); }

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  padding-block: 14px;
  background: rgba(250, 249, 245, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.toolbar__row { display: grid; gap: 12px; justify-items: center; }

.search { position: relative; width: min(460px, 100%); }
.search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  padding: 12px 44px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search input:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 4px rgb(var(--brand-bright-rgb) / 0.16); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.chip span { font-size: 0.72rem; font-weight: 700; color: var(--muted); transition: color 0.3s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgb(var(--brand-rgb) / 0.8);
}
.chip[aria-pressed="true"] span { color: var(--brass-bright); }

@media (max-width: 760px) {
  .toolbar { position: static; }
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
  }
  .chips::-webkit-scrollbar { display: none; }
}

.catalogue { padding-block: clamp(24px, 4vw, 44px) clamp(64px, 9vw, 110px); }
.catalogue__count {
  margin-bottom: 22px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 64px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.empty strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--ink); }

/* ---------- Product detail dialog ---------- */

html:has(dialog[open]) { overflow: hidden; }

.pdialog {
  width: min(1060px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgb(var(--brand-deep-rgb) / 0.6);
  overflow: hidden;
}
.pdialog::backdrop {
  background: radial-gradient(circle at 50% 40%, rgb(var(--brand-rgb) / 0.5), rgb(var(--brand-deep-rgb) / 0.78));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pdialog[open] { animation: dialog-in 0.45s var(--ease); }
.pdialog[open]::backdrop { animation: fade-in 0.45s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(22px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }

.pdialog__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: calc(100dvh - 32px);
}
.pdialog__media {
  position: relative;
  background: radial-gradient(80% 80% at 50% 45%, #fff 55%, var(--brand-tint) 100%);
  border-right: 1px solid var(--line);
  min-height: 440px;
}
.pdialog__media.is-dark { background: #000; }
.pdialog__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  mix-blend-mode: multiply;
}
.pdialog__media.is-dark img { mix-blend-mode: normal; }
.pdialog__no {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 5px 12px;
  background: rgba(248, 246, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.pdialog__body {
  display: grid;
  gap: 22px;
  align-content: start;
  justify-items: center;
  padding: clamp(24px, 3.4vw, 44px);
  padding-top: clamp(60px, 5vw, 68px);
  text-align: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pdialog__body > * { width: 100%; }
.pdialog__head { display: grid; gap: 12px; justify-items: center; }
.pdialog__body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.pdialog__desc { color: var(--ink-2); }
.pdialog__body h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.pdialog__uses { display: grid; border-top: 1px solid var(--line); }
.pdialog__uses li {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.pdialog__uses i { color: var(--brand-bright); }
.pdialog__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pdialog__tags li {
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
}
.pdialog__note { font-size: 0.87rem; color: var(--muted); }
.pdialog__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pdialog__nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  background: none;
  border: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s;
}
.pdialog__nav button:hover { color: var(--brand-bright); }

.pdialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.pdialog__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }

@media (max-width: 800px) {
  .pdialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .pdialog__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
  }
  .pdialog__media { min-height: 0; height: min(44dvh, 100vw); border-right: 0; border-bottom: 1px solid var(--line); }
  .pdialog__body { overflow: visible; padding-top: 26px; }
  .pdialog .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Brand marquee ---------- */

.marquee {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  flex: none;
  margin-right: 14px;
  padding: 14px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .marquee__dup { display: none; }
}

/* ---------- Product line page ---------- */

a.chip { text-decoration: none; }

.page-hero--deep { padding-bottom: clamp(40px, 6vw, 72px); }
.line-stats { margin-top: clamp(32px, 5vw, 56px); animation: rise 1.1s var(--ease) 0.3s backwards; }

.chips--letters { gap: 6px; }
.chip--letter {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}
.chip--letter:hover,
.chip--wide:hover { background: var(--grad-brand); border-color: transparent; color: #fff; }
.chip--wide { height: 38px; padding-block: 0; }

.line-count {
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A–Z index: one card per letter, flowing in balanced columns */
.az { columns: 4 250px; column-gap: clamp(14px, 1.8vw, 22px); }
.az-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: clamp(14px, 1.8vw, 22px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 150px);
  transition: box-shadow 0.6s var(--ease), border-color 0.6s;
}
.az-card:hover { box-shadow: var(--shadow-lg); border-color: rgb(var(--brand-bright-rgb) / 0.35); }
.az-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  color: #fff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgb(var(--brand-glow-rgb) / 0.55), transparent 60%),
    linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 100%);
}
.az-card__letter { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.az-card__count { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-bright); }
.az-card li + li { border-top: 1px solid var(--line); }
.az-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  font-size: 0.93rem;
  line-height: 1.4;
  color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s, padding 0.4s var(--ease);
}
.az-card li a i { flex: none; font-size: 0.85rem; color: var(--brass); opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.az-card li a:hover,
.az-card li a:focus-visible { background: var(--brand-tint); color: var(--brand); padding-left: 24px; }
.az-card li a:hover i,
.az-card li a:focus-visible i { opacity: 1; transform: none; }

/* glassware */
.brand-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.brand-badges li {
  padding: 9px 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.glass-list { display: grid; gap: clamp(14px, 2vw, 24px); }
.glass-list--small { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(14px, 2vw, 24px); }
.glass-card { display: grid; gap: 22px; align-content: start; text-align: center; }
.glass-card__head { display: grid; gap: 10px; justify-items: center; }
.glass-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px -12px rgb(var(--brand-rgb) / 0.8);
}
.glass-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.glass-card--small h3 { font-size: 1.3rem; }
.glass-card__count { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.glass-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.glass-card--small .glass-variants { grid-template-columns: 1fr; }
.glass-row {
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: center;
  padding: 18px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.4s, background-color 0.4s;
}
.glass-row:hover { background: #fff; border-color: rgb(var(--brand-bright-rgb) / 0.35); }
.glass-card--small .glass-row { padding: 0; background: none; border: 0; }
.glass-row__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sizes li { padding: 4px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); }
@media (max-width: 980px) { .glass-list--small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .glass-list--small { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .chips--letters { flex-wrap: nowrap; }
  .az-card { scroll-margin-top: calc(var(--header-h) + 16px); }
}

.line-empty { padding-block: 56px; text-align: center; color: var(--ink-2); }
.line-empty a { color: var(--brand); font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(60% 55% at 50% 0%, rgb(var(--brand-glow-rgb) / 0.42), transparent 72%),
    radial-gradient(36% 60% at 0% 100%, rgba(217, 164, 65, 0.17), transparent 72%),
    radial-gradient(36% 60% at 100% 100%, rgba(217, 164, 65, 0.17), transparent 72%),
    linear-gradient(180deg, var(--brand-deep-2) 0%, var(--brand-night) 100%);
  overflow: hidden;
}
/* glowing hairline along the top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.9) 50%, transparent);
}
/* faint grid, echoing the hero */
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.site-footer > .wrap { position: relative; z-index: 1; }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(56px, 7vw, 96px) clamp(28px, 4vw, 44px);
}

.site-footer__col h3 {
  display: flex;
  align-items: center;
  line-height: 1.4;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.site-footer__col--start h3::after,
.site-footer__col--end h3::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.site-footer__col ul { display: grid; gap: 11px; }
.site-footer__col li { line-height: 1.5; overflow-wrap: anywhere; }
.site-footer__col--end { text-align: right; }
.site-footer__col--end h3 { justify-content: flex-end; }
.site-footer__col a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: color 0.3s, background-size 0.4s var(--ease);
}
.site-footer__col--end a { background-position: 100% 100%; }
.site-footer__col a:hover { color: #fff; background-size: 100% 1px; }

.site-footer__brand { display: grid; gap: 22px; justify-items: center; text-align: center; }
.site-footer__logo {
  padding: 12px 22px;
  background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%);
  border-radius: 22px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.06);
  transition: transform 0.5s var(--ease);
}
.site-footer__logo:hover { transform: translateY(-4px); }
.site-footer__logo img { height: 76px; width: auto; }
.site-footer__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #fff;
  max-width: 24ch;
  text-wrap: balance;
}
.site-footer__socials { display: flex; justify-content: center; gap: 12px; }
.site-footer__social {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.1rem;
  color: #fff;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.site-footer__social:hover {
  background: linear-gradient(135deg, #f2cf85, #d9a441);
  border-color: transparent;
  color: var(--brand-deep);
  transform: translateY(-4px);
}

/* oversized wordmark fading into the footer */
.site-footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.5vw, 5.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  padding-bottom: 0.14em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.03) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: none;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.56);
}
.site-footer__bar > span:last-child { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.7rem; color: var(--brass-bright); align-self: center; }

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__col,
  .site-footer__col--end { text-align: center; }
  .site-footer__col h3,
  .site-footer__col--end h3 { justify-content: center; }
  .site-footer__col--start h3::before,
  .site-footer__col--end h3::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
  .site-footer__col a,
  .site-footer__col--end a { background-position: 50% 100%; }
  .site-footer__bar { justify-content: center; text-align: center; }
}

/* ---------- Map ---------- */

.map {
  position: relative;
  margin-top: clamp(16px, 2.4vw, 28px);
  height: clamp(300px, 38vw, 440px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--paper-2);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__link { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); }
.map__link:hover { transform: translateX(-50%) translateY(-2px); }

/* ---------- WhatsApp button ---------- */

/* Round floating buttons: WhatsApp sits directly above Help, same design */
.wa-float,
.bot-launcher {
  position: fixed;
  right: 20px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 25%, rgb(var(--brand-glow-rgb) / 0.9), transparent 60%),
    var(--grad-brand);
  box-shadow:
    0 0 0 5px rgb(var(--brand-rgb) / 0.12),
    0 18px 34px -12px rgb(var(--brand-rgb) / 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.3s, visibility 0.3s;
}
.wa-float { bottom: 92px; z-index: 61; }
.bot-launcher { bottom: 20px; z-index: 62; }
.wa-float i,
.bot-launcher i { font-size: 1.55rem; line-height: 1; transition: transform 0.4s var(--ease); }
.wa-float i { color: #4ade80; }
.wa-float:hover,
.bot-launcher:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 0 0 8px rgb(var(--brand-rgb) / 0.1),
    0 24px 40px -14px rgb(var(--brand-rgb) / 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.wa-float:hover i,
.bot-launcher:hover i { transform: scale(1.1); }

/* name tag that slides out on hover (pointer devices only) */
.wa-float span,
.bot-launcher span {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 7px 14px;
  background: var(--brand-deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
@media (hover: hover) {
  .wa-float:hover span,
  .bot-launcher:not(.is-open):hover span { opacity: 1; transform: translate(0, -50%); }
}

/* the open chat panel sits where the WhatsApp button is */
.bot-open .wa-float { opacity: 0; visibility: hidden; }

/* ---------- Help bot ---------- */

.bot-launcher.is-open i::before { content: "\f659"; } /* bi-x-lg */
/* unread dot, pulsing */
.bot-launcher.has-badge::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e5484d;
  border: 2px solid #fff;
  animation: bot-pulse 1.8s ease-out infinite;
}
@keyframes bot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); }
}

/* Speech bubble that sits beside the Help button and points at it */
.bot-nudge {
  position: fixed;
  right: 94px;                /* 20px edge + 58px button + 16px gap */
  bottom: 22px;
  z-index: 62;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 54px;
  max-width: min(320px, calc(100vw - 94px - 14px));
  padding: 6px 6px 6px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px -16px rgb(var(--brand-deep-rgb) / 0.45);
  animation: nudge-in 0.5s var(--ease);
}
.bot-nudge[hidden] { display: none; }
/* little tail pointing to the button */
.bot-nudge::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0 3px 0 0;
  transform: rotate(45deg);
}
@keyframes nudge-in { from { opacity: 0; transform: translateX(14px); } }
.bot-nudge__text {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.bot-nudge__text:hover { color: var(--brand); }
.bot-nudge__close { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.bot-nudge__close:hover { background: var(--paper-2); color: var(--ink); }

.bot-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 63;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  width: min(380px, calc(100vw - 36px));
  height: min(580px, calc(100dvh - 110px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 40px 90px -24px rgb(var(--brand-deep-rgb) / 0.55);
  overflow: hidden;
  animation: bot-in 0.4s var(--ease);
}
.bot-panel[hidden] { display: none; }
@keyframes bot-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

.bot-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  color: #fff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgb(var(--brand-glow-rgb) / 0.55), transparent 60%),
    linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 100%);
}
.bot-head__avatar { width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border-radius: 50%; overflow: hidden; }
.bot-head__avatar img { width: 34px; height: auto; }
.bot-head__text { display: grid; line-height: 1.25; }
.bot-head__text b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.bot-head__text small { font-size: 0.72rem; color: var(--brass-bright); }
.bot-head__btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}
.bot-head__btn:hover { background: rgba(255, 255, 255, 0.24); }

.bot-log { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.bot-msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  animation: rise 0.4s var(--ease) backwards;
}
.bot-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bot-msg--user { align-self: flex-end; background: var(--grad-brand); color: #fff; border-bottom-right-radius: 6px; }
.bot-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(var(--brand-rgb) / 0.3); text-underline-offset: 3px; }
.bot-link:hover { text-decoration-color: currentColor; }
.bot-product { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bot-product img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }

.bot-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.bot-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bot-dot 1s ease-in-out infinite; }
.bot-typing i:nth-child(2) { animation-delay: 0.15s; }
.bot-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bot-dot { 50% { transform: translateY(-4px); opacity: 0.4; } }

.bot-chips { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.bot-chips::-webkit-scrollbar { display: none; }
.bot-chip {
  flex: none;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.bot-chip:hover { background: var(--grad-brand); border-color: transparent; color: #fff; }

.bot-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.bot-form input { min-width: 0; padding: 11px 14px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.93rem; }
.bot-form input:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgb(var(--brand-bright-rgb) / 0.16); }
.bot-form button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--grad-brand); color: #fff; cursor: pointer; transition: transform 0.3s var(--ease); }
.bot-form button:hover { transform: scale(1.06); }
.bot-note { padding: 0 14px 10px; background: var(--surface); text-align: center; font-size: 0.68rem; color: var(--muted); }

@media (max-width: 640px) {
  .wa-float,
  .bot-launcher { right: 14px; width: 54px; height: 54px; }
  .bot-launcher { bottom: 14px; }
  .wa-float { bottom: 80px; }
  /* 14px edge + 54px button + 14px gap */
  .bot-nudge { right: 82px; bottom: 14px; max-width: calc(100vw - 82px - 12px); padding-left: 14px; border-radius: 16px; }
  .bot-nudge__text { font-size: 0.84rem; }
  .bot-panel { left: 10px; right: 10px; bottom: 80px; width: auto; height: min(76dvh, 600px); }
}

/* ---------- Scroll-to-top ---------- */

.to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top.is-visible:hover { transform: translateY(-3px); }

/* ==========================================================================
   Finishing layer — motion, light and depth
   ========================================================================== */

/* slim gradient scrollbar */
html { scrollbar-width: thin; scrollbar-color: var(--brand-bright) var(--paper-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-bright), var(--brand) 60%, #b47d1f); border-radius: 999px; border: 2px solid var(--paper-2); }

/* reading progress along the bottom edge of the header */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand) 50%, #d9a441);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.nav__links a.is-active { color: var(--brand); background: rgb(var(--brand-rgb) / 0.09); }

/* light sweep across solid buttons */
.btn--primary,
.btn--light { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after,
.btn--light::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--light::after { background: linear-gradient(105deg, transparent 30%, rgba(217, 164, 65, 0.4) 50%, transparent 70%); }
.btn--primary:hover::after,
.btn--light:hover::after { transform: translateX(120%); }

/* ---------- Hero: breathing glow, staged entrance, floating shelf ---------- */

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: min(1000px, 96vw);
  height: 560px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(var(--brand-bright-rgb) / 0.14), rgba(217, 164, 65, 0.12) 58%, transparent 100%);
  filter: blur(36px);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite alternate;
}
.hero > .wrap { position: relative; z-index: 1; }

@keyframes breathe {
  from { opacity: 0.65; scale: 0.92; }
  to { opacity: 1; scale: 1.08; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
}
@keyframes float {
  from { translate: 0 -7px; }
  to { translate: 0 7px; }
}

.hero__copy > *,
.page-hero__inner > * { animation: rise 1s var(--ease) backwards; }
.hero__copy > :nth-child(2),
.page-hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3),
.page-hero__inner > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4),
.page-hero__inner > :nth-child(4) { animation-delay: 0.24s; }
.hero__copy > :nth-child(5) { animation-delay: 0.32s; }

.specimen { animation: rise 1.1s var(--ease) backwards, float 6s ease-in-out infinite alternate; }
.specimen:nth-child(3) { animation-delay: 0.3s, 0s; }
.specimen:nth-child(2),
.specimen:nth-child(4) { animation-delay: 0.42s, -2s; }
.specimen:nth-child(1),
.specimen:nth-child(5) { animation-delay: 0.54s, -4s; }
.specimen:hover { animation-play-state: running, paused; }
/* soft pedestal shadow under every specimen */
.specimen::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 31%;
  height: 10%;
  background: radial-gradient(closest-side, rgb(var(--brand-rgb) / 0.22), transparent);
  filter: blur(6px);
}
.specimen::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 27%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero__sectors li { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.4s var(--ease), border-color 0.4s, color 0.4s; }
.hero__sectors li:hover { transform: translateY(-2px); border-color: rgb(var(--brand-bright-rgb) / 0.4); color: var(--brand); }

/* ---------- About: gradient frame ---------- */

.about__media {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 45%, #d9a441 100%);
  box-shadow: var(--shadow-lg);
}
.about__media img,
.about__media::after { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: calc(var(--radius-lg) - 6px); }
.about__media img { transition: transform 1.4s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
.about__media::after { content: ""; position: absolute; }
.about__badge { left: 30px; right: 30px; bottom: 30px; }

.checklist li { transition: padding 0.4s var(--ease), background-color 0.4s; border-radius: 10px; }
.checklist li:hover { padding-inline: 12px; background: rgba(255, 255, 255, 0.6); }

/* ---------- Stats: icons ---------- */

.stat { display: grid; justify-items: center; }
.stat__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--brass-bright);
  font-size: 1.15rem;
}
.stat__label { margin-top: 12px; }
.stats__grid::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.9), transparent);
}

/* ---------- Cards: cursor spotlight + pill action ---------- */

.pcard::after,
.value::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--brand-bright-rgb) / 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.pcard:hover::after,
.value:hover::after,
.panel:hover::after,
.service:hover::after { opacity: 1; }
.value,
.panel { position: relative; }

/* gradient hairline across the top of every panel */
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-bright) 35%, #d9a441 65%, transparent);
  opacity: 0.75;
}

.pcard__media::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 9%;
  height: 9%;
  background: radial-gradient(closest-side, rgb(var(--brand-rgb) / 0.2), transparent);
  filter: blur(6px);
  transition: opacity 0.6s, transform 0.9s var(--ease);
}
.pcard__media.is-dark::after { display: none; }
.pcard:hover .pcard__media::after { transform: scaleX(1.15); opacity: 0.7; }

.pcard__more {
  margin-top: auto;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-bright) 0%, var(--brand) 50%, var(--brand-dark) 100%) no-repeat center / 0% 100%;
  transition: color 0.4s, border-color 0.4s, background-size 0.6s var(--ease), box-shadow 0.4s;
}
.pcard__body { gap: 8px; }
.pcard__blurb { margin-bottom: 6px; }
.pcard:hover .pcard__more {
  color: #fff;
  border-color: transparent;
  background-size: 100% 100%;
  box-shadow: 0 10px 22px -12px rgb(var(--brand-rgb) / 0.8);
}
@media (max-width: 640px) {
  .pcard__more { padding: 7px 12px; margin-top: 4px; }
}

.service__icon,
.value i,
.contact__item > i { box-shadow: inset 0 0 0 1px rgb(var(--brand-bright-rgb) / 0.12); }
.value i { transition: transform 0.6s var(--ease), background 0.5s, color 0.5s; }
.value:hover i { transform: scale(1.08) rotate(-6deg); background: var(--grad-brand); color: #fff; }
.contact__item > i { transition: transform 0.5s var(--ease), background 0.5s, color 0.5s; }
.contact__item:hover > i { transform: scale(1.06); background: var(--grad-brand); color: #fff; }

.marquee__track li { transition: border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.marquee__track li:hover { border-color: rgb(var(--brand-bright-rgb) / 0.4); color: var(--brand); box-shadow: var(--shadow); }

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}
.banner > * { position: relative; }
.banner__icon { animation: float 5s ease-in-out infinite alternate; }

.map { transition: box-shadow 0.6s var(--ease); }
.map:hover { box-shadow: var(--shadow-lg); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s, color 0.5s;
    transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms;
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal.is-in.pcard:hover,
  .js .reveal.is-in.service:hover { transform: translateY(-8px); transition-delay: 0ms; }
  .js .reveal.is-in.value:hover { transform: translateY(-6px); transition-delay: 0ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
}
