/* =========================================================
   Brooklyn Grade and Company: site styles (v2)
   Colors and fonts live in the :root block below. Change them there.
   Layout: navy "lab" bands alternating with white/ice content bands,
   blue as the single action color, steel gray for detail.
   ========================================================= */

:root {
  --navy: #0a1a36;       /* primary: header bar, hero, footer */
  --navy-2: #10264f;
  --navy-3: #1b3a70;
  --blue: #1f5fd1;       /* action color: buttons, links, highlights */
  --blue-dark: #174bb0;
  --blue-light: #6ea2ff; /* blue for use on navy backgrounds */
  --steel: #5f6b7e;      /* steel gray: labels, small text */
  --silver: #c7d0dc;     /* silver: borders, text on navy */
  --line: #e2e8f1;
  --ice: #f2f5fa;        /* light section background */
  --bg: #ffffff;
  --text: #121c2c;
  --muted: #4a5568;
  --focus: #1f5fd1;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 54, 0.06);
  --shadow: 0 1px 2px rgba(10, 26, 54, 0.05), 0 10px 30px rgba(10, 26, 54, 0.08);
  --shadow-lg: 0 30px 60px rgba(3, 10, 25, 0.45);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow", var(--font);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; overflow-x: clip; } /* keeps slide-in animations from widening the page */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display); line-height: 1.1; color: var(--navy);
  margin: 0 0 0.55em; letter-spacing: -0.005em; text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; z-index: 200;
  background: var(--blue); color: #fff; padding: 0.6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 0.75rem; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden, [hidden] { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.8rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.todo { color: var(--steel); font-style: italic; }
.section-foot { margin-top: 2rem; }
.note { font-size: 0.95rem; color: var(--muted); }
a.on-dark { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 8px;
  font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.03em; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(31, 95, 209, 0.3); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ice); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* ---------- Header ---------- */
.utility-bar { background: var(--navy); color: var(--silver); font-size: 0.85rem; display: none; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.utility-bar a { color: #fff; text-decoration: none; margin-left: 1.25rem; }
.utility-bar a:hover { color: var(--blue-light); }
@media (min-width: 1000px) { .utility-bar { display: block; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line); transition: box-shadow 0.25s, background 0.25s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 26, 54, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; transition: min-height 0.25s; }
.site-header.is-scrolled .header-inner { min-height: 62px; }

/* Logo slot: swap assets/img/logo.svg for the real logo (any shape fits). */
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--navy); }
.brand-logo { height: 46px; width: auto; max-width: 160px; object-fit: contain; flex: none; transition: height 0.25s; }
.site-header.is-scrolled .brand-logo { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.1em; }
.brand-sub { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.24em; color: var(--steel); text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-cta { display: none; min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.98rem; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.85rem;
  background: none; border: 1px solid var(--silver); border-radius: 8px; color: var(--navy);
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
  transition: transform 0.2s, background 0.2s;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  animation: drop 0.22s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; }
.site-nav a {
  display: block; padding: 0.8rem 0.25rem; text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; border-bottom: 1px solid var(--line);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; animation: none; }
  .site-nav ul { display: flex; gap: 0.1rem; padding: 0; }
  .site-nav a { position: relative; padding: 0.5rem 0.65rem; border: 0; font-size: 1rem; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.15rem; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-contact { display: none; }
}

/* ---------- Dark "lab" background used by hero bands ---------- */
.lab-bg {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(31, 95, 209, 0.45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(27, 58, 112, 0.9), transparent 60%),
    var(--navy);
}
.lab-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image:
    linear-gradient(rgba(199, 208, 220, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 208, 220, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.lab-bg h1, .lab-bg h2, .lab-bg h3 { color: #fff; }
.lab-bg .eyebrow { color: var(--blue-light); }
.lab-bg .lead, .lab-bg p { color: var(--silver); }

/* ---------- Home hero ---------- */
.hero-inner { display: grid; gap: 3rem; padding: 3.5rem 1.25rem 4rem; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--blue-light); display: block; }
.hero-tagline { font-size: 1.2rem; max-width: 34rem; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; padding: 5.5rem 1.25rem 6rem; }
}

/* Hero cert lookup */
.hero-lookup {
  margin-top: 2rem; max-width: 34rem; padding: 1rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(199, 208, 220, 0.22);
}
.hero-lookup label { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; color: var(--silver); margin-bottom: 0.5rem; }
.lookup-row { display: flex; gap: 0.5rem; }
.lookup-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: 8px; border: 1px solid transparent;
  font: inherit; background: #fff; color: var(--text);
}
.lookup-row .btn { flex: none; }

/* Hero slab illustration (CSS only, our own design) */
.slab-stage { position: relative; display: grid; place-items: center; perspective: 1200px; min-height: 360px; }
.slab-glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 162, 255, 0.45), transparent 65%); filter: blur(10px);
}
.slab {
  position: relative; width: min(280px, 70vw); aspect-ratio: 5 / 8; border-radius: 18px; padding: 14px;
  background: linear-gradient(150deg, rgba(255,255,255,0.95), rgba(220,228,240,0.85));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-lg), inset 0 0 0 6px rgba(255,255,255,0.35);
  transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d;
  animation: slab-float 6s ease-in-out infinite;
}
.slab::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.65) 45%, transparent 60%);
  background-size: 250% 100%; animation: sheen 5s ease-in-out infinite;
}
.slab-label {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem;
  background: var(--navy); color: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.slab-label .l-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.12em; font-size: 0.95rem; }
