:root {
  --apl-ink: #101714;
  --apl-forest: #17352d;
  --apl-forest-2: #23493f;
  --apl-sage: #9db7a9;
  --apl-gold: #d1a84b;
  --apl-sky: #c9dfe7;
  --apl-mint: #d9e8e0;
  --apl-paper: #f4f5f1;
  --apl-white: #fff;
  --apl-muted: #68746f;
  --apl-line: #cfd7d2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { height: auto; }
.wp-site-blocks { min-height: 100vh; }
.wp-site-blocks > main { margin-block-start: 0; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 3px solid var(--apl-gold); outline-offset: 3px; }

.apl-topbar {
  background: var(--apl-ink);
  color: #e6eee9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  padding: 8px 20px;
  text-align: center;
  text-transform: uppercase;
}
.apl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,245,241,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,23,20,.1);
}
.apl-header .wp-block-site-title { margin: 0; white-space: nowrap; }
.apl-header .wp-block-site-title a { color: var(--apl-ink); }
.apl-header .wp-block-navigation-item__content { padding: .35rem .2rem; }
.apl-header .wp-block-navigation-item__content:hover { color: var(--apl-forest-2); opacity: .72; }
.apl-header-cta > a {
  background: var(--apl-forest);
  border-radius: 4px;
  color: #fff !important;
  padding: .62rem .9rem !important;
}

.apl-section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.apl-section-sm { padding-top: 52px; padding-bottom: 52px; }
.apl-section-head { max-width: 760px; margin-bottom: 42px; }
.apl-section-head h2 { font-size: 3rem; margin: 10px 0 16px; }
.apl-eyebrow {
  font-size: .76rem !important;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: .7rem;
  text-transform: uppercase;
}
.apl-lede { font-size: 1.17rem; color: var(--apl-muted); max-width: 760px; }
.apl-caption { color: var(--apl-muted); font-size: .8rem; margin-top: 10px; }

