/* ==========================================================================
   Labradorite Bali — "Labradorescence"
   --------------------------------------------------------------------------
   A minimal, editorial luxury language built around the stone itself: a
   graphite-dark base, warm pearl light, and one iridescent accent that
   shifts peacock -> teal -> gold, used only on hairlines and rules so it
   reads as a flash of light rather than decoration.

   Deliberately NOT the sibling themes' language: left-aligned editorial
   headings instead of centred ones, near-square corners instead of pills,
   hairline rules instead of card shadows, and a high-contrast serif
   (Cormorant Garamond) against a geometric sans (Jost).
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
    /* Graphite base — the raw stone */
    --ink:        #0e1214;
    --ink-2:      #161c1f;
    --ink-3:      #202a2e;
    --ink-4:      #2c383d;

    /* Labradorescence — the flash */
    --flash:      #3e8fa8;   /* peacock, decorative use */
    --flash-ink:  #2a6a80;   /* darker: accent TEXT on light grounds (5.7:1) */
    --flash-2:    #4fb39b;   /* teal */
    --gold:       #c0a264;
    --gold-soft:  #d9c294;

    /* Pearl light */
    --pearl:      #f7f5f1;
    --pearl-2:    #efece6;
    --pearl-3:    #e4dfd7;
    --white:      #ffffff;

    /* Text */
    --text:       #0e1214;
    --text-soft:  #4a5357;
    --muted:      #76807f;
    --on-ink:     #e8e5df;
    --on-ink-soft:#a9b0b0;

    /* Hairlines */
    --line:       rgba(14,18,20,.12);
    --line-soft:  rgba(14,18,20,.07);
    --line-ink:   rgba(232,229,223,.14);

    /* The iridescent gradient, used on rules and underlines */
    --iris: linear-gradient(90deg, var(--flash) 0%, var(--flash-2) 45%, var(--gold) 100%);

    /* Rhythm */
    --container: 1280px;
    --gutter:    1.5rem;
    --radius:    2px;

    /* Type */
    --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) { :root { --gutter: 2.5rem; } }
@media (min-width: 1280px){ :root { --gutter: 3rem; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--pearl);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Remove the 300ms double-tap zoom delay without disabling pinch zoom. */
a, button, summary, [role="tab"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(62, 143, 168, .18);
}

/* The header is sticky, so in-page anchors must clear it when jumped to —
   otherwise the heading lands underneath the header. */
[id] { scroll-margin-top: 7rem; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }input, textarea, select { font: inherit; }

/* Visible focus for keyboard users on every interactive element. */
:focus-visible {
    outline: 2px solid var(--flash);
    outline-offset: 3px;
    border-radius: var(--radius);
}

/* ---------------------------------------------------------------- headings */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.012em;
    margin: 0;
    color: var(--text);
    text-wrap: balance;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--flash-ink);
}

.lab-h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); }
.lab-h2 { font-size: clamp(1.85rem, 4.1vw, 3rem); }
.lab-h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- helpers */
.lab-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.lab-band { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.lab-band--pearl { background: var(--pearl); }
.lab-band--ink   { background: var(--ink); color: var(--on-ink); }
.lab-band--ink h1, .lab-band--ink h2, .lab-band--ink h3 { color: var(--on-ink); }
.lab-band--ink h2 em { color: var(--gold-soft); }
.lab-band--ink .lab-eyebrow { color: var(--gold-soft); }
.lab-band--ink .lab-lede,
.lab-band--ink .lab-prose p { color: var(--on-ink-soft); }

/* A hairline of labradorescence — the theme's signature mark. */
.lab-rule {
    width: 72px; height: 2px;
    background: var(--iris);
    border: 0; margin: 0;
}

/* Eyebrow: short rule + letter-spaced label */
.lab-eyebrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.1rem;
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--flash-ink);
}
.lab-eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: currentColor;
    opacity: .65;
    flex: none;
}

/* Section heading block — left aligned, editorial */
.lab-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.lab-head--center { margin-inline: auto; text-align: center; }
.lab-head--center .lab-eyebrow { justify-content: center; }
.lab-head--center .lab-rule { margin-inline: auto; }
.lab-head .lab-rule { margin-top: 1.5rem; }

.lab-lede {
    margin-top: 1.25rem;
    font-size: clamp(1.02rem, 1.4vw, 1.14rem);
    line-height: 1.8;
    color: var(--text-soft);
}