.slab-label .l-meta { font-size: 0.62rem; letter-spacing: 0.12em; color: var(--silver); text-transform: uppercase; }
.slab-label .l-grade { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.slab-label .l-gradetxt { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--blue-light); text-align: right; }
.slab-window {
  height: calc(100% - 78px); border-radius: 8px; padding: 10px;
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
}
.slab-card {
  height: 100%; border-radius: 6px; border: 6px solid #e9eef6;
  background:
    radial-gradient(120px 140px at 60% 35%, rgba(110,162,255,0.55), transparent 70%),
    linear-gradient(180deg, #2a4f8f, #0f2550);
  display: grid; align-items: end; padding: 10px;
}
.slab-card span { height: 18px; border-radius: 3px; background: rgba(255,255,255,0.85); }
.slab-back { position: absolute; transform: translate(70px, 30px) rotate(10deg) scale(0.86); opacity: 0.55; animation-delay: -3s; }
@keyframes slab-float {
  0%, 100% { transform: rotateY(-14deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-14px); }
}
.slab-back { animation-name: slab-float-back; }
@keyframes slab-float-back {
  0%, 100% { transform: translate(70px, 30px) rotate(10deg) scale(0.86); }
  50% { transform: translate(70px, 18px) rotate(8deg) scale(0.86); }
}
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@media (max-width: 959px) { .slab-stage { min-height: 300px; } .slab { width: min(220px, 60vw); } .slab-back { display: none; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-2); color: #fff; border-top: 1px solid rgba(199, 208, 220, 0.12); }
.trust ul { list-style: none; margin: 0; padding: 1.4rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.trust li { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.trust svg { width: 30px; height: 30px; flex: none; color: var(--blue-light); }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--ice); }
.section-head { max-width: 48rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.section-head-row .section-head { margin-bottom: 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

.page-hero { padding: 3.5rem 0 3.25rem; }
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero .lead { margin: 0; }
@media (min-width: 768px) { .page-hero { padding: 5rem 0 4.5rem; } }

/* ---------- Split ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius);
  border: 2px solid var(--blue); opacity: 0.25; z-index: -1;
}
.split-spaced { margin-bottom: 3rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.split img:not(.split-media img) { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; position: relative; }
.steps li {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--blue); margin-bottom: 0.75rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { /* connecting line, drawn on scroll */
    content: ""; position: absolute; top: 2.9rem; left: 1.4rem; right: 1.4rem; height: 2px; z-index: 0;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transform: scaleX(var(--line-progress, 1)); transform-origin: left; transition: transform 1.2s var(--ease);
  }
  .steps li { z-index: 1; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-hover { transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9d6ea; }
.card-icon {
  width: 52px; height: 52px; padding: 11px; border-radius: 12px; margin-bottom: 1rem;
  color: var(--blue); background: rgba(31, 95, 209, 0.09);
}

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue)); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card h2, .service-card h3 { font-size: 1.55rem; margin-bottom: 0.2rem; }
.service-card.is-featured { border-color: var(--blue); box-shadow: 0 12px 34px rgba(31, 95, 209, 0.16); }
.service-badge {
  position: absolute; top: 1.1rem; right: 1.1rem; font-family: var(--font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--blue); color: #fff; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.service-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 0.75rem 0 0.15rem; }
.service-unit { color: var(--muted); font-size: 0.95rem; }
.service-meta { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.service-meta li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.service-meta span:first-child { color: var(--muted); }
.service-meta span:last-child { font-weight: 600; text-align: right; }
.service-card .service-desc { color: var(--muted); flex: 1; }
.service-card .btn { margin-top: 1rem; }

/* ---------- Grade scale ---------- */
.scale-bar { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; margin: 0 0 1rem; }
.scale-bar span {
  display: grid; place-items: center; aspect-ratio: 1 / 1.25; border-radius: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(0.95rem, 2.6vw, 1.5rem); color: #fff;
  background: color-mix(in srgb, var(--blue) calc(var(--g) * 10%), var(--steel));
  transform-origin: bottom; transition: transform 0.5s var(--ease), opacity 0.5s;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.scale-bar span:nth-child(1) { --g: 1; --i: 0; }
.scale-bar span:nth-child(2) { --g: 2; --i: 1; }
.scale-bar span:nth-child(3) { --g: 3; --i: 2; }
.scale-bar span:nth-child(4) { --g: 4; --i: 3; }
.scale-bar span:nth-child(5) { --g: 5; --i: 4; }
.scale-bar span:nth-child(6) { --g: 6; --i: 5; }
.scale-bar span:nth-child(7) { --g: 7; --i: 6; }
.scale-bar span:nth-child(8) { --g: 8; --i: 7; }
.scale-bar span:nth-child(9) { --g: 8.5; --i: 8; }
.scale-bar span:nth-child(10) { --g: 9; --i: 9; }
.scale-bar span:nth-child(11) { --g: 10; --i: 10; }
.scale-bar span.half { font-size: clamp(0.72rem, 2vw, 1.15rem); }
.scale-legend { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.grade-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.grade-table th, .grade-table td { text-align: left; padding: 1.1rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.grade-table thead th { background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; }
.grade-table tbody tr { transition: background 0.2s; }
.grade-table tbody tr:hover { background: var(--ice); }
.grade-num {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 10px;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
.grade-table tbody tr:first-child .grade-num { background: var(--blue); }
.grade-num.grade-half { font-size: 1.15rem; }
.grade-code { font-family: var(--font-display); font-weight: 800; color: var(--navy); letter-spacing: 0.05em; font-size: 1.1rem; }
.grade-name { display: block; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 699px) {
  .grade-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grade-table, .grade-table tbody, .grade-table tr, .grade-table td, .grade-table th { display: block; width: 100%; }
  .grade-table tr { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: 1rem; border-bottom: 1px solid var(--line); }
  .grade-table th, .grade-table td { padding: 0; border: 0; }
  .grade-table tbody th { grid-row: span 2; }
  .grade-table td.grade-desc { grid-column: 2; }
}

/* ---------- Logo slots (partners, featured in, etc.) ---------- */
.logo-strip { padding: 3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip-title {
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.5rem;
}
.logo-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .logo-row { grid-template-columns: repeat(5, 1fr); } }
.logo-row li { display: grid; place-items: center; height: 84px; padding: 0.75rem; }
.logo-row img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.logo-row a:hover img { filter: none; opacity: 1; }
.logo-slot {
  width: 100%; height: 100%; display: grid; place-items: center; border-radius: 10px;
  border: 2px dashed #c5cfdd; color: #8a96a8; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem;
}

/* ---------- Content lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.submit-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1rem; }
.submit-steps > li {
  counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.5rem 5rem; box-shadow: var(--shadow-sm);
}
.submit-steps > li::before {
  content: counter(s); position: absolute; left: 1.3rem; top: 1.35rem; width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
}
.submit-steps h3 { margin-bottom: 0.35rem; }
.submit-steps p:last-child { margin-bottom: 0; }
.address-block { white-space: pre-line; font-weight: 600; font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 54rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 0.75rem; transition: box-shadow 0.2s, border-color 0.2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #c9d6ea; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 3.5rem 1.2rem 1.35rem; position: relative; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; width: 1.8rem; height: 1.8rem; margin-top: -0.9rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--ice); color: var(--blue);
  font-size: 1.3rem; line-height: 1; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq .faq-body { padding: 0 1.35rem 1.2rem; color: var(--muted); animation: drop 0.25s var(--ease); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: 0.75rem 0.9rem; min-height: 50px;
  border: 1px solid #a6b1c2; border-radius: 8px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 209, 0.18); }
.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; }
.checkbox input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--blue); flex: none; }
.form-status { margin: 0; padding: 0.75rem 0.9rem; border-radius: 8px; background: var(--ice); color: var(--navy); font-size: 0.95rem; }
.form-status.is-error { background: #fdecec; color: #8a1c1c; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { margin-bottom: 0.9rem; }
.contact-list strong { display: block; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }

/* ---------- Verify ---------- */
.verify-panel { max-width: 40rem; }
.verify-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.verify-form .field { flex: 1 1 16rem; }
.verify-result { margin-top: 2rem; }
.cert-card { position: relative; overflow: hidden; animation: drop 0.35s var(--ease); }
.cert-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue)); }
.cert-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cert-grade {
  display: grid; place-items: center; min-width: 4.5rem; height: 4.5rem; padding: 0 0.5rem; border-radius: 12px;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem;
}
.cert-list { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.25rem; margin: 0; }
.cert-list dt { color: var(--muted); }
.cert-list dd { margin: 0; font-weight: 600; }
.status-ok { color: #1a7a43; font-weight: 700; margin-bottom: 0.2rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 4rem 0; }
.cta-band .container { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; }
@media (min-width: 860px) { .cta-band .container { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--silver); padding: 4rem 0 1.5rem; font-size: 0.97rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--blue-light); text-decoration: underline; }
.site-footer .btn:hover { text-decoration: none; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; color: #fff; }
.footer-brand .brand-sub { color: var(--silver); }
.footer-brand .brand-logo { height: 52px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.social { display: flex; gap: 0.6rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy-3); color: #fff; transition: background 0.2s, transform 0.2s; }
.social a:hover { background: var(--blue); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--navy-3);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem;
}
.site-footer .todo { color: var(--silver); }

/* ---------- 404 / thank you ---------- */
.error-page { text-align: center; padding: 5rem 0; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--blue-light); line-height: 1; margin-bottom: 0.5rem; }
.error-page .btn-row { justify-content: center; }
.lead.centered { margin: 0 auto 1.75rem; }

/* ---------- Scroll reveal ----------
   Content is visible by default. Only when the script confirms it can animate
   does it add .reveal-on to <html>, and hides items below the fold until they scroll in. */
.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-on .reveal.reveal-left { transform: translateX(-36px); }
.reveal-on .reveal.reveal-right { transform: translateX(36px); }
.reveal-on .reveal.reveal-zoom { transform: scale(0.94); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.reveal-on .scale-bar:not(.is-in) span { transform: scaleY(0.2); opacity: 0; }
.reveal-on .steps:not(.is-in) { --line-progress: 0; }

.hero-anim > * { animation: hero-in 0.8s var(--ease) both; }
.hero-anim > *:nth-child(2) { animation-delay: 0.08s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.16s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.24s; }
.hero-anim > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* Grid children may shrink below their content width (prevents clipping on phones). */
.hero-inner > *, .split > *, .grid > *, .contact-grid > *, .footer-grid > *, .cta-band .container > * { min-width: 0; }
@media (max-width: 959px) {
  .hero-inner { gap: 2rem; }
  .slab-stage { min-height: 260px; }
  .slab { width: min(190px, 52vw); }
}
@media (max-width: 420px) {
  .hero .btn-row .btn { flex: 1 1 auto; }
  .lookup-row .btn { padding: 0.75rem 1rem; }
}

/* ---------- Logo (v3) ---------- */
.footer-logo { height: 105px; width: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.footer-tag { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1.5rem; }
.footer-brand { margin-bottom: 0.75rem; }
.brand-logo { border-radius: 6px; }
.split-media img.photo-wide, .split-media img[src*="grading-workstation"] { aspect-ratio: 16 / 10; }
/* hero slab label uses the logo's italic serif lettering */
.slab-label .l-brand { font-family: Georgia, "Times New Roman", "Liberation Serif", serif; font-style: italic; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff, #c3ccd8 60%, #eef1f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slab-label { background: linear-gradient(180deg, #2150c4, #0f2a72); }

/* =========================================================
   Animations (v4): ambient motion, scroll effects, hover effects.
   All of it switches off for visitors who prefer reduced motion.
   ========================================================= */

/* Page fade-in */
main { animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Navy bands: drifting grid + slow moving glow */
.lab-bg::before { inset: -48px; animation: grid-drift 16s linear infinite; }
@keyframes grid-drift { to { transform: translate(48px, 48px); } }
.lab-bg::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; top: -260px; left: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 162, 255, 0.22), transparent 65%);
  animation: orb-drift 20s ease-in-out infinite alternate;
}
@keyframes orb-drift { 0% { transform: translate(0, 0); } 50% { transform: translate(45vw, 160px); } 100% { transform: translate(70vw, -40px); } }

/* Headline words rise in one by one (script adds .words-ready) */
.hero-anim > h1.words-ready { animation: none; }
.words-ready .w { display: inline-block; animation: word-in 0.75s var(--ease) both; animation-delay: calc(var(--w) * 70ms + 0.1s); }
@keyframes word-in { from { opacity: 0; transform: translateY(0.5em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Hero: text drifts and fades as you scroll; slab moves the other way */
.hero-anim { transform: translateY(calc(var(--hero-p, 0) * 50px)); opacity: calc(1 - var(--hero-p, 0) * 0.55); will-change: transform; }
.slab-stage {
  transform: perspective(1200px) translateY(calc(var(--hero-p, 0) * -40px)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.35s ease-out; /* flat group: slabs keep their stacking order while tilting */
}
.slab-glow { animation: glow-pulse 4.5s ease-in-out infinite; }
@keyframes glow-pulse { 0%, 100% { transform: scale(0.92); opacity: 0.75; } 50% { transform: scale(1.08); opacity: 1; } }
/* grading "scanner" light sweeping over the card in the slab */
.slab-window { position: relative; overflow: hidden; }
.slab-window::after {
  content: ""; position: absolute; left: 0; right: 0; top: -50px; height: 50px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(110, 162, 255, 0.55) 55%, rgba(255, 255, 255, 0.8) 60%, transparent);
  animation: scan 3.4s ease-in-out infinite;
}
.slab-back .slab-window::after { animation-delay: -1.7s; }
@keyframes scan { 0% { top: -50px; } 65%, 100% { top: 100%; } }
.slab-label .l-grade { animation: grade-pop 0.7s var(--ease) 0.9s both; display: inline-block; }
@keyframes grade-pop { from { transform: scale(2.2); opacity: 0; } 60% { transform: scale(0.92); opacity: 1; } to { transform: scale(1); } }

/* Hero cert lookup glows when focused */
.hero-lookup { transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.hero-lookup:focus-within { border-color: rgba(110, 162, 255, 0.75); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 4px rgba(110, 162, 255, 0.15), 0 18px 40px rgba(0, 0, 0, 0.25); }

/* Buttons: light sweep on hover; hero button shines on its own */
.btn-primary, .btn-light { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-primary:hover::after, .btn-light:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.hero .btn-primary::after, .cta-band .btn-primary::after { animation: btn-shine 5s ease-in-out 2.2s infinite; }
@keyframes btn-shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.header-cta { animation: cta-ring 2.2s ease-out 3s 2; }
@keyframes cta-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 95, 209, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(31, 95, 209, 0); } }

/* Header logo nudge on hover */
.brand-logo { transition: transform 0.35s var(--ease), height 0.25s; }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.06); }

/* Mobile menu items cascade in */
.site-nav.is-open li { animation: drop 0.35s var(--ease) both; }
.site-nav.is-open li:nth-child(2) { animation-delay: 0.04s; }
.site-nav.is-open li:nth-child(3) { animation-delay: 0.08s; }
.site-nav.is-open li:nth-child(4) { animation-delay: 0.12s; }
.site-nav.is-open li:nth-child(5) { animation-delay: 0.16s; }
.site-nav.is-open li:nth-child(6) { animation-delay: 0.2s; }
.site-nav.is-open li:nth-child(7) { animation-delay: 0.24s; }

/* Eyebrow line draws in with its section */
.eyebrow::before { transform-origin: left; transition: transform 0.8s var(--ease) 0.2s; }
.reveal-on .reveal:not(.is-in) .eyebrow::before { transform: scaleX(0); }

/* Icons draw their outlines when they scroll in */
.trust svg *, .card-icon *:not([stroke-dasharray]) { stroke-dasharray: 140; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) 0.25s; }
.reveal-on .trust li:not(.is-in) svg *, .reveal-on .card:not(.is-in) .card-icon *:not([stroke-dasharray]) { stroke-dashoffset: 140; }
.card-icon { transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.card-hover:hover .card-icon { transform: rotate(-6deg) scale(1.08); background: var(--blue); color: #fff; }

/* Cursor spotlight on cards (script sets --mx / --my) */
.card-hover, .service-card, .steps li, .submit-steps > li {
  background-image: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(31, 95, 209, 0.09), transparent 60%);
}

/* Steps: numbers slide up and an accent bar fills each card */
.steps li::before { transition: transform 0.6s var(--ease) 0.3s, opacity 0.6s 0.3s; }
.reveal-on .steps li:not(.is-in)::before { transform: translateY(16px); opacity: 0; }
.steps li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-light)); transform-origin: left;
  transition: transform 0.9s var(--ease) 0.45s;
}
.reveal-on .steps li:not(.is-in)::after { transform: scaleX(0); }
.steps li:hover::before { animation: num-bounce 0.5s var(--ease); }
@keyframes num-bounce { 40% { transform: translateY(-6px); } }

/* How to Submit: numbered badges pop in */
.submit-steps > li::before { transition: transform 0.6s var(--ease) 0.25s, opacity 0.5s 0.25s; }
.reveal-on .submit-steps > li:not(.is-in)::before { transform: scale(0.3) rotate(-25deg); opacity: 0; }

/* Grade table: grade badges pop in row by row */
.grade-num { transition: transform 0.55s var(--ease) 0.15s, opacity 0.4s 0.15s; }
.reveal-on .grade-table tr:not(.is-in) .grade-num { transform: scale(0.3) rotate(-15deg); opacity: 0; }
.grade-table tbody tr:hover .grade-num { transform: scale(1.1); }

/* Grade scale bar: bars bounce on hover, light sweeps across */
.scale-bar { position: relative; overflow: hidden; border-radius: 8px; }
.scale-bar span:hover { transform: translateY(-4px) scale(1.06); transition-delay: 0s; }
.scale-bar.is-in::after, html:not(.reveal-on) .scale-bar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  animation: sweep 4s ease-in-out 1.4s infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }

/* Photos settle in from a slight zoom, then drift gently with scroll */
.split-media img { transform: translateY(var(--para, 0px)) scale(var(--zoom, 1)); transition: transform 1.4s var(--ease); }
.reveal-on .split-media:not(.is-in) { --zoom: 1.08; }
.split-media::before { transition: transform 1.2s var(--ease) 0.3s; }
.reveal-on .split-media:not(.is-in)::before { transform: translate(-18px, -18px); }

/* Logo slots shimmer while they wait for logos */
.logo-slot {
  background: linear-gradient(100deg, transparent 30%, rgba(31, 95, 209, 0.07) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: slot-shimmer 3.2s linear infinite;
}
.logo-row li:nth-child(2) .logo-slot { animation-delay: 0.25s; }
.logo-row li:nth-child(3) .logo-slot { animation-delay: 0.5s; }
.logo-row li:nth-child(4) .logo-slot { animation-delay: 0.75s; }
.logo-row li:nth-child(5) .logo-slot { animation-delay: 1s; }
@keyframes slot-shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* Footer logo: metallic sheen passes over it */
.footer-brand { display: inline-flex; position: relative; overflow: hidden; border-radius: 10px; }
.footer-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  animation: btn-shine 6s ease-in-out 1s infinite;
}

/* FAQ plus sign grows on hover */
.faq details:not([open]) summary:hover::after { transform: scale(1.15); background: rgba(31, 95, 209, 0.15); }

/* Verify: grade "stamps" onto the result */
.cert-grade { animation: stamp 0.55s var(--ease) 0.1s both; }
@keyframes stamp { from { transform: scale(1.8) rotate(-10deg); opacity: 0; } 70% { transform: scale(0.94); opacity: 1; } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-anim, .slab-stage, .split-media img { transform: none !important; opacity: 1 !important; }
  .lab-bg::after, .slab-window::after { display: none; }
}

/* ---------- Service groups ---------- */
.tier-head { font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin: 0 0 1rem; }
.tier-head-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin: 2.5rem 0 1rem; }
.tier-head-row .tier-head { margin: 0; }
.tier-head-row .note { margin: 0; }
.service-card h4 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--navy); margin: 0 0 0.2rem; line-height: 1.1; }