.apl-hero {
  align-items: center;
  display: flex;
  min-height: min(650px, calc(100svh - 155px));
  overflow: hidden;
  padding: 72px 20px;
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,16,13,.94) 0%, rgba(10,23,18,.88) 42%, rgba(10,23,18,.26) 72%, rgba(10,23,18,.15) 100%),
    url('../images/photography/hero-vial-filling.jpg') center 54% / cover no-repeat;
}
.apl-hero:after {
  background: linear-gradient(180deg, transparent 78%, rgba(8,16,13,.58));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.apl-hero > .wp-block-group__inner-container,
.apl-hero > .wp-block-group { position: relative; z-index: 1; width: 100%; }
.apl-hero-copy { margin-left: 0 !important; max-width: 820px; }
.apl-hero h1 {
  color: #fff !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.75rem !important;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 24px;
  max-width: 780px;
}
.apl-hero .apl-lede { color: #dce7e1; font-size: 1.2rem; max-width: 680px; }
.apl-hero .wp-block-button__link { background: var(--apl-gold); color: var(--apl-ink); }
.apl-hero .is-style-outline .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.72); color: #fff; }
.apl-hero .wp-block-buttons { margin-top: 30px; }

.apl-proof-band { background: #fff; border-bottom: 1px solid var(--apl-line); }
.apl-proof-band .wp-block-columns { margin-bottom: 0; }
.apl-proof-item { border-left: 1px solid var(--apl-line); padding: 20px 26px; min-height: 108px; }
.apl-proof-item:first-child { border-left: 0; }
.apl-proof-item strong { display: block; font-size: 1.35rem; line-height: 1.1; margin-bottom: 7px; }
.apl-proof-item span { color: var(--apl-muted); font-size: .86rem; }

.apl-card {
  background: #fff;
  border: 1px solid rgba(16,23,20,.11);
  border-radius: 6px;
  height: 100%;
  padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.apl-card:hover { border-color: var(--apl-sage); box-shadow: 0 14px 36px rgba(16,23,20,.08); transform: translateY(-3px); }
.apl-product-card { overflow: hidden; padding: 0; }
.apl-product-card .wp-block-image { margin: 0; background: #e9eeeb; }
.apl-product-card img { aspect-ratio: 4 / 3; display: block; object-fit: cover; width: 100%; }
.apl-product-card .apl-card-body { padding: 24px; }
.apl-product-card h3 { font-size: 1.45rem; margin: 8px 0 10px; }
.apl-product-card p { color: var(--apl-muted); font-size: .94rem; }
.apl-product-card .apl-product-link { color: var(--apl-forest); font-size: .86rem; font-weight: 800; }
.apl-chip {
  border: 1px solid var(--apl-line);
  border-radius: 999px;
  display: inline-block;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .04em;
  padding: .3rem .62rem;
  text-transform: uppercase;
}
.apl-chip--gold { background: #f7efdb; border-color: #e6cf96; color: #684e13; }
.apl-chip--blue { background: #eaf4f7; border-color: var(--apl-sky); color: #234452; }

.apl-dark { background: var(--apl-ink); color: #e9efec; }
.apl-dark h1,
.apl-dark h2,
.apl-dark h3,
.apl-dark h4 { color: #fff; }
.apl-dark p { color: #c8d2cd; }
.apl-dark .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.58); color: #fff; }
.apl-soft { background: #e8edeb; }
.apl-gold-band { background: var(--apl-gold); color: var(--apl-ink); }
.apl-gold-band h2, .apl-gold-band p { color: var(--apl-ink); }

.apl-photo img,
.apl-split-img img {
  border-radius: 6px;
  display: block;
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}
.apl-photo--wide img { aspect-ratio: 16 / 9; min-height: 0; }
.apl-photo--portrait img { aspect-ratio: 4 / 5; }
.apl-photo-credit { color: var(--apl-muted); font-size: .72rem; }

.apl-metric { border-left: 1px solid var(--apl-line); padding-left: 22px; }
.apl-metric strong { display: block; font-family: Georgia, serif; font-size: 3.2rem; font-weight: 400; line-height: 1; }
.apl-number { color: var(--apl-gold); font-family: Georgia, serif; font-size: 2.7rem; line-height: 1; }
.apl-step { border-top: 2px solid var(--apl-ink); padding-top: 24px; }
.apl-step h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.apl-step p { color: var(--apl-muted); font-size: .92rem; }
.apl-dark .apl-step { border-top-color: rgba(255,255,255,.34); }
.apl-dark .apl-step p { color: #becbc5; }

.apl-image-band {
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(11,19,16,.88), rgba(11,19,16,.2)),
    url('../images/photography/research-glassware.jpg') center / cover no-repeat;
  color: #fff;
  display: flex;
  min-height: 470px;
  padding: 70px 20px;
}
.apl-image-band h2 { color: #fff; font-family: Georgia, serif; font-size: 3.5rem; max-width: 760px; }
.apl-image-band p { color: #dbe5df; max-width: 640px; }

.apl-page-hero {
  background: linear-gradient(135deg, var(--apl-forest), var(--apl-ink));
  color: #fff;
  min-height: 390px;
  padding: 88px 20px 76px;
  position: relative;
}
.apl-page-hero > * { position: relative; z-index: 1; }
.apl-page-hero h1,
.apl-page-hero h2 { color: #fff; font-family: Georgia, serif; font-size: 4rem !important; font-weight: 400; letter-spacing: 0; margin: 10px 0 18px; }
.apl-page-hero p { color: #d9e8e0; max-width: 760px; }
.apl-page-hero--catalog { background: linear-gradient(90deg, rgba(11,23,18,.96), rgba(11,23,18,.52)), url('../images/photography/research-glassware.jpg') center / cover no-repeat; }
.apl-page-hero--quality { background: linear-gradient(90deg, rgba(11,23,18,.95), rgba(11,23,18,.45)), url('../images/photography/quality-pipette.jpg') center 42% / cover no-repeat; }
.apl-page-hero--about { background: linear-gradient(90deg, rgba(11,23,18,.95), rgba(11,23,18,.38)), url('../images/photography/about-researcher.jpg') center 43% / cover no-repeat; }
.apl-page-hero--research { background: linear-gradient(90deg, rgba(11,23,18,.95), rgba(11,23,18,.42)), url('../images/photography/laboratory-microscope.jpg') center / cover no-repeat; }

.apl-product-detail .wp-block-image img { background: #e9eeeb; border-radius: 6px; width: 100%; }
.apl-product-detail h2 { font-size: 2.6rem; }
.apl-product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 26px; }
.apl-product-spec {
  border-top: 1px solid var(--apl-line);
  display: grid;
  gap: 16px;
  grid-template-columns: 132px 1fr;
  margin: 0;
  padding: 13px 0;
}
.apl-product-spec:last-child { border-bottom: 1px solid var(--apl-line); }
.apl-product-spec strong { color: var(--apl-ink); }

.apl-doc-table { border-top: 1px solid var(--apl-line); }
.apl-doc-row { border-bottom: 1px solid var(--apl-line); display: grid; gap: 24px; grid-template-columns: minmax(140px, .55fr) 1.45fr; padding: 20px 0; }
.apl-doc-row strong { color: var(--apl-ink); }
.apl-doc-row span { color: var(--apl-muted); }
.apl-callout { border-left: 4px solid var(--apl-gold); padding: 6px 0 6px 22px; }
.apl-callout h3 { margin-top: 0; }
.apl-callout p:last-child { margin-bottom: 0; }

.apl-faq .wp-block-details { border-bottom: 1px solid var(--apl-line); margin: 0; padding: 20px 0; }
.apl-faq .wp-block-details:first-child { border-top: 1px solid var(--apl-line); }
.wp-block-details summary { cursor: pointer; font-size: 1.06rem; font-weight: 750; list-style-position: outside; }
.wp-block-details summary::marker { color: var(--apl-forest); }
.wp-block-details[open] summary { color: var(--apl-forest); }

.apl-contact-form { display: grid; gap: 16px; }
.apl-contact-form label { display: block; font-size: .82rem; font-weight: 750; margin-bottom: 6px; }
.apl-contact-form input,
.apl-contact-form textarea { background: #fff; border: 1px solid #bfcac4; border-radius: 4px; color: var(--apl-ink); font: inherit; padding: 13px 14px; width: 100%; }
.apl-contact-form textarea { min-height: 150px; resize: vertical; }
.apl-contact-form button { background: var(--apl-forest); border: 0; border-radius: 4px; color: #fff; cursor: pointer; font-weight: 750; padding: 14px 20px; }
.apl-contact-form .apl-form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.apl-success { background: var(--apl-mint); border-left: 4px solid var(--apl-forest); margin-bottom: 16px; padding: 12px 16px; }

.apl-post-card { border-bottom: 1px solid var(--apl-line); padding: 30px 0; }
.apl-post-card:first-child { border-top: 1px solid var(--apl-line); }
.apl-post-card h2, .apl-post-card h3 { margin: .5rem 0; }
.apl-post-card .wp-block-post-date { color: var(--apl-muted); font-size: .8rem; }

.apl-footer { border-top: 1px solid rgba(255,255,255,.14); }
.apl-footer a { color: #dde8e2; }
.apl-footer a:hover { opacity: .72; }
.apl-footer h4 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.apl-footer .apl-footer-meta { border-top: 1px solid rgba(255,255,255,.16); margin-top: 42px; padding-top: 22px; }

.apl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.apl-reveal.is-visible { opacity: 1; transform: none; }

.apl-gate[hidden] { display: none; }
.apl-gate {
  align-items: center;
  background: rgba(7,12,10,.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1000;
}
.apl-gate__panel { background: var(--apl-paper); border-top: 5px solid var(--apl-gold); max-width: 620px; padding: 34px; width: 100%; }
.apl-gate__panel h2 { font-family: Georgia, serif; font-size: 2.2rem; margin: 8px 0 16px; }
.apl-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.apl-gate__accept, .apl-gate__leave { border: 0; border-radius: 4px; cursor: pointer; font: inherit; font-weight: 750; padding: 13px 17px; }
.apl-gate__accept { background: var(--apl-forest); color: #fff; }
.apl-gate__leave { background: transparent; color: var(--apl-ink); text-decoration: underline; }
body.apl-gate-open { overflow: hidden; }

@media (max-width: 980px) {
  .apl-header-cta { display: none !important; }
  .apl-hero h1 { font-size: 3.7rem !important; }
  .apl-page-hero h1, .apl-page-hero h2 { font-size: 3.35rem !important; }
  .apl-section-head h2 { font-size: 2.5rem; }
  .apl-image-band h2 { font-size: 3rem; }
  .apl-photo img, .apl-split-img img { min-height: 390px; }
}

@media (max-width: 781px) {
  .apl-header .wp-block-navigation { --navigation-layout-justification-setting: flex-end; }
  .apl-proof-item { border-left: 0; border-top: 1px solid var(--apl-line); min-height: 0; padding: 18px 0; }
  .apl-proof-item:first-child { border-top: 0; }
  .apl-metric { border-left: 0; border-top: 1px solid var(--apl-line); padding: 18px 0 0; }
  .apl-doc-row { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 640px) {
  .apl-topbar { font-size: 10px; padding: 7px 12px; }
  .apl-section { padding-top: 56px; padding-bottom: 56px; }
  .apl-section-sm { padding-top: 38px; padding-bottom: 38px; }
  .apl-hero { min-height: min(590px, calc(100svh - 142px)); padding: 58px 20px; background-position: 59% center; }
  .apl-hero h1 { font-size: 2.75rem !important; line-height: 1.04; }
  .apl-hero .apl-lede { font-size: 1.05rem; }
  .apl-page-hero { min-height: 330px; padding-top: 68px; padding-bottom: 58px; }
  .apl-page-hero h1, .apl-page-hero h2 { font-size: 2.7rem !important; }
  .apl-section-head h2 { font-size: 2.25rem; }
  .apl-image-band { min-height: 430px; padding: 54px 20px; }
  .apl-image-band h2 { font-size: 2.45rem; }
  .apl-card { padding: 22px; }
  .apl-product-card .apl-card-body { padding: 19px; }
  .apl-product-spec { grid-template-columns: 1fr; gap: 3px; }
  .apl-contact-form .apl-form-grid { grid-template-columns: 1fr; }
  .wp-block-buttons { gap: 10px; }
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .wp-block-button__link { text-align: center; width: 100%; }
  .apl-gate__panel { padding: 26px 22px; }
  .apl-gate__panel h2 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apl-reveal { opacity: 1; transform: none; transition: none; }
}