.lab-prose { max-width: 68ch; }
.lab-prose p {
    font-size: clamp(1rem, 1.15vw, 1.075rem);
    line-height: 1.86;
    color: var(--text-soft);
}

/* ----------------------------------------------------------------- buttons */
.lab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 1rem 1.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: none;
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    position: relative;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.lab-btn i { font-size: 1.05rem; }

.lab-btn--primary { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.lab-btn--primary:hover { background: var(--ink-3); border-color: var(--ink-3); transform: translateY(-2px); }

.lab-btn--ghost { border-color: var(--line); color: var(--text); }
.lab-btn--ghost:hover { border-color: var(--flash); color: var(--flash-ink); transform: translateY(-2px); }

.lab-btn--light { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.lab-btn--light:hover { background: var(--white); border-color: var(--white); transform: translateY(-2px); }

.lab-btn--outline-light { border-color: var(--line-ink); color: var(--on-ink); }
.lab-btn--outline-light:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.lab-btn--sm { padding: .72rem 1.3rem; font-size: .68rem; }

/* Text link with an iridescent underline that draws in */
.lab-link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .76rem; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--flash-ink);
    padding-bottom: .3rem;
    position: relative;
}
.lab-link::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: var(--iris);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s cubic-bezier(.2,.8,.3,1);
}
.lab-link:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    .lab-btn, .lab-link::after { transition: none; }
    .lab-btn:hover { transform: none; }
}

/* ---------------------------------------------------------------- skip link */
.lab-skip {
    position: absolute; left: 1rem; top: -4rem;
    z-index: 999;
    padding: .8rem 1.25rem;
    background: var(--ink); color: var(--pearl);
    font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
    transition: top .2s ease;
}
.lab-skip:focus { top: 1rem; }

/* ===================================================================
   HEADER
   =================================================================== */
.lab-topbar {
    background: var(--ink);
    color: var(--on-ink-soft);
    font-size: .74rem;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--line-ink);
}
.lab-topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 40px;
}
.lab-topbar__group { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.lab-topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color .25s; }
.lab-topbar a:hover { color: var(--gold-soft); }
.lab-topbar i { font-size: .95rem; color: var(--gold); }
@media (max-width: 860px) { .lab-topbar { display: none; } }

.lab-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247,245,241,.88);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow .3s ease, background-color .3s ease;
}
.lab-header.is-stuck {
    background: rgba(247,245,241,.97);
    box-shadow: 0 1px 0 var(--line), 0 12px 34px rgba(14,18,20,.07);
}
.lab-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: 76px;
}
@media (max-width: 767px) { .lab-header__inner { min-height: 64px; } }

/* ------------------------------------------------------------------- logo */
.lab-logo { flex: none; }
.lab-logo--header { height: 46px; width: auto; max-width: 210px; object-fit: contain; }
.lab-logo--footer { height: 54px; width: auto; max-width: 220px; object-fit: contain; }

/* Requirement: the footer logo reads white on the dark ground. If no light
   logo file is supplied, invert the header logo so it stays legible. */
.lab-logo--invert { filter: brightness(0) invert(1); opacity: .94; }

.lab-wordmark { display: flex; flex-direction: column; line-height: 1; }
.lab-wordmark__name {
    font-family: var(--serif);
    font-size: 1.42rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink);
}
.lab-wordmark__tag {
    margin-top: .34rem;
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--flash-ink);
}
.lab-logo--footer.lab-wordmark .lab-wordmark__name { color: var(--pearl); font-size: 1.6rem; }
.lab-logo--footer.lab-wordmark .lab-wordmark__tag { color: var(--gold-soft); }
@media (max-width: 767px) {
    .lab-logo--header { height: 38px; }
    .lab-wordmark__name { font-size: 1.12rem; letter-spacing: .1em; }
    .lab-wordmark__tag { font-size: .54rem; letter-spacing: .26em; }
}

/* ------------------------------------------------------------------- nav */
.lab-nav { display: none; }
@media (min-width: 1024px) {
    .lab-nav { display: block; margin-left: auto; }
}
.lab-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.lab-nav li { position: relative; }
.lab-nav a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .6rem .85rem;
    font-size: .8rem; font-weight: 400; letter-spacing: .04em;
    color: var(--text); position: relative;
    transition: color .25s ease;
}
.lab-nav a::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
    height: 1px; background: var(--iris);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.lab-nav a:hover, .lab-nav .current-menu-item > a { color: var(--flash-ink); }