/* =========================================================
   v5: Submit flow, tracking, shop, card page, chat, admin bits
   ========================================================= */
.btn-sm { min-height: 38px; padding: 0.4rem 0.9rem; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 0.85rem 1.75rem; font-size: 1.12rem; }
.field-hint { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; min-height: 1.2em; }
.field-narrow { max-width: 16rem; }
.field select {
  width: 100%; font: inherit; color: var(--text); padding: 0.7rem 0.8rem; min-height: 50px;
  border: 1px solid #a6b1c2; border-radius: 8px; background: #fff;
}
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 209, 0.18); }
.form-row-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row-3 { grid-template-columns: 2fr 1fr 1fr; } }
.form-status { margin: 0.75rem 0 0; padding: 0.75rem 1rem; border-radius: 8px; background: var(--ice); }
.form-status.is-error { background: #fdecec; color: #8b1d1d; }
.form-status.is-ok { background: #e7f6ec; color: #1a6b3a; }

/* flow strip */
.flow-strip { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.flow-strip li { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--ice); font-weight: 600; font-size: 0.95rem; }
.flow-strip strong { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); flex: none; }
@media (min-width: 860px) { .flow-strip { grid-template-columns: repeat(4, 1fr); } }

/* submit layout */
.submit-layout { display: grid; gap: 1.5rem; align-items: start; }
.submit-layout > * { min-width: 0; }
@media (min-width: 980px) { .submit-layout { grid-template-columns: 1fr 340px; } .order-summary { position: sticky; top: 96px; } }
.submit-form { display: grid; gap: 1.25rem; }
.step-card { border: 1px solid var(--line); margin: 0; display: grid; gap: 1rem; }
.step-card legend { float: left; width: 100%; padding: 0; margin-bottom: 0.25rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy); display: flex; align-items: center; gap: 0.6rem; }
.step-card legend + * { clear: both; }
.step-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--blue); color: #fff; font-size: 1rem; }
.service-options { display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .service-options { grid-template-columns: 1fr 1fr; } }
.service-option { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.service-option:hover { border-color: #b9c7de; }
.service-option:has(input:checked) { border-color: var(--blue); background: rgba(31, 95, 209, 0.05); box-shadow: 0 0 0 3px rgba(31, 95, 209, 0.12); }
.service-option input { margin-top: 0.3rem; accent-color: var(--blue); width: 1.1rem; height: 1.1rem; flex: none; }
.so-body { display: grid; gap: 0.15rem; flex: 1; min-width: 0; }
.so-top { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.so-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.so-price { font-weight: 700; color: var(--blue); }
.so-meta { font-size: 0.9rem; color: var(--muted); }
.card-list-toggle summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.card-rows { display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.card-row { display: grid; grid-template-columns: 1fr 7rem 2.5rem; gap: 0.5rem; }
.card-row input { font: inherit; padding: 0.6rem 0.7rem; border: 1px solid #a6b1c2; border-radius: 8px; min-width: 0; }
.cr-remove { border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.order-summary h2 { font-size: 1.3rem; }
.order-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 0 0 1rem; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 2px solid var(--navy); margin-bottom: 1rem; }
.sum-total strong { font-family: var(--font-display); font-size: 2rem; color: var(--navy); }
.order-done { display: grid; gap: 1.25rem; max-width: 46rem; }
.done-card { border-top: 4px solid var(--blue); }
.order-no { color: var(--blue); white-space: nowrap; }
.packing-slip h3 { margin-top: 0.5rem; }
@media print {
  .site-header, .utility-bar, .site-footer, .page-hero, .flow-strip, .done-card .btn-row, .chat-fab, .chat-panel, .scroll-progress { display: none !important; }
  .order-done { display: block !important; }
  .card { box-shadow: none; border: 1px solid #999; }
}

/* tracking */
.track-form { display: grid; gap: 1rem; }
.timeline { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0.25rem; }
.timeline li { position: relative; padding: 0.35rem 0 0.35rem 2rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 0.35rem; top: 0.65rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid #b9c3d1; background: #fff; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--blue); border-color: var(--blue); }
.timeline li.current { color: var(--navy); font-weight: 700; }
.timeline li.current::before { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 209, 0.2); }

/* shop */
.shop-filters { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 1rem; }
.shop-filters .sf-search { grid-column: 1 / -1; }
.shop-filters input { min-height: 50px; }
.sf-sold { align-self: center; }
@media (min-width: 980px) { .shop-filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; } .shop-filters .sf-search { grid-column: auto; } }
.shop-count { color: var(--muted); font-weight: 600; margin: 0 0 1rem; }
.shop-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.shop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: inherit; }
.shop-media { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--ice), #e2e8f1); display: grid; place-items: center; }
.shop-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; transition: transform 0.4s var(--ease); }
.shop-card:hover .shop-media img { transform: scale(1.04); }
.shop-noimg { color: var(--steel); font-weight: 600; font-size: 0.9rem; }
.shop-grade { position: absolute; left: 0.6rem; top: 0.6rem; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 6px; font-size: 0.9rem; }
.shop-badge { position: absolute; right: 0.6rem; top: 0.6rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; background: #fff; color: var(--navy); }
.shop-badge.is-sold { background: #8b1d1d; color: #fff; }
.shop-badge.is-pending { background: #8a5a00; color: #fff; }
.shop-badge.static { position: static; display: inline-block; margin-bottom: 0.75rem; }
.shop-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.shop-title { font-size: 1.05rem; margin: 0; line-height: 1.25; }
.shop-meta { color: var(--muted); font-size: 0.88rem; margin: 0; }
.shop-foot { margin-top: auto; padding-top: 0.6rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.shop-price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.shop-cert { font-size: 0.8rem; color: var(--steel); }
.shop-empty { grid-column: 1 / -1; text-align: center; }

/* single card */
.link-back { font-weight: 600; text-decoration: none; }
.card-view { display: grid; gap: 2rem; margin-top: 1rem; }
.card-view > * { min-width: 0; }
@media (min-width: 900px) { .card-view { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.cg-main { aspect-ratio: 3 / 4; border-radius: var(--radius); background: linear-gradient(160deg, var(--ice), #e2e8f1); display: grid; place-items: center; overflow: hidden; }
.cg-main img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.cg-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.cg-thumbs button { width: 72px; height: 90px; padding: 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.cg-thumbs button:hover, .cg-thumbs button:focus-visible { border-color: var(--blue); }
.cg-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.card-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.card-info .cert-list { margin: 1rem 0 1.25rem; }

/* verify extras */
.subgrades { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.subgrades li { background: var(--ice); border-radius: 8px; padding: 0.6rem; text-align: center; display: grid; gap: 0.1rem; }
.subgrades span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.subgrades strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); }
.cert-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.cert-photos img { width: 100%; border-radius: 10px; background: var(--ice); aspect-ratio: 3 / 4; object-fit: contain; }

/* chat */
.chat-fab {
  position: fixed; z-index: 150; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 52px; padding: 0.7rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 26, 54, 0.3); transition: transform 0.2s var(--ease), background 0.2s;
  animation: hero-in 0.6s var(--ease) 1.2s both;
}
.chat-fab:hover { transform: translateY(-2px); background: var(--blue-dark); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab.is-open span { display: none; }
.chat-panel {
  position: fixed; z-index: 150; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 64px);
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 26, 54, 0.35); overflow: hidden; animation: drop 0.25s var(--ease);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: grid; grid-template-columns: 1fr auto; padding: 0.9rem 1rem; background: var(--navy); color: #fff; }
.chat-head strong { font-family: var(--font-display); font-size: 1.1rem; }
.chat-sub { grid-column: 1; font-size: 0.8rem; color: var(--silver); }
.chat-close { grid-column: 2; grid-row: 1 / span 2; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; width: 44px; height: 44px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--ice); }
.chat-msg { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 14px; line-height: 1.45; white-space: pre-wrap; font-size: 0.97rem; }
.chat-msg.from-bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.from-user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.is-typing { color: var(--muted); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; padding: 0.6rem 0.8rem; border: 1px solid #a6b1c2; border-radius: 8px; }
.chat-form .btn { min-height: 44px; padding: 0.5rem 1rem; }
.chat-foot { margin: 0; padding: 0 0.75rem 0.6rem; font-size: 0.75rem; color: var(--muted); }

/* Home hero: BGC lab photo behind the headline */
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-photo img { --op: 0.6; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: var(--op); transform: scale(1.04); animation: hero-photo-in 1.6s var(--ease) both; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 26, 54, 0.97) 0%, rgba(10, 26, 54, 0.88) 38%, rgba(10, 26, 54, 0.45) 70%, rgba(10, 26, 54, 0.3) 100%),
    linear-gradient(0deg, rgba(10, 26, 54, 0.9) 0%, transparent 35%);
}
@keyframes hero-photo-in { from { opacity: 0; transform: scale(1.12); } to { opacity: var(--op); transform: scale(1.04); } }
@media (max-width: 959px) {
  .hero-photo img { --op: 0.45; object-position: 60% 20%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(10, 26, 54, 0.92) 0%, rgba(10, 26, 54, 0.8) 55%, rgba(10, 26, 54, 0.95) 100%); }
}

/* Home page cert lookup result (shown inside the hero box) */
.hero-result:empty { display: none; }
.hero-result { margin-top: 1rem; color: var(--text); }
.hero-result .card { padding: 1.1rem; box-shadow: none; }
.hero-result .card h2 { color: var(--navy); font-size: 1.2rem; }
.hero-result .card p, .hero-result .cert-list dd { color: var(--text); }
.hero-result .cert-list dt, .hero-result .card .note { color: var(--muted); }
.hero-result > p { color: var(--silver); margin: 0; }
.hero-result .cert-photos, .hero-result .subgrades { display: none; }
.hero-result .cert-grade { min-width: 3.5rem; height: 3.5rem; font-size: 1.6rem; }
.hero-result .status-ok { color: #1a7a43; }
.order-certs { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.4rem; }
.order-certs li { padding: 0.6rem 0.8rem; background: var(--ice); border-radius: 8px; }
.order-certs a { font-weight: 700; }

/* ---------- Home hero: let the lab photo show (no slab graphics) ---------- */
.hero-photo img { --op: 0.92; object-position: 75% 35%; }
.hero-photo::after {
  background:
    linear-gradient(90deg, rgba(10, 26, 54, 0.96) 0%, rgba(10, 26, 54, 0.86) 34%, rgba(10, 26, 54, 0.4) 60%, rgba(10, 26, 54, 0.06) 100%),
    linear-gradient(0deg, rgba(10, 26, 54, 0.8) 0%, transparent 28%);
}
.hero.lab-bg::before { opacity: 0.35; }
@media (min-width: 960px) { .hero-inner { min-height: 620px; } }
@media (max-width: 959px) {
  .hero-photo img { --op: 0.55; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(10, 26, 54, 0.88) 0%, rgba(10, 26, 54, 0.74) 55%, rgba(10, 26, 54, 0.94) 100%); }
}

/* ---------- Page heroes with a graphic on the right ---------- */
.page-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.page-hero-grid > * { min-width: 0; }

/* ---------- BGC slab, drawn like a real BGC label ---------- */
.slab-showcase { position: relative; margin: 0; display: grid; justify-items: center; padding: 1rem 0 0; }
.slab-showcase::before { content: ""; position: absolute; inset: 10% 5% 18%; background: radial-gradient(closest-side, rgba(77, 140, 255, 0.45), transparent); filter: blur(20px); }
.bgc-slab {
  position: relative; width: min(300px, 78vw); padding: 12px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.55), rgba(220,230,245,0.25) 40%, rgba(255,255,255,0.4));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255,255,255,0.35);
  backdrop-filter: blur(4px); transform: rotate(-3deg); animation: slab-float 7s ease-in-out infinite;
}
.bgc-slab::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.35) 45%, transparent 55%); pointer-events: none; }
.bgc-slab-back { position: absolute; top: 0; transform: translate(34%, 8%) rotate(8deg) scale(0.86); opacity: 0.75; animation-delay: -3.5s; z-index: 0; }
.bgc-slab:not(.bgc-slab-back) { z-index: 1; }
@media (max-width: 959px) { .bgc-slab-back { display: none; } .bgc-slab { transform: none; } }
.bl {
  position: relative; padding: 7px 9px 6px; border: 3px solid #1f3f63; outline: 1px solid #1f3f63; outline-offset: -6px;
  background: linear-gradient(180deg, #f4f5f7, #dcdfe3); color: #111; border-radius: 3px;
  font: 600 10.5px/1.25 Arial, "Helvetica Neue", Helvetica, sans-serif; letter-spacing: 0.01em; text-transform: uppercase;
}
.bl-row { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.bl-row span:first-child { overflow: hidden; text-overflow: ellipsis; }
.bl-grade { font-size: 12px; }
.bl-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; }
.bl-barcode { display: block; width: 74px; height: 12px; background: repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 2px, #111 2px 4px, transparent 4px 5px, #111 5px 6px, transparent 6px 8px); }
.bl-logo { font: italic 800 13px/1 Georgia, "Times New Roman", serif; color: #1f4f8f; padding: 1px 10px; border-radius: 50%; border-top: 2px solid #1f4f8f; }
.bl-cert { font-size: 11px; }
.bs-window { margin-top: 10px; padding: 9px; border-radius: 8px; background: linear-gradient(160deg, rgba(255,255,255,0.55), rgba(255,255,255,0.15)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); }
.bs-card {
  position: relative; aspect-ratio: 2.5 / 3.5; border-radius: 6px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 30% 10%, #3f7bff 0%, #1a46b8 35%, #0b1d3a 80%);
  box-shadow: inset 0 0 0 6px #f3f4f6, inset 0 0 0 7px #c9ced6;
}
.bs-card::before { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.28) 50%, transparent 58%); animation: card-sheen 5.5s ease-in-out infinite; }
.bs-mono { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.55); letter-spacing: 0.02em; }
.bs-plate { position: absolute; left: 10px; right: 10px; bottom: 12px; display: grid; gap: 1px; padding: 7px 10px; border-radius: 4px; background: rgba(10, 26, 54, 0.82); color: #fff; text-align: left; }
.bs-plate b { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.02em; }
.bs-plate small { font-size: 0.72rem; color: var(--silver); }
.slab-showcase figcaption { position: relative; margin-top: 1.4rem; font-size: 0.88rem; color: var(--silver); text-align: center; }
.slab-showcase figcaption a { color: #fff; font-weight: 600; }
@keyframes card-sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes slab-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .bgc-slab, .bs-card::before { animation: none; } }

/* ---------- Services: BGC brand panel ---------- */
.brand-panel {
  position: relative; display: grid; gap: 1.4rem; padding: 1.75rem; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(33, 80, 196, 0.55), rgba(10, 26, 54, 0.85));
  border: 1px solid rgba(199, 208, 220, 0.28); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.brand-panel::after { content: "BGC"; position: absolute; right: -0.15em; bottom: -0.3em; font: italic 800 9rem/1 Georgia, "Times New Roman", serif; color: rgba(255,255,255,0.05); pointer-events: none; }
.bp-head { display: flex; align-items: center; gap: 0.9rem; }
.bp-mark { display: grid; place-items: center; width: 64px; height: 44px; border-radius: 8px; background: linear-gradient(180deg, #2150c4, #0f2a72); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  font: italic 700 1.35rem/1 Georgia, "Times New Roman", serif; color: #fff; }
.bp-name { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; line-height: 1.15; }
.bp-name small { font-weight: 600; letter-spacing: 0.24em; font-size: 0.68rem; color: var(--silver); }
.bp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.bp-points li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(199, 208, 220, 0.16); }
.bp-points li:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-num { font-family: var(--font-display); font-weight: 800; color: var(--blue-light); font-size: 0.95rem; padding-top: 0.1rem; }
.bp-points strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.12rem; }
.bp-points li > span:last-child { color: var(--silver); font-size: 0.95rem; }
.bp-price { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; padding: 0.9rem 1rem; border-radius: 12px; background: rgba(255,255,255,0.08); color: var(--silver); }
.bp-price strong { font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; }
.brand-panel::after { top: -0.28em; bottom: auto; right: -0.1em; }
.bp-head, .bp-points, .bp-price { position: relative; z-index: 1; }

/* ---------- Orders paused ---------- */
.orders-notice { background: #fff4d6; border-bottom: 1px solid #f0d58a; color: #5c4300; padding: 0.75rem 0; font-size: 0.98rem; }
.orders-notice strong { color: #3d2c00; }
.service-card.is-paused { opacity: 0.78; }
.paused-badge { display: inline-block; justify-self: start; margin-bottom: 0.6rem; padding: 0.25rem 0.6rem; border-radius: 99px; background: #fff4d6; color: #5c4300; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.btn.is-disabled { pointer-events: none; opacity: 0.7; cursor: not-allowed; }
.service-option.is-paused { opacity: 0.55; cursor: not-allowed; }
.orders-closed { padding: 1.25rem; border-radius: var(--radius); background: #fff4d6; border: 1px solid #f0d58a; }
.orders-closed h3 { margin: 0 0 0.35rem; color: #3d2c00; }
.orders-closed p { margin: 0; color: #5c4300; }

/* ---------- Grading Standards: 4-point inspection graphic ---------- */
.inspect-graphic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.inspect-graphic svg { width: 100%; height: auto; display: block; }

/* ---------- Services: three real BGC slabs ---------- */
.slab-trio { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 2.5rem 1rem 2rem; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, rgba(77, 140, 255, 0.35), transparent), linear-gradient(160deg, #16316f, #0a1a36); box-shadow: var(--shadow); }
.slab-trio .bgc-slab { width: 44%; max-width: 230px; flex: none; animation: none; transform: none; }
.slab-trio .bl { font-size: 8px; padding: 5px 6px 4px; border-width: 2px; outline-offset: -5px; }
.slab-trio .bl-grade { font-size: 9.5px; } .slab-trio .bl-cert { font-size: 8.5px; } .slab-trio .bl-logo { font-size: 10px; padding: 1px 6px; } .slab-trio .bl-barcode { width: 44px; height: 9px; }
.slab-trio .bs-mono { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.slab-trio .bs-plate { left: 7px; right: 7px; bottom: 8px; padding: 5px 7px; } .slab-trio .bs-plate b { font-size: 0.78rem; } .slab-trio .bs-plate small { font-size: 0.62rem; }
.slab-trio .t-left { transform: rotate(-9deg) translate(18%, 6%); z-index: 0; }
.slab-trio .t-mid { z-index: 2; transform: translateY(-4%); }
.slab-trio .t-right { transform: rotate(9deg) translate(-18%, 6%); z-index: 1; }
@media (max-width: 559px) { .slab-trio .bgc-slab { width: 46%; } .slab-trio .bl-row span:first-child { max-width: 70%; } }
.slab-trio .bgc-slab { width: 36%; }
.slab-trio .t-left { transform: rotate(-8deg) translate(24%, 7%); }
.slab-trio .t-right { transform: rotate(8deg) translate(-24%, 7%); }
.slab-trio .bs-plate b { font-size: clamp(0.55rem, 1.6vw, 0.78rem); }
.slab-trio .bs-plate small { font-size: clamp(0.45rem, 1.2vw, 0.62rem); }
@media (max-width: 559px) {
  .slab-trio { padding: 1.75rem 0.5rem 1.25rem; }
  .slab-trio .bgc-slab { width: 37%; padding: 6px; border-radius: 10px; }
  .slab-trio .bl { font-size: 5.5px; padding: 3px 4px; } .slab-trio .bl-grade, .slab-trio .bl-cert { font-size: 6.5px; }
  .slab-trio .bl-logo { font-size: 7px; } .slab-trio .bl-barcode { width: 26px; height: 6px; }
  .slab-trio .bs-window { margin-top: 5px; padding: 4px; }
  .slab-trio .bs-plate { left: 4px; right: 4px; bottom: 5px; padding: 3px 5px; }
  .slab-trio .bs-mono { font-size: 1.9rem; }
}

/* ---------- Real BGC slab photos ---------- */
.photo-trio { position: relative; display: flex; justify-content: center; align-items: center; padding: 2.25rem 0.75rem; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 45%, rgba(77, 140, 255, 0.35), transparent), linear-gradient(160deg, #16316f, #0a1a36); box-shadow: var(--shadow); }
.photo-trio .pt { display: block; width: 38%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); border: 3px solid rgba(255, 255, 255, 0.85); }
.photo-trio .pt-left { transform: rotate(-7deg) translateX(14%); z-index: 0; }
.photo-trio .pt-mid { z-index: 2; transform: translateY(-4%) scale(1.06); }
.photo-trio .pt-right { transform: rotate(7deg) translateX(-14%); z-index: 1; }
.slab-photos { position: relative; margin: 0; display: grid; justify-items: center; padding-top: 0.5rem; }
.slab-photos::before { content: ""; position: absolute; inset: 8% 0 16%; background: radial-gradient(closest-side, rgba(77, 140, 255, 0.45), transparent); filter: blur(22px); }
.slab-photos img { position: relative; display: block; width: min(300px, 72vw); height: auto; border-radius: 14px; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.slab-photos .sp-front { z-index: 1; transform: rotate(-3deg); }
.slab-photos .sp-back { position: absolute; top: 0.5rem; z-index: 0; transform: translateX(42%) rotate(8deg) scale(0.88); opacity: 0.9; }
.slab-photos figcaption { position: relative; margin-top: 1.4rem; font-size: 0.88rem; color: var(--silver); text-align: center; }
.slab-photos figcaption a { color: #fff; font-weight: 600; }
@media (max-width: 959px) { .slab-photos .sp-back { display: none; } .slab-photos .sp-front { transform: none; } }
.split-media .photo-trio img.pt { aspect-ratio: auto; height: auto; object-fit: contain; max-height: none; }
.photo-trio .pt-left { transform: rotate(-7deg) translateX(22%); }
.photo-trio .pt-right { transform: rotate(7deg) translateX(-22%); }
/* Real card photo inside the drawn BGC slab */
.bs-card.has-photo { background: #111; box-shadow: none; }
.bs-card.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.bs-card.has-photo::before { z-index: 1; opacity: 0.55; }
.split-media .slab-trio img { aspect-ratio: auto; box-shadow: none; border-radius: 4px; transform: none; }

/* Online ordering switch (Admin -> Prices). Hidden until the owner turns it on. */
html:not(.submit-on) [data-submit] { display: none !important; }
html.submit-on [data-submit-off] { display: none !important; }
.bs-card.has-photo::before { opacity: 0.3; }

/* Bigger tap targets for footer links on phones (24px+). */
.footer-links li { margin-bottom: 0.2rem; }
.footer-links a, .footer-links [data-site-link] a { display: inline-block; padding: 0.35rem 0; }
.orders-closed h2 { margin: 0 0 0.35rem; font-size: 1.25rem; color: #3d2c00; }

/* Policy pages */
.policy { max-width: 760px; }
.policy h2 { margin: 2rem 0 0.5rem; font-size: 1.35rem; }
.policy ul { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.owner-confirm { background: #fff1b8; color: #4a3600; padding: 0.05rem 0.25rem; border-radius: 4px; }
.draft-banner { background: #fff1b8; color: #4a3600; border-bottom: 1px solid #f0d58a; padding: 0.6rem 0; font-size: 0.95rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (min-width: 560px) and (max-width: 859px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .steps.steps-6 { grid-template-columns: repeat(3, 1fr); } .steps.steps-6::before { display: none; } }
