/* ==========================================================================
   Brandywine Forge — site stylesheet
   Rebuilt from the original bvforge.css: Georgia / Times serif type,
   black on white, bordered navigation grid with inverted hover,
   light grey rules, classic blue links with red hover.
   ========================================================================== */

:root {
  --ink: #000;
  --paper: #fff;
  --text: #111;
  --muted: #555;
  --rule: #ccc;
  --border: #666;
  --soft: #f7f6f2;
  --soft-2: #efede6;
  --link: #0000ff;
  --link-hover: #ff0000;
  --accent: #b3261e;
  --serif: Georgia, "Times New Roman", Times, serif;
  --times: "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
  --wrap: 980px;
  --radius: 0;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--times);
  background-color: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--link); transition: color .2s; }
a:hover, a:focus-visible { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 30px); color: var(--ink); font-weight: normal; letter-spacing: 3px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-family: var(--serif); font-size: clamp(19px, 2.6vw, 23px); color: var(--ink); font-weight: normal; line-height: 1.3; margin: 0 0 12px; }
h3 { font-family: var(--serif); font-size: 17px; color: var(--ink); font-weight: bold; margin: 0 0 8px; line-height: 1.35; }
h4 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 8px; }
p { font-family: var(--serif); font-size: 15.5px; color: var(--ink); margin: 12px 0; }
ul, ol { font-family: var(--times); font-size: 16px; color: #000; }
ul { list-style: square; }
li { margin: 4px 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }
strong { font-weight: bold; }
small { font-size: 12px; }
blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ink); font-family: var(--serif); font-style: italic; }
table { border-collapse: collapse; width: 100%; }
code { font-family: Consolas, monospace; font-size: 14px; background: var(--soft); padding: 1px 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 14px; z-index: 1000; font-family: var(--sans); font-size: 13px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Top utility line (archive: tiny Arial caps links) ---------- */
.topline { font-family: var(--sans); font-size: 10.5px; letter-spacing: .5px; text-align: center; padding: 8px 16px 4px; }
.topline a { color: #000; text-decoration: none; margin: 0 14px; display: inline-block; padding: 2px 0; }
.topline a:hover { color: var(--link-hover); }
.topline .tel { font-weight: bold; }

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding: 4px 16px 0; }
.masthead a.logo { display: inline-block; }
.masthead img.header-art { width: 720px; max-width: 100%; margin: 0 auto; }
.masthead .questions { margin: 6px auto 10px; width: 658px; max-width: 100%; }

/* ---------- Main navigation grid (archive .mainlinks table) ---------- */
.mainnav { max-width: 720px; margin: 0 auto 6px; padding: 0 0; }
.mainlinks { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); font-family: var(--sans); font-size: 12px; }
.mainlinks a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 38px; padding: 4px 6px; color: #000; text-decoration: none; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); line-height: 1.2; transition: background-color .18s, color .18s; position: relative; }
.mainlinks a:hover, .mainlinks a:focus-visible, .mainlinks a[aria-current="page"] { color: #fff; background-color: #000; }
.mainlinks a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px; background: #fff; }

.menu-toggle { display: none; }

/* ---------- Sticky compact bar ---------- */
.stickybar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); transform: translateY(-105%); transition: transform .35s var(--ease); backdrop-filter: saturate(1.2) blur(4px); }
.stickybar.show { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.stickybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; }
.stickybar .brand { font-family: var(--serif); font-style: italic; font-size: 22px; color: #000; text-decoration: none; white-space: nowrap; }
.stickybar nav { display: flex; gap: 2px; font-family: var(--sans); font-size: 12px; }
.stickybar nav a { color: #000; text-decoration: none; padding: 7px 10px; border: 1px solid transparent; }
.stickybar nav a:hover { background: #000; color: #fff; }
.stickybar .actions { display: flex; align-items: center; gap: 8px; }

.quote-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; border: 1px solid #000; background: #fff; color: #000; padding: 7px 10px; cursor: pointer; text-decoration: none; }
.quote-pill:hover { background: #000; color: #fff; }
.quote-pill .count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; letter-spacing: 0; }
.quote-pill .count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.burger { display: none; width: 42px; height: 38px; border: 1px solid #000; background: #fff; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; right: 10px; height: 2px; background: #000; content: ""; transition: transform .3s var(--ease), opacity .2s; }
.burger span { top: 18px; }
.burger span::before { top: -7px; left: 0; right: 0; }
.burger span::after { top: 7px; left: 0; right: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: #fff; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; padding: 70px 20px 40px; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer .drawer-close { position: absolute; top: 14px; right: 16px; }
.drawer h4 { margin: 22px 0 6px; color: var(--muted); }
.drawer a { display: block; font-family: var(--serif); font-size: 19px; color: #000; text-decoration: none; padding: 9px 0; border-bottom: 1px solid #eee; }
.drawer a:hover { color: var(--link-hover); }
body.no-scroll { overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin: 18px 0 6px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--sans); font-size: 11.5px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #999; }
.crumbs a { color: #000; text-decoration: none; }
.crumbs a:hover { color: var(--link-hover); }

/* ---------- Page header ---------- */
.page-head { padding: 10px 0 6px; text-align: center; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lede { max-width: 700px; margin: 0 auto; font-size: 17px; color: #222; }
.kicker { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); display: block; margin-bottom: 8px; }

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section-tight { padding: 20px 0; }
.section-soft { background: var(--soft); border-top: 1px solid #e6e3da; border-bottom: 1px solid #e6e3da; }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title h2 { font-size: clamp(21px, 3vw, 26px); letter-spacing: 1px; }
.section-title p { max-width: 640px; margin: 6px auto 0; color: #333; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px auto 0; color: #000; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: #000; }
.ornament svg { width: 16px; height: 16px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.split-60 { grid-template-columns: 1.4fr 1fr; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #000; background: #fff; border: 1px solid #000; padding: 12px 20px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; line-height: 1.2; position: relative; overflow: hidden; }
.btn:hover, .btn:focus-visible { background: #000; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover, .btn-dark:focus-visible { background: #fff; color: #000; }
.btn-sm { padding: 8px 12px; font-size: 11px; letter-spacing: 1px; }
.btn-block { width: 100%; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn.added { background: #000; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-row.center { justify-content: center; }
.textlink { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #000; text-decoration: none; border-bottom: 1px solid #000; padding-bottom: 2px; }
.textlink:hover { color: var(--link-hover); border-color: var(--link-hover); }

/* ---------- Home hero ---------- */
.hero { padding: 18px 0 10px; }
.hero .split { align-items: center; }
.hero h2.slogan { text-align: center; font-size: clamp(21px, 3vw, 26px); line-height: 1.35; margin-bottom: 12px; }
.hero h2.slogan strong { display: block; }
.client-list { columns: 2; column-gap: 20px; padding-left: 18px; margin: 10px 0 0; }
.client-list li { break-inside: avoid; }

/* Slideshow */
.slideshow { border: 1px solid var(--border); background: #fff; }
.slideshow .swiper { width: 100%; aspect-ratio: 365 / 279; }
.slideshow .swiper-slide { overflow: hidden; background: #fff; }
.slideshow .swiper-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.slideshow .swiper-slide-active img { transform: scale(1); }
.slideshow .caption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.62); color: #fff; font-family: var(--serif); font-size: 13.5px; padding: 8px 12px; transform: translateY(100%); transition: transform .5s var(--ease) .2s; }
.slideshow .swiper-slide-active .caption { transform: none; }
.slideshow.captions-off .caption { display: none; }
.ss-tools { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); font-family: var(--sans); font-size: 11px; }
.ss-tools .ctrls { display: flex; }
.ss-tools button { background: #fff; border: 0; border-right: 1px solid var(--border); width: 36px; height: 30px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #000; }
.ss-tools button:hover { background: #000; color: #fff; }
.ss-tools button svg { width: 12px; height: 12px; }
.ss-tools .counter { padding: 0 10px; letter-spacing: 1px; }
.ss-tools .info-toggle { border-left: 1px solid var(--border); border-right: 0; width: auto; padding: 0 10px; font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.ss-progress { height: 2px; background: #eee; }
.ss-progress span { display: block; height: 100%; width: 0; background: #000; }
.ss-thumbs { display: grid; grid-template-columns: repeat(17, 1fr); gap: 2px; padding: 2px; border-top: 1px solid var(--border); }
.ss-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; opacity: .45; transition: opacity .2s; aspect-ratio: 1; overflow: hidden; }
.ss-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.ss-thumbs button.active, .ss-thumbs button:hover { opacity: 1; outline: 1px solid #000; }

.motto { margin: 20px auto; text-align: center; }
.motto img { margin: 0 auto; }

/* ---------- Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 12px; text-align: center; background: #fff; }
.stat .num { font-family: var(--serif); font-size: clamp(30px, 4.5vw, 42px); line-height: 1; color: #000; display: block; }
.stat .num sup { font-size: .45em; }
.stat .lbl { display: block; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-top: 8px; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-img { overflow: hidden; border-bottom: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--soft); }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card .card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card .card-body p { font-size: 14.5px; margin: 6px 0 12px; }
.card .card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.card .tag { font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.card .price { font-family: var(--serif); font-size: 15px; }
.card .price b { font-size: 18px; }
.card h3 a { color: #000; text-decoration: none; }
.card h3 a:hover { color: var(--link-hover); }
.card .badge { position: absolute; top: 10px; left: 10px; background: #000; color: #fff; font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; padding: 4px 8px; z-index: 2; }

/* Feature list with icons */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.feature { padding: 22px 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; transition: background-color .25s; }
.feature:hover { background: var(--soft); }
.feature .ico { width: 42px; height: 42px; border: 1px solid #000; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; transition: background-color .25s, color .25s, transform .4s var(--ease); }
.feature:hover .ico { background: #000; color: #fff; transform: rotate(-8deg); }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { font-size: 14.5px; margin: 6px 0 0; }

/* ---------- Image + text media ---------- */
.media { display: grid; grid-template-columns: 389px 1fr; gap: 22px; align-items: start; }
.media.rev { grid-template-columns: 1fr 389px; }
.media figure, figure.fig { margin: 0; }
figure.fig img, .media figure img { border: 1px solid var(--border); }
figcaption { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: #333; margin-top: 6px; text-align: center; }
.zoom-link { display: block; position: relative; overflow: hidden; }
.zoom-link::after { content: "+"; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; background: #000; color: #fff; font-family: var(--sans); font-size: 20px; line-height: 30px; text-align: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease); }
.zoom-link:hover::after { opacity: 1; transform: none; }
.zoom-link img { transition: transform .6s var(--ease); }
.zoom-link:hover img { transform: scale(1.03); }

/* ---------- Dark CTA band with forge sparks ---------- */
.cta-band { position: relative; background: #000; color: #fff; overflow: hidden; padding: 46px 0; text-align: center; }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3.2vw, 30px); letter-spacing: 1px; }
.cta-band p { color: #ddd; max-width: 620px; margin: 10px auto; }
.cta-band .btn { border-color: #fff; }
.cta-band .btn-dark { background: #fff; color: #000; }
.cta-band .btn-dark:hover { background: transparent; color: #fff; }
.cta-band .btn:not(.btn-dark) { background: transparent; color: #fff; }
.cta-band .btn:not(.btn-dark):hover { background: #fff; color: #000; }
.cta-band a.tel-big { color: #fff; font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); text-decoration: none; display: inline-block; margin: 6px 0; letter-spacing: 2px; }
.cta-band a.tel-big:hover { color: #ffb4a8; }

/* ---------- Awards ---------- */
.award { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.award:last-child { border-bottom: 0; }
.award img { border: 1px solid var(--border); }

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 4px; font-family: var(--serif); font-size: 17px; position: relative; transition: color .2s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(#000,#000) center/14px 2px no-repeat, linear-gradient(#000,#000) center/2px 14px no-repeat; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(135deg); }
.accordion summary:hover { color: var(--link-hover); }
.accordion .acc-body { padding: 0 4px 16px; overflow: hidden; }
.accordion .acc-body p:first-child { margin-top: 0; }

/* ---------- Tabs ---------- */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.tabs [role="tab"] { flex: 1 1 auto; font-family: var(--sans); font-size: 12px; background: #fff; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 11px 12px; cursor: pointer; color: #000; transition: background-color .2s, color .2s; }
.tabs [role="tab"]:hover { background: var(--soft); }
.tabs [role="tab"][aria-selected="true"] { background: #000; color: #fff; }
.tabs [role="tabpanel"] { border: 1px solid var(--border); border-top: 0; padding: 20px; animation: fadeIn .4s var(--ease); }
.tabs [role="tabpanel"][hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); margin: 14px 0; -webkit-overflow-scrolling: touch; }
.table { font-family: var(--serif); font-size: 14.5px; min-width: 460px; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.table thead th { background: #000; color: #fff; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: normal; }
.table tbody tr:nth-child(even) { background: #faf9f6; }
.table tbody tr:hover { background: var(--soft-2); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }

/* ---------- Filters & search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--sans); font-size: 11.5px; letter-spacing: .5px; border: 1px solid var(--border); background: #fff; color: #000; padding: 7px 12px; cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }
.search { position: relative; flex: 0 1 280px; }
.search input { width: 100%; font-family: var(--serif); font-size: 15px; padding: 9px 12px 9px 34px; border: 1px solid var(--border); background: #fff; }
.search svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: #555; }
.is-hidden { display: none !important; }
.empty-note { text-align: center; color: var(--muted); padding: 20px; font-style: italic; display: none; }
.empty-note.show { display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery a { position: relative; display: block; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--soft); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.gallery a:hover img { transform: scale(1.08); filter: grayscale(.15) contrast(1.05); }
.gallery a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-family: var(--serif); font-size: 13px; transform: translateY(100%); transition: transform .35s var(--ease); }
.gallery a:hover span, .gallery a:focus-visible span { transform: none; }
.gallery a.fade-out { animation: gfade .3s forwards; }
@keyframes gfade { to { opacity: 0; transform: scale(.96); } }

/* ---------- Glossary ---------- */
.az { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 18px; }
.az button { width: 32px; height: 32px; font-family: var(--serif); font-size: 15px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.az button:hover:not(:disabled) { background: var(--soft); }
.az button[aria-pressed="true"] { background: #000; color: #fff; }
.az button:disabled { opacity: .25; cursor: default; }
.glossary dl { margin: 0; }
.glossary .term { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.glossary dt { font-family: var(--serif); font-size: 18px; font-weight: bold; }
.glossary dt .cat { font-family: var(--sans); font-weight: normal; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border: 1px solid #bbb; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }
.glossary dd { margin: 6px 0 0; font-family: var(--serif); font-size: 15.5px; }
mark { background: #ffe58a; padding: 0 1px; }

/* ---------- Tools: calculator & wizard ---------- */
.tool { border: 1px solid #000; background: #fff; }
.tool-head { background: #000; color: #fff; padding: 12px 18px; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; display: flex; justify-content: space-between; align-items: center; }
.tool-body { padding: 20px 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.calc-out { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-out .out { border: 1px solid var(--border); padding: 12px; text-align: center; }
.calc-out .out b { display: block; font-family: var(--serif); font-size: 26px; font-weight: normal; }
.calc-out .out span { font-family: var(--sans); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.calc-note { font-size: 14.5px; background: var(--soft); border-left: 3px solid #000; padding: 10px 12px; margin: 14px 0 0; }

.wizard .steps-ind { display: flex; gap: 4px; margin-bottom: 16px; }
.wizard .steps-ind span { flex: 1; height: 4px; background: #e2e2e2; transition: background-color .3s; }
.wizard .steps-ind span.on { background: #000; }
.wizard .wstep { display: none; animation: fadeIn .4s var(--ease); }
.wizard .wstep.active { display: block; }
.wizard .opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.wizard .opt { text-align: left; border: 1px solid var(--border); background: #fff; padding: 14px; cursor: pointer; font-family: var(--serif); font-size: 15px; transition: background-color .2s, color .2s, transform .2s; }
.wizard .opt small { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.wizard .opt:hover { background: #000; color: #fff; transform: translateY(-2px); }
.wizard .opt:hover small { color: #ccc; }
.wizard .result h3 { font-size: 20px; }
.wizard .result ul { margin-top: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .label { display: block; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; color: #000; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; font-family: var(--serif); font-size: 16px; color: #000; background: #fff; border: 1px solid var(--border); padding: 11px 12px; border-radius: 0; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.field .hint { font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin-top: 5px; display: flex; justify-content: space-between; }
.field .error { font-family: var(--sans); font-size: 12px; color: var(--accent); margin-top: 5px; min-height: 0; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.field.invalid .error { display: block; animation: shake .35s; }
.field.valid input, .field.valid select, .field.valid textarea { border-color: #2e7d32; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--serif); font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #000; flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { font-family: var(--sans); font-size: 13px; padding: 10px 12px; border: 1px solid var(--accent); color: var(--accent); display: none; }
.form-status.show { display: block; }
.btn.loading { pointer-events: none; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-cards { display: grid; gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.contact-cards > div { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px; }
.contact-cards h3 { margin-bottom: 4px; }
.contact-cards p { margin: 0; font-size: 15px; }

/* ---------- Articles ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 120; transition: width .1s linear; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: start; }
.article-meta { font-family: var(--sans); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 8px 0 18px; }
.article-hero { margin: 0 0 22px; }
.article-hero img { width: 100%; border: 1px solid var(--border); max-height: 460px; object-fit: cover; }
.prose p { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; padding-top: 6px; scroll-margin-top: 70px; }
.prose h3 { font-size: 18px; margin: 22px 0 6px; scroll-margin-top: 70px; }
.prose ul, .prose ol { font-family: var(--serif); font-size: 16.5px; line-height: 1.65; }
.prose li { margin: 6px 0; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-size: 64px; line-height: .85; padding: 6px 10px 0 0; }
.prose .callout { border: 1px solid #000; padding: 14px 18px; margin: 22px 0; background: var(--soft); }
.prose .callout p { margin: 6px 0; font-size: 16px; }
.prose .callout strong:first-child { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; display: block; }
.prose figure { margin: 24px 0; }
.prose figure img { border: 1px solid var(--border); margin: 0 auto; }
.toc { position: sticky; top: 72px; border: 1px solid var(--border); padding: 14px 16px; font-family: var(--serif); font-size: 14px; }
.toc h4 { margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; font-family: var(--serif); font-size: 14px; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc ol[data-toc] a { display: block; color: #333; text-decoration: none; padding: 5px 0 5px 10px; border-left: 2px solid #e5e5e5; transition: color .2s, border-color .2s; }
.toc ol[data-toc] a:hover { color: #000; }
.toc ol[data-toc] a.active { color: #000; border-left-color: #000; font-weight: bold; }
.toc .share { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; display: grid; gap: 6px; }
.author-box { display: grid; grid-template-columns: 90px 1fr; gap: 16px; border: 1px solid var(--border); padding: 16px; margin: 30px 0; align-items: center; }
.author-box img { width: 90px; height: 90px; object-fit: cover; border: 1px solid var(--border); }
.author-box p { margin: 4px 0; font-size: 14.5px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.post-nav a { border: 1px solid var(--border); padding: 14px; text-decoration: none; color: #000; font-family: var(--serif); transition: background-color .2s, color .2s; }
.post-nav a:hover { background: #000; color: #fff; }
.post-nav a span { display: block; font-family: var(--sans); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: inherit; opacity: .7; margin-bottom: 4px; }
.post-nav a.next { text-align: right; }

/* Blog list */
.post-card .card-img { aspect-ratio: 16/10; }
.post-card .meta { font-family: var(--sans); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--border); margin-bottom: 26px; }
.post-feature .card-img { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); min-height: 300px; }

/* ---------- Product page ---------- */
.product-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.p-gallery .main { border: 1px solid var(--border); overflow: hidden; aspect-ratio: 4/3; background: var(--soft); }
.p-gallery .main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.p-gallery .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.p-gallery .thumbs button { border: 1px solid #ccc; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .6; transition: opacity .2s, border-color .2s; }
.p-gallery .thumbs button.active, .p-gallery .thumbs button:hover { opacity: 1; border-color: #000; }
.p-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info .price-line { font-family: var(--serif); font-size: 18px; margin: 6px 0 12px; }
.p-info .price-line b { font-size: 26px; font-weight: normal; }
.spec-list { list-style: none; padding: 0; margin: 14px 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 15px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding: 8px 0; margin: 0; }
.spec-list li span:first-child { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding-top: 3px; }
.spec-list li span:last-child { text-align: right; }
.qty { display: inline-flex; border: 1px solid #000; }
.qty button { width: 38px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.qty button:hover { background: #000; color: #fff; }
.qty input { width: 52px; text-align: center; border: 0; border-left: 1px solid #000; border-right: 1px solid #000; font-family: var(--serif); font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.option-select { margin: 12px 0; }

/* Quick view modal */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-box { position: relative; background: #fff; border: 1px solid #000; max-width: 820px; width: 100%; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(.98); transition: transform .35s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 1px solid #000; background: #fff; cursor: pointer; font-size: 20px; line-height: 1; z-index: 2; }
.modal-close:hover { background: #000; color: #fff; }
.modal-content { display: grid; grid-template-columns: 1fr 1fr; }
.modal-content .mimg { border-right: 1px solid var(--border); background: var(--soft); }
.modal-content .mimg img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.modal-content .mbody { padding: 24px 22px; }

/* Quote drawer */
.qdrawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; border-left: 1px solid #000; z-index: 310; transform: translateX(105%); transition: transform .4s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.qdrawer.open { transform: none; visibility: visible; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.qdrawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #000; }
.qdrawer header h3 { margin: 0; font-size: 19px; font-weight: normal; }
.qdrawer .qlist { flex: 1; overflow-y: auto; padding: 8px 18px; }
.qdrawer .qitem { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); animation: fadeIn .3s; }
.qdrawer .qitem img { width: 56px; height: 56px; object-fit: cover; border: 1px solid #ccc; }
.qdrawer .qitem b { font-family: var(--serif); font-weight: normal; font-size: 15px; display: block; }
.qdrawer .qitem small { font-family: var(--sans); color: var(--muted); }
.qdrawer .qitem button { border: 0; background: none; cursor: pointer; font-size: 20px; color: #777; }
.qdrawer .qitem button:hover { color: var(--accent); }
.qdrawer footer { padding: 16px 18px; border-top: 1px solid #000; display: grid; gap: 8px; }
.qdrawer .qempty { text-align: center; padding: 40px 10px; color: var(--muted); font-style: italic; font-family: var(--serif); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 305; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.show { opacity: 1; visibility: visible; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #000; color: #fff; font-family: var(--sans); font-size: 13px; padding: 12px 18px; z-index: 400; transition: transform .4s var(--ease); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* Timeline */
.timeline { position: relative; margin: 10px 0; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 1px; background: #000; }
.timeline .ti { position: relative; padding: 0 0 22px; }
.timeline .ti::before { content: ""; position: absolute; left: -26px; top: 6px; width: 13px; height: 13px; border: 1px solid #000; background: #fff; transform: rotate(45deg); transition: background-color .3s; }
.timeline .ti:hover::before { background: #000; }
.timeline .ti h3 { margin-bottom: 2px; }
.timeline .ti .when { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.timeline .ti p { margin: 4px 0 0; font-size: 15px; }

/* Steps list */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); margin: 0; font-family: var(--serif); }
.steps li::before { content: counter(step); width: 40px; height: 40px; border: 1px solid #000; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 19px; transition: background-color .3s, color .3s; }
.steps li:hover::before { background: #000; color: #fff; }
.steps li h3 { margin-bottom: 2px; }
.steps li p { margin: 2px 0 0; font-size: 15px; }

/* Poem */
.poem { columns: 2; column-gap: 40px; font-family: var(--serif); font-size: 15px; line-height: 1.55; }
.poem p { break-inside: avoid; margin: 0 0 14px; font-size: 15px; }

/* Policy pages */
.policy h2 { font-size: 21px; margin: 30px 0 8px; scroll-margin-top: 70px; }
.policy h3 { font-size: 16px; margin: 18px 0 4px; }
.policy p, .policy li { font-size: 15.5px; }
.policy .updated { font-family: var(--sans); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); text-align: center; }
.policy .toc-inline { border: 1px solid var(--border); padding: 14px 18px; columns: 2; column-gap: 30px; font-family: var(--serif); }
.policy .toc-inline ol { margin: 0; padding-left: 20px; font-size: 15px; }
.policy .toc-inline a { color: #000; text-decoration: none; }
.policy .toc-inline a:hover { color: var(--link-hover); }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid #000; box-shadow: var(--shadow); padding: 16px 18px; z-index: 350; transform: translateY(150%); transition: transform .5s var(--ease); }
.cookie.show { transform: none; }
.cookie p { font-size: 14px; margin: 0 0 12px; }
.cookie .btn-row { margin: 0; }

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border: 1px solid #000; background: #fff; cursor: pointer; z-index: 80; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .3s, background-color .2s; display: flex; align-items: center; justify-content: center; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #000; color: #fff; }
.to-top svg { width: 16px; height: 16px; }
.to-top circle { transition: stroke-dashoffset .1s linear; }

/* ---------- Footer (archive: copyright line + quick find) ---------- */
.site-footer { margin-top: 40px; }
.quickfind { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.quickfind h2 { font-family: var(--serif); font-size: 15px; text-align: center; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.qf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qf-grid h3 { font-family: var(--sans); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: bold; margin-bottom: 8px; }
.qf-grid ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 12.5px; }
.qf-grid li { margin: 0; }
.qf-grid a { color: #000; text-decoration: none; display: inline-block; padding: 3px 0; }
.qf-grid a:hover { color: var(--link-hover); }
.newsletter { display: flex; gap: 0; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; border: 1px solid var(--border); border-right: 0; padding: 9px 10px; font-family: var(--serif); font-size: 14px; }
.newsletter .btn { padding: 9px 12px; }
.newsletter-msg { font-family: var(--sans); font-size: 11.5px; color: var(--accent); margin-top: 6px; min-height: 14px; }
.footer-bottom { text-align: center; padding: 18px 16px 26px; }
.footer-bottom .address { margin: 0 auto 12px; width: 715px; max-width: 100%; }
.footer-bottom .copyright { font-family: var(--sans); font-size: 10.5px; color: #000; }
.footer-bottom .footer { font-family: var(--sans); font-size: 11px; margin-top: 6px; }
.footer-bottom .footer a { color: #000; text-decoration: none; margin: 0 7px; display: inline-block; }
.footer-bottom .footer a:hover { color: red; }
.footer-bottom .flag-line { font-family: var(--serif); font-size: 15px; margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.footer-bottom .flag-line img { width: 60px; }

/* 404 */
.notfound { text-align: center; padding: 30px 0 10px; }
.notfound .big { font-family: var(--serif); font-size: clamp(80px, 18vw, 160px); line-height: 1; letter-spacing: 6px; }

/* Thank-you */
.thanks-ico { width: 84px; height: 84px; margin: 6px auto 16px; border: 1px solid #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.thanks-ico svg { width: 40px; height: 40px; }
.thanks-ico path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .9s .3s forwards var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Reveal fallback (if AOS unavailable) */
.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }

/* Print */
@media print {
  .topline, .mainnav, .stickybar, .to-top, .cookie, .quickfind, .cta-band, .toc, .btn, .drawer { display: none !important; }
  a { color: #000; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .qf-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stickybar nav { display: none; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .card-img { border-right: 0; border-bottom: 1px solid var(--border); min-height: 220px; }
}
@media (max-width: 760px) {
  .topline .hide-sm { display: none; }
  .topline a { margin: 0 8px; }
  .mainnav { display: none; }
  .menu-toggle { display: flex; justify-content: center; padding: 0 16px 10px; }
  .menu-toggle .btn { width: 100%; max-width: 420px; }
  .burger { display: inline-block; }
  .stickybar .quote-pill .txt { display: none; }
  .split, .split-60, .grid-2, .grid-3, .media, .media.rev, .product-hero, .modal-content, .form .row { grid-template-columns: 1fr; }
  .media.rev figure { order: -1; }
  .features { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; }
  .award img { max-width: 320px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .wizard .opts { grid-template-columns: 1fr; }
  .poem { columns: 1; }
  .policy .toc-inline { columns: 1; }
  .modal-content .mimg { border-right: 0; border-bottom: 1px solid var(--border); }
  .modal-content .mimg img { min-height: 200px; max-height: 260px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { text-align: left; }
  .ss-thumbs { grid-template-columns: repeat(9, 1fr); }
  .ss-thumbs button:nth-child(n+10) { display: none; }
  .prose p { font-size: 16.5px; }
  .client-list { columns: 1; }
  .author-box { grid-template-columns: 64px 1fr; }
  .author-box img { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .qf-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 16px 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .tabs [role="tab"] { flex: 1 1 50%; }
  .stickybar .brand { font-size: 19px; }
  .btn { padding: 12px 16px; }
}

/* ---------- Article top (hero + takeaways) ---------- */
.article-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; margin: 4px 0 30px; }
.article-top figure { margin: 0; max-width: 460px; }
.article-top figure img { width: auto; max-width: 100%; max-height: 380px; border: 1px solid var(--border); }
.takeaways { border: 1px solid #000; padding: 16px 18px; background: var(--soft); }
.takeaways ul { margin: 6px 0 0; padding-left: 18px; font-family: var(--serif); font-size: 15px; }
.takeaways li { margin: 6px 0; }
.takeaways .btn-row { margin-top: 12px; }
@media (max-width: 900px) { .article-top { grid-template-columns: 1fr; } .article-top figure { max-width: 100%; } .article-top figure img { margin: 0 auto; } }

/* Product body copy */
.prose-plain h2 { font-size: 23px; margin: 30px 0 10px; scroll-margin-top: 70px; }
.prose-plain h2:first-child { margin-top: 0; }
.prose-plain h3 { margin: 18px 0 6px; }
.prose-plain p { font-size: 16px; line-height: 1.65; }

/* Policies */
.policy-body h2:first-of-type { margin-top: 26px; }
.policy .toc-inline h4 { margin-bottom: 8px; }
.policy .toc-inline ol { list-style: none; padding-left: 0; }
.policy .toc-inline li { margin: 3px 0; break-inside: avoid; }

/* HTML sitemap */
.sitemap-cols h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid #000; padding-bottom: 6px; }
.sitemap-cols ul { list-style: square; padding-left: 18px; font-family: var(--serif); font-size: 15px; }
.sitemap-cols a { color: #000; text-decoration: none; }
.sitemap-cols a:hover { color: var(--link-hover); }

/* Grid children must be allowed to shrink (prevents Swiper width feedback loop) */
.split > *, .grid > *, .media > *, .product-hero > *, .article-layout > *, .article-top > * { min-width: 0; }
.slideshow { min-width: 0; max-width: 100%; overflow: hidden; }

/* Off-canvas panels must not widen the mobile layout viewport */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.drawer:not(.open), .qdrawer:not(.open) { pointer-events: none; }
@media (max-width: 760px) { .masthead .questions { display: none; } }
.contact-cards h3 { display: flex; align-items: center; gap: 8px; }
.contact-cards h3 svg, h3 > svg { width: 18px; height: 18px; flex: none; }
.card-img.contain img { object-fit: contain; background: #fff; padding: 6px; }