.lab-nav a:hover::after, .lab-nav .current-menu-item > a::after { transform: scaleX(1); }
.lab-nav .ti-chevron-down { font-size: .7rem; transition: transform .25s ease; }
.lab-nav li:hover > a .ti-chevron-down { transform: rotate(180deg); }

/* Between the nav appearing and the layout getting roomy, the six top-level
   labels have to share a narrow strip with the logo and the CTA. */
@media (min-width: 1024px) and (max-width: 1239px) {
    .lab-nav a { padding: .6rem .5rem; font-size: .74rem; letter-spacing: .01em; gap: .25rem; }
    .lab-nav a::after { left: .5rem; right: .5rem; }
    .lab-nav__sub a { padding: .5rem .7rem; font-size: .78rem; letter-spacing: normal; }
}

/* Dropdown — one column per group. Right-aligned to its own trigger so it
   can never spill past the header edge, whichever group is hovered. */
.lab-nav__sub {
    position: absolute; top: 100%; right: 0;
    display: grid; grid-template-columns: 1fr;
    gap: 0 .5rem;
    list-style: none; margin: 0;
    min-width: 240px;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-top: 2px solid transparent;
    border-image: var(--iris) 1;
    border-image-slice: 0 0 0 0;
    box-shadow: 0 24px 60px rgba(14,18,20,.14);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.lab-nav__sub::before {
    content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
    background: var(--iris);
}
.lab-nav li:hover > .lab-nav__sub,
.lab-nav li:focus-within > .lab-nav__sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
/* A group holding more than six links splits, rather than running long. */
.lab-nav__sub--wide { grid-template-columns: 1fr 1fr; min-width: 430px; }

/* A WordPress menu assigned to 'primary' wins over the wording nav, and
   wp_nav_menu() names its nested list .sub-menu. Without this it would render
   as a flat, permanently open row inside the header. */
.lab-nav .sub-menu {
    position: absolute; top: 100%; right: 0;
    display: grid; grid-template-columns: 1fr;
    gap: 0 .5rem;
    min-width: 240px;
    padding: 1rem;
    list-style: none; margin: 0;
    background: var(--white);
    border: 1px solid var(--line-soft);
    box-shadow: 0 24px 60px rgba(14,18,20,.14);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.lab-nav .sub-menu::before {
    content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
    background: var(--iris);
}
.lab-nav li:hover > .sub-menu,
.lab-nav li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.lab-nav .sub-menu a { padding: .5rem .7rem; font-size: .8rem; color: var(--text-soft); border-left: 2px solid transparent; }
.lab-nav .sub-menu a::after { display: none; }
.lab-nav .sub-menu a:hover { color: var(--flash-ink); border-left-color: var(--flash); background: rgba(62,143,168,.06); }
.lab-nav .menu-item-has-children > a::before {
    content: "\ea5f"; font-family: "tabler-icons"; font-size: .7rem; order: 2; opacity: .75;
}
.lab-nav__sub a {
    padding: .5rem .7rem; font-size: .8rem; color: var(--text-soft);
    border-left: 2px solid transparent;
}
.lab-nav__sub a::after { display: none; }
.lab-nav__sub a:hover { color: var(--flash-ink); border-left-color: var(--flash); background: rgba(62,143,168,.06); }

.lab-header__actions { display: flex; align-items: center; gap: .75rem; flex: none; }
@media (max-width: 1023px) { .lab-header__cta { display: none; } }

/* --------------------------------------------------------------- burger */
.lab-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.6rem; height: 2.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: none; cursor: pointer;
    font-size: 1.2rem;
    transition: border-color .25s ease, color .25s ease;
}
.lab-burger:hover { border-color: var(--flash); color: var(--flash-ink); }
@media (min-width: 1024px) { .lab-burger { display: none; } }

/* --------------------------------------------------------------- drawer */
.lab-scrim {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(14,18,20,.55);
    backdrop-filter: blur(3px);
    overscroll-behavior: contain;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.lab-scrim.is-open { opacity: 1; pointer-events: auto; }

.lab-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    width: min(360px, 86vw);
    display: flex; flex-direction: column;
    background: var(--pearl);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    /* visibility keeps the closed drawer out of the tab order — a translated
       panel is still focusable, so keyboard users would otherwise tab into
       an off-screen menu. */
    visibility: hidden;
    transition: transform .34s cubic-bezier(.4,0,.2,1), visibility .34s;
    overflow: hidden;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.lab-drawer.is-open { transform: translateX(0); visibility: visible; }
.lab-drawer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--iris);
}
.lab-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid var(--line-soft);
}
.lab-drawer__title {
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--flash-ink);
}
.lab-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 0; -webkit-overflow-scrolling: touch; }
.lab-drawer__foot { padding: 1.1rem 1.3rem 1.5rem; border-top: 1px solid var(--line-soft); }
.lab-drawer__foot .lab-btn { width: 100%; }

.lab-mnav { display: flex; flex-direction: column; }
.lab-mnav a, .lab-mnav summary {
    display: flex; align-items: center; gap: .6rem;
    min-height: 52px; padding: 0 1.3rem;
    font-size: .92rem; color: var(--text);
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}
.lab-mnav a:hover, .lab-mnav summary:hover { color: var(--flash-ink); background: rgba(62,143,168,.05); }
.lab-mnav summary { list-style: none; justify-content: space-between; }
.lab-mnav summary::-webkit-details-marker { display: none; }
.lab-mnav summary i { font-size: .85rem; transition: transform .25s ease; }
.lab-mnav details[open] > summary { color: var(--flash-ink); border-left-color: var(--flash); }
.lab-mnav details[open] > summary i { transform: rotate(45deg); }
.lab-mnav details ul { list-style: none; margin: 0; padding: 0; background: var(--pearl-2); }
.lab-mnav details ul a { min-height: 44px; padding-left: 2.1rem; font-size: .84rem; color: var(--text-soft); }
.lab-mnav details ul a::before {
    content: ""; width: 4px; height: 4px; border-radius: 50%;
    background: var(--flash); opacity: .6; flex: none;
}

/* ===================================================================
   HERO
   =================================================================== */
.lab-hero {
    position: relative;
    display: flex; align-items: flex-end;
    min-height: auto;
    background: var(--ink);
    color: var(--on-ink);
    overflow: hidden;
}
.lab-hero__media { position: absolute; inset: 0; }
.lab-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.lab-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,18,20,.42) 0%, rgba(14,18,20,.60) 45%, rgba(14,18,20,.90) 100%),
        linear-gradient(90deg, rgba(14,18,20,.70) 0%, rgba(14,18,20,.18) 70%);
}
.lab-hero__inner { position: relative; width: 100%; padding-block: 4.5rem 2.5rem; }
.lab-hero__body { max-width: 44rem; }
.lab-hero .lab-eyebrow { color: var(--gold-soft); }
.lab-hero h1 { color: var(--white); }
.lab-hero h1 em { color: var(--gold-soft); }
.lab-hero__lede {
    margin-top: 1.4rem;
    max-width: 38rem;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.8;
    color: rgba(232,229,223,.86);
}
.lab-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
/* On narrow screens, equal full-width buttons read as deliberate; ragged
   widths set by label length do not. */
@media (max-width: 519px) {
    .lab-hero__actions { display: grid; grid-template-columns: 1fr; }
    .lab-hero__actions .lab-btn { width: 100%; }
}

/* Fact strip — hairline-divided row at the foot of the hero */
.lab-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 3rem;
    background: var(--line-ink);
    border-top: 1px solid var(--line-ink);
    border-left: 1px solid var(--line-ink);
}
.lab-hero__fact { background: var(--ink); padding: 1.1rem 1.2rem; }
.lab-hero__fact dt {
    font-family: var(--serif);
    font-size: 1.32rem;
    color: var(--gold-soft);
    line-height: 1.1;
}
.lab-hero__fact dd {
    margin: .35rem 0 0;
    font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--on-ink-soft);
}

@media (min-width: 640px) { .lab-hero, .lab-hero__inner { min-height: 560px; } }
@media (min-width: 768px) {
    .lab-hero, .lab-hero__inner { min-height: 640px; }
    .lab-hero__inner { padding-block: 7rem 3rem; }
    .lab-hero__facts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) { .lab-hero, .lab-hero__inner { min-height: 76vh; } }
@media (min-width: 1280px) { .lab-hero, .lab-hero__inner { min-height: 82vh; } }

/* Compact hero for inner pages */
.lab-hero--page .lab-hero__inner { padding-block: 3.5rem 2.25rem; }
@media (min-width: 768px) {
    .lab-hero--page, .lab-hero--page .lab-hero__inner { min-height: 500px; }
}
@media (min-width: 1024px) {
    .lab-hero--page, .lab-hero--page .lab-hero__inner { min-height: 56vh; }
}

/* ------------------------------------------------------------- breadcrumb */
.lab-crumb { margin-bottom: 1.4rem; font-size: .74rem; letter-spacing: .08em; }
.lab-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.lab-crumb li { color: rgba(232,229,223,.6); }
.lab-crumb a { color: rgba(232,229,223,.82); transition: color .25s; }
.lab-crumb a:hover { color: var(--gold-soft); }
.lab-crumb [aria-current] { color: var(--gold-soft); }
.lab-band--pearl .lab-crumb li { color: var(--muted); }
.lab-band--pearl .lab-crumb a { color: var(--text-soft); }
.lab-band--pearl .lab-crumb a:hover,
.lab-band--pearl .lab-crumb [aria-current] { color: var(--flash-ink); }

/* ===================================================================
   PROSE  (the long-form homepage sections)
   =================================================================== */
.lab-prose-section .lab-prose { margin-top: 0; }
.lab-prose-section__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
    .lab-prose-section__grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 3.5rem; }
    .lab-prose-section .lab-head { margin-bottom: 0; }
}

/* Drop cap on the first paragraph — an editorial touch, light-ground only */
.lab-prose--drop > p:first-of-type::first-letter {
    float: left;
    font-family: var(--serif);
    font-size: 3.6em;
    line-height: .82;
    padding: .06em .12em 0 0;
    color: var(--flash-ink);
}

/* ===================================================================
   SPLIT  (image + prose)
   =================================================================== */
.lab-split__grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) {
    .lab-split__grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
    .lab-split--flip .lab-split__media { order: 2; }
}
.lab-split__media { position: relative; }
.lab-split__media img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: var(--radius);
}
/* Offset iridescent frame — the stone's flash, implied */
.lab-split__media::before {
    content: ""; position: absolute;
    inset: auto -14px -14px auto;
    width: 62%; height: 62%;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: var(--iris) 1;
    pointer-events: none;
}
@media (max-width: 899px) { .lab-split__media::before { display: none; } }

/* ===================================================================
   COLLECTION GRID  (the 19 applications)
   =================================================================== */
.lab-collection__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
@media (min-width: 640px) { .lab-collection__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .lab-collection__grid { grid-template-columns: repeat(4, 1fr); } }

.lab-tile {
    position: relative; display: block;
    background: var(--pearl);
    overflow: hidden;
    isolation: isolate;
}
.lab-tile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pearl-3); }
.lab-tile__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.8,.3,1);
}
.lab-tile:hover .lab-tile__media img { transform: scale(1.06); }
.lab-tile__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,18,20,0) 38%, rgba(14,18,20,.82) 100%);
    transition: opacity .4s ease;
}
.lab-tile__body {
    position: absolute; inset: auto 0 0 0;
    padding: 1.15rem 1.15rem 1.2rem;
    z-index: 1;
}
.lab-tile__title {
    font-family: var(--serif);
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
}
.lab-tile__cta {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: .5rem;
    font-size: .64rem; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-soft);
    opacity: 0; transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}
.lab-tile:hover .lab-tile__cta,
.lab-tile:focus-visible .lab-tile__cta { opacity: 1; transform: translateY(0); }
/* Touch devices never hover — show the label there. */
@media (hover: none) { .lab-tile__cta { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .lab-tile__media img, .lab-tile__cta { transition: none; }
    .lab-tile:hover .lab-tile__media img { transform: none; }
    .lab-tile__cta { opacity: 1; transform: none; }
}
/* Iridescent top edge on hover */
.lab-tile::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: var(--iris); z-index: 2;
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s cubic-bezier(.2,.8,.3,1);
}
.lab-tile:hover::after, .lab-tile:focus-visible::after { transform: scaleX(1); }

/* ===================================================================
   DEFINITION LIST  (price tiers / quality markers)
   =================================================================== */
.lab-deflist { display: grid; gap: 0; counter-reset: lab-def; }
.lab-def {
    display: grid; gap: .4rem 1.5rem;
    grid-template-columns: auto 1fr;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}
.lab-def:last-child { border-bottom: 1px solid var(--line); }
.lab-band--ink .lab-def { border-color: var(--line-ink); }

.lab-def__mark {
    counter-increment: lab-def;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1;
    color: var(--flash-ink);
    opacity: .5;
    font-variant-numeric: tabular-nums;
    grid-row: span 2;
}
.lab-band--ink .lab-def__mark { color: var(--gold-soft); }
.lab-deflist--numbered .lab-def__mark::before { content: "0" counter(lab-def); }
.lab-deflist--bulleted .lab-def__mark::before { content: "—"; }

.lab-def__label {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.7vw, 1.32rem);
    font-weight: 600;
    line-height: 1.25;
}
/* <dd> carries a 40px inline-start margin by default, which would knock the
   description out of alignment with its own label. */
.lab-def__text { grid-column: 2; margin: 0; color: var(--text-soft); max-width: 62ch; }
.lab-band--ink .lab-def__text { color: var(--on-ink-soft); }
@media (max-width: 599px) {
    .lab-def { grid-template-columns: 1fr; }
    .lab-def__mark { grid-row: auto; font-size: 1.4rem; }
    .lab-def__text { grid-column: 1; }
}

/* ===================================================================
   GALLERY
   =================================================================== */
.lab-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 768px) {
    .lab-gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    /* First image spans a 2x2 block so the grid reads as a composition */
    .lab-gallery__grid > *:first-child { grid-column: span 2; grid-row: span 2; }
}
.lab-shot { position: relative; overflow: hidden; background: var(--pearl-3); border-radius: var(--radius); }
.lab-shot img {
    width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.8,.3,1);
}
.lab-gallery__grid > *:first-child img { aspect-ratio: 1 / 1; }
.lab-shot:hover img { transform: scale(1.05); }
.lab-shot figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: 2rem .9rem .8rem;
    font-size: .74rem; color: var(--white);
    background: linear-gradient(180deg, rgba(14,18,20,0), rgba(14,18,20,.8));
}
@media (prefers-reduced-motion: reduce) {
    .lab-shot img { transition: none; }
    .lab-shot:hover img { transform: none; }
}

/* ===================================================================
   FAQ
   =================================================================== */
.lab-faq { max-width: 52rem; }
.lab-faq__item {
    border-top: 1px solid var(--line);
}
.lab-faq__item:last-child { border-bottom: 1px solid var(--line); }
.lab-band--ink .lab-faq__item { border-color: var(--line-ink); }

.lab-faq__q {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1.25rem;
    padding: 1.4rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    font-weight: 500;
    line-height: 1.35;
    transition: color .25s ease;
}
.lab-faq__q::-webkit-details-marker { display: none; }
.lab-faq__q:hover { color: var(--flash-ink); }
.lab-band--ink .lab-faq__q:hover { color: var(--gold-soft); }

.lab-faq__icon {
    flex: none; position: relative;
    width: 1.5rem; height: 1.5rem; margin-top: .15rem;
}
.lab-faq__icon::before, .lab-faq__icon::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    background: var(--flash-ink);
    transform: translate(-50%, -50%);
    transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .3s ease;
}
.lab-faq__icon::before { width: 14px; height: 1px; }
.lab-faq__icon::after  { width: 1px; height: 14px; }
.lab-band--ink .lab-faq__icon::before, .lab-band--ink .lab-faq__icon::after { background: var(--gold-soft); }
.lab-faq__item[open] .lab-faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.lab-faq__a {
    padding: 0 3rem 1.6rem 0;
    color: var(--text-soft);
    line-height: 1.85;
    animation: labFade .35s ease;
}
.lab-band--ink .lab-faq__a { color: var(--on-ink-soft); }
@keyframes labFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lab-faq__a { animation: none; } }

/* ---- grouped FAQ: sticky category rail + panels ---- */
.lab-faqg { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
    .lab-faqg { grid-template-columns: 250px minmax(0,1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
    .lab-faqg__nav { position: sticky; top: 110px; }
}
.lab-faqg__nav { display: flex; flex-direction: column; }
.lab-faqg__nav button {
    display: flex; align-items: center; gap: .7rem;
    width: 100%; padding: .85rem .25rem;
    border: 0; border-bottom: 1px solid var(--line);
    background: none; cursor: pointer; text-align: left;
    font-size: .84rem; letter-spacing: .02em;
    color: var(--text-soft);
    transition: color .25s ease, padding-left .25s ease;
}
.lab-faqg__nav button:first-child { border-top: 1px solid var(--line); }
.lab-band--ink .lab-faqg__nav button { border-color: var(--line-ink); color: var(--on-ink-soft); }
.lab-faqg__nav button i { font-size: 1.05rem; color: var(--flash-ink); flex: none; }
.lab-band--ink .lab-faqg__nav button i { color: var(--gold-soft); }
.lab-faqg__nav button:hover { color: var(--flash-ink); padding-left: .6rem; }
.lab-faqg__nav button.is-active {
    color: var(--text); font-weight: 500;
    box-shadow: inset 2px 0 0 0 var(--flash);
    padding-left: .8rem;
}
.lab-band--ink .lab-faqg__nav button.is-active { color: var(--on-ink); box-shadow: inset 2px 0 0 0 var(--gold); }
.lab-faqg__count {
    margin-left: auto;
    font-size: .68rem; letter-spacing: .1em;
    color: var(--muted); font-variant-numeric: tabular-nums;
}
.lab-faqg__panel[hidden] { display: none; }
.lab-faqg__panel .lab-faq { max-width: none; }

/* ===================================================================
   CTA
   =================================================================== */
.lab-cta { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.lab-cta__media { position: absolute; inset: 0; }
.lab-cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.lab-cta__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,18,20,.94) 0%, rgba(14,18,20,.70) 60%, rgba(14,18,20,.55) 100%);
}
.lab-cta__inner { position: relative; padding-block: clamp(4rem, 8vw, 6.5rem); }
.lab-cta__body { max-width: 44rem; }
.lab-cta h2 { color: var(--white); }
.lab-cta h2 em { color: var(--gold-soft); }
.lab-cta .lab-eyebrow { color: var(--gold-soft); }
.lab-cta__text { margin-top: 1.35rem; }
.lab-cta__text p { color: rgba(232,229,223,.84); line-height: 1.85; }
.lab-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

/* ===================================================================
   RELATED
   =================================================================== */
.lab-related__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 768px) { .lab-related__grid { grid-template-columns: repeat(3, 1fr); } }

/* ===================================================================
   FOOTER
   =================================================================== */
.lab-footer { background: var(--ink); color: var(--on-ink-soft); position: relative; }
.lab-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--iris); }
.lab-footer__top { padding-block: clamp(3.25rem, 6vw, 5rem) 2.5rem; }

/* Flex rather than a fixed grid: the three link columns are editor-controlled
   and a column with no links is not rendered, so the child count varies
   between three and five. Flex rebalances; a fixed template would leave a
   hole or push the contact block onto a row of its own. */
.lab-footer__grid { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.lab-footer__grid > * { flex: 1 1 150px; min-width: 0; }
.lab-footer__brand { flex: 1 1 260px; max-width: 26rem; }
.lab-footer__col-contact { flex: 1 1 225px; }
@media (min-width: 1024px) { .lab-footer__grid { gap: 2.5rem 3rem; } }

.lab-footer__brand p { margin-top: 1.3rem; max-width: 24rem; font-size: .92rem; line-height: 1.8; }
.lab-footer h2 {
    font-family: var(--sans);
    font-size: .7rem; font-weight: 500;
    letter-spacing: .26em; text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 1.2rem;
}
.lab-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.lab-footer__links a { font-size: .9rem; transition: color .25s ease, padding-left .25s ease; }
.lab-footer__links a:hover { color: var(--gold-soft); padding-left: .3rem; }

.lab-footer__contact { display: flex; flex-direction: column; gap: 1.1rem; }
.lab-footer__row { display: flex; gap: .85rem; align-items: flex-start; font-size: .9rem; min-width: 0; }
.lab-footer__row > div { min-width: 0; overflow-wrap: anywhere; }
.lab-footer__row i { font-size: 1.05rem; color: var(--gold); flex: none; margin-top: .15rem; }
.lab-footer__row strong {
    display: block; font-weight: 400;
    font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .22rem;
}
.lab-footer__row a:hover { color: var(--gold-soft); }

.lab-footer__network { padding-block: 2rem; border-top: 1px solid var(--line-ink); }
.lab-footer__network-title { font-size: .8rem; color: var(--on-ink-soft); margin-bottom: 1rem; }
.lab-footer__network-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.lab-footer__network-links a { font-size: .82rem; color: var(--muted); transition: color .25s; }
.lab-footer__network-links a:hover { color: var(--gold-soft); }

.lab-footer__bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; padding-block: 1.6rem;
    border-top: 1px solid var(--line-ink);
    font-size: .8rem; color: var(--muted);
}
.lab-footer__group a { color: var(--on-ink-soft); }
.lab-footer__group a:hover { color: var(--gold-soft); }

/* ===================================================================
   FLOATING WHATSAPP + BACK TO TOP
   =================================================================== */
.lab-fab {
    position: fixed; z-index: 150;
    right: calc(1.1rem + env(safe-area-inset-right, 0));
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0));
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.3rem; height: 3.3rem; border-radius: 50%;
    background: #25d366; color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 10px 30px rgba(37,211,102,.38);
    transition: transform .3s ease, box-shadow .3s ease;
}
.lab-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 38px rgba(37,211,102,.5); }

.lab-top {
    position: fixed; z-index: 149;
    right: calc(1.1rem + env(safe-area-inset-right, 0));
    bottom: calc(5.1rem + env(safe-area-inset-bottom, 0));
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.7rem; height: 2.7rem; border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--pearl); color: var(--ink);
    cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, border-color .25s;
}
.lab-top.is-visible { opacity: 1; pointer-events: auto; }
.lab-top:hover { border-color: var(--flash); color: var(--flash-ink); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
    .lab-fab, .lab-top { transition: none; }
    .lab-fab:hover, .lab-top:hover { transform: none; }
}

/* ===================================================================
   BLOG / ARCHIVE / SEARCH / 404
   =================================================================== */
.lab-posts { display: grid; gap: 2rem; }
@media (min-width: 640px) { .lab-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .lab-posts { grid-template-columns: repeat(3, 1fr); } }

.lab-post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.lab-post:hover { border-color: var(--flash); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(14,18,20,.09); }
.lab-post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--pearl-3); }
.lab-post__media img { width: 100%; height: 100%; object-fit: cover; }
.lab-post__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.lab-post__meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lab-post__title { font-family: var(--serif); font-size: 1.22rem; font-weight: 500; line-height: 1.3; }
.lab-post__excerpt { font-size: .92rem; color: var(--text-soft); line-height: 1.75; }
.lab-post__body .lab-link { margin-top: auto; }

.lab-pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 3rem; }
.lab-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    font-size: .85rem; transition: border-color .25s, color .25s, background-color .25s;
}
.lab-pagination .page-numbers:hover { border-color: var(--flash); color: var(--flash-ink); }
.lab-pagination .page-numbers.current { background: var(--ink); color: var(--pearl); border-color: var(--ink); }

.lab-entry { max-width: 72ch; }
.lab-entry h2, .lab-entry h3 { margin: 2.2rem 0 .9rem; }
.lab-entry h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lab-entry h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.lab-entry p, .lab-entry li { color: var(--text-soft); line-height: 1.85; }
.lab-entry ul, .lab-entry ol { padding-left: 1.3rem; margin: 0 0 1.3rem; }
.lab-entry li { margin-bottom: .5rem; }
.lab-entry img { border-radius: var(--radius); margin: 1.75rem 0; }
.lab-entry a { color: var(--flash-ink); text-decoration: underline; text-underline-offset: 3px; }
.lab-entry blockquote {
    margin: 1.9rem 0; padding: .4rem 0 .4rem 1.5rem;
    border-left: 2px solid transparent; border-image: var(--iris) 1;
    font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--text);
}

.lab-searchform { display: flex; gap: .5rem; max-width: 26rem; }
.lab-searchform input[type="search"] {
    flex: 1; padding: .85rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); color: var(--text);
}
.lab-searchform input[type="search"]:focus-visible { border-color: var(--flash); }

.lab-404 { text-align: center; max-width: 34rem; margin-inline: auto; }
.lab-404 .lab-eyebrow { justify-content: center; }
.lab-404__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2rem; }

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
.lab-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease-out, transform .65s cubic-bezier(.2,.8,.3,1);
    will-change: opacity, transform;
}
.lab-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .lab-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Screen-reader-only utility */
.lab-sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
